/* ══════════════════════════════════════
           ТОКЕНЫ — цвета сняты с реального лого и hero-иллюстрации
           (образец #F08C1E / #082850), переведены в oklch, рампы
           построены с постоянным hue, контраст пар посчитан скриптом
           (не на глаз) — см. пометки с коэффициентами ниже.
        ══════════════════════════════════════ */
        :root {
            /* sand — тёплый нейтральный (hue 80) */
            --sand-50:  #FCFAF6;
            --sand-100: #F7F3EC;
            --sand-150: #F0EAE2;
            --sand-200: #E5DFD4;
            --sand-300: #CEC6B9;
            --sand-400: #A69D8F;
            --sand-500: #7C7569;
            --sand-600: #5C564C;

            /* accent — фирменный оранжевый из лого (hue 60, ≈#E88000 = сам лого-оттенок) */
            --accent-100: #FFE4CA;
            --accent-300: #FFB06D;
            --accent-400: #F79639;
            --accent-500: #E88000;   /* основной акцент — почти точный цвет лого */
            --accent-600: #C46200;   /* hover-состояние */
            --accent-700: #9C4900;   /* акцентный текст на светлом фоне */
            --accent-800: #723400;

            /* ink — фирменный тёмно-синий из лого (hue 256) */
            --ink-700: #0B2E5A;
            --ink-800: #001E45;
            --ink-900: #000F2D;   /* базовый тёмный фон + основной текст */

            --surface: #FFFFFF;

            /* семантика */
            --bg:          var(--sand-50);
            --bg-alt:      var(--sand-100);
            --text:        var(--ink-900);         /* 18.2:1 на sand-50 — фирменный тёмно-синий вместо чёрного */
            --text-muted:  var(--sand-600);         /* 6.98:1 на sand-50, 6.58:1 на sand-100 */
            --text-faint:  var(--sand-500);
            --border:      var(--sand-200);
            --border-strong: var(--sand-300);

            --accent:        var(--accent-500);     /* кнопки: текст поверх — ink-900 (6.80:1), НЕ белый (2.68:1, провал) */
            --accent-hover:  var(--accent-600);      /* ink-900 текст поверх — 4.60:1, проходит AA */
            --accent-text:   var(--accent-700);      /* акцентный текст/ссылки на светлом — 5.98:1 на sand-50 */
            --accent-soft-bg:   var(--accent-100);
            --accent-soft-text: var(--accent-700);   /* 5.12:1 на accent-100 */
            --accent-on-ink: var(--accent-300);      /* 10.57:1 на ink-900 */

            --ink:        var(--ink-900);
            --ink-soft:   var(--ink-700);
            --on-ink:        var(--sand-50);         /* 18.2:1 на ink-900 */
            --on-ink-muted:  var(--sand-300);

            --radius-sm:  10px;
            --radius-md:  16px;
            --radius-lg:  24px;
            --radius-full: 999px;

            --shadow-sm: 0 1px 2px rgba(0,15,45,.06), 0 2px 8px rgba(0,15,45,.05);
            --shadow-md: 0 8px 24px rgba(0,15,45,.10);
            --shadow-lg: 0 16px 48px rgba(0,15,45,.16);

            --ease: cubic-bezier(.2,0,0,1);
            --dur-fast: 150ms;
            --dur: 250ms;

            --focus-ring: var(--ink-900);

            --font-display: 'Golos Text', system-ui, sans-serif;
            --font-body: 'Inter', system-ui, sans-serif;
        }

        /* ══════════════════════════════════════
           RESET
        ══════════════════════════════════════ */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        body {
            font-family: var(--font-body); color: var(--text); background: var(--bg);
            line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
        }
        img { display: block; max-width: 100%; }
        a { color: inherit; text-decoration: none; }
        ul { list-style: none; }
        h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }
        h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
        h2 { font-size: clamp(1.875rem, 3.5vw, 2.5rem); text-wrap: balance; }
        h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
        p { text-wrap: pretty; }

        .icon { width: 1.25em; height: 1.25em; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex-shrink: 0; }
        .icon-bold { stroke-width: 2; }
        .icon-fill { fill: currentColor; stroke: none; }

        :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
        .site-header, .cta-band, .site-footer { --focus-ring: var(--accent-300); }

        .skip-link {
            position: absolute; left: 12px; top: -60px; z-index: 1000;
            background: var(--ink-900); color: var(--on-ink);
            padding: 12px 20px; border-radius: var(--radius-sm);
            font-family: var(--font-display); font-weight: 700; font-size: .9rem;
            transition: top var(--dur) var(--ease);
        }
        .skip-link:focus { top: 12px; }

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

        /* ══════════════════════════════════════
           LAYOUT
        ══════════════════════════════════════ */
        .container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
        section { padding: 96px 0; }

        /* ══════════════════════════════════════
           КНОПКИ
        ══════════════════════════════════════ */
        .btn {
            display: inline-flex; align-items: center; justify-content: center; gap: 8px;
            padding: 14px 26px; border-radius: var(--radius-sm);
            font-family: var(--font-display); font-size: .98rem; font-weight: 700;
            cursor: pointer; border: 2px solid transparent;
            transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
        }
        .btn:hover { transform: translateY(-2px); }
        .btn:active { transform: scale(.96); }
        /* fill — ink-900 текст, НЕ белый: белый на нашем оранжевом даёт 2.7–4:1, ink-900 даёт 4.6–6.8:1 */
        .btn-primary { background: var(--accent); color: var(--ink-900); box-shadow: var(--shadow-sm); }
        .btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
        .btn-outline { border-color: var(--accent-600); color: var(--accent-700); }
        .btn-outline:hover { background: var(--accent-500); color: var(--ink-900); }
        .btn-outline-invert { border-color: var(--accent-on-ink); color: var(--accent-on-ink); }
        .btn-outline-invert:hover { background: var(--accent-on-ink); color: var(--ink-900); }
        .btn-white { background: var(--surface); color: var(--ink-900); }
        .btn-white:hover { background: var(--sand-100); }
        .btn-lg { padding: 18px 34px; font-size: 1.05rem; }

        /* ══════════════════════════════════════
           СЕКЦИЯ-ЛЕЙБЛ
        ══════════════════════════════════════ */
        .section-label {
            display: inline-block;
            font-family: var(--font-display); font-size: .75rem; font-weight: 700;
            letter-spacing: .1em; text-transform: uppercase;
            color: var(--accent-soft-text); background: var(--accent-soft-bg);
            padding: 5px 12px; border-radius: var(--radius-full); margin-bottom: 16px;
        }
        .section-header { text-align: center; margin-bottom: 56px; }
        .section-header p { color: var(--text-muted); font-size: 1.05rem; margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

        /* ══════════════════════════════════════
           HEADER
        ══════════════════════════════════════ */
        .site-header { position: sticky; top: 0; z-index: 100; background: var(--ink-900); border-bottom: 2px solid var(--ink-700); }
        .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
        .nav-logo { display: flex; align-items: center; height: 100%; padding: 10px 0; }
        .nav-logo-badge {
            display: flex; align-items: center; height: 100%;
            background: var(--sand-50); border-radius: var(--radius-sm);
            padding: 6px 12px;
        }
        .nav-logo-badge img { height: 100%; max-height: 32px; width: auto; display: block; }
        .nav-links { display: flex; align-items: center; gap: 30px; }
        .nav-links a { font-family: var(--font-display); font-size: .92rem; font-weight: 700; letter-spacing: .02em; color: var(--on-ink-muted); transition: color var(--dur) var(--ease); }
        .nav-links a:hover, .nav-links a.active { color: var(--accent-on-ink); }
        .nav-cta { margin-left: 4px; }

        .burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
        .burger span { display: block; width: 24px; height: 2px; background: var(--on-ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
        .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .burger.open span:nth-child(2) { opacity: 0; }
        .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        .mobile-menu { display: none; flex-direction: column; background: var(--ink-800); padding: 20px 24px 24px; gap: 4px; }
        .mobile-menu a { display: block; padding: 10px 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: rgba(255,255,255,.85); transition: color var(--dur) var(--ease); }
        .mobile-menu a:hover { color: var(--accent-on-ink); }
        .mobile-menu.open { display: flex; }
        .mobile-menu .btn-primary { margin-top: 10px; align-self: flex-start; }

        /* ══════════════════════════════════════
           1. HERO — широкое фото + текст слева поверх
        ══════════════════════════════════════ */
        .hero { position: relative; min-height: 640px; display: flex; align-items: center; background: var(--ink-900); overflow: hidden; }
        .hero-bg {
            position: absolute; inset: 0;
            background-image: url('../../images/hero.jpg');
            background-size: cover; background-position: center right;
        }
        .hero-scrim {
            position: absolute; inset: 0;
            background: linear-gradient(100deg, rgba(0,15,45,.94) 0%, rgba(0,15,45,.82) 32%, rgba(0,15,45,.4) 58%, rgba(0,15,45,.08) 78%);
        }
        .hero-inner { position: relative; z-index: 1; width: 100%; padding: 88px 0; }
        .hero-content { max-width: 620px; }
        .hero-eyebrow {
            display: inline-flex; align-items: center; gap: 8px;
            font-family: var(--font-display); font-size: .78rem; font-weight: 700;
            letter-spacing: .1em; text-transform: uppercase;
            color: var(--accent-on-ink); border: 1px solid rgba(255,176,109,.35); border-radius: var(--radius-full);
            padding: 6px 14px; margin-bottom: 20px;
        }
        .hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--accent-on-ink); border-radius: 50%; }
        .hero h1 { color: var(--on-ink); margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
        .hero h1 em { font-style: normal; color: var(--accent-on-ink); }
        .hero-tagline {
            font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600;
            color: rgba(255,255,255,.6); margin-bottom: 20px;
        }
        .hero-desc { font-size: 1.05rem; color: rgba(255,255,255,.78); margin-bottom: 32px; max-width: 480px; line-height: 1.75; }
        .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
        .hero-stats { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); overflow: hidden; background: rgba(0,15,45,.45); backdrop-filter: blur(6px); max-width: 560px; }
        .hero-stat { flex: 1 1 160px; padding: 16px 20px; border-right: 1px solid rgba(255,255,255,.1); }
        .hero-stat:last-child { border-right: none; }
        .hero-stat-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--accent-on-ink); line-height: 1; font-variant-numeric: tabular-nums; }
        .hero-stat-label { font-size: .76rem; color: rgba(255,255,255,.55); margin-top: 5px; line-height: 1.35; }

        /* ══════════════════════════════════════
           2. КТО МЫ
        ══════════════════════════════════════ */
        .mission { background: var(--bg); }
        .mission-inner { max-width: 780px; margin: 0 auto; text-align: center; }
        .mission h2 { margin-bottom: 20px; }
        .mission-lead { font-size: 1.2rem; color: var(--text); font-weight: 500; margin-bottom: 18px; line-height: 1.65; }
        .mission-body { font-size: 1.02rem; color: var(--text-muted); line-height: 1.8; }
        .mission-body strong { color: var(--text); font-weight: 600; }

        /* ══════════════════════════════════════
           3. ЗАЧЕМ ВСТУПАТЬ (5 выгод)
        ══════════════════════════════════════ */
        .benefits { background: var(--bg-alt); }
        .benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
        .benefit-card {
            background: var(--surface); border-radius: var(--radius-lg); padding: 28px 24px;
            border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
            transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
        }
        .benefit-card:hover { border-color: var(--accent-500); transform: translateY(-5px); box-shadow: var(--shadow-md); }
        .benefit-icon {
            width: 48px; height: 48px; border-radius: var(--radius-sm);
            background: var(--accent-soft-bg); color: var(--accent-700);
            display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
        }
        .benefit-icon .icon { width: 1.4rem; height: 1.4rem; }
        .benefit-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--ink-900); }
        .benefit-card p { font-size: .89rem; color: var(--text-muted); line-height: 1.65; }

        /* ══════════════════════════════════════
           4. КОМПАКТНАЯ CTA-ПЛАШКА
        ══════════════════════════════════════ */
        .cta-band { background: var(--ink-900); position: relative; overflow: hidden; }
        .cta-band .container { padding-top: 48px; padding-bottom: 48px; }
        .cta-band::before {
            content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
            background: radial-gradient(circle, rgba(255,176,109,.10) 0%, transparent 70%);
            top: 50%; left: 85%; transform: translate(-50%, -50%);
        }
        .cta-band-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
        .cta-band h2 { color: var(--on-ink); font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
        .cta-band p { color: var(--on-ink-muted); font-size: .98rem; }
        .cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

        /* ══════════════════════════════════════
           5. ПАРТНЁРЫ — плитка узких плашек
        ══════════════════════════════════════ */
        .partners { background: var(--bg); }
        .partners-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
        .partner-tile {
            display: inline-flex; align-items: center; gap: 10px;
            background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-full);
            padding: 14px 26px; font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--ink-900);
            box-shadow: var(--shadow-sm);
            transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
        }
        .partner-tile:hover { border-color: var(--accent-500); box-shadow: var(--shadow-md); transform: translateY(-2px); }
        .partner-tile .icon { width: 1.1rem; height: 1.1rem; color: var(--accent-700); }
        .partner-tile.is-placeholder { color: var(--text-faint); font-weight: 600; }

        /* ══════════════════════════════════════
           ФОТО-СЛОТ (для будущих фото — заменяются позже)
        ══════════════════════════════════════ */
        .photo-slot {
            width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
            background:
                repeating-linear-gradient(-45deg, transparent, transparent 22px, var(--accent-100) 22px, var(--accent-100) 23px),
                var(--sand-150);
            color: var(--text-faint); outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px;
        }
        .photo-slot .icon { width: 1.7rem; height: 1.7rem; opacity: .5; }
        .photo-slot span { font-size: .78rem; font-weight: 500; background: var(--surface); padding: 4px 12px; border-radius: var(--radius-full); box-shadow: var(--shadow-sm); }

        /* ══════════════════════════════════════
           6. СТАТЬИ
        ══════════════════════════════════════ */
        .articles { background: var(--bg-alt); }
        .article-categories { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
        .category-chip {
            font-family: var(--font-display); font-size: .84rem; font-weight: 700;
            background: var(--surface); border: 1.5px solid var(--border); color: var(--ink-900);
            padding: 8px 18px; border-radius: var(--radius-full);
            transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
        }
        .category-chip:hover { border-color: var(--accent-500); color: var(--accent-700); background: var(--accent-soft-bg); }
        .articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 40px; }
        .article-card {
            border-radius: var(--radius-lg); overflow: hidden;
            box-shadow: var(--shadow-sm); background: var(--surface); border: 1.5px solid var(--border);
            transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); display: flex; flex-direction: column;
        }
        .article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
        .article-card-img { aspect-ratio: 16/10; position: relative; }
        .article-card-tag {
            position: absolute; top: 12px; left: 12px;
            background: var(--accent-500); color: var(--ink-900);
            font-family: var(--font-display); font-weight: 700; font-size: .76rem;
            padding: 4px 10px; border-radius: var(--radius-sm);
        }
        .article-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
        .article-card h3 { margin-bottom: 10px; }
        .article-card-desc { font-size: .9rem; color: var(--text-muted); flex: 1; margin-bottom: 18px; line-height: 1.6; }
        .article-card-link {
            font-family: var(--font-display); font-size: .88rem; font-weight: 700;
            color: var(--accent-700); display: inline-flex; align-items: center; gap: 6px; transition: color var(--dur) var(--ease);
        }
        .article-card-link .icon { transition: transform var(--dur) var(--ease); }
        .article-card-link:hover { color: var(--accent-800); }
        .article-card-link:hover .icon { transform: translateX(4px); }
        .section-footer { text-align: center; }

        /* ══════════════════════════════════════
           FOOTER
        ══════════════════════════════════════ */
        .site-footer { background: var(--ink-900); border-top: 2px solid var(--ink-700); padding: 56px 0 32px; }
        .footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
        .footer-logo-badge { display: inline-flex; background: var(--sand-50); border-radius: var(--radius-sm); padding: 8px 14px; margin-bottom: 14px; }
        .footer-logo-badge img { height: 28px; width: auto; display: block; }
        .footer-tagline { font-weight: 600; font-size: .92rem; color: var(--accent-on-ink); margin-bottom: 10px; }
        .footer-desc { font-size: .86rem; color: var(--on-ink-muted); line-height: 1.75; }
        .footer-col h4 { font-family: var(--font-display); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: 14px; }
        .footer-col ul { display: flex; flex-direction: column; gap: 10px; }
        .footer-col ul a { font-size: .88rem; color: var(--on-ink-muted); transition: color var(--dur) var(--ease); display: inline-flex; align-items: center; gap: 6px; }
        .footer-col ul a:hover { color: var(--accent-on-ink); }
        .footer-col ul a .icon { width: .95rem; height: .95rem; }
        .footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07); font-size: .78rem; color: rgba(255,255,255,.32); flex-wrap: wrap; gap: 8px; }

        /* ══════════════════════════════════════
           SCROLL REVEAL
        ══════════════════════════════════════ */
        .reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
        .reveal.visible { opacity: 1; transform: none; }
        .reveal-d1 { transition-delay: .08s; }
        .reveal-d2 { transition-delay: .16s; }
        .reveal-d3 { transition-delay: .24s; }
        .reveal-d4 { transition-delay: .32s; }

        /* ══════════════════════════════════════
           RESPONSIVE
        ══════════════════════════════════════ */
        @media (max-width: 960px) {
            .hero { min-height: 560px; }
            .hero-bg { background-position: 68% center; }
            .hero-scrim { background: linear-gradient(180deg, rgba(0,15,45,.55) 0%, rgba(0,15,45,.86) 55%, rgba(0,15,45,.96) 100%); }
            .hero-content { max-width: 100%; }
            .cta-band-inner { flex-direction: column; align-items: flex-start; text-align: left; }
            .footer-inner { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 640px) {
            section { padding: 64px 0; }
            .nav-links, .nav-cta { display: none; }
            .burger { display: flex; }
            .hero-stats { flex-direction: column; max-width: 100%; }
            .hero-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
            .hero-stat:last-child { border-bottom: none; }
            .benefits-grid { grid-template-columns: 1fr 1fr; }
            .articles-grid { grid-template-columns: 1fr; }
            .footer-inner { grid-template-columns: 1fr; gap: 28px; }
            .footer-bottom { flex-direction: column; align-items: flex-start; }
            .cta-band-actions { width: 100%; }
            .cta-band-actions .btn { width: 100%; }
        }
