﻿/* =========================================================
   KravchuchaFarm вЂ” landing styles
   Dark theme + CS-yellow accents
   ========================================================= */

:root {
    --bg: #0b0b0d;
    --bg-2: #111114;
    --bg-3: #15151a;
    --surface: #16161b;
    --surface-2: #1c1c22;
    --border: #23232b;
    --border-2: #2b2b35;
    --text: #ececf1;
    --text-dim: #a0a0ab;
    --text-muted: #6f6f7a;
    --accent: #ffd400;       /* CS yellow */
    --accent-2: #ffea70;
    --accent-glow: rgba(255, 212, 0, 0.35);
    --danger: #ff5b5b;
    --success: #3ddc84;

    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 4px 16px rgba(0, 0, 0, .35);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, .45);
    --shadow-accent: 0 10px 30px rgba(255, 212, 0, 0.18);

    --container: 1200px;
    --container-narrow: 860px;

    --easing: cubic-bezier(.2, .7, .2, 1);

    /* Scrollbar (Firefox + WebKit) */
    --scrollbar-track: #111114;
    --scrollbar-thumb: rgba(255, 212, 0, 0.28);
    --scrollbar-thumb-hover: rgba(255, 212, 0, 0.48);
    --scrollbar-thumb-active: rgba(255, 212, 0, 0.62);
    --scrollbar-size: 10px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* Chromium, Safari, Edge */
*::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}
*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        var(--scrollbar-thumb-hover),
        var(--scrollbar-thumb)
    );
    border-radius: 999px;
    border: 2px solid var(--scrollbar-track);
    background-clip: padding-box;
    box-shadow: 0 0 12px rgba(255, 212, 0, 0.12);
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        var(--scrollbar-thumb-active),
        var(--scrollbar-thumb-hover)
    );
    box-shadow: 0 0 14px rgba(255, 212, 0, 0.2);
}
*::-webkit-scrollbar-thumb:active {
    background: var(--scrollbar-thumb-active);
}
*::-webkit-scrollbar-corner {
    background: var(--scrollbar-track);
}

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    margin: 0 0 .6em;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
}

p { margin: 0 0 1em; color: var(--text-dim); }

b, strong { color: var(--text); }

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

/* ====== Layout ====== */

.container {
    width: 100%;
    max-width: var(--container);
    padding: 0 24px;
    margin: 0 auto;
    position: relative;
}

.container--narrow { max-width: var(--container-narrow); }

.container--calc-dash {
    max-width: 1040px;
}

.section {
    padding: 96px 0;
    position: relative;
}

.section--alt {
    background:
        radial-gradient(1200px 500px at 50% 0%, rgba(255,212,0,.04), transparent 60%),
        var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section__head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 56px;
}

.section__title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
}

.brand-word {
    white-space: nowrap;
}
.brand-accent {
    position: relative;
    display: inline-block;
    color: var(--accent);
    white-space: nowrap;
}
.brand-accent__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.24em;
    width: 100%;
    height: 0.34em;
    color: var(--accent);
    opacity: 0.85;
    overflow: visible;
    pointer-events: none;
}

.section__sub {
    font-size: 17px;
    color: var(--text-dim);
}

.section__cta {
    margin-top: 48px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    padding: 6px 12px;
    border: 1px solid rgba(255, 212, 0, 0.25);
    border-radius: 999px;
    background: rgba(255, 212, 0, 0.06);
    margin-bottom: 18px;
}

.accent { color: var(--accent); }

/* ====== Decorative background ====== */

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.9), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.bg-glow--1 { top: -200px; right: -150px; background: rgba(255, 212, 0, 0.18); }
.bg-glow--2 { bottom: -300px; left: -200px; background: rgba(120, 90, 255, 0.15); }

.header, main, footer { position: relative; z-index: 1; }

/* ====== Header ====== */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(11, 11, 13, 0.7);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-size: 17px;
}

.logo__mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #000;
    border-radius: 9px;
    font-weight: 900;
    box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 6px 16px rgba(255,212,0,.3);
}

.logo__accent { color: var(--accent); }

.header__mid {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.nav {
    display: flex;
    gap: 28px;
    margin-left: 0;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}
.lang-switch__link {
    color: var(--text-dim);
    text-decoration: none;
    padding: 6px 7px;
    border-radius: 4px;
    min-height: 28px;
    min-width: 28px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease, background-color .15s ease;
}
.lang-switch__link:hover:not(.lang-switch__link--active) {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}
.lang-switch__link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.lang-switch__link--active {
    color: var(--accent);
    font-weight: 600;
    background: transparent;
    cursor: default;
}
.lang-switch__sep {
    color: var(--text-dim);
    user-select: none;
    font-weight: 400;
    opacity: 0.4;
    font-size: 11px;
    line-height: 1;
    padding: 0 1px;
    pointer-events: none;
}

/* Язык в выпадающем мобильном меню (дублирует шапку для заметности) */
.lang-switch--drawer {
    display: none;
}
@media (max-width: 720px) {
    .nav.is-open .lang-switch--drawer {
        display: inline-flex;
        align-self: stretch;
        justify-content: center;
        margin-top: 4px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }
}

.nav > a {
    font-size: 14px;
    color: var(--text-dim);
    transition: color .2s var(--easing);
    position: relative;
}
.nav > a:hover { color: var(--text); }
.nav > a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--easing);
}
.nav > a:hover::after { transform: scaleX(1); }

.header__cta { margin-left: 0; }

.burger {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 40px; height: 40px;
    padding: 0;
    cursor: pointer;
    margin-left: auto;
}
.burger span {
    display: block;
    width: 18px; height: 2px;
    background: var(--text);
    margin: 4px auto;
    transition: all .25s var(--easing);
}

/* ====== Buttons ====== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .2s var(--easing), box-shadow .2s var(--easing), background .2s var(--easing), color .2s var(--easing), border-color .2s var(--easing);
    white-space: nowrap;
    user-select: none;
    line-height: 1;
}

.btn--sm { padding: 9px 14px; font-size: 13px; }
.btn--lg { padding: 16px 26px; font-size: 16px; border-radius: 14px; }
.btn--full { width: 100%; }

.btn--primary {
    background: var(--accent);
    color: #000;
    box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
    background: var(--accent-2);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255,212,0,.3);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-2);
}
.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ====== Hero ====== */

.hero {
    padding: 72px 0 96px;
    position: relative;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--border-2);
    background: rgba(255,255,255,.02);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 24px;
}
.badge__dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(61, 220, 132, .15);
    animation: pulse 2s infinite;
}

.hero__title {
    font-size: clamp(34px, 5.2vw, 60px);
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 560px;
    margin-bottom: 28px;
}

.hero__bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
}
.hero__bullets li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text);
}
.hero__bullets svg {
    width: 20px; height: 20px;
    color: var(--accent);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

/* Promo timer */
.promo {
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(255,212,0,.08), rgba(255,212,0,.02));
    border: 1px solid rgba(255,212,0,.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}
.promo__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}
.promo__label b { color: var(--accent); }
.promo__pulse {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255,212,0,.2);
    animation: pulse 1.6s infinite;
}
.promo__timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}
.promo__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    padding: 6px 8px;
    min-width: 42px;
}
.promo__unit span { font-weight: 800; font-size: 16px; color: var(--text); }
.promo__unit small { font-size: 10px; color: var(--text-muted); letter-spacing: .1em; text-transform: uppercase; }
.promo__sep { color: var(--text-muted); font-weight: 800; }

/* Hero visual */
.hero__visual {
    position: relative;
    perspective: 1000px;
    /* место под .floating--2, чтобы не перекрывал нижний текст дашборда */
    padding-bottom: 56px;
}

.dashboard {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,212,0,.05);
    overflow: hidden;
    transform: rotate(-1deg);
    transition: transform .5s var(--easing);
}
.hero__visual:hover .dashboard { transform: rotate(0deg) translateY(-4px); }

.dashboard__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,.2);
}
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #2a2a33; }
.dots span:first-child { background: #ff6159; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }
.dashboard__title { font-size: 13px; color: var(--text-muted); }

.dashboard__body {
    padding: 22px;
    display: grid;
    gap: 16px;
}
.dashboard__profit-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.dashboard__calc-teaser {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dim);
}
.dashboard__calc-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s var(--easing);
}
.dashboard__calc-link:hover {
    color: var(--accent-2);
}
.dashboard__calc-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.stat {
    background: rgba(255,255,255,.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
}
.stat__label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.stat__value { font-size: 22px; font-weight: 800; }
.stat__delta { font-size: 12px; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.stat__delta.up { background: rgba(61, 220, 132, .12); color: var(--success); }

.stat--grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 14px;
}
.stat--grid > div { display: flex; flex-direction: column; gap: 2px; }
.stat--grid small { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.stat--grid b { font-size: 15px; color: var(--text); }

.bar {
    margin-top: 10px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    overflow: hidden;
}
.bar__fill {
    height: 100%;
    width: var(--w, 50%);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    animation: fillBar 1.6s var(--easing);
}

.chart { background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.chart svg { width: 100%; height: 80px; }

.floating {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    animation: float 4s ease-in-out infinite;
}
.floating__icon {
    flex-shrink: 0;
    display: block;
}
.floating--1 {
    top: -10px;
    right: -10px;
    animation-delay: 0s;
}
.floating--1 .floating__icon { color: var(--accent); }
.floating--2 {
    bottom: 12px;
    left: -12px;
    color: var(--accent);
    animation-delay: 1.2s;
}

/* ====== Roadmap (How it works) ====== */

.roadmap {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    padding: 48px 0 8px;
}

/* РЎРѕРµРґРёРЅСЏСЋС‰Р°СЏ Р»РёРЅРёСЏ */
.roadmap__track {
    position: absolute;
    top: 96px; /* С†РµРЅС‚СЂ СѓР·Р»РѕРІ: 48 (padding-top) + 48 (СЂР°РґРёСѓСЃ СѓР·Р»Р°) */
    left: calc((100% / 12));      /* С†РµРЅС‚СЂ РїРµСЂРІРѕРіРѕ СѓР·Р»Р° */
    right: calc((100% / 12));     /* С†РµРЅС‚СЂ РїРѕСЃР»РµРґРЅРµРіРѕ СѓР·Р»Р° */
    height: 2px;
    background: var(--border-2);
    border-radius: 999px;
    overflow: hidden;
}
.roadmap__progress {
    position: absolute;
    inset: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 18px rgba(255, 212, 0, .6);
    transition: width 1.6s var(--easing);
}
.roadmap.is-drawn .roadmap__progress { width: 100%; }

.roadmap__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* РЈР·РµР» СЃ РёРєРѕРЅРєРѕР№ */
.roadmap__node {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    color: var(--text-dim);
    background: var(--surface);
    border: 2px solid var(--border-2);
    border-radius: 50%;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
    transition:
        color .3s var(--easing),
        border-color .3s var(--easing),
        background .3s var(--easing),
        transform .3s var(--easing),
        box-shadow .3s var(--easing);
}
.roadmap__node svg { width: 30px; height: 30px; }

/* РџСѓР»СЊСЃ Сѓ СѓР·Р»Р° РїСЂРё В«Р·Р°Р¶Р¶РµРЅРёРёВ» */
.roadmap__node::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 212, 0, .35);
    opacity: 0;
    transform: scale(.85);
    transition: opacity .4s var(--easing), transform .4s var(--easing);
}

.roadmap.is-drawn .roadmap__step[data-step="1"] .roadmap__node,
.roadmap.is-drawn .roadmap__step[data-step="2"] .roadmap__node,
.roadmap.is-drawn .roadmap__step[data-step="3"] .roadmap__node,
.roadmap.is-drawn .roadmap__step[data-step="4"] .roadmap__node,
.roadmap.is-drawn .roadmap__step[data-step="5"] .roadmap__node,
.roadmap.is-drawn .roadmap__step[data-step="6"] .roadmap__node {
    color: #000;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(255, 212, 0, .25);
}

/* РџРѕРѕС‡РµСЂС‘РґРЅРѕРµ Р·Р°Р¶РёРіР°РЅРёРµ СѓР·Р»РѕРІ (stagger) */
.roadmap.is-drawn .roadmap__step[data-step="1"] .roadmap__node { transition-delay: .15s; }
.roadmap.is-drawn .roadmap__step[data-step="2"] .roadmap__node { transition-delay: .4s; }
.roadmap.is-drawn .roadmap__step[data-step="3"] .roadmap__node { transition-delay: .65s; }
.roadmap.is-drawn .roadmap__step[data-step="4"] .roadmap__node { transition-delay: .9s; }
.roadmap.is-drawn .roadmap__step[data-step="5"] .roadmap__node { transition-delay: 1.15s; }
.roadmap.is-drawn .roadmap__step[data-step="6"] .roadmap__node { transition-delay: 1.4s; }

/* Р¤РёРЅР°Р»СЊРЅС‹Р№ СѓР·РµР»: РґРѕРїРѕР»РЅРёС‚РµР»СЊРЅРѕРµ СЃРІРµС‡РµРЅРёРµ */
.roadmap__node--final {
    animation: none;
}
.roadmap.is-drawn .roadmap__step[data-step="6"] .roadmap__node {
    animation: glowPulse 2.2s ease-in-out 1.7s infinite;
}

/* РљР°СЂС‚РѕС‡РєР° СЃРѕ С€Р°РіРѕРј */
.roadmap__card {
    width: 100%;
    padding: 18px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition:
        transform .3s var(--easing),
        border-color .3s var(--easing),
        box-shadow .3s var(--easing),
        background .3s var(--easing);
    position: relative;
}
.roadmap__num {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--accent);
    padding: 3px 9px;
    border: 1px solid rgba(255, 212, 0, .25);
    background: rgba(255, 212, 0, .06);
    border-radius: 999px;
    margin-bottom: 10px;
}
.roadmap__card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}
.roadmap__card p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Hover: РїРѕРґСЃРІРµС‡РёРІР°РµРј С‚РµРєСѓС‰РёР№ С€Р°Рі */
.roadmap__step:hover .roadmap__card {
    transform: translateY(-6px);
    border-color: rgba(255, 212, 0, .4);
    background: linear-gradient(180deg, rgba(255, 212, 0, .05), transparent 80%);
    box-shadow: var(--shadow-accent);
}
.roadmap__step:hover .roadmap__node {
    transform: scale(1.08);
    box-shadow: 0 14px 36px rgba(255, 212, 0, .4);
}
.roadmap__step:hover .roadmap__node::after {
    opacity: 1;
    transform: scale(1);
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(255, 212, 0, .25); }
    50% { box-shadow: 0 14px 44px rgba(255, 212, 0, .55); }
}

/* ---- РђРґР°РїС‚РёРІ: РїР»Р°РЅС€РµС‚ (3Г—2) ---- */
@media (max-width: 1024px) {
    .roadmap {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px 16px;
        padding: 32px 0 8px;
    }
    .roadmap__track { display: none; }
    .roadmap__step:not(:last-child)::before {
        content: "";
        position: absolute;
        top: 36px;
        left: 50%;
        width: calc(100% + 16px);
        height: 2px;
        background: linear-gradient(90deg, rgba(255,212,0,.5), rgba(255,212,0,.15));
    }
    /* Р Р°Р·СЂС‹РІС‹ Р»РёРЅРёРё РЅР° РєРѕРЅС†Р°С… СЃС‚СЂРѕРє (3-СЏ Рё 6-СЏ РєР°СЂС‚РѕС‡РєР°) */
    .roadmap__step:nth-child(3n)::before { display: none; }
}

/* ---- РђРґР°РїС‚РёРІ: РјРѕР±РёР»СЊРЅС‹Р№ (РІРµСЂС‚РёРєР°Р»СЊРЅС‹Р№ timeline) ---- */
@media (max-width: 640px) {
    .roadmap {
        grid-template-columns: 72px 1fr;
        gap: 0 20px;
        padding: 8px 0;
        position: relative;
    }
    .roadmap::before {
        content: "";
        position: absolute;
        left: 35px;
        top: 36px;
        bottom: 36px;
        width: 2px;
        background: var(--border-2);
        border-radius: 999px;
    }
    .roadmap::after {
        content: "";
        position: absolute;
        left: 35px;
        top: 36px;
        width: 2px;
        height: 0;
        background: linear-gradient(180deg, var(--accent), var(--accent-2));
        box-shadow: 0 0 14px rgba(255, 212, 0, .6);
        transition: height 1.6s var(--easing);
        border-radius: 999px;
    }
    .roadmap.is-drawn::after {
        height: calc(100% - 72px);
    }

    .roadmap__step {
        display: contents;
    }
    .roadmap__node {
        margin: 0 0 28px;
        grid-column: 1;
    }
    .roadmap__card {
        grid-column: 2;
        margin-bottom: 28px;
        text-align: left;
    }
    .roadmap__step:last-child .roadmap__node,
    .roadmap__step:last-child .roadmap__card {
        margin-bottom: 0;
    }
    .roadmap__step:not(:last-child)::before { display: none; }
}

/* ====== Explain (how farm works) ====== */

.explain {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.explain__list {
    list-style: none;
    padding: 0;
    margin: 28px 0;
    display: grid;
    gap: 18px;
}
.explain__list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: flex-start;
}
.explain__num {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    background: var(--accent); color: #000;
    border-radius: 10px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(255,212,0,.2);
}
.explain__list b { display: block; margin-bottom: 4px; font-size: 16px; }
.explain__list p { margin: 0; font-size: 14.5px; }

.explain__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-weight: 700;
    padding: 12px 16px;
    border: 1px solid rgba(255,212,0,.3);
    border-radius: 12px;
    background: rgba(255,212,0,.05);
}
.explain__badge svg { width: 20px; height: 20px; }

.flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    position: relative;
}
.flow__step {
    display: flex;
    position: relative;
}
.flow__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 20px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: transform .3s var(--easing),
                border-color .3s var(--easing),
                background-color .3s var(--easing);
}
.flow__card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(
        260px 140px at 0% 0%,
        rgba(255, 212, 0, 0.08),
        transparent 60%
    );
    opacity: 0;
    transition: opacity .3s var(--easing);
}
.flow__card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 212, 0, 0.35);
}
.flow__card:hover::before { opacity: 1; }

.flow__card--accent {
    background: linear-gradient(
        135deg,
        rgba(255, 212, 0, 0.08),
        rgba(255, 212, 0, 0.02)
    );
    border-color: rgba(255, 212, 0, 0.35);
}
.flow__card--accent .flow__icon {
    background: var(--accent);
    color: #0b0b0d;
    border-color: transparent;
}

.flow__num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.flow__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(255, 212, 0, 0.08);
    border: 1px solid rgba(255, 212, 0, 0.2);
    border-radius: 10px;
    color: var(--accent);
    transition: background-color .3s var(--easing),
                border-color .3s var(--easing);
}
.flow__icon svg { display: block; }
.flow__label {
    margin: 2px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.flow__sub {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* ====== Features (why us) ====== */

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature {
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform .3s var(--easing), border-color .3s var(--easing);
}
.feature:hover {
    transform: translateY(-6px);
    border-color: rgba(255,212,0,.3);
}
.feature__icon {
    width: 56px; height: 56px;
    display: grid; place-items: center;
    background: rgba(255,212,0,.08);
    border: 1px solid rgba(255,212,0,.2);
    border-radius: 14px;
    margin-bottom: 18px;
    color: var(--accent);
}
.feature__icon svg { display: block; }
.feature h3 { font-size: 18px; }
.feature p { margin-bottom: 0; font-size: 14.5px; }

/* ====== Plans ====== */

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.plan {
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .3s var(--easing), border-color .3s var(--easing), box-shadow .3s var(--easing);
}
.plan:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,.12);
}

.plan--popular {
    background:
        radial-gradient(400px 220px at 50% -50px, rgba(255,212,0,.15), transparent 60%),
        var(--surface);
    border-color: rgba(255,212,0,.4);
    box-shadow: var(--shadow-accent);
    transform: scale(1.03);
}
.plan--popular:hover { transform: scale(1.03) translateY(-6px); }

.plan__ribbon {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(255,212,0,.35);
}

.plan__head { margin-bottom: 20px; }
.plan__name { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 8px; }
.plan__desc { font-size: 14px; color: var(--text-dim); }

.plan__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 18px 0;
    border-top: 1px dashed var(--border-2);
    border-bottom: 1px dashed var(--border-2);
    margin-bottom: 16px;
}
.plan__from { font-size: 13px; color: var(--text-muted); }
.plan__amount { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }

.plan__meta { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.plan__meta b { color: var(--accent); }

.plan__list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    gap: 10px;
}
.plan__list li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    color: var(--text);
}
.plan__list li::before {
    content: "";
    position: absolute;
    left: 0; top: 6px;
    width: 16px; height: 16px;
    background: rgba(255,212,0,.15);
    border: 1px solid rgba(255,212,0,.4);
    border-radius: 6px;
}
.plan__list li::after {
    content: "";
    position: absolute;
    left: 4px; top: 9px;
    width: 8px; height: 4px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.plan .btn { margin-top: auto; }

/* ====== KPI ====== */

.kpi {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255,212,0,.06), rgba(255,212,0,.01));
    border: 1px solid rgba(255,212,0,.15);
    border-radius: var(--radius-lg);
}
.kpi__item { text-align: center; }
.kpi__item b { display: block; font-size: 28px; color: var(--accent); margin-bottom: 4px; letter-spacing: -.02em; }
.kpi__item span { font-size: 13px; color: var(--text-dim); }

/* ====== FAQ ====== */

.faq { display: grid; gap: 12px; }

.faq__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 4px 18px;
    transition: border-color .25s var(--easing), background .25s var(--easing);
}
.faq__item:hover { border-color: var(--border-2); }
.faq__item[open] { border-color: rgba(255,212,0,.3); background: linear-gradient(180deg, rgba(255,212,0,.03), transparent 70%); }

.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 36px 18px 0;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    width: 26px; height: 26px;
    display: grid; place-items: center;
    background: rgba(255,212,0,.12);
    color: var(--accent);
    border-radius: 50%;
    font-weight: 800;
    transition: transform .3s var(--easing);
}
.faq__item[open] summary::after {
    content: "\2212";
    transform: translateY(-50%);
    line-height: 1;
}

.faq__content {
    padding: 0 0 20px;
    color: var(--text-dim);
    font-size: 15px;
    animation: slideDown .35s var(--easing);
}
.faq__content p { margin: 0 0 10px; }
.faq__content p:last-child { margin-bottom: 0; }
.faq__content b { color: var(--accent); }

.faq__list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 8px;
}
.faq__list li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
}
.faq__list li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,212,0,.15);
}

.specs {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 10px;
}
.specs li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14.5px;
    transition: border-color .2s var(--easing), transform .2s var(--easing);
}
.specs li:hover {
    border-color: rgba(255,212,0,.3);
    transform: translateX(2px);
}
.specs__tag {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #000;
    background: var(--accent);
    padding: 4px 10px;
    border-radius: 6px;
    min-width: 52px;
    text-align: center;
}

/* ====== About ====== */

.about {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
.about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 300px at 0% 0%, rgba(255,212,0,.06), transparent 60%);
    pointer-events: none;
}

.about__photo {
    width: 220px; height: 220px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), #e0a500);
    color: #000;
    border-radius: 50%;
    font-size: 96px;
    font-weight: 900;
    box-shadow: 0 20px 60px rgba(255,212,0,.3);
    margin: 0 auto;
}

.about__tags {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 16px;
}
.about__tags span {
    padding: 6px 14px;
    font-size: 13px;
    background: rgba(255,212,0,.08);
    border: 1px solid rgba(255,212,0,.25);
    color: var(--text);
    border-radius: 999px;
}
.about__list {
    margin-top: 0;
    margin-bottom: 20px;
}
.about__body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.about__body a:hover {
    color: #ffd24a;
}

/* ====== Final CTA ====== */

.cta__card {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px;
    text-align: center;
    background:
        radial-gradient(500px 260px at 90% 0%, rgba(255,212,0,.15), transparent 60%),
        linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid rgba(255,212,0,.2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.cta__content .section__title { margin-left: auto; margin-right: auto; }
.cta__content .section__sub { margin-left: auto; margin-right: auto; max-width: 42ch; }

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

/* ====== Footer ====== */

.footer {
    padding: 48px 0 24px;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.footer__top {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.footer__nav {
    display: flex; flex-wrap: wrap;
    gap: 22px;
    margin-left: auto;
    margin-right: auto;
}
.footer__nav a { font-size: 14px; color: var(--text-dim); transition: color .2s var(--easing); }
.footer__nav a:hover { color: var(--accent); }

.disclaimer {
    margin: 24px 0;
    padding: 16px 18px;
    background: rgba(255,91,91,.04);
    border: 1px solid rgba(255,91,91,.15);
    border-radius: 12px;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.6;
}
.disclaimer b { color: var(--danger); }

.footer__bottom {
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
    color: var(--text-muted);
}

.footer__bottom p {
    margin: 0 0 10px;
}

.footer__bottom p:last-child {
    margin-bottom: 0;
}

.footer__disclaimer {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-dim);
}

/* ====== Floating action button ====== */

.fab {
    position: fixed;
    bottom: 22px; right: 22px;
    width: 56px; height: 56px;
    display: none;
    align-items: center; justify-content: center;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(255,212,0,.4);
    z-index: 40;
    transition: transform .2s var(--easing);
}
.fab:hover { transform: translateY(-4px); }

/* ====== Animations ====== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--easing), transform .7s var(--easing);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,212,0,.25); }
    50% { box-shadow: 0 0 0 10px rgba(255,212,0,0); }
}
@keyframes fillBar { from { width: 0; } to { width: var(--w, 50%); } }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ====== Responsive ====== */

@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
    .plan--popular { transform: none; }
    .plan--popular:hover { transform: translateY(-6px); }
    .explain { grid-template-columns: 1fr; gap: 40px; }
    .cta__card { padding: 36px; }
    .about { grid-template-columns: 1fr; padding: 36px; text-align: center; }
    .about__photo { margin-bottom: 16px; width: 180px; height: 180px; font-size: 72px; }
    .about__tags { justify-content: center; }
    .kpi { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .section { padding: 72px 0; }
    .nav { display: none; }
    .header__cta { display: none; }
    .burger { display: block; }
    .nav.is-open {
        display: flex;
        position: absolute;
        top: 68px; left: 0; right: 0;
        flex-direction: column;
        background: var(--bg-2);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 16px;
    }
    .hero { padding: 48px 0 72px; }
    .hero__actions .btn { width: 100%; }
    .promo { flex-direction: column; align-items: flex-start; }
    .stat--grid { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: 1fr; }
    .kpi { grid-template-columns: repeat(2, 1fr); padding: 18px; }
    .kpi__item b { font-size: 22px; }
    .flow { grid-template-columns: 1fr; gap: 12px; }
    .flow__card { padding: 16px 14px; }
    .about { padding: 28px 20px; }
    .cta__card { padding: 24px; }
    .fab { display: flex; }
    .floating { display: none; }
    .hero__visual { padding-bottom: 0; }
}

@media (max-width: 520px) {
    .steps { grid-template-columns: 1fr; }
    .flow__icon { width: 36px; height: 36px; }
    .flow__icon svg { width: 20px; height: 20px; }
    .promo__unit { min-width: 36px; padding: 4px 6px; }
    .promo__unit span { font-size: 14px; }
    .section__title { font-size: 26px; }
    .hero__title { font-size: 32px; }
}

/* ====== Calculator (dashboard / mock style) ====== */

#calc {
    /* Те же акценты, что и на всём лендинге: CS-yellow + glow */
    --calc-accent: var(--accent);
    --calc-accent-dim: rgba(255, 212, 0, 0.12);
    --calc-accent-dim-2: rgba(255, 212, 0, 0.18);
    --calc-accent-glow: var(--accent-glow);
    --calc-hero-glow: rgba(255, 212, 0, 0.22);
    --calc-chart-exp: #3d3d47;
}

.calc--dash {
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.calc__dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 560px;
}

.calc__col--in {
    display: flex;
    flex-direction: column;
    min-height: 0;
    align-self: stretch;
    padding: 28px 26px 32px;
    border-right: 1px solid var(--border);
    background: var(--surface);
}

.calc__col--out {
    display: grid;
    grid-template-rows: auto auto minmax(200px, 1fr);
    gap: 16px;
    min-height: 0;
    align-self: stretch;
    padding: 28px 26px 32px;
    background: var(--bg-2);
}

/* Intro */
.calc__intro { margin-bottom: 22px; }
.calc__live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-bottom: 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--calc-accent);
    background: var(--calc-accent-dim);
    border: 1px solid rgba(255, 212, 0, 0.35);
    border-radius: 999px;
}
.calc__live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--calc-accent);
    box-shadow: 0 0 10px var(--calc-accent-glow);
    animation: calc-pulse 1.8s ease-in-out infinite;
}
@keyframes calc-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}
.calc__dash-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--text);
}
.calc__dash-sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.calc__inputs {
    display: grid;
    gap: 18px;
    flex: 1;
    align-content: start;
}

.calc__hint {
    margin: 4px 0 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}
.calc__hint strong {
    color: var(--text);
    font-weight: 800;
}
.calc__hint-em {
    color: #fff;
    font-weight: 700;
}

/* Fields */
.calc__field { display: grid; gap: 10px; }
.calc__field-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.calc__field-head label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.calc__acc-pill.calc__acc-input {
    min-width: 64px;
    max-width: 120px;
    width: 80px;
    padding: 6px 10px;
    box-sizing: border-box;
    border: none;
    outline: none;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    text-align: center;
    color: #000;
    background: var(--calc-accent);
    border-radius: 8px;
    box-shadow: var(--shadow-accent);
    -moz-appearance: textfield;
}
.calc__acc-pill.calc__acc-input:focus-visible {
    box-shadow: 0 0 0 2px #1a1a1f, 0 0 0 4px rgba(255, 212, 0, 0.45);
}
.calc__acc-pill.calc__acc-input::-webkit-outer-spin-button,
.calc__acc-pill.calc__acc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Slider */
.calc__slider {
    position: relative;
    padding: 10px 0 4px;
}
.calc__slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    margin: 0;
    cursor: pointer;
    background: linear-gradient(to right, var(--calc-accent) 0%, var(--calc-accent) var(--fill, 0%), var(--bg-3) var(--fill, 0%), var(--bg-3) 100%);
    outline: none;
}
.calc__slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--calc-accent);
    border: 3px solid #1a1a1f;
    cursor: grab;
    box-shadow: 0 0 0 3px var(--calc-accent-dim), 0 6px 20px rgba(255, 212, 0, 0.35);
    transition: transform .15s var(--easing);
}
.calc__slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.06); }
.calc__slider input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--calc-accent);
    border: 3px solid #1a1a1f;
    cursor: grab;
    box-shadow: 0 0 0 3px var(--calc-accent-dim), 0 6px 20px rgba(255, 212, 0, 0.35);
}

.calc__slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    padding: 0 2px;
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

/* Presets */
.calc__chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.calc__preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 8px 4px;
    font-family: inherit;
    color: var(--text-dim);
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    cursor: pointer;
    transition: color .2s var(--easing), border-color .2s var(--easing), background .2s var(--easing), box-shadow .2s var(--easing);
}
.calc__preset-line1 {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}
.calc__preset-line2 {
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.calc__preset:hover {
    color: var(--text);
    border-color: rgba(255, 212, 0, 0.35);
}
.calc__preset--active {
    border-color: rgba(255, 212, 0, 0.55);
    background: var(--calc-accent-dim);
    box-shadow: 0 0 0 1px rgba(255, 212, 0, 0.22), 0 8px 24px rgba(0, 0, 0, .25);
}
.calc__preset--active .calc__preset-line2 { color: var(--calc-accent); }

/* Drop input */
.calc__num--lg .calc__num-field {
    height: 52px;
    padding: 0 16px;
    background: var(--bg-2);
    border-radius: 12px;
    border-color: var(--border);
}
.calc__num--lg .calc__num-field:focus-within {
    border-color: rgba(255, 212, 0, 0.45);
    box-shadow: 0 0 0 3px var(--calc-accent-dim-2);
}
.calc__num-field {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 40px;
    background: var(--bg);
    border: 1px solid var(--border-2);
    border-radius: 8px;
    transition: border-color .2s var(--easing), box-shadow .2s var(--easing);
}
.calc__num-field span { color: var(--calc-accent); font-weight: 800; }
.calc__num-field input {
    flex: 1;
    width: 100%;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 0;
}
.calc__num--lg .calc__num-field input { font-size: 20px; }
.calc__num-field input::-webkit-outer-spin-button,
.calc__num-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__num-field input[type="number"] { -moz-appearance: textfield; }

/* Plan cards */
.calc__plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.calc__plan {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px 14px 16px;
    text-align: left;
    color: var(--text-dim);
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .2s var(--easing), background .2s var(--easing), box-shadow .2s var(--easing);
}
.calc__plan:hover {
    border-color: rgba(255, 212, 0, 0.35);
    color: var(--text);
}
.calc__plan--active {
    border-color: rgba(255, 212, 0, 0.5);
    background: var(--calc-accent-dim);
    box-shadow: 0 0 0 1px rgba(255, 212, 0, 0.2);
}
.calc__plan-tick {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    color: var(--calc-accent);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity .2s var(--easing), transform .2s var(--easing);
}
.calc__plan--active .calc__plan-tick {
    opacity: 1;
    transform: scale(1);
}
.calc__plan-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 22px;
}
.calc__plan-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
}
.calc__plan--active .calc__plan-name { color: var(--calc-accent); }
.calc__plan-desc {
    font-size: 12px;
    line-height: 1.35;
    color: var(--text-muted);
}
.calc__plan--active .calc__plan-desc { color: var(--text-dim); }

/* Hero card */
.calc__hero-card {
    padding: 0 0 20px;
    margin: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
}
.calc__hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.calc__hero-value {
    font-size: clamp(40px, 8vw, 52px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.03em;
    line-height: 1;
    color: var(--calc-accent);
    text-shadow: 0 0 48px var(--calc-hero-glow);
}
#calc.is-loss .calc__hero-value {
    color: var(--danger);
    text-shadow: none;
}
.calc__hero-meta {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dim);
}
.calc__hero-meta b {
    font-weight: 800;
    color: var(--text);
}
#calc.is-loss .calc__hero-meta b:first-of-type { color: var(--danger); }
.calc__meta-sep {
    margin: 0 6px;
    color: var(--text-muted);
}

/* Mini stats */
.calc__mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.calc__mini {
    padding: 16px 12px;
    text-align: center;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.calc__mini-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.calc__mini-val {
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

/* Chart panel */
.calc__chart-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    margin: 0;
    padding: 4px 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
}
.calc__chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.calc__chart-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.calc__legend {
    display: flex;
    align-items: center;
    gap: 14px;
}
.calc__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: lowercase;
}
.calc__legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}
.calc__legend-dot--income { background: var(--calc-accent); }
.calc__legend-dot--expense { background: var(--calc-chart-exp); }

.calc__chart {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    flex: 1;
    min-height: 200px;
    height: auto;
    padding: 16px 10px 12px;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 27px,
            rgba(255, 255, 255, 0.04) 27px,
            rgba(255, 255, 255, 0.04) 28px
        );
    background-color: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.calc__bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.calc__bars {
    display: flex;
    gap: 4px;
    align-items: flex-end;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 0;
}
.calc__bar {
    flex: 1;
    max-width: 16px;
    min-height: 2px;
    height: 0%;
    border-radius: 3px 3px 0 0;
    transition: height .4s var(--easing);
}
.calc__bar--income { background: var(--calc-accent); }
.calc__bar--expense { background: var(--calc-chart-exp); }
.calc__bar-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .calc__dash-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .calc__col--in {
        padding: 22px 20px 24px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .calc__col--out {
        height: auto;
        min-height: 0;
        padding: 22px 20px 24px;
        grid-template-rows: auto auto auto;
    }
    .calc__chart-panel {
        flex: 0 1 auto;
    }
    .calc__chart {
        min-height: 160px;
    }
}

@media (max-width: 520px) {
    .calc__chips { grid-template-columns: repeat(2, 1fr); }
    .calc__plans { grid-template-columns: 1fr; }
    .calc__mini-grid { grid-template-columns: 1fr; }
    .calc__chart { min-height: 140px; padding: 12px 6px 10px; }
    .calc__bar { max-width: 12px; }
    .calc__chart-head { flex-direction: column; align-items: flex-start; }
}
