:root {
    --dh-header-h: 72px;
    --dh-page-w: 1120px;
    --color-primary: #2c3e50;
    --color-secondary: #3498db;
    --color-accent: #e74c3c;
    --color-bg: #ecf0f1;
    --color-text: #1a1a1a;
    --color-text-light: #5a6570;
    --color-border: #d5 recede;
    --color-card: #ffffff;
    --color-on-primary: #ffffff;
    --color-primary-hover: #1a252f;
    --dh-radius: 20px;
    --dh-pill: 50px;
    --font-head: "Lexend", "IBM Plex Sans", sans-serif;
    --font-body: "IBM Plex Sans", sans-serif;
}
:root { --color-border: #d5dde3; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { scroll-padding-top: var(--dh-header-h); }
body {
    padding-top: var(--dh-header-h);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a:not(.dh-c-btn) { color: var(--color-secondary); }
a:not(.dh-c-btn):hover { color: var(--color-primary); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.6em; color: var(--color-primary); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
[hidden] { display: none !important; }

.dh-o-wrap {
    width: 100%;
    max-width: var(--dh-page-w);
    margin: 0 auto;
    padding-inline: 20px;
}
.dh-o-main { min-width: 0; }
.dh-o-section { padding-block: 56px; position: relative; }
.dh-o-section--dots {
    background-image: radial-gradient(rgba(44, 62, 80, 0.08) 1px, transparent 1px);
    background-size: 18px 18px;
}
.dh-u-muted { color: var(--color-text-light); }
.dh-u-grad {
    background: linear-gradient(120deg, var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.dh-u-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 768px) {
    :root { --dh-header-h: 64px; }
    .dh-o-section { padding-block: 40px; }
    .dh-o-wrap { padding-inline: 16px; }
}

/* Header L3#3 */
.dh-c-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    min-height: var(--dh-header-h);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}
.dh-c-header__row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: var(--dh-header-h);
    gap: 12px;
    max-width: 1380px;
}
.dh-c-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    color: var(--color-primary);
    text-decoration: none;
    z-index: 2;
}
.dh-c-logo svg { width: 180px; height: 40px; display: block; }
.dh-c-nav { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.dh-c-nav--left { justify-content: flex-end; padding-right: calc(90px + 1rem); }
.dh-c-nav--right { justify-content: flex-start; padding-left: calc(90px + 1rem); }
.dh-c-nav__link {
    color: var(--color-primary) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}
.dh-c-nav__link.dh-is-active { color: var(--color-secondary) !important; }
.dh-c-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0 11px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
}
.dh-c-burger span {
    display: block;
    flex: 0 0 2px;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

@media (max-width: 1100px) {
    .dh-c-nav, .dh-c-header__cta { display: none; }
    .dh-c-header__row { grid-template-columns: 1fr auto; }
    .dh-c-logo {
        position: static;
        transform: none;
        justify-self: start;
    }
    .dh-c-logo svg { width: 120px; height: 28px; max-width: calc(100vw - 150px); }
    .dh-c-burger { display: flex; justify-self: end; margin-left: auto; }
}

/* Buttons pill */
.dh-c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border-radius: var(--dh-pill);
    border: 2px solid transparent;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
a.dh-c-btn--primary, a.dh-c-btn--primary:visited, button.dh-c-btn--primary {
    color: var(--color-on-primary);
    background: var(--color-primary);
}
a.dh-c-btn--primary:hover, a.dh-c-btn--primary:focus-visible, a.dh-c-btn--primary:active,
button.dh-c-btn--primary:hover, button.dh-c-btn--primary:focus-visible {
    color: var(--color-on-primary);
    background: var(--color-primary-hover);
}
a.dh-c-btn--ghost, a.dh-c-btn--ghost:visited, button.dh-c-btn--ghost {
    color: var(--color-primary);
    background: transparent;
    border-color: var(--color-primary);
}
a.dh-c-btn--ghost:hover, a.dh-c-btn--ghost:focus-visible, button.dh-c-btn--ghost:hover {
    color: var(--color-on-primary);
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.dh-c-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) {
    .dh-c-actions { flex-direction: column; align-items: stretch; }
    .dh-c-actions .dh-c-btn { white-space: normal; width: 100%; }
}

/* Drawer wide */
.dh-c-overlay {
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(26, 26, 26, 0.45);
}
.dh-c-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    z-index: 200;
    width: min(85vw, 400px);
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(0,0,0,0.12);
    padding: 20px;
    overflow-y: auto;
}
.dh-c-drawer__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.dh-c-drawer__label { margin: 0; font-weight: 700; font-family: var(--font-head); }
.dh-c-drawer__close {
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--dh-pill);
    border: 1px solid var(--color-border);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}
.dh-c-drawer__nav { display: flex; flex-direction: column; gap: 14px; }
.dh-c-drawer__nav a {
    color: var(--color-primary) !important;
    text-decoration: none;
    font-weight: 600;
    min-height: 44px;
    display: flex;
    align-items: center;
}
body.dh-is-locked { overflow: hidden; }

/* Cookie corner */
.dh-c-cookie { display: none; }
.dh-c-cookie:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 210;
    right: 16px;
    bottom: 16px;
    width: min(360px, calc(100% - 32px));
    padding: 18px;
    border-radius: var(--dh-radius);
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: 0 12px 32px rgba(44,62,80,0.18);
}
.dh-c-cookie__actions { margin-top: 12px; }

/* Cards + glow */
.dh-c-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--dh-radius);
    padding: 22px;
    box-shadow: 0 0 0 1px rgba(52,152,219,0.12), 0 8px 24px rgba(44,62,80,0.06);
    animation: dh-glow 3.6s ease-in-out infinite;
    min-width: 0;
}
@keyframes dh-glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(52,152,219,0.12), 0 8px 24px rgba(44,62,80,0.06); }
    50% { box-shadow: 0 0 0 1px rgba(52,152,219,0.35), 0 8px 28px rgba(52,152,219,0.16); }
}
@media (prefers-reduced-motion: reduce) {
    .dh-c-card { animation: none; }
    .dh-c-reveal { animation: none !important; clip-path: none !important; opacity: 1 !important; }
}

.dh-c-reveal {
    animation: dh-clip 0.7s ease both;
}
@keyframes dh-clip {
    from { clip-path: inset(100% 0 0 0); opacity: 0.2; }
    to { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* Split */
.dh-c-split__rail { display: none; }
.dh-c-split__rail-card { padding: 20px; }
.dh-c-split__icon {
    width: 56px; height: 56px; border-radius: 22%; margin-bottom: 12px;
}
.dh-c-split__figures { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; }
.dh-c-split__figures > div {
    display: flex; justify-content: space-between; gap: 12px;
    border-bottom: 1px solid var(--color-border); padding-bottom: 6px;
}
.dh-c-split__figures dt { color: var(--color-text-light); margin: 0; }
.dh-c-split__figures dd { margin: 0; font-weight: 700; font-family: var(--font-head); }
@media (min-width: 1024px) {
    .dh-c-split {
        display: grid;
        grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
        gap: 40px;
        align-items: stretch;
    }
    .dh-c-split__rail { display: block; padding-block: 56px; }
    .dh-c-split__rail-card { position: sticky; top: calc(var(--dh-header-h) + 16px); }
}

/* Hero */
.dh-c-hero {
    padding-block: 48px 32px;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(52,152,219,0.18), transparent 55%),
        radial-gradient(ellipse at 10% 80%, rgba(231,76,60,0.1), transparent 45%),
        var(--color-bg);
}
.dh-c-hero__inner { text-align: center; max-width: 760px; margin: 0 auto; }
.dh-c-hero__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.dh-c-hero__text { font-size: 1.05rem; color: var(--color-text-light); }
.dh-c-hero__preview {
    margin: 28px auto 0;
    max-width: 720px;
    border-radius: var(--dh-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.dh-c-hero__preview img { width: 100%; height: auto; }

/* QA */
.dh-c-qa-group { margin-bottom: 28px; }
.dh-c-qa-group__title { font-size: 1.15rem; margin-bottom: 12px; }
.dh-c-qa {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-card);
    margin-bottom: 10px;
    overflow: hidden;
}
.dh-c-qa summary {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-head);
}
.dh-c-qa summary::-webkit-details-marker { display: none; }
.dh-c-qa summary::after { content: "+"; font-size: 1.3rem; color: var(--color-secondary); }
.dh-c-qa[open] summary::after { content: "–"; }
.dh-c-qa p { margin: 0; padding: 0 16px 16px; color: var(--color-text-light); }

/* App card */
.dh-c-app {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.dh-c-app__icon {
    width: 88px; height: 88px; border-radius: 22%;
}
.dh-c-app__head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.dh-c-app__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 0;
}
.dh-c-app__meta div { border-bottom: 1px solid var(--color-border); padding-bottom: 6px; }
.dh-c-app__meta dt { margin: 0; font-size: 0.8rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.04em; }
.dh-c-app__meta dd { margin: 0; font-weight: 600; }
.dh-c-app__still {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 16px;
    background: #1b5e3b;
}
@media (max-width: 800px) {
    .dh-c-app { grid-template-columns: 1fr; }
}

/* Glossary chips */
.dh-c-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dh-c-chip {
    border-radius: var(--dh-pill);
    border: 1px solid var(--color-border);
    background: #fff;
    padding: 10px 14px;
    font-size: 0.92rem;
}
.dh-c-chip strong { display: block; font-family: var(--font-head); color: var(--color-primary); }
.dh-c-chip span { color: var(--color-text-light); font-size: 0.85rem; }

/* Verdict */
.dh-c-verdict {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: var(--dh-radius);
    background: var(--color-primary);
    color: #fff;
}
.dh-c-verdict p { margin: 0; color: #fff; max-width: 48rem; }
.dh-c-verdict .dh-c-btn--primary {
    background: #fff;
    color: var(--color-primary);
}
.dh-c-verdict .dh-c-btn--primary:hover {
    background: #f0f4f8;
    color: var(--color-primary);
}

/* CTA */
.dh-c-cta {
    text-align: center;
    padding-block: 64px;
    background: linear-gradient(180deg, rgba(52,152,219,0.12), transparent);
}
.dh-c-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* Footer */
.dh-c-footer {
    background: var(--color-primary);
    color: #e9ecef;
    padding-block: 48px;
}
.dh-c-footer a, .dh-c-footer a:visited { color: #e9ecef !important; }
.dh-c-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
}
.dh-c-footer__title { font-family: var(--font-head); font-weight: 700; margin: 0 0 12px; color: #fff; }
.dh-c-footer__list { list-style: none; padding: 0; margin: 0; }
.dh-c-footer__list li { margin-bottom: 8px; }
.dh-c-footer__cookie {
    background: none; border: none; color: #e9ecef; cursor: pointer; padding: 0;
    font: inherit; text-decoration: underline;
}
.dh-c-footer__note, .dh-c-footer__copy { color: #c5ced6; font-size: 0.92rem; }
@media (max-width: 700px) {
    .dh-c-footer__grid { grid-template-columns: 1fr; }
}

/* Library collections */
.dh-c-collection { margin-bottom: 36px; }
.dh-c-collection__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.dh-c-note-card {
    border-radius: var(--dh-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: #fff;
    text-decoration: none;
    color: inherit;
    display: block;
}
.dh-c-note-card__band {
    height: 72px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}
.dh-c-note-card__band--alt { background: linear-gradient(135deg, var(--color-accent), var(--color-secondary)); }
.dh-c-note-card__band--soft { background: linear-gradient(135deg, #5dade2, #2c3e50); }
.dh-c-note-card__body { padding: 16px; }
.dh-c-note-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.dh-c-note-card p { margin: 0; color: var(--color-text-light); font-size: 0.92rem; }

/* Article */
.dh-c-article { max-width: 720px; margin: 0 auto; padding-block: 40px; }
.dh-c-article__back { display: inline-block; margin-bottom: 16px; }
.dh-c-gloss {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}
.dh-c-gloss__item {
    border-left: 3px solid var(--color-secondary);
    padding: 8px 0 8px 14px;
    background: rgba(255,255,255,0.7);
    border-radius: 0 12px 12px 0;
}
.dh-c-series {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-top: 36px; padding-top: 20px;
    border-top: 1px solid var(--color-border);
}
.dh-c-series__link {
    min-height: 44px;
    display: inline-flex; align-items: center;
    padding: 0 14px;
    border-radius: var(--dh-pill);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-primary) !important;
    font-weight: 600;
}

/* Forms */
.dh-c-form { display: grid; gap: 14px; max-width: 560px; }
.dh-c-form label { display: grid; gap: 6px; font-weight: 600; }
.dh-c-form input, .dh-c-form textarea {
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
.dh-c-form textarea { min-height: 140px; resize: vertical; }
.dh-c-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--color-secondary); }
.dh-c-timeline li { padding: 0 0 24px 20px; position: relative; }
.dh-c-timeline li::before {
    content: "";
    position: absolute; left: -7px; top: 6px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--color-secondary);
}
.dh-c-map-list { columns: 2; gap: 32px; }
@media (max-width: 700px) { .dh-c-map-list { columns: 1; } }
.dh-c-map-list a { display: block; margin-bottom: 8px; }

.dh-c-stills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.dh-c-stills img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
    border-radius: 14px;
    background: #1b5e3b;
}
