@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/playfair-display-regular.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    src: url('./fonts/playfair-display-italic.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    src: url('./fonts/playfair-display-semibold.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    src: url('./fonts/playfair-display-bold.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Mono';
    font-style: normal;
    font-weight: 300;
    src: url('./fonts/roboto-mono-300.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Mono';
    font-style: normal;
    font-weight: 400;
    src: url('./fonts/roboto-mono-400.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Mono';
    font-style: normal;
    font-weight: 500;
    src: url('./fonts/roboto-mono-500.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Mono';
    font-style: normal;
    font-weight: 700;
    src: url('./fonts/roboto-mono-700.woff2') format('woff2');
    font-display: swap;
}


* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --sb-track: #241511; 
    --sb-thumb: rgba(239, 232, 219, 0.3);
    --sb-thumb-hover: rgba(239, 232, 219, 0.6);
    --graph-line-opacity: 0;
}

body { 
    background-color: #241511; 
    color: #EFE8DB; 
    font-family: 'Roboto Mono', monospace; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#stage {
    position: relative;
    z-index: 0;
    isolation: isolate;
    min-height: 100%;
}

#sticky-view {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}
.scenarios-section, .content-section, footer {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Scene HUD (debug). Restore with the markup in body.
.scene-hud {
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 1090;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    line-height: 1.45;
    letter-spacing: 0.03em;
    color: rgba(239, 232, 219, 0.82);
    background: rgba(36, 21, 17, 0.78);
    border: 1px solid rgba(239, 232, 219, 0.16);
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    pointer-events: auto;
}
.scene-hud__stats { margin: 0 0 0.45rem; white-space: pre-line; }
.scene-hud__row { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.scene-hud__btn {
    font: inherit;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(239, 232, 219, 0.88);
    background: transparent;
    border: 1px solid rgba(239, 232, 219, 0.28);
    border-radius: 6px;
    padding: 0.2rem 0.45rem;
    cursor: pointer;
}
.scene-hud__btn.is-on {
    color: #241511;
    background: #EFE8DB;
    border-color: #EFE8DB;
}
*/

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--sb-track); }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }
html { scrollbar-color: var(--sb-thumb) var(--sb-track); scrollbar-width: thin; }

.noble-f { color: #A32616; font-weight: 700; }
.slogan .noble-f, .brand-insert .noble-f, .modal-title .noble-f { -webkit-text-stroke: 1.5px #A32616; }

.bg-layer { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -3; pointer-events: none; }
#bg-dark { background-color: #241511; background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(20, 10, 8, 1) 100%); }
#bg-light { background-color: #EFE8DB; background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 40%, rgba(58, 30, 20, 0.2) 100%); opacity: 0; z-index: -2; }
html.landing-return { background-color: #EFE8DB !important; }
html.landing-return body { background-color: #EFE8DB !important; color: #3A1E14 !important; }
html.landing-return #bg-dark { opacity: 0 !important; }
html.landing-return #bg-light { opacity: 1 !important; }
html.landing-return #fixed-graph-bg { opacity: 0 !important; }
html.landing-return header { color: #3A1E14; opacity: 1 !important; }
html.landing-return .header-login-btn { --btn-color: #3A1E14; --btn-bg: #EFE8DB; }
html.landing-return .hero-intro { opacity: 0 !important; }

#fixed-graph-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; opacity: 0.5; }
line { stroke: #2C3539; stroke-width: 1.5; opacity: var(--graph-line-opacity); }

.node { position: absolute; background-color: rgba(255, 255, 255, 0.05); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); border: 1px solid rgba(239, 232, 219, 0.08); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); z-index: 2; }
html.scene-lite .node { box-shadow: none; }
html.scene-narrow .node {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(239, 232, 219, 0.06);
}

.doc-text { background-image: repeating-linear-gradient(180deg, transparent, transparent 8px, rgba(150, 150, 150, 0.15) 8px, rgba(150, 150, 150, 0.15) 10px); background-size: 80% 80%; background-position: center; background-repeat: no-repeat; }
.doc-official { background-image: radial-gradient(circle, rgba(65, 200, 121, 0.30) 40%, transparent 45%), repeating-linear-gradient(180deg, transparent, transparent 8px, rgba(150, 150, 150, 0.15) 8px, rgba(150, 150, 150, 0.15) 10px); background-size: 24px 24px, 80% 80%; background-position: 85% 90%, center; background-repeat: no-repeat; }
.doc-letterhead { background-image: linear-gradient(90deg, rgba(89, 192, 142, 0.21) 100%, transparent 0), repeating-linear-gradient(180deg, transparent, transparent 8px, rgba(150, 150, 150, 0.15) 8px, rgba(150, 150, 150, 0.15) 10px); background-size: 4px 100%, 70% 80%; background-position: 0 0, 75% 10%; background-repeat: no-repeat; }
.doc-highlight { background-image: linear-gradient(rgba(89, 192, 142, 0.24) 100%, transparent 0), repeating-linear-gradient(180deg, transparent, transparent 8px, rgba(150, 150, 150, 0.15) 8px, rgba(150, 150, 150, 0.15) 10px); background-size: 45% 10px, 80% 80%; background-position: 15% 45%, center; background-repeat: no-repeat; }

header { position: fixed; top: 0; left: 0; width: 100%; padding: 1.5rem 2rem; z-index: 100; display: flex; justify-content: space-between; align-items: center; pointer-events: auto; opacity: 0;}
.slogan { font-family: 'Playfair Display', serif; opacity: 0.9; font-size: 1.65rem; }
.slogan i { font-style: italic; font-weight: 400; }
.slogan strong { font-weight: 700; letter-spacing: 1.3px; font-family: 'Roboto Mono', monospace; }

.header-login-btn { --btn-color: #EFE8DB; --btn-bg: #241511; position: relative; color: var(--btn-color); text-decoration: none; font-family: 'Roboto Mono', monospace; font-size: 1rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 4px 8px; z-index: 1; transition: color 0.3s ease; }
.header-login-btn::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background-color: var(--btn-color); transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease; z-index: -1; }
.header-login-btn:hover { color: var(--btn-bg); }
.header-login-btn:hover::after { height: 100%; }

#scroll-container { position: relative; height: 240vh; }
#sticky-view { position: sticky; top: 0; height: 100vh; height: 100dvh; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: visible; }

#hero-content { position: absolute; top: 12%; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 900px; z-index: 5; --hero-aside-gap: 2.5rem; --hero-brand-drop: 1.35rem; }
.hero-text { text-align: center; padding: 0 2rem; display: flex; flex-direction: column; align-items: center; width: 100%; }
.hero-intro { overflow: hidden; width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero-lower { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero-text h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; opacity: 0; }
.hero-text p.subtitle { font-size: 1.1rem; opacity: 0; width: max-content; max-width: 100%; margin-bottom: 0; text-align: center; }
.subtitle-lead--narrow { display: none; }

/* Brand drop under subtitle. 1.15rem was the first roomy try; manifesto no longer shares this screen. */
.brand-block { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: calc(var(--hero-aside-gap) + var(--hero-brand-drop)); margin-bottom: var(--hero-aside-gap); }
.brand-insert { font-family: 'Roboto Mono', monospace; font-weight: 700; font-size: 4.5rem; letter-spacing: 10px; padding: 1.5rem 0; margin: 0; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; opacity: 0; }
.brand-motto { font-family: 'Roboto Mono', monospace; font-weight: 700; font-size: 1.2rem; letter-spacing: 0.18em; margin: 0.85rem 0 0; text-align: center; width: max-content; max-width: 100%; white-space: nowrap; }
.brand-motto__word { display: inline-block; opacity: 0; }
.brand-motto__init { color: #D44532; }
.brand-motto__init--settled { color: inherit; }

.manifesto-copy { position: absolute; top: 100%; left: 50%; right: auto; margin: 1.85rem 0 0; background: #F7F3EB; color: #3A1E14; border-radius: 16px; padding: 2rem 2.25rem; max-width: none; width: 110%; transform: translateX(-50%); box-shadow: 0 8px 24px rgba(58, 30, 20, 0.08); opacity: 0; pointer-events: none; text-align: left; }
.manifesto-copy p { font-size: 1.05rem; line-height: 1.6; opacity: 0.95; margin-bottom: 1rem; max-width: none; width: 100%; text-align: left; }
.manifesto-copy p:last-child { margin-bottom: 0; }
.manifesto-copy .noble-f { color: #D44532; -webkit-text-stroke: 0; }

.scenarios-section { padding: 5rem 2rem 2rem; max-width: 1480px; margin: -10vh auto 0; position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; }
.scenarios-section h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 3rem; text-align: center; }

.content-section { padding: 5rem 2rem 4rem; max-width: 1000px; margin: 0 auto; position: relative; z-index: 10; }
.content-section h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 3rem; text-align: center; }

.scenarios-grid { display: flex; justify-content: center; gap: 2rem; width: 100%; }
.scenarios-grid .solid-card { max-width: 440px; }

.solid-card { background-color: #F7F3EB; border: 1px solid rgba(58, 30, 20, 0.1); border-radius: 16px; padding: 2.5rem 2rem; color: #3A1E14; box-shadow: 0 8px 24px rgba(58, 30, 20, 0.05); flex: 1; max-width: 400px; }
a.solid-card { position: relative; isolation: isolate; text-decoration: none; color: inherit; display: block; transition: transform 0.4s cubic-bezier(0.45, 0, 0.55, 1); will-change: transform; }
a.solid-card::before { content: ""; position: absolute; inset: 8px; border-radius: 8px; border: 1px solid rgba(58, 30, 20, 0.28); opacity: 0; pointer-events: none; transition: opacity 0.4s cubic-bezier(0.45, 0, 0.55, 1); }
a.solid-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 16px 24px rgba(36, 21, 17, 0.42), 0 32px 64px rgba(36, 21, 17, 0.38); opacity: 0; pointer-events: none; z-index: -1; transition: opacity 0.4s cubic-bezier(0.45, 0, 0.55, 1); }
a.solid-card:hover, a.solid-card:focus-visible { transform: translateY(-4px); }
a.solid-card:hover::before, a.solid-card:focus-visible::before { opacity: 1; }
a.solid-card:hover::after, a.solid-card:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    a.solid-card { transition: none; will-change: auto; }
    a.solid-card:hover, a.solid-card:focus-visible { transform: none; }
}
.solid-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 1rem; }
.solid-card p { font-size: 0.95rem; line-height: 1.6; opacity: 0.9; }

.solid-card--with-pill {
    position: relative;
    padding-bottom: 3.6rem;
}
.layer-card-wrapper.solid-card--with-pill {
    padding-bottom: 3.4rem;
}
.docdoc-pill {
    --pill-color: #3A1E14;
    --pill-bg: #EFE8DB;
    position: absolute;
    right: 1.5rem;
    bottom: 1.1rem;
    z-index: 3;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.38rem 0.78rem;
    border-radius: 6px;
    border: 1px solid rgba(58, 30, 20, 0.32);
    background-color: transparent;
    color: var(--pill-color);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.docdoc-pill::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--pill-color);
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
    z-index: -1;
}
.docdoc-pill__text {
    display: inline;
}
.docdoc-pill .noble-d {
    color: #A32616;
    font-weight: 900;
    transition: color 0.3s ease;
}
.docdoc-pill__arrow {
    width: 0.82rem;
    height: 0.82rem;
    flex-shrink: 0;
    display: inline-block;
    transition: transform 0.25s ease;
}
.docdoc-pill__arrow path {
    stroke-width: 0.9;
}
.docdoc-pill:hover,
.docdoc-pill:focus-visible {
    color: var(--pill-bg);
    border-color: var(--pill-color);
}
.docdoc-pill:hover::after,
.docdoc-pill:focus-visible::after {
    height: 100%;
}
.docdoc-pill:hover .noble-d,
.docdoc-pill:focus-visible .noble-d {
    color: #D44532;
}
.docdoc-pill:hover .docdoc-pill__arrow,
.docdoc-pill:focus-visible .docdoc-pill__arrow {
    transform: translate(1.5px, -1.5px);
}

.scroll-cue {
    position: fixed;
    left: 50%;
    bottom: 2.2rem;
    margin-left: -1.625rem;
    z-index: 25;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    border: 1px solid rgba(239, 232, 219, 0.38);
    background: rgba(36, 21, 17, 0.35);
    color: #EFE8DB;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.scroll-cue.is-visible {
    pointer-events: auto;
}
.scroll-cue:hover,
.scroll-cue:focus-visible {
    border-color: rgba(239, 232, 219, 0.78);
    background: rgba(239, 232, 219, 0.12);
}
.scroll-cue svg {
    width: 1.45rem;
    height: 1.45rem;
    display: block;
}
html.landing-return .scroll-cue {
    opacity: 0 !important;
    pointer-events: none !important;
}

.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 6rem; }

/* Изменённая таблица Инфо-слоев под карточки (Вариант 1) */
.layers-table { width: 100%; border-collapse: separate; border-spacing: 0 2rem; margin-top: -2rem; }
.layers-table th, .layers-table td { text-align: left; vertical-align: top; padding: 0; }
.layers-table th { font-family: 'Playfair Display', serif; font-size: 1.2rem; width: 35%; padding-right: 2rem; padding-top: 2rem; color: inherit; }
.layers-table td { width: 65%; }
.layer-card-wrapper { max-width: 100%; width: 100%; margin: 0; min-height: 160px; display: flex; align-items: center; font-size: 0.95rem;}

.layer-title { display: flex; align-items: flex-start; gap: 0.5rem; }
.layer-num { white-space: nowrap; }

.safety-heading { margin-top: 4rem; }
.safety-table thead th {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: normal;
    text-transform: none;
    opacity: 1;
    padding-top: 0;
    padding-bottom: 1rem;
}
.safety-table thead th:last-child { width: 65%; }

footer { padding: 6rem 2rem; text-align: center; margin-top: 2rem; }
.btn-primary { position: relative; isolation: isolate; background: #F7F3EB; color: #3A1E14; border: 1px solid rgba(58, 30, 20, 0.1); border-radius: 16px; box-shadow: 0 8px 24px rgba(58, 30, 20, 0.05); padding: 1.2rem 2.5rem; font-family: 'Roboto Mono', monospace; font-size: 1rem; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; margin-top: 2rem; transition: transform 0.4s cubic-bezier(0.45, 0, 0.55, 1); will-change: transform; }
.btn-primary::before { content: ""; position: absolute; inset: 8px; border-radius: 8px; border: 1px solid rgba(58, 30, 20, 0.28); opacity: 0; pointer-events: none; transition: opacity 0.4s cubic-bezier(0.45, 0, 0.55, 1); }
.btn-primary::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 16px 24px rgba(36, 21, 17, 0.42), 0 32px 64px rgba(36, 21, 17, 0.38); opacity: 0; pointer-events: none; z-index: -1; transition: opacity 0.4s cubic-bezier(0.45, 0, 0.55, 1); }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-4px); }
.btn-primary:hover::before, .btn-primary:focus-visible::before { opacity: 1; }
.btn-primary:hover::after, .btn-primary:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .btn-primary { transition: none; will-change: auto; }
    .btn-primary:hover, .btn-primary:focus-visible { transform: none; }
}

.hidden { display: none !important; }
.login-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 36, 0.6); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
.login-overlay.active { opacity: 1; }
.login-modal { background: #253646; padding: 30px; border-radius: 12px; width: 320px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); position: relative; font-family: inherit; }

#request-modal { width: 420px; max-width: 95vw; }

.cookie-notice {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1100;
    width: min(22rem, calc(100vw - 2rem));
    padding: 1.25rem 1.35rem 1.15rem;
    box-sizing: border-box;
    background: #FBF6EE;
    color: #3A1E14;
    border: 1px solid rgba(58, 30, 20, 0.12);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(36, 21, 17, 0.28);
    font-family: 'Roboto Mono', monospace;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-notice.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.cookie-notice__title {
    margin: 0 0 0.65rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #3A1E14;
}
.cookie-notice__text {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(58, 30, 20, 0.78);
}
.cookie-notice__text--last {
    margin: 0 0 1rem;
}
.cookie-notice__btn {
    display: block;
    margin-left: auto;
    background: #3A1E14;
    color: #EFE8DB;
    border: none;
    border-radius: 12px;
    padding: 0.65rem 1.15rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.cookie-notice__btn:hover { opacity: 0.88; }

.modal-title { margin-top: 0; margin-bottom: 20px; color: #E0E6ED; font-size: 20px; font-weight: 500; }
.close-btn { position: absolute; top: 12px; right: 15px; background: none; border: none; color: #8C9BAA; font-size: 24px; cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: #fff; }
.oceanic-input { width: 100%; box-sizing: border-box; background: #1A2634; border: 1px solid #3A4B5C; color: #E0E6ED; padding: 12px; margin-bottom: 15px; border-radius: 6px; outline: none; transition: border-color 0.2s; font-family: inherit; color-scheme: dark; }
.oceanic-input:focus { border-color: #70B8A3; }
.oceanic-input:-webkit-autofill,
.oceanic-input:-webkit-autofill:hover,
.oceanic-input:-webkit-autofill:focus,
.oceanic-input:-webkit-autofill:active,
.oceanic-input:autofill {
    -webkit-text-fill-color: #E0E6ED !important;
    caret-color: #E0E6ED;
    border: 1px solid #3A4B5C !important;
    background-color: #1A2634 !important;
    box-shadow: 0 0 0 1000px #1A2634 inset !important;
    transition: background-color 99999s ease-out 0s, color 99999s ease-out 0s;
}
.oceanic-input:-webkit-autofill:focus,
.oceanic-input:autofill:focus {
    border-color: #70B8A3 !important;
}
.oceanic-btn { width: 100%; background: #70B8A3; color: #15222E; border: none; padding: 12px; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; transition: box-shadow 0.2s, background 0.2s; }
.oceanic-btn:hover { background: #7CD1B9; box-shadow: 0 0 15px rgba(112, 184, 163, 0.4); }
.error-text { color: #FF6B6B; font-size: 13px; margin-bottom: 15px; text-align: center; line-height: 1.4; }
.success-text { color: #70B8A3; font-size: 14px; font-weight: 500; margin-bottom: 15px; text-align: center; line-height: 1.4; }

@media (max-width: 768px) {
    header { padding: 1rem; flex-direction: row; justify-content: space-between; align-items: center; }
    .slogan { font-size: 0.9rem; max-width: 70%; line-height: 1.3; }
    .header-login-btn { font-size: 0.85rem; }

    #scroll-container { height: 220vh; }
    #sticky-view {
        z-index: auto;
        height: auto;
        min-height: 100dvh;
        justify-content: flex-start;
        padding-bottom: 2rem;
    }

    #hero-content { position: relative; top: 12dvh; --hero-aside-gap: 1.5rem; --hero-brand-drop: 1.15rem; z-index: auto; }
    .hero-text { padding: 0 1rem; isolation: isolate; position: relative; z-index: auto; }
    .hero-lower { position: relative; }
    .slogan { max-width: 78%; }
    .hero-text h1 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 0.85rem; }
    .hero-text p.subtitle { font-size: 0.88rem; line-height: 1.45; margin-bottom: 0; }
    .subtitle-lead--wide { display: none; }
    .subtitle-lead--narrow { display: inline; }
    .brand-block { position: relative; z-index: 2; margin-top: calc(var(--hero-aside-gap) + var(--hero-brand-drop)); margin-bottom: var(--hero-aside-gap); }
    .brand-insert { font-size: 2.75rem; letter-spacing: 5px; padding: 0.7rem 0; margin: 0.45rem 0 0; }
    .brand-motto { font-size: 0.82rem; letter-spacing: 0.1em; margin-top: 0.95rem; }

    .manifesto-copy {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        height: 0;
        overflow: hidden;
        margin-top: 0;
        transform: none;
        padding: 0 1.25rem;
        background: #F0E8DA;
        z-index: 1;
    }
    .manifesto-copy p { font-size: 0.95rem; line-height: 1.55; margin-bottom: 0.75rem; }

    .scenarios-section { padding: 3.5rem 1rem 1rem; margin-top: 4.5rem; z-index: auto; }
    .scenarios-section h2 { font-size: 1.8rem; margin-bottom: 2rem; }

    .content-section { padding: 4rem 1rem 2rem; margin-top: 0; }
    .content-section h2 { font-size: 1.8rem; margin-bottom: 2rem; }

    .scenarios-grid { flex-direction: column; align-items: center; gap: 1rem; }

    .solid-card { background-color: #F0E8DA; max-width: 100%; width: 100%; padding: 1.5rem; }
    .solid-card h3 { font-size: 1.3rem; }

    .tech-grid { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 4rem; }

    /* Адаптив для карточек слоев на мобилке */
    .layers-table { border-spacing: 0 1.5rem; margin-top: -1.5rem; }
    .layers-table th, .layers-table td { display: block; width: 100%; padding: 0; }
    .layers-table th { padding-top: 0; padding-bottom: 0.8rem; font-size: 1.1rem; }
    .safety-heading { margin-top: 3rem; }
    .safety-table thead,
    .safety-table tbody th { display: none; }
    .layer-card-wrapper { padding: 1.5rem; }
    .solid-card--with-pill,
    .layer-card-wrapper.solid-card--with-pill { padding-bottom: 3.3rem; }
    .docdoc-pill { right: 1.15rem; bottom: 0.9rem; font-size: 0.74rem; padding: 0.34rem 0.68rem; }
    .scroll-cue { bottom: 1.35rem; width: 2.85rem; height: 2.85rem; margin-left: -1.425rem; }
    .scroll-cue svg { width: 1.25rem; height: 1.25rem; }

    footer { padding: 4rem 1rem; margin-top: 1rem; }
    footer h2 { font-size: 1.5rem !important; }
    .btn-primary { width: 100%; padding: 1rem; font-size: 0.9rem; }
    .login-modal { width: 90%; padding: 20px; }
    .cookie-notice { right: 1rem; bottom: 1rem; width: calc(100vw - 2rem); }
}

@media (max-width: 768px) and (max-height: 560px) {
    #hero-content { top: 8dvh; }
    .hero-text h1 { font-size: 1.45rem; margin-bottom: 0.5rem; }
    .hero-text p.subtitle { font-size: 0.82rem; }
    .brand-insert { font-size: 2.15rem; letter-spacing: 4px; padding: 0.4rem 0; margin: 0.3rem 0 0; }
    .brand-motto { font-size: 0.68rem; margin-top: 0.75rem; }
    .manifesto-copy { padding: 0 1rem; margin-top: 0; }
    .manifesto-copy p { font-size: 0.88rem; line-height: 1.45; }
}
