/* ==========================================================================
   Krafen — единая дизайн-система в стилистике danonsha.html
   Чистый CSS без Tailwind CDN и сторонних фреймворков.
   ========================================================================== */

:root {
    color-scheme: dark;
    --void: #050505;
    --abyss: #0a0a0c;
    --silver: #a0a0a0;
    --silver-dim: #666666;
    --silver-bright: #e0e0e0;
    --crimson: #7c0a0a;
    --crimson-bright: #a31313;
    --glass: rgba(12, 12, 15, 0.66);
    --glass-border: rgba(160, 160, 160, 0.13);
    --line: rgba(160, 160, 160, 0.16);
    --font-display: "Medula One", "Arial Narrow", sans-serif;
    --font-heading: "Alice", "Cormorant Infant", serif;
    --font-serif: "Cormorant Infant", Georgia, serif;
    --font-sans: "Manrope", Arial, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --ease: cubic-bezier(.22, .8, .24, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; background: var(--void); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
    background: var(--void);
    color: #f5f5f5;
    font-family: var(--font-sans);
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a, button, input, select, textarea { touch-action: manipulation; }
::selection { background: rgba(124, 10, 10, .6); color: #fff; }
[hidden], .hidden { display: none !important; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, .025); border-radius: 999px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(214, 214, 228, .22), rgba(150, 150, 168, .15));
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .07);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(236, 236, 246, .38), rgba(163, 19, 19, .48));
    border-color: rgba(255, 255, 255, .18);
}
::-webkit-scrollbar-thumb:active { background: rgba(163, 19, 19, .72); }
@supports not selector(::-webkit-scrollbar) {
    * { scrollbar-width: thin; scrollbar-color: rgba(200, 200, 214, .24) transparent; }
}

/* ---------- атмосфера ---------- */
#glow {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(46% 34% at 20% 18%, rgba(124, 10, 10, .17), transparent 65%),
        radial-gradient(120% 90% at 50% -10%, #101018 0%, var(--abyss) 45%, var(--void) 100%);
    will-change: transform;
}
#rain { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .45; transition: opacity 1.2s ease; }
body.calm #rain { opacity: .1; }
.fog {
    position: fixed; inset: -20%; z-index: 30; pointer-events: none;
    background:
        radial-gradient(42% 30% at 18% 82%, rgba(160, 160, 160, .05), transparent 70%),
        radial-gradient(50% 35% at 82% 76%, rgba(160, 160, 160, .04), transparent 70%);
    animation: fogdrift 30s ease-in-out infinite alternate;
    filter: blur(2px);
    transition: opacity 1.2s ease;
}
.fog.f2 { animation-duration: 40s; animation-direction: alternate-reverse; opacity: .7; }
body.calm .fog { opacity: 0; }
@keyframes fogdrift {
    from { transform: translate3d(-3%, 1%, 0) scale(1); }
    to   { transform: translate3d(3%, -2%, 0) scale(1.06); }
}
#flash { position: fixed; inset: 0; z-index: 50; pointer-events: none; background: #cdd6ff; opacity: 0; }
.vignette { position: fixed; inset: 0; z-index: 45; pointer-events: none; background: radial-gradient(95% 90% at 50% 45%, transparent 58%, rgba(0, 0, 0, .72) 100%); }
.grain {
    position: fixed; inset: 0; z-index: 46; pointer-events: none; opacity: .045; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- верхняя навигация ---------- */
.topnav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 70;
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 40px;
    background: linear-gradient(180deg, rgba(5, 5, 5, .78), transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(180deg, #000 58%, transparent);
    -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent);
}
.topnav .brand {
    font-family: var(--font-display);
    font-size: 26px; letter-spacing: .08em;
    color: var(--silver-bright); text-decoration: none;
}
.topnav .brand em { font-style: normal; color: var(--crimson-bright); }
.topnav .links { display: flex; align-items: center; gap: 26px; }
.topnav .links a {
    position: relative;
    font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--silver); text-decoration: none;
    transition: color .3s var(--ease);
}
.topnav .links a:hover,
.topnav .links a.active { color: #fff; }
.topnav .links a.active::after {
    content: "";
    position: absolute; left: 50%; bottom: -7px;
    width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
    background: var(--crimson-bright);
    box-shadow: 0 0 8px rgba(163, 19, 19, .9);
}

.menu-toggle {
    display: none;
    align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    color: var(--silver-bright); font-family: var(--font-sans);
    font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
    cursor: pointer;
}
.mobile-nav {
    position: fixed; inset: 0; z-index: 85;
    height: 100dvh;
    display: flex; flex-direction: column; justify-content: safe center; align-items: center;
    gap: clamp(14px, 2.5vh, 22px);
    padding: max(68px, calc(env(safe-area-inset-top) + 48px)) 24px max(36px, calc(env(safe-area-inset-bottom) + 20px));
    overflow-y: auto; overscroll-behavior: contain;
    background: rgba(5, 5, 5, .94);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; pointer-events: none;
    transition: opacity .35s var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a {
    font-family: var(--font-heading); font-size: clamp(23px, 5.6vw, 30px);
    color: var(--silver-bright); text-decoration: none;
    transition: color .3s var(--ease), transform .3s var(--ease);
}
.mobile-nav a:hover, .mobile-nav a.active { color: #fff; transform: translateX(4px); }
.mobile-nav a.active { text-shadow: 0 0 24px rgba(163, 19, 19, .75); }
.mobile-nav-close {
    position: absolute; top: 22px; right: 24px;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--glass); border: 1px solid var(--glass-border);
    color: var(--silver-bright); font-size: 18px; cursor: pointer;
}

/* ---------- вертикальный индикатор ---------- */
.rail-line { position: fixed; left: 38px; top: 18vh; bottom: 18vh; width: 1px; background: rgba(160, 160, 160, .1); z-index: 54; }
.rail {
    position: fixed; left: 30px; top: 18vh; bottom: 18vh; z-index: 55;
    display: flex; flex-direction: column; justify-content: space-between;
}
.rail a { position: relative; display: flex; align-items: center; height: 14px; text-decoration: none; }
.rail a .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(160, 160, 160, .35);
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.rail a .lbl {
    position: absolute; left: 20px; white-space: nowrap;
    font-size: 9px; letter-spacing: .28em; text-transform: uppercase;
    color: var(--silver-dim);
    opacity: 0; transform: translateX(-6px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), color .35s var(--ease);
}
.rail a:hover .lbl { opacity: 1; transform: none; }
.rail a.active .lbl { opacity: 1; transform: none; color: var(--silver-bright); }
.rail a.active .dot { background: var(--crimson-bright); box-shadow: 0 0 10px rgba(163, 19, 19, .9); }
.rail-progress {
    position: fixed; left: 37.5px; top: 18vh; z-index: 56;
    width: 2px; height: 40px; border-radius: 2px;
    background: linear-gradient(180deg, transparent, var(--crimson-bright), transparent);
    box-shadow: 0 0 12px rgba(163, 19, 19, .55);
    pointer-events: none; will-change: transform;
}

/* ---------- секции и заголовки ---------- */
main { position: relative; z-index: 10; }
.section {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 130px 48px;
}
.section:first-child { padding-top: 165px; }
.page-section {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 148px 48px 90px;
}
.ghost {
    position: absolute; right: 24px; top: 44px;
    font-family: var(--font-display);
    font-size: clamp(110px, 14vw, 205px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(160, 160, 160, .09);
    pointer-events: none; user-select: none;
    z-index: -1; will-change: transform;
}
.sec-eyebrow {
    display: flex; align-items: center; gap: 14px;
    font-size: 10px; letter-spacing: .32em; text-transform: uppercase;
    color: var(--silver-dim); margin-bottom: 18px;
}
.sec-eyebrow::before {
    content: ""; width: 34px; height: 1px;
    background: var(--crimson-bright);
    box-shadow: 0 0 8px rgba(163, 19, 19, .7);
}
.section h2, .sec-heading {
    font-family: var(--font-heading); font-weight: 400;
    font-size: clamp(32px, 4vw, 52px); color: #fff; letter-spacing: .01em;
}
.section .sub, .sec-sub {
    margin-top: 14px; font-size: 14px; color: var(--silver-dim);
    max-width: 560px; line-height: 1.75;
}

/* blur-in появление */
.reveal {
    opacity: 0; filter: blur(10px); transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
    transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; filter: blur(0); transform: none; }

/* ---------- hero и шапки внутренних страниц ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-inner { will-change: transform, opacity; }
.hero-status {
    display: inline-flex; align-items: center; gap: 9px; width: fit-content;
    padding: 8px 16px; margin-bottom: 32px;
    border: 1px solid var(--glass-border); border-radius: 999px;
    background: var(--glass); backdrop-filter: blur(12px);
    font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--silver);
    transition: border-color .4s var(--ease), color .4s var(--ease);
}
.hero-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--silver-dim); transition: background .4s var(--ease); }
.hero-status.live { color: #d5ffec; border-color: rgba(22, 163, 74, .4); }
.hero-status.live .dot { background: #22c55e; box-shadow: 0 0 12px rgba(34, 197, 94, .9); animation: pulse 1.6s ease-in-out infinite; }
.hero-eyebrow { font-size: 11px; letter-spacing: .35em; text-transform: uppercase; color: var(--silver-dim); margin-bottom: 20px; }
.hero-name, .page-display {
    font-family: var(--font-display);
    font-size: clamp(104px, 16vw, 232px); line-height: .88; letter-spacing: .005em;
    color: var(--silver-bright);
    text-shadow: 0 0 80px rgba(224, 224, 224, .12);
}
.page-display { font-size: clamp(74px, 11vw, 152px); line-height: .9; }
.grad {
    background: linear-gradient(120deg, var(--crimson-bright) 10%, #ff7a7a 55%, var(--crimson-bright) 95%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 34px rgba(163, 19, 19, .45));
}
.hero-tagline, .page-tagline {
    margin-top: 32px;
    font-family: var(--font-serif); font-size: clamp(19px, 2.1vw, 25px);
    line-height: 1.6; color: var(--silver); max-width: 610px;
}
.page-tagline { margin-top: 20px; font-size: clamp(18px, 1.9vw, 22px); }
.hero-tagline em, .page-tagline em { color: var(--silver-bright); font-style: italic; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 44px; }

.page-header-row {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 24px; flex-wrap: wrap; margin-bottom: 36px;
}
.page-header-actions {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

.scroll-cue {
    position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: var(--silver-dim); font-size: 9px; letter-spacing: .4em; text-transform: uppercase;
}
.scroll-cue .wheel { width: 22px; height: 36px; border: 1px solid rgba(160, 160, 160, .35); border-radius: 999px; position: relative; }
.scroll-cue .wheel::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--silver); animation: wheel 1.9s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(13px); opacity: 0; } 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- кнопки ---------- */
.btn-primary {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 32px; border-radius: 999px; overflow: hidden;
    font-family: var(--font-sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
    color: #fff; text-decoration: none; border: none; cursor: pointer;
    background: linear-gradient(135deg, #8e0f0f, #5c0505);
    box-shadow: 0 10px 34px rgba(124, 10, 10, .35), inset 0 1px 0 rgba(255, 255, 255, .14);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .25s var(--ease);
}
.btn-primary::after {
    content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(124, 10, 10, .5), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover::after { left: 130%; }
.btn-primary:disabled { opacity: .5; cursor: default; transform: none; }
.btn-primary.sm { padding: 11px 22px; font-size: 10px; }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 26px; border-radius: 999px;
    font-family: var(--font-sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--silver); text-decoration: none; cursor: pointer;
    border: 1px solid rgba(160, 160, 160, .25);
    background: rgba(160, 160, 160, .04);
    backdrop-filter: blur(10px);
    transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), transform .35s var(--ease);
}
.btn-ghost:hover { color: #fff; border-color: rgba(160, 160, 160, .5); background: rgba(160, 160, 160, .09); transform: translateY(-2px); }
.btn-ghost svg { fill: currentColor; }
.btn-ghost.sm { padding: 10px 20px; font-size: 10px; }
.btn-ghost.danger:hover { color: #fca5a5; border-color: rgba(239, 68, 68, .5); background: rgba(124, 10, 10, .2); }

.btn-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px 18px; border-radius: 999px;
    font-family: var(--font-sans); font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--silver-bright); text-decoration: none; text-align: center;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer; transition: all .3s var(--ease); white-space: nowrap;
}
.btn-action:hover { background: rgba(124, 10, 10, .25); border-color: rgba(163, 19, 19, .55); color: #fff; }
.btn-action.active {
    background: linear-gradient(135deg, rgba(163, 19, 19, .85), rgba(92, 5, 5, .78));
    border-color: rgba(255, 122, 122, .45); color: #fff;
    box-shadow: 0 8px 24px rgba(124, 10, 10, .3);
}

.icon-btn {
    width: 38px; height: 38px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--glass-border);
    color: var(--silver-bright); font-family: var(--font-sans); font-size: 14px;
    cursor: pointer; transition: all .3s var(--ease); flex-shrink: 0;
}
.icon-btn:hover { border-color: rgba(163, 19, 19, .55); background: rgba(124, 10, 10, .22); color: #fff; }

/* ---------- фильтры и табы ---------- */
.filter-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 999px;
    font-family: var(--font-sans); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
    color: var(--silver); background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(160, 160, 160, .16);
    cursor: pointer; transition: all .3s var(--ease); white-space: nowrap;
}
.filter-pill strong { color: var(--silver-bright); font-family: var(--font-mono); font-weight: 700; font-size: 11px; }
.filter-pill:hover { color: #fff; border-color: rgba(160, 160, 160, .38); background: rgba(255, 255, 255, .06); }
.filter-pill.active {
    color: #fff;
    border-color: rgba(163, 19, 19, .7);
    background: linear-gradient(135deg, rgba(142, 15, 15, .55), rgba(76, 5, 5, .55));
    box-shadow: 0 8px 24px rgba(124, 10, 10, .26);
}
.filter-pill.active strong { color: #fff; }

/* ---------- стеклянные карточки ---------- */
.glass {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transition: border-color .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease);
}
.glass::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(160deg, rgba(224, 224, 224, .06), transparent 45%);
    opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
}
.glass:hover {
    border-color: rgba(160, 160, 160, .3);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .75), 0 0 30px rgba(160, 160, 160, .05);
    transform: translateY(-3px);
}
.glass:hover::before { opacity: 1; }
.glass.no-lift:hover { transform: none; }
.glass > * { position: relative; }

.inner-box {
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px; padding: 16px;
}

.status-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 999px;
    border: 1px solid rgba(160, 160, 160, .2);
    font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--silver-bright); background: rgba(255, 255, 255, .03);
    white-space: nowrap;
}
.status-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.live, .status-badge.ok { color: #d5ffec; background: rgba(22, 163, 74, .14); border-color: rgba(22, 163, 74, .35); }
.status-badge.live .dot { animation: pulse 1.6s ease-in-out infinite; }
.status-badge.idle, .status-badge.crimson { color: #f7d9e2; background: rgba(124, 10, 10, .22); border-color: rgba(163, 19, 19, .45); }
.status-badge.amber { color: #fde68a; background: rgba(217, 119, 6, .14); border-color: rgba(245, 158, 11, .35); }
.status-badge.sky { color: #bae6fd; background: rgba(14, 165, 233, .13); border-color: rgba(56, 189, 248, .35); }
.status-badge.muted { color: var(--silver); background: rgba(160, 160, 160, .07); border-color: rgba(160, 160, 160, .2); }

/* ---------- карточки соцсетей и коллекций (1-в-1 danonsha) ---------- */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.social-card {
    position: relative; display: block; min-height: 200px; padding: 28px; border-radius: 18px;
    text-decoration: none; background: rgba(12, 12, 15, .6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: border-color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.social-card:hover {
    border-color: rgba(163, 19, 19, .45);
    background: rgba(124, 10, 10, .07);
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .7);
}
.social-card .num { position: absolute; top: 28px; right: 28px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; color: var(--silver-dim); }
.social-card .ico { width: 30px; height: 30px; fill: #fff; opacity: .92; transition: transform .4s var(--ease); }
.social-card .ico-stroke { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .92; transition: transform .4s var(--ease); }
.social-card:hover .ico, .social-card:hover .ico-stroke { transform: scale(1.1); }
.social-card .name { margin-top: 28px; font-family: var(--font-heading); font-size: 28px; color: #fff; }
.social-card .desc { margin-top: 8px; font-size: 12px; color: var(--silver); line-height: 1.6; }
.social-card .chev { position: absolute; bottom: 24px; left: 28px; color: var(--silver-dim); font-size: 15px; transition: color .3s var(--ease), transform .3s var(--ease); }
.social-card:hover .chev { color: #fff; transform: translateX(4px); }

/* ---------- сетки и утилиты ---------- */
.grid-2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.grid-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pad-card { padding: 28px; }
.row { display: flex; align-items: center; gap: 14px; }
.col { min-width: 0; flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: var(--font-mono); }

.time-value {
    font-family: var(--font-mono); font-size: 2.15rem; font-weight: 700;
    color: #fff; text-shadow: 0 0 22px rgba(224, 224, 224, .22); letter-spacing: .04em;
}
.time-date { margin-top: 8px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--silver-dim); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.mini-grid span { display: block; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--silver-dim); }
.mini-grid strong { display: block; margin-top: 7px; font-size: 12px; font-weight: 500; color: var(--silver-bright); word-break: break-word; }

.shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    background-size: 200% 100%; animation: shimmer 1.8s infinite;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ---------- формы и поля ввода ---------- */
.field { margin-bottom: 16px; }
.field-label {
    display: block; margin-bottom: 8px;
    font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
    color: var(--silver-dim);
}
.field-row, .field-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }

.kf-input, .kf-select, .kf-area {
    width: 100%;
    padding: 13px 18px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(5, 5, 5, .55);
    color: #fff;
    font-family: var(--font-sans); font-size: 13px;
    outline: none;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.kf-select {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
.kf-select option { background: #0c0c0f; color: #f5f5f5; }
.kf-area {
    min-height: 110px; resize: vertical;
    border-radius: 16px; line-height: 1.65; padding: 14px 18px;
}
.kf-input::placeholder, .kf-area::placeholder { color: rgba(160, 160, 160, .42); }
.kf-input:focus, .kf-select:focus, .kf-area:focus {
    border-color: rgba(163, 19, 19, .68);
    box-shadow: 0 0 0 3px rgba(124, 10, 10, .18);
    background: rgba(10, 10, 14, .78);
}

input[type="range"] {
    width: 100%;
    accent-color: var(--crimson-bright);
    cursor: pointer;
}

/* ---------- админ-панель и статусы сохранения ---------- */
.admin-only { display: none !important; }
body.is-admin .admin-only { display: inline-flex !important; }
body.is-admin .admin-only-block { display: block !important; }
.admin-only-block { display: none !important; }

.admin-bar {
    display: none; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 18px; margin-bottom: 24px; width: fit-content;
    border-radius: 999px;
    background: rgba(124, 10, 10, .16);
    border: 1px solid rgba(163, 19, 19, .42);
    backdrop-filter: blur(12px);
    font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--silver-bright);
}
body.is-admin .admin-bar { display: flex; }
.admin-bar .admin-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--crimson-bright);
    box-shadow: 0 0 10px rgba(163, 19, 19, .9);
}

.save-indicator {
    font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--silver); opacity: 0; transition: opacity .3s var(--ease);
}
.save-indicator.saving, .save-indicator.saved, .save-indicator.error { opacity: 1; }
.save-indicator.saving { color: var(--silver-bright); }
.save-indicator.saved { color: #86efac; }
.save-indicator.error { color: #fca5a5; }

.notice-box, .warn-box {
    padding: 14px 18px; border-radius: 14px;
    font-size: 12px; line-height: 1.65;
    margin-bottom: 18px;
}
.notice-box {
    background: rgba(160, 160, 160, .05);
    border: 1px solid var(--glass-border);
    color: var(--silver);
}
.warn-box {
    background: rgba(124, 10, 10, .16);
    border: 1px solid rgba(163, 19, 19, .45);
    color: #fecaca;
}

.empty-box {
    text-align: center; padding: 64px 24px;
    border: 1px dashed rgba(160, 160, 160, .2);
    border-radius: 18px; color: var(--silver-dim);
    background: rgba(12, 12, 15, .36);
}
.empty-box .big {
    font-family: var(--font-display); font-size: 44px;
    color: rgba(160, 160, 160, .35); letter-spacing: .06em; margin-bottom: 10px;
}
.empty-box p {
    font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--silver);
}

/* ---------- модальные окна ---------- */
.modal {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: rgba(5, 5, 5, .82);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    opacity: 0; pointer-events: none;
    transition: opacity .28s var(--ease);
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box {
    width: min(640px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid rgba(160, 160, 160, .2);
    background: rgba(11, 11, 14, .96);
    box-shadow: 0 36px 90px rgba(0, 0, 0, .85), 0 0 40px rgba(124, 10, 10, .14);
    padding: 28px;
    transform: translateY(16px) scale(.98);
    transition: transform .32s var(--ease);
}
.modal.open .modal-box { transform: none; }
.modal-box.sm { max-width: 430px; }
.modal-box.lg { max-width: 880px; }
.modal-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px; padding-bottom: 18px; margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.modal-eyebrow {
    font-size: 9px; letter-spacing: .28em; text-transform: uppercase;
    color: var(--silver-dim); margin-bottom: 6px;
}
.modal-title {
    font-family: var(--font-heading); font-weight: 400;
    font-size: 28px; color: #fff; line-height: 1.2;
}
.modal-foot {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap;
    padding-top: 18px; margin-top: 20px;
    border-top: 1px solid var(--line);
}

.spinner {
    width: 22px; height: 22px;
    border: 2px solid rgba(160, 160, 160, .18);
    border-top-color: var(--crimson-bright);
    border-radius: 50%;
    animation: spin .75s linear infinite;
    margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- нижний док и тосты (1-в-1 danonsha) ---------- */
.dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; justify-content: space-between; align-items: flex-end;
    padding: 0 32px 26px; pointer-events: none;
}
.dock > * { pointer-events: auto; }
.dock-box {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    font-family: var(--font-sans); font-size: 12px; letter-spacing: .1em;
    color: var(--silver-bright); text-decoration: none;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
    cursor: pointer;
}
.dock-box:hover {
    border-color: rgba(163, 19, 19, .55);
    box-shadow: 0 0 22px rgba(124, 10, 10, .25);
    transform: translateY(-2px); color: #fff;
}
.dock-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.dock-icons { display: flex; align-items: center; gap: 10px; }

.heart-btn, .lock-dock-btn {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--glass); border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    color: var(--silver-bright); font-size: 17px; cursor: pointer;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.heart-btn:hover, .lock-dock-btn:hover {
    border-color: rgba(163, 19, 19, .6);
    box-shadow: 0 0 24px rgba(124, 10, 10, .3);
    transform: scale(1.08); color: #fff;
}
.heart-btn.loved { color: #ff4d6d; border-color: rgba(255, 77, 109, .5); }
.lock-dock-btn svg {
    width: 18px; height: 18px; fill: none; stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.lock-dock-btn.is-admin-active {
    color: #fff;
    border-color: rgba(163, 19, 19, .75);
    background: rgba(124, 10, 10, .28);
    box-shadow: 0 0 24px rgba(163, 19, 19, .35);
}

.toast {
    position: fixed; left: 50%; bottom: 30px; z-index: 200;
    transform: translateX(-50%) translateY(16px);
    max-width: calc(100vw - 32px);
    padding: 12px 22px; border-radius: 999px;
    background: rgba(12, 12, 15, .95);
    border: 1px solid rgba(160, 160, 160, .22);
    backdrop-filter: blur(14px);
    font-size: 12px; letter-spacing: .06em; color: var(--silver-bright);
    text-align: center;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .75);
    opacity: 0; pointer-events: none; white-space: nowrap;
    transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer.site {
    position: relative; z-index: 10; text-align: center;
    padding: 60px 24px 150px;
    color: var(--silver-dim); font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
}
footer.site .foot-name {
    font-family: var(--font-display); font-size: 46px; letter-spacing: .06em;
    color: rgba(160, 160, 160, .2); margin-bottom: 16px;
}

/* ---------- адаптивность ---------- */
@media (max-width: 1100px) {
    .rail, .rail-line, .rail-progress { display: none; }
}
@media (max-width: 980px) {
    .grid-2, .grid-2-eq { grid-template-columns: 1fr; }
    .social-grid, .grid-3 { grid-template-columns: 1fr 1fr; }
    .section { padding: 92px 24px; }
    .section:first-child { padding-top: 126px; }
    .page-section { padding: 118px 24px 72px; }
    .topnav { padding: 16px 20px; }
    .topnav .links { display: none; }
    .menu-toggle { display: inline-flex; }
}
@media (max-width: 620px) {
    .social-grid, .grid-3, .field-row, .field-grid-2, .field-row-3 { grid-template-columns: 1fr; }
    .section { padding: 72px 16px; }
    .section:first-child { padding-top: 102px; padding-bottom: 72px; min-height: 100svh; }
    .page-section { padding: 98px 16px 64px; }
    .topnav { padding: 14px 16px; }
    .brand { font-size: 20px; }
    .hero-name { font-size: clamp(72px, 21vw, 118px); line-height: .9; }
    .page-display { font-size: clamp(50px, 14.5vw, 84px); line-height: .92; }
    .hero-tagline, .page-tagline { font-size: 14px; line-height: 1.65; margin-top: 16px; }
    .hero-actions { margin-top: 26px; gap: 10px; }
    .hero-actions .btn-primary, .hero-actions .btn-ghost { padding: 13px 20px; font-size: 10px; }
    .scroll-cue { display: none; }
    .section h2 { font-size: clamp(28px, 8vw, 40px); }
    .section .sub { font-size: 13px; }
    .social-card { min-height: 170px; padding: 22px; }
    .social-card .name { margin-top: 20px; font-size: 24px; }
    .social-card .num { top: 22px; right: 22px; }
    .social-card .chev { bottom: 20px; left: 22px; }
    .pad-card { padding: 18px; }
    .modal { padding: 12px; height: 100dvh; }
    .modal-box { padding: 20px 16px; max-height: calc(100dvh - 24px); border-radius: 18px; }
    .modal-title { font-size: 23px; }
    .kf-input, .kf-select, .kf-area { font-size: 16px; padding: 12px 16px; }
    .dock {
        padding: 0 14px max(16px, calc(env(safe-area-inset-bottom) + 10px));
    }
    .dock .hide-m { display: none; }
    .dock-box { padding: 11px 16px; }
    .heart-btn, .lock-dock-btn { width: 42px; height: 42px; font-size: 15px; }
    .toast {
        bottom: calc(76px + env(safe-area-inset-bottom));
        border-radius: 16px;
        white-space: normal;
        padding: 10px 18px;
    }
    footer.site {
        padding: 44px 16px calc(104px + env(safe-area-inset-bottom));
    }
}
@media (max-width: 420px) {
    .hero-actions { width: 100%; }
    .hero-actions > a, .hero-actions > button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; filter: none; transform: none; }
    .fog, .scroll-cue .wheel::after { animation: none; }
}
