:root {
    --color-primary: #2c3e50;
    --color-secondary: #3498db;
    --color-accent: #e74c3c;
    --color-bg: #ecf0f1;
    --color-surface: #ffffff;
    --color-text: #243447;
    --color-text-light: #5a6a7a;
    --color-border: #cfd8dc;
    --jdg-header-h: 72px;
    --jdg-page-w: 1120px;
    --jdg-radius: 10px;
    --jdg-shadow: 0 8px 28px rgba(44, 62, 80, 0.08);
    --font-head: "Space Grotesk", system-ui, sans-serif;
    --font-body: "DM Sans", system-ui, sans-serif;
}

@media (max-width: 768px) {
    :root { --jdg-header-h: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html { scroll-padding-top: var(--jdg-header-h); }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.55;
    padding-top: var(--jdg-header-h);
}

body.jdg-nav-open { overflow: hidden; }
body.jdg-cookie-open { padding-bottom: 96px; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--color-secondary); }
a:visited { color: #2471a3; }

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

.jdg-container {
    max-width: var(--jdg-page-w);
    margin: 0 auto;
    padding: 0 20px;
}

.jdg-flow > * + * { margin-top: 1.25rem; }
.jdg-u-center { text-align: center; }
.jdg-u-muted { color: var(--color-text-light); }
.jdg-u-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.jdg-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--jdg-header-h);
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.jdg-header__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--jdg-header-h);
}

.jdg-header__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.jdg-header__logo img {
    width: 180px;
    height: auto;
    min-height: 36px;
}

.jdg-nav {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: auto;
    flex-wrap: nowrap;
}

.jdg-nav__link {
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-primary);
    white-space: nowrap;
}

.jdg-nav__link:visited { color: var(--color-primary); }
.jdg-nav__link.is-active { color: var(--color-secondary); }

.jdg-header__cta { flex: 0 0 auto; margin-left: 0.35rem; }

.jdg-burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 5px;
}

.jdg-burger span {
    display: block;
    width: 100%;
    height: 2px;
    flex: 0 0 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

.jdg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--jdg-radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.jdg-btn--ghost {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.jdg-btn--ghost:visited { color: var(--color-primary); }
.jdg-btn--ghost:hover {
    background: var(--color-primary);
    color: #fff;
}

.jdg-btn--solid {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.jdg-btn--solid:visited { color: #fff; }
.jdg-btn--solid:hover { background: #1a252f; }

.jdg-btn--accent {
    background: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.jdg-btn--accent:visited { color: var(--color-accent); }

.jdg-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(36, 52, 71, 0.45);
}

.jdg-overlay[hidden] { display: none !important; }

.jdg-drawer {
    position: fixed;
    inset: 0;
    z-index: 210;
    background: var(--color-bg);
    padding: 4.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.jdg-drawer[hidden] { display: none !important; }

.jdg-drawer a {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.jdg-drawer a:visited { color: var(--color-primary); }

.jdg-drawer__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-primary);
    cursor: pointer;
}

.jdg-crumbs {
    padding-top: 1rem;
    padding-bottom: 0.25rem;
}

.jdg-crumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.jdg-crumbs__item:not(:last-child)::after {
    content: "/";
    margin-left: 0.35rem;
    color: var(--color-border);
}

.jdg-crumbs a { color: var(--color-secondary); text-decoration: none; }

.jdg-split {
    display: block;
}

.jdg-split__rail {
    background: linear-gradient(165deg, #d6eaf8 0%, #ecf0f1 55%, #e8f4fc 100%);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 20px 2.25rem;
}

.jdg-split__rail-inner {
    display: grid;
    gap: 1.5rem;
}

.jdg-split__rail-card {
    max-width: var(--jdg-page-w);
    margin: 0 auto;
}

.jdg-split__scroll {
    padding: 2rem 20px 3.5rem;
    max-width: var(--jdg-page-w);
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.jdg-hero__title {
    font-size: clamp(1.7rem, 3.2vw, 2.45rem);
    max-width: 18ch;
}

.jdg-figures {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.jdg-figures__item {
    background: transparent;
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    padding: 0.9rem 0.75rem;
    text-align: center;
    box-shadow: var(--jdg-shadow);
}

.jdg-figures__num {
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--color-secondary);
    display: block;
}

.jdg-figures__label {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin: 0.25rem 0 0;
}

.jdg-hero__text { max-width: 38rem; color: var(--color-text-light); }
.jdg-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.jdg-hero__still {
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--jdg-shadow);
}

.jdg-hero__still img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.jdg-section {
    padding: 2rem 0;
}

.jdg-section__title {
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.jdg-card {
    background: transparent;
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    box-shadow: none;
    padding: 1.25rem;
}

.jdg-verdict {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--jdg-shadow);
}

.jdg-verdict__text {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--color-primary);
    max-width: 46rem;
}

.jdg-app {
    display: grid;
    gap: 1.25rem;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    padding: 1.25rem;
    box-shadow: var(--jdg-shadow);
}

.jdg-app__top {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1rem;
    align-items: start;
}

.jdg-app__icon {
    width: 88px;
    height: 88px;
    border-radius: 22%;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.jdg-app__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.jdg-app__name {
    font-family: var(--font-head);
    font-size: 1.25rem;
    margin: 0 0 0.25rem;
}

.jdg-app__dev {
    margin: 0;
    color: var(--color-text-light);
    font-size: 0.92rem;
}

.jdg-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.jdg-facts dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-light);
    margin: 0;
}

.jdg-facts dd {
    margin: 0.15rem 0 0;
    font-weight: 600;
    color: var(--color-primary);
    word-break: break-word;
    min-width: 0;
}

.jdg-app__note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.jdg-versions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.jdg-versions li {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    background: var(--color-surface);
}

.jdg-versions__ver {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--color-secondary);
}

.jdg-versions__meta {
    margin: 0;
    font-size: 0.92rem;
}

.jdg-versions__date {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-light);
}

.jdg-privacy-box {
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    padding: 1.25rem;
    box-shadow: var(--jdg-shadow);
}

.jdg-privacy-box strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.jdg-briefs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.jdg-brief {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.jdg-brief:hover {
    transform: translateY(-2px);
    box-shadow: var(--jdg-shadow);
}

.jdg-brief:visited { color: inherit; }

.jdg-brief__band {
    height: 72px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.jdg-brief__body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.jdg-brief__title { font-size: 1.05rem; margin: 0 0 0.5rem; }
.jdg-brief__excerpt { margin: 0; color: var(--color-text-light); font-size: 0.92rem; flex: 1; }
.jdg-brief__meta { margin-top: 0.85rem; font-size: 0.78rem; color: var(--color-text-light); }

.jdg-cta {
    background: linear-gradient(120deg, #d4e6f1, #ecf0f1 50%, #f5e6e4);
    border-top: 1px solid var(--color-border);
    padding: 2.75rem 0;
    text-align: center;
}

.jdg-cta__title { max-width: 22ch; margin-left: auto; margin-right: auto; }
.jdg-cta__text { max-width: 36rem; margin: 0 auto 1.25rem; color: var(--color-text-light); }
.jdg-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.jdg-stills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    gap: 0.75rem;
    justify-content: center;
}

.jdg-stills__frame {
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    overflow: hidden;
    background: var(--color-surface);
    aspect-ratio: auto;
}

.jdg-stills__frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.jdg-page {
    padding: 1.5rem 0 3.5rem;
}

.jdg-page__title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    max-width: 22ch;
}

.jdg-prose {
    max-width: 42rem;
}

.jdg-prose h2 { margin-top: 1.75rem; font-size: 1.25rem; }

.jdg-qa { display: grid; gap: 1rem; max-width: 44rem; }
.jdg-qa details {
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    padding: 0.85rem 1rem;
    background: var(--color-surface);
}
.jdg-qa summary {
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
    color: var(--color-primary);
}
.jdg-qa p { margin: 0.75rem 0 0; color: var(--color-text-light); }

.jdg-contact {
    display: grid;
    gap: 1.5rem;
}

.jdg-form {
    display: grid;
    gap: 0.85rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    padding: 1.25rem;
    background: var(--color-surface);
}

.jdg-form label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.jdg-form input,
.jdg-form textarea {
    font: inherit;
    padding: 0.7rem 0.8rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    width: 100%;
}

.jdg-form textarea { min-height: 140px; resize: vertical; }

.jdg-contact-card {
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    padding: 1.25rem;
    background: transparent;
}

.jdg-contact-card h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.jdg-contact-card p { margin: 0 0 0.5rem; color: var(--color-text-light); }

.jdg-alt-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.jdg-alt-list li {
    border: 1.5px solid var(--color-border);
    border-radius: var(--jdg-radius);
    padding: 1rem 1.1rem;
    background: var(--color-surface);
}

.jdg-glossary {
    columns: 1;
    gap: 1.5rem;
}

.jdg-glossary__letter {
    break-inside: avoid;
    margin-bottom: 1.25rem;
}

.jdg-glossary__letter h2 {
    font-size: 1.1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.35rem;
}

.jdg-glossary dl { margin: 0; }
.jdg-glossary dt { font-weight: 700; margin-top: 0.65rem; }
.jdg-glossary dd { margin: 0.15rem 0 0; color: var(--color-text-light); }

.jdg-footer__band--accent {
    background: #d6eaf8;
    padding: 1.5rem 0;
}

.jdg-footer__band--dark {
    background: var(--color-primary);
    color: #dce4ea;
    padding: 1.5rem 0 2rem;
}

.jdg-footer__band-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.jdg-footer__reminder {
    margin: 0;
    font-weight: 600;
    color: var(--color-primary);
    max-width: 28rem;
}

.jdg-footer__links,
.jdg-footer__legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
}

.jdg-footer__links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.jdg-footer__links a:visited { color: var(--color-primary); }

.jdg-footer__legal a,
.jdg-footer__link {
    color: #dce4ea;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.jdg-footer__legal a:visited { color: #dce4ea; }
.jdg-footer__disc { font-size: 0.88rem; max-width: 52rem; }
.jdg-footer__copy { margin: 0; font-size: 0.85rem; opacity: 0.85; }

.jdg-cookie {
    display: none;
    position: fixed;
    z-index: 110;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface);
    border-top: 1.5px solid var(--color-border);
    box-shadow: 0 -6px 24px rgba(44, 62, 80, 0.1);
}

.jdg-cookie:not([hidden]) { display: block; }

.jdg-cookie__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.jdg-cookie__inner p { margin: 0; max-width: 40rem; font-size: 0.92rem; }
.jdg-cookie__actions { display: flex; gap: 0.6rem; }
.jdg-cookie .jdg-btn { box-shadow: none; min-height: 44px; }

.jdg-article { max-width: 42rem; }
.jdg-article h2 { margin-top: 1.75rem; }

.is-in > * {
    animation: jdg-k-up 0.4s ease both;
    animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes jdg-k-up {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .is-in > * { animation: none; }
}

@media (min-width: 1024px) {
    .jdg-split {
        display: grid;
        grid-template-columns: minmax(280px, 40%) minmax(0, 60%);
        align-items: stretch;
        min-height: calc(100vh - var(--jdg-header-h));
        overflow: visible;
    }

    .jdg-split__rail {
        position: relative;
        border-bottom: 0;
        border-right: 1px solid var(--color-border);
        min-height: calc(100vh - var(--jdg-header-h));
        padding: 2rem 0;
        overflow: visible;
    }

    .jdg-split__rail-card {
        padding: 0 1.25rem 0 1.5rem;
        max-width: none;
        max-height: none;
        overflow: visible;
    }

    .jdg-split__rail-card.is-pinned {
        position: fixed;
        top: var(--pin-top, calc(var(--jdg-header-h) + 16px));
        width: var(--pin-w);
        max-height: none;
        overflow: visible;
    }

    .jdg-split__rail-card.is-end {
        position: absolute;
        bottom: 1.5rem;
        top: auto;
        width: 100%;
        padding-right: 1.25rem;
        padding-left: 1.5rem;
    }

    .jdg-split__scroll {
        padding: 2rem 1.5rem 3.5rem 1.25rem;
        overflow: visible;
        min-width: 0;
    }

    .jdg-hero__still--lead {
        margin: 0 0 1.5rem;
    }

    .jdg-contact {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: start;
    }

    .jdg-glossary { columns: 2; }
}

@media (max-width: 1100px) {
    .jdg-nav { display: none; }
    .jdg-header__cta { display: none; }
    .jdg-burger { display: flex; }
    .jdg-header__logo img { width: 120px; min-height: 28px; }
}

@media (max-width: 768px) {
    .jdg-figures { grid-template-columns: 1fr; }
    .jdg-app__top { grid-template-columns: 72px 1fr; }
    .jdg-app__icon { width: 72px; height: 72px; }
    .jdg-versions li { grid-template-columns: 1fr; }
    .jdg-hero__actions .jdg-btn,
    .jdg-cta__actions .jdg-btn { width: 100%; }
    .jdg-cookie__inner { flex-direction: column; align-items: stretch; }
    .jdg-cookie__actions .jdg-btn { flex: 1; }
}

@media (max-width: 480px) {
    .jdg-stills { grid-template-columns: 1fr; }
}
