/* Description page — header + hero (isolated from legacy #header / #navi) */

:root {
    --dh-bg: #050810;
    --dh-text: #eef2f8;
    --dh-muted: #94a3b8;
    --dh-gold: #d4af37;
    --dh-gold-soft: #f0d78c;
    --dh-accent: #7c5cff;
    --dh-container: 1280px;
    --dh-nav-h: 92px;
    --dh-font: 'Inter', system-ui, sans-serif;
    --dh-display: 'Cinzel', Georgia, serif;
}

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

body.desc-page-body {
    margin: 0;
    padding: 0;
    font-family: var(--dh-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--dh-text);
    background: var(--dh-bg);
    position: static !important;
    top: 0 !important;
    margin-top: 0 !important;
}

/* ── Top shell with bg ── */
.dh-shell {
    position: relative;
    z-index: 10;
    min-height: 560px;
    overflow: hidden;
    isolation: isolate;
    padding-bottom: 56px;
}

.dh-shell::before {
    content: '';
    display: block;
    height: var(--dh-nav-h);
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.dh-shell::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    z-index: 7;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(5, 8, 16, 0.35) 28%,
        rgba(5, 8, 16, 0.78) 58%,
        rgba(5, 8, 16, 0.96) 82%,
        #050810 100%
    );
}

.dh-shell__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--dh-bg);
}

.dh-shell__bg-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    transform: scale(1.04);
    filter: contrast(1.06) saturate(1.1) brightness(0.98);
}

.dh-shell__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 42% 55% at 82% 58%, rgba(124, 92, 255, 0.16) 0%, transparent 62%),
        radial-gradient(ellipse 55% 45% at 50% 38%, rgba(59, 130, 246, 0.18) 0%, transparent 65%),
        linear-gradient(90deg, rgba(5, 8, 16, 0.4) 0%, rgba(5, 8, 16, 0.06) 45%, rgba(5, 8, 16, 0.08) 100%),
        linear-gradient(180deg,
            rgba(5, 8, 16, 0.12) 0%,
            rgba(5, 8, 16, 0.18) 42%,
            rgba(5, 8, 16, 0.45) 72%,
            rgba(5, 8, 16, 0.72) 88%,
            transparent 100%);
}

.dh-shell__elf {
    position: absolute;
    right: -24px;
    bottom: -22%;
    z-index: 2;
    width: min(420px, 42vw);
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    opacity: 0.55;
}

.dh-shell__elf-cutout {
    width: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.2) 3%, rgba(0,0,0,.85) 8%, #000 14%, #000 70%, rgba(0,0,0,.85) 84%, rgba(0,0,0,.35) 94%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.2) 3%, rgba(0,0,0,.85) 8%, #000 14%, #000 70%, rgba(0,0,0,.85) 84%, rgba(0,0,0,.35) 94%, transparent 100%);
}

.dh-shell__elf-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(720px, 80vh);
    object-fit: contain;
    object-position: bottom right;
}

.dh-shell__content {
    position: relative;
    z-index: 5;
    max-width: 960px;
    margin: 0 auto;
    padding: 8px 20px 32px;
    text-align: center;
}

/* ── Nav bar ── */
.dh-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 200;
    display: flex;
    flex-direction: column;
    background-color: rgba(5, 8, 16, 0.94);
    background-image: linear-gradient(180deg, rgba(5, 8, 16, 0.96) 0%, rgba(12, 8, 32, 0.88) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.dh-nav__promo {
    width: 100%;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(0, 0, 0, 0.28);
}

.dh-nav__promo-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    flex-wrap: wrap;
    max-width: var(--dh-container);
    margin: 0 auto;
    padding: 5px 16px;
}

.dh-nav__promo-text {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    color: var(--dh-text);
    text-align: center;
}

.dh-nav__promo-link {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #4ade80;
    white-space: nowrap;
}

.dh-nav__promo-link:hover { color: #86efac; }

.dh-nav__bar {
    display: grid;
    grid-template-columns: minmax(100px, 140px) 1fr auto;
    align-items: center;
    gap: 16px;
    max-width: var(--dh-container);
    margin: 0 auto;
    padding: 8px 24px 10px;
}

.dh-nav__brand {
    font-family: var(--dh-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dh-gold-soft);
    text-decoration: none;
    white-space: nowrap;
}

.dh-nav__menu {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding-bottom: 6px;
}

.dh-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(148, 163, 184, 0.92);
    white-space: nowrap;
    transition: color 0.25s;
}

.dh-nav__link:hover,
.dh-nav__link.is-active {
    color: #fff;
}

.dh-nav__link.is-active { color: var(--dh-gold-soft); }

.dh-nav__link-icon {
    display: grid;
    place-items: center;
    opacity: 0.75;
}

.dh-nav__link-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dh-nav__link:hover .dh-nav__link-icon,
.dh-nav__link.is-active .dh-nav__link-icon {
    opacity: 1;
    color: var(--dh-gold-soft);
}

.dh-nav__indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), var(--dh-gold-soft) 50%, rgba(212, 175, 55, 0.15));
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
    transform: translateX(-50%);
    transition: left 0.38s cubic-bezier(0.4, 0, 0.2, 1), width 0.38s, opacity 0.25s;
    opacity: 0;
    pointer-events: none;
}

.dh-nav__lang {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.dh-nav__lang-globe svg {
    width: 16px;
    height: 16px;
    stroke: var(--dh-muted);
    fill: none;
    stroke-width: 1.8;
}

.dh-nav__lang-items {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.dh-nav__lang-item {
    color: var(--dh-muted);
    text-decoration: none;
}

.dh-nav__lang-item:hover { color: var(--dh-text); }

.dh-nav__lang-item.is-active {
    color: var(--dh-gold-soft);
}

.dh-nav__lang-sep {
    color: rgba(148, 163, 184, 0.35);
}

/* ── Google Translate (как на старой about-странице) ── */
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
#google_translate_element {
    display: none !important;
}

body.desc-page-body > .skiptranslate {
    display: none !important;
}

.dh-gtranslate {
    position: relative;
    flex-shrink: 0;
    z-index: 220;
}

.dh-gtranslate__current {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.dh-gtranslate__current .lang__img_select {
    width: 22px;
    height: 22px;
    margin: 0;
}

.dh-gtranslate__list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    padding: 6px 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 24, 0.98);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.dh-gtranslate:hover .dh-gtranslate__list,
.dh-gtranslate:focus-within .dh-gtranslate__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dh-gtranslate .lang__link_sub {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 120px;
    height: auto;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--dh-muted);
    transition: background 0.15s, color 0.15s;
}

.dh-gtranslate .lang__link_sub:hover {
    background: rgba(124, 92, 255, 0.15);
    color: var(--dh-text);
}

.dh-gtranslate .lang__name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: inherit;
}

.dh-gtranslate .lang__img {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
}

/* ── Logo ── */
.dh-logo-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 12px 0 16px;
}

.dh-logo-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
}

.dh-logo-glow--a {
    width: min(520px, 95vw);
    height: 360px;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.45) 0%, rgba(59, 130, 246, 0.35) 25%, rgba(124, 92, 255, 0.2) 50%, transparent 72%);
    filter: blur(28px);
}

.dh-logo-glow--b {
    width: min(380px, 80vw);
    height: 200px;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    filter: blur(20px);
}

.dh-logo {
    position: relative;
    z-index: 2;
    display: inline-block;
    line-height: 0;
}

.dh-logo__img {
    display: block;
    max-width: min(480px, 92vw);
    max-height: 220px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(124, 92, 255, 0.5)) drop-shadow(0 0 48px rgba(59, 130, 246, 0.35));
}

@media (max-width: 768px) {
    .dh-nav__bar {
        grid-template-columns: 1fr auto;
        padding: 8px 12px;
    }

    .dh-nav__brand { display: none; }

    .dh-nav__menu {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .dh-nav__link-text { display: none; }

    .dh-nav__link { padding: 10px 12px; }

    .dh-shell__elf { display: none; }

    .dh-shell { min-height: 460px; }
}
