/* =========================================================
   Крот · Talpidae — общие стили
   Темы: [data-theme="light" | "dark"]
   ========================================================= */

:root {
    color-scheme: light;
    --bg: #f2f6ef;
    --bg-glow-1: #e3eedd;
    --bg-glow-2: #eef4e9;
    --surface: #ffffff;
    --surface-2: #f4f8f1;
    --surface-3: #eaf1e5;
    --text: #16241a;
    --text-soft: #35483c;
    --muted: #5f7364;
    --line: #dde6d8;
    --line-strong: #c3d4bd;
    --accent: #2f7d4f;
    --accent-hover: #256b42;
    --accent-ink: #1d5a37;
    --accent-soft: #dcefdf;
    --on-accent: #ffffff;
    --amber: #965f12;
    --amber-soft: #fdf2dd;
    --danger: #b4452f;
    --shadow-sm: 0 1px 2px rgba(22, 44, 28, .05), 0 3px 10px -4px rgba(22, 44, 28, .10);
    --shadow-md: 0 10px 26px -14px rgba(22, 44, 28, .28);
    --shadow-lg: 0 34px 60px -34px rgba(22, 44, 28, .40);
    --radius: 22px;
    --radius-sm: 14px;
    --max: 1140px;
    --dg-shadow: rgba(22, 44, 28, .13);
    --dg-sky: #e6f1fb;
    --dg-grass: #6aa96f;
    --dg-soil: #cba47b;
    --dg-soil-2: #a9835c;
    --dg-tunnel: #6b4a31;
    --dg-tunnel-soft: #8a6444;
    --dg-root: #7d5a3a;
    --dg-mole: #4b4038;
    --dg-mole-2: #6d5e50;
    --dg-nose: #d98d8d;
    --dg-eye: #14100d;
    --dg-whisker: #6d5e50;
    --dg-mesh: #6f8577;
    --dg-glass: rgba(255, 255, 255, .72);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d1411;
    --bg-glow-1: #14241b;
    --bg-glow-2: #0f1a15;
    --surface: #15211b;
    --surface-2: #1a2a22;
    --surface-3: #20342a;
    --text: #e9f1ea;
    --text-soft: #cfe0d3;
    --muted: #9db3a5;
    --line: #293b31;
    --line-strong: #3a5144;
    --accent: #63d391;
    --accent-hover: #7fe0a6;
    --accent-ink: #8fe6b1;
    --accent-soft: #1c3a2a;
    --on-accent: #07130c;
    --amber: #e0ac55;
    --amber-soft: #2e2617;
    --danger: #e07a63;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 3px 10px -4px rgba(0, 0, 0, .45);
    --shadow-md: 0 12px 30px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 34px 70px -34px rgba(0, 0, 0, .8);
    --dg-shadow: rgba(0, 0, 0, .35);
    --dg-sky: #12212e;
    --dg-grass: #3f7a52;
    --dg-soil: #4a382a;
    --dg-soil-2: #3a2c21;
    --dg-tunnel: #1d150e;
    --dg-tunnel-soft: #2a1e15;
    --dg-root: #8a6a4a;
    --dg-mole: #8b7c6d;
    --dg-mole-2: #a8988a;
    --dg-nose: #c98f8f;
    --dg-eye: #0b0806;
    --dg-whisker: #a8988a;
    --dg-mesh: #7d9284;
    --dg-glass: rgba(21, 33, 27, .82);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60rem 40rem at 12% -10%, var(--bg-glow-1), transparent 60%),
        radial-gradient(50rem 40rem at 100% 0%, var(--bg-glow-2), transparent 55%);
    pointer-events: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    font-family: "Merriweather", Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
    margin: 0;
}

p { margin: 0 0 1rem; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: min(100% - 3rem, var(--max));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: fixed;
    top: .75rem; left: .75rem;
    z-index: 200;
    padding: .7rem 1.1rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform .2s ease;
}
.skip:focus { transform: none; }

/* ---------- Шапка ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--bg);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
@supports (backdrop-filter: blur(10px)) {
    .topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); }
}
.topbar.scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}
@supports (backdrop-filter: blur(10px)) {
    .topbar.scrolled { background: color-mix(in srgb, var(--bg) 94%, transparent); }
}

.topbar-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 74px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-right: auto;
    text-decoration: none;
}
.brand-mark {
    width: 42px; height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-text strong {
    display: block;
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.06rem;
    line-height: 1.15;
}
.brand-text small {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
    position: relative;
    padding: .5rem .85rem;
    border-radius: 999px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active {
    color: var(--accent-ink);
    background: var(--accent-soft);
    font-weight: 600;
}

.topbar-tools { display: flex; align-items: center; gap: .5rem; }

.lang-wrap { position: relative; display: inline-flex; }
.lang-wrap::after {
    content: "";
    position: absolute;
    right: .75rem; top: 50%;
    width: 7px; height: 7px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.lang-select {
    appearance: none;
    -webkit-appearance: none;
    padding: .46rem 2rem .46rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .84rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.lang-select:hover { border-color: var(--line-strong); }

.icon-btn {
    width: 40px; height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.nav-toggle { display: none; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .74rem 1.3rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn i { font-size: .85em; transition: transform .15s ease; }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }

/* ---------- Герой ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(2.4rem, 6vw, 4.6rem) 0 clamp(2rem, 4vw, 3.2rem);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-ink);
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    border-radius: 2px;
    background: var(--accent);
}
.hero h1 {
    font-size: clamp(2.7rem, 6.4vw, 4.4rem);
    letter-spacing: -.035em;
    margin: .5rem 0 .15rem;
}
.hero-sub {
    font-size: clamp(1.02rem, 2vw, 1.3rem);
    color: var(--muted);
    margin: 0 0 1.1rem;
}
.hero-intro {
    max-width: 54ch;
    font-size: 1.04rem;
    color: var(--text-soft);
    margin-bottom: 1.7rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.hero-art {
    position: relative;
    margin: 0;
    z-index: 0;
}
.hero-art::before {
    content: "";
    position: absolute;
    inset: -10% -8% -14% -10%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(circle at 60% 40%, var(--accent-soft), transparent 68%);
    filter: blur(6px);
}
.hero-art img {
    width: 100%;
    aspect-ratio: 4 / 3.1;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.hero-badge {
    position: absolute;
    left: clamp(-6px, -1vw, 18px);
    bottom: 22px;
    padding: .5rem .85rem;
    border-radius: 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero-badge i { color: var(--accent); margin-right: .35rem; }

/* ---------- Факты ---------- */
.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: clamp(2.4rem, 5vw, 4rem);
}
.fact { background: var(--surface); padding: 1.25rem 1.35rem; }
.fact b {
    display: block;
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    color: var(--accent-ink);
    line-height: 1.2;
}
.fact span { display: block; margin-top: .2rem; font-size: .82rem; color: var(--muted); }

/* ---------- Секции ---------- */
.section { padding: clamp(1.9rem, 4vw, 3rem) 0; }
.section-head { max-width: 68ch; margin-bottom: 1.7rem; }
.section-head h2 {
    font-size: clamp(1.55rem, 3.2vw, 2.25rem);
    margin: .4rem 0 .55rem;
}
.section-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }

.mini-title {
    font-size: 1.02rem;
    margin: 1.4rem 0 .6rem;
}

.split {
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: clamp(1.6rem, 4vw, 3.2rem);
    align-items: center;
}
.split.reverse > :first-child { order: 2; }

.about-figure { margin: 0; }
.about-figure img {
    width: 100%;
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
}
.about-figure figcaption {
    margin-top: .65rem;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.5;
}

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
    position: relative;
    padding-left: 1.85rem;
    margin-bottom: .55rem;
    font-size: .97rem;
    color: var(--text-soft);
}
.check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: .32rem;
    width: 1.1rem; height: 1.1rem;
    border-radius: 50%;
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
.check-list li::after {
    content: "";
    position: absolute;
    left: .34rem; top: .6rem;
    width: .42rem; height: .24rem;
    border-left: 2px solid var(--accent-ink);
    border-bottom: 2px solid var(--accent-ink);
    transform: rotate(-45deg);
}

/* ---------- Карточки ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 1rem;
}
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.35rem 1.3rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}
.card-icon {
    width: 46px; height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: .95rem;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 1.1rem;
}
.card h3 { font-size: 1.06rem; margin-bottom: .4rem; }
.card p { margin: 0; font-size: .93rem; color: var(--text-soft); }

/* ---------- Методы ---------- */
.method-list { display: grid; gap: 1rem; }
.method {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.15rem;
    padding: 1.45rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.method-num {
    width: 50px; height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-family: "Merriweather", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}
.method.warn .method-num { background: var(--amber-soft); color: var(--amber); }
.method-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-bottom: .45rem;
}
.method-head h3 { font-size: 1.13rem; }
.method-head i { color: var(--accent); margin-right: .15rem; }
.method.warn .method-head i { color: var(--amber); }
.badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge.warn { background: var(--amber-soft); color: var(--amber); }
.method ul { margin: .2rem 0 0; padding-left: 1.15rem; }
.method li { margin-bottom: .45rem; font-size: .95rem; color: var(--text-soft); }
.method li:last-child { margin-bottom: 0; }
.method li strong { color: var(--text); }

/* ---------- Заметка ---------- */
.note {
    display: flex;
    gap: .9rem;
    margin-top: 1.2rem;
    padding: 1.15rem 1.3rem;
    border-radius: var(--radius);
    background: var(--amber-soft);
    border: 1px solid color-mix(in srgb, var(--amber) 32%, transparent);
}
.note > i { color: var(--amber); font-size: 1.2rem; margin-top: .15rem; }
.note b { display: block; margin-bottom: .2rem; }
.note p { margin: 0; font-size: .94rem; color: var(--text-soft); }

/* ---------- Схемы ---------- */
.figure {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1rem, 3vw, 1.7rem);
    box-shadow: var(--shadow-sm);
}
.figure + .figure { margin-top: 1.2rem; }
.figure h3 { font-size: 1.18rem; }
.figure > p { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; }
.figure-art {
    margin: 1.1rem 0 1.15rem;
    padding: clamp(.5rem, 2vw, 1.2rem);
    border-radius: 18px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.figure-art svg { width: 100%; height: auto; display: block; }
.figure-note { margin: .9rem 0 0; font-size: .78rem; color: var(--muted); }

.legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: .55rem 1.4rem;
    counter-reset: leg;
}
.legend li {
    counter-increment: leg;
    display: flex;
    gap: .6rem;
    font-size: .92rem;
    color: var(--text-soft);
    line-height: 1.5;
}
.legend li::before {
    content: counter(leg);
    flex: 0 0 23px;
    height: 23px;
    margin-top: .1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font-size: .72rem;
    font-weight: 700;
}

/* Элементы схем */
.diagram text { font-family: "Inter", sans-serif; }
.dg-marker { fill: var(--accent); }
.dg-marker-text {
    fill: var(--on-accent);
    font-size: 14px;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: central;
}
.dg-leader { stroke: var(--line-strong); stroke-width: 1.6; stroke-dasharray: 4 5; fill: none; }
.dg-shadow { fill: var(--dg-shadow); }
.dg-sky { fill: var(--dg-sky); }
.dg-grass { fill: var(--dg-grass); }
.dg-soil { fill: var(--dg-soil); }
.dg-soil-2 { fill: var(--dg-soil-2); }
.dg-tunnel { stroke: var(--dg-tunnel); fill: none; stroke-linecap: round; }
.dg-tunnel-fill { fill: var(--dg-tunnel); }
.dg-root { stroke: var(--dg-root); fill: none; stroke-linecap: round; }
.dg-mole { fill: var(--dg-mole); }
.dg-mole-2 { fill: var(--dg-mole-2); }
.dg-nose { fill: var(--dg-nose); }
.dg-eye { fill: var(--dg-eye); }
.dg-whisker { stroke: var(--dg-whisker); fill: none; stroke-linecap: round; }
.dg-mesh { stroke: var(--dg-mesh); fill: none; }
.dg-glass { fill: var(--dg-glass); }
.dg-outline { stroke: var(--dg-mesh); fill: none; }
.dg-dim { stroke: var(--muted); fill: none; }

/* ---------- Галерея ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 1rem;
}
.shot {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    cursor: zoom-in;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shot:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}
.shot img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .45s ease;
}
.shot:hover img { transform: scale(1.045); }
.shot figcaption { padding: .85rem 1rem 1rem; font-size: .89rem; line-height: 1.5; }
.shot .credit { display: block; margin-top: .25rem; font-size: .74rem; color: var(--muted); }
.shot--contain img { object-fit: contain; background: var(--surface-2); padding: 1rem; }
.shot--tall img { aspect-ratio: 3 / 4; }

@media (min-width: 900px) {
    .gallery > .shot:first-child { grid-column: span 2; }
    .gallery > .shot:first-child img { aspect-ratio: 16 / 9.4; }
}

.gallery-hint {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1.1rem;
    font-size: .85rem;
    color: var(--muted);
}
.gallery-hint i { color: var(--accent); }

/* ---------- CTA ---------- */
.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.3rem;
    margin: clamp(2.2rem, 5vw, 3.6rem) 0;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid var(--line);
    background:
        radial-gradient(30rem 16rem at 100% 0%, var(--accent-soft), transparent 70%),
        var(--surface);
    box-shadow: var(--shadow-sm);
}
.cta h2 { font-size: clamp(1.35rem, 2.8vw, 1.9rem); margin-bottom: .35rem; }
.cta p { margin: 0; max-width: 58ch; color: var(--muted); font-size: .97rem; }
.cta .btn { flex: none; }

/* ---------- Подвал ---------- */
.footer {
    margin-top: 3rem;
    padding: 2.6rem 0 2.2rem;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.footer-brand .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
.footer-brand strong { font-family: "Merriweather", Georgia, serif; font-size: 1rem; }
.footer p { font-size: .86rem; color: var(--muted); margin: 0; max-width: 38ch; }
.footer h4 {
    font-family: "Inter", sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .7rem;
}
.footer-nav { display: grid; gap: .35rem; }
.footer-nav a {
    font-size: .88rem;
    color: var(--text-soft);
    text-decoration: none;
    width: fit-content;
}
.footer-nav a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .8rem;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: .78rem;
    color: var(--muted);
}
.footer-bottom a { color: inherit; text-underline-offset: 3px; }

/* ---------- Лайтбокс ---------- */
dialog.lightbox {
    width: min(1000px, 92vw);
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}
dialog.lightbox::backdrop {
    background: rgba(6, 12, 8, .74);
    backdrop-filter: blur(5px);
}
.lb-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.lb-card img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #0b0f0c;
}
.lb-cap { padding: .9rem 1.2rem 1.1rem; font-size: .9rem; }
.lb-cap .credit { display: block; margin-top: .2rem; font-size: .75rem; color: var(--muted); }
.lb-close {
    position: absolute;
    top: .7rem; right: .7rem;
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(10, 16, 12, .62);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .15s ease, transform .15s ease;
}
.lb-close:hover { background: rgba(10, 16, 12, .85); transform: scale(1.05); }

/* ---------- Появление при скролле ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
    .hero-art { order: -1; max-width: 620px; }
    .hero h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); }
    .split { grid-template-columns: 1fr; }
    .split.reverse > :first-child { order: 0; }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-inner > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
    .nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0; right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        padding: .6rem;
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 18px 18px;
        background: var(--surface);
        box-shadow: var(--shadow-md);
    }
    body.nav-open .nav { display: flex; }
    .nav a { padding: .65rem .85rem; border-radius: 12px; }
    .nav-toggle {
        display: grid;
        place-items: center;
        width: 40px; height: 40px;
        flex: none;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: var(--surface);
        cursor: pointer;
    }
    .nav-toggle svg { width: 20px; height: 20px; }
    .nav-toggle .i-close { display: none; }
    body.nav-open .nav-toggle .i-close { display: block; }
    body.nav-open .nav-toggle .i-menu { display: none; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 2rem, var(--max)); }
    .topbar-inner { min-height: 66px; gap: .5rem; }
    .brand-text small { display: none; }
    .lang-select { max-width: 108px; padding-right: 1.7rem; }
    .hero { padding-top: 1.6rem; }
    .hero-badge { left: 10px; bottom: 12px; }
    .fact { padding: 1rem 1.05rem; }
    .method { grid-template-columns: 1fr; gap: .8rem; padding: 1.2rem; }
    .method-num { width: 42px; height: 42px; border-radius: 13px; font-size: 1.1rem; }
    .footer-inner { grid-template-columns: 1fr; }
    .cta { flex-direction: column; align-items: flex-start; }
    .gallery { grid-template-columns: 1fr; }
    .gallery > .shot:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

@media print {
    .topbar, .footer, .cta, .lightbox, .hero-actions, .gallery-hint { display: none !important; }
    body { background: #fff; color: #000; }
    .hero, .split { grid-template-columns: 1fr; }
    .figure, .card, .method { break-inside: avoid; box-shadow: none; }
}

