/* ─── LOCAL FONTS ─── */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Засечный шрифт для длинных текстов. Скачать Source Serif 4 на
   fonts.google.com и положить в ../fonts/ рядом с Manrope.
   Пока файлов нет — подхватится Georgia, вёрстка не сломается. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a:visited { color: inherit; }

:root {
    /* ── тёмная база (без изменений) ── */
    --bg:      #111116;
    --bg2:     #1A1A20;
    --bg3:     #242428;
    --white:   #F5F0E8;
    --gold:    #C9A465;
    --gold2:   #E2B97A;
    --gray-tx: rgba(245,240,232,0.80);   /* было 0.5 — отсюда бледность на тёмном */
    --border:  rgba(201,164,101,0.15);

    /* ══ ЕДИНСТВЕННАЯ РУЧКА ══════════════════════════════════════════
       Не устраивает размер текста — меняете эти два числа, и всё.
       19px — базовый вариант. 20px для длинных текстов не перебор.   */
    --read-size:   19px;
    --read-size-m: 18px;                 /* на мобильных */
    --read-line:   1.72;

    /* ── шрифты ──
       Заголовки: Manrope. Чтобы вернуть Georgia — поменять строки местами. */
    --font-display: 'Georgia', Georgia, serif;
    /* --font-display: Georgia, 'Times New Roman', serif; */
    --font-read:    'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-ui:      'Manrope', -apple-system, sans-serif;

    /* ── светлый фон: тот же оттенок, холоднее и светлее ── */
    --paper:   #FAF9F6;                  /* было #F4F1EB */
    --paper-2: #F2F0EB;                  /* карточки */
    --paper-3: #EAE7E0;                  /* акцентные блоки */

    /* ── чернила (в скобках контраст к --paper) ── */
    --ink:     #17181A;                  /* заголовки        16.9:1 */
    --ink-1:   #2B2D30;                  /* основной текст   13.1:1 */
    --ink-2:   #52565A;                  /* вторичный         7.0:1 */
    --ink-3:   #5F6367;                  /* подписи, ниже не опускаться */

    /* ── золото ──
       --gold на светлом фоне даёт 2.07:1 и для текста непригодно.
       Для ссылок и подписей на светлом — только --gold-ink (6.0:1).  */
    --gold-ink:  #7A5A22;
    --gold-line: rgba(122,90,34,0.30);
    --gold-tint: rgba(201,164,101,0.13);

    /* ── текст на тёмном ── */
    --tx-dark-2: rgba(245,240,232,0.80);
    --tx-dark-3: rgba(245,240,232,0.62);

    /* ── геометрия ── */
    --measure:   42rem;                  /* 672px ≈ 68 знаков в строке */
    --nav-h:     108px;                  /* топбар 40 + меню 68 */
    --stepbar-h: 52px;
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }             /* топбар скрыт, меню 64px */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Manrope', -apple-system, sans-serif;
    color: var(--white);
    background: var(--bg);
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ─── ТОП-БАР ─── */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 101;
    height: 40px;
    background: #0A0A0E;
    border-bottom: 1px solid rgba(201,164,101,0.08);
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--tx-dark-3);
}

.topbar-sep { opacity: 0.3; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-link {
    font-size: 13px;
    color: rgba(245,240,232,0.70);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.topbar-link:hover { color: var(--gold); }
.topbar-link--icon { font-size: 15px; }

/* ─── НАВИГАЦИЯ ─── */
nav {
    position: fixed;
    top: 40px; left: 0; right: 0;
    z-index: 100;
    background: rgba(17,17,22,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: Georgia, 'Times New Roman', serif;   /* логотип — знак бренда */
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo span { color: var(--gold); }
.logo-icon { color: var(--gold); margin-right: 6px; font-size: 18px; }

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-self: stretch;
    align-items: stretch;
}

.nav-links > li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    opacity: 0.75;
    transition: opacity 0.2s;
    letter-spacing: 0.3px;
}

.nav-links a:hover { opacity: 1; }

.nav-phone {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--gold);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.nav-phone:hover { opacity: 0.8; }
.nav-phone i { font-size: 13px; }
.nav-phones {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-phones .nav-phone { font-size: 14px; }

.nav-cta {
    background: var(--gold) !important;
    color: var(--bg) !important;
    opacity: 1 !important;
    padding: 9px 22px;
    border-radius: 4px;
    font-weight: 600 !important;
    font-size: 15px !important;
    transition: all 0.2s !important;
    letter-spacing: 0.3px;
}

.nav-cta:hover {
    background: #E8C060 !important;
    transform: translateY(-1px);
}

/* ─── ОБЩИЕ СТИЛИ ─── */
section { padding: 120px 32px; }
main > section:first-child { padding-top: 220px; }

.section-inner { max-width: 1280px; margin: 0 auto; }

.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.section-sub {
    font-size: 19px;
    color: var(--gray-tx);
    max-width: 560px;
    line-height: 1.65;
}

.section-head { margin-bottom: 80px; }

/* ─── КНОПКИ ─── */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 4px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gold);
    color: var(--bg);
}
.btn-primary:hover {
    background: #E8C060;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(212,168,67,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover {
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--gold);
    color: var(--bg);
}
.btn-white:hover {
    background: #E8C060;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212,168,67,0.35);
}

/* ─── HERO ─── */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 160px 32px 100px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    background-size: cover;
    background-position: center center;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%; left: -20%;
    width: 140%; height: 140%;
    background:
        radial-gradient(circle at 20% 60%, rgba(212,168,67,0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 25%, rgba(30,60,120,0.5) 0%, transparent 40%),
        radial-gradient(circle at 55% 85%, rgba(212,168,67,0.08) 0%, transparent 30%);
    animation: hero-bg 12s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes hero-bg {
    0%   { transform: translate(0px,    0px);  }
    33%  { transform: translate(40px,  -42px); }
    66%  { transform: translate(-38px,  32px); }
    100% { transform: translate(30px,   44px); }
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(212,168,67,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero { min-height: 70vh; padding: 100px 24px 60px; }
}

.hero-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content { max-width: 640px; }

.hero--photo .hero-overlay {
    display: block;
    background: linear-gradient(
        105deg,
        rgba(17,17,22,0.95) 0%,
        rgba(17,17,22,0.82) 45%,
        rgba(17,17,22,0.35) 75%,
        rgba(17,17,22,0.1) 100%
    );
}

.hero--photo::after { opacity: 0.15; }

.hero-badge {
    display: inline-block;
    background: rgba(212,168,67,0.1);
    color: var(--gold);
    font-size: 12px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 4px;
    margin-bottom: 40px;
    border: 1px solid rgba(212,168,67,0.25);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(44px, 6.5vw, 88px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -1px;
    color: var(--white);
    margin-bottom: 32px;
}

.hero h1 em { font-style: normal; }

.gradient-text {
    background: linear-gradient(90deg, var(--gold) 0%, #F0D080 50%, var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s linear infinite;
}

@keyframes gradient-shift {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero p {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--gray-tx);
    max-width: 520px;
    margin: 0 0 48px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ─── УСЛУГИ ─── */
.services { background: var(--bg2); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.service-card {
    background: var(--bg2);
    padding: 48px 40px;
    transition: background 0.3s;
    border: none;
}

.service-card:hover { background: var(--bg3); }

.service-icon {
    width: 52px;
    height: 52px;
    background: rgba(212,168,67,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 28px;
    color: var(--gold);
    border: 1px solid rgba(212,168,67,0.18);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--white);
}

.service-card p { font-size: 15px; color: var(--gray-tx); line-height: 1.7; }

/* ─── ЦИФРЫ — editorial style ─── */
.stats-head { margin-bottom: 56px; }
.stats-head .section-title { color: var(--white); }
.stats-head .section-label { color: var(--gold); }
.stats { background: var(--bg); overflow: hidden; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    position: relative;
}

.stats-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(201,164,101,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.stat-item {
    padding: 64px 40px;
    position: relative;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-item::before {
    content: '';
    position: absolute;
    bottom: 0; left: 40px; right: 40px;
    height: 1px;
    background: var(--border);
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(56px, 7vw, 96px);
    font-weight: 800;
    letter-spacing: -4px;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--gold) 0%, #F5D98A 50%, var(--gold2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-suffix {
    font-size: 0.45em;
    letter-spacing: 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-image: linear-gradient(135deg, var(--gold) 0%, #F5D98A 100%);
}

.stat-label {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.stat-sub { font-size: 13px; color: var(--gray-tx); line-height: 1.6; }

/* ─── ПРОЦЕСС — modern numbered cards ─── */
.process { background: var(--paper); overflow: hidden; }
.process .section-title { color: var(--ink); }
.process .section-sub   { color: var(--ink-2); }
.process .section-label { color: var(--gold-ink); }

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 64px;
    background: rgba(26,26,24,0.06);
    border-radius: 20px;
    overflow: hidden;
}

.process-step {
    background: var(--paper);
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s;
}
.process-step:hover { background: var(--paper-2); }

.step-num-bg {
    position: absolute;
    top: -10px; right: 16px;
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 800;
    color: rgba(26,26,24,0.04);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -6px;
}

.step-num {
    width: 44px; height: 44px;
    background: #1A1A18;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 28px;
}

.step-icon {
    font-size: 28px;
    color: var(--gold);
    margin-bottom: 16px;
}

.process-step h4 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1A1A18;
    letter-spacing: -0.3px;
}
.process-step p { font-size: 15px; color: rgba(26,26,24,0.6); line-height: 1.7; }

/* ─── ОТЗЫВЫ ─── */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--bg2);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.review-card:hover { border-color: rgba(212,168,67,0.25); }

.review-stars { color: var(--gold); font-size: 16px; margin-bottom: 24px; letter-spacing: 3px; }
.review-text { font-size: 16px; line-height: 1.8; margin-bottom: 32px; color: rgba(255,255,255,0.8); }

.review-author { display: flex; align-items: center; gap: 14px; }

.review-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1A3A6A, var(--gold));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 16px;
}

.review-avatar--photo { padding: 0; overflow: hidden; }
.review-avatar--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.review-name { font-size: 15px; font-weight: 600; color: var(--white); }
.review-company { font-size: 13px; color: var(--gray-tx); }

/* ─── СЕКЦИИ: ТЁМНЫЕ И СВЕТЛЫЕ ─── */
.dark-section { background: var(--bg); }

.light-section {
    background: var(--paper);
    color: var(--ink-1);
}
.why-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}
.why-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 32px;
}
.why-text {
    font-family: var(--font-read);
    font-size: var(--read-size);
    line-height: var(--read-line);
    color: var(--ink-1);
    max-width: var(--measure);
    margin: 0 auto;
}
.why-text p { margin-bottom: 16px; }
.why-text p:last-child { margin-bottom: 0; }
.why-text h2, .why-text h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; color: var(--ink); margin: 1.8em 0 0.6em; line-height: 1.2; }
.why-text h2 { font-size: clamp(24px, 2.6vw, 31px); }
.why-text h3 { font-size: 21px; }
.light-section .section-title { color: var(--ink); }
.light-section .section-sub   { color: var(--ink-2); }
.light-section .section-label { color: var(--gold-ink); }
.light-section .process-step h4 { color: var(--ink); }
.light-section .process-step p  { color: var(--ink-2); }
.light-section .step-num { background: var(--paper); border-color: var(--gold-line); color: var(--gold-ink); }
.light-section .process-steps::before { background: rgba(26,26,24,0.1); }

/* ─── КНОПКИ ─── */
.btn-gold {
    background: var(--gold);
    color: #111116;
}
.btn-gold:hover {
    background: var(--gold2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201,164,101,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(245,240,232,0.25);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-full { width: 100%; text-align: center; }

/* ─── HERO: контакты и подзаголовок ─── */
.hero-sub {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--gray-tx);
    max-width: 520px;
    margin: 0 0 40px;
    line-height: 1.7;
}

.hero-contacts {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.hero-contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-tx);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}
.hero-contact-link:hover { color: var(--gold); }
.hero-contact-link i { font-size: 16px; }

.hero-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ─── БЛОК ЦЕЛЕЙ (virtuzone accordion) ─── */
.goals-grid {
    display: flex;
    gap: 12px;
    height: 520px;
}

.goal-card {
    position: relative;
    flex: 1;
    border-radius: 16px;
    text-decoration: none;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 60px;
}

.goals-grid:has(.goal-card:hover) .goal-card:not(:hover) { flex: 0.35; }
.goal-card:hover { flex: 3.5; }

.goal-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,8,12,0.9) 0%, rgba(8,8,12,0.45) 50%, rgba(8,8,12,0.2) 100%);
    transition: background 0.4s;
}
.goal-card:hover .goal-card-overlay {
    background: linear-gradient(to top, rgba(8,8,12,0.92) 0%, rgba(8,8,12,0.5) 60%, rgba(8,8,12,0.25) 100%);
}

/* Вертикальный заголовок — виден когда карточка свёрнута */
.goal-title-v {
    position: absolute;
    top: 32px;
    bottom: 32px;
    right: 22px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: normal;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.2s;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.goal-card:hover .goal-title-v { opacity: 0; pointer-events: none; }

/* Горизонтальный контент — виден при раскрытии */
.goal-card-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 36px;
    z-index: 2;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s 0.15s, transform 0.3s 0.15s;
    pointer-events: none;
}
.goal-card:hover .goal-card-body {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.goal-icon-sm {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 18px;
}

.goal-card h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
    white-space: normal;
}

.goal-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 320px;
}
.goal-intro {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 320px;
}
.goal-intro p { font-size: inherit; color: inherit; line-height: inherit; margin: 0 0 8px; max-width: none; }
.goal-intro ul, .goal-intro ol { padding-left: 18px; margin: 0 0 8px; }
.goal-intro li { margin-bottom: 4px; }
.goal-intro strong { color: rgba(255,255,255,0.9); }

.goal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: #111116;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 6px;
    transition: background 0.2s;
}
.goal-card:hover .goal-btn:hover { background: var(--gold2); }

/* ─── ЦИФРЫ: подпись ─── */
.stat-sub { font-size: 13px; color: var(--gray-tx); margin-top: 8px; opacity: 0.7; }

/* ─── CTA с формой ─── */
.cta {
    background: var(--bg2);
    padding: 120px 32px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.cta::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201,164,101,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.cta-text .section-label { color: var(--gold); }

.cta-text h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    color: var(--white);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.cta-text p { font-size: 18px; color: var(--gray-tx); line-height: 1.65; margin-bottom: 32px; }

.cta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--gray-tx);
}

.cta-list li i { color: var(--gold); font-size: 13px; }

.cta-form {
    background: var(--bg3);
    border-radius: 16px;
    padding: 48px 40px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-tx); }
.form-group select { color: var(--gray-tx); cursor: pointer; }
.form-group select option { background: var(--bg2); color: var(--white); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-note {
    font-size: 12px;
    color: var(--gray-tx);
    text-align: center;
    opacity: 0.7;
    margin-top: 4px;
}

.form-note a { color: var(--gold); text-decoration: none; }

@media (max-width: 900px) {
    .cta-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
    .goals-grid { flex-direction: column; height: auto; }
    .goal-intro { display: none !important; }
    .goal-card { flex: none !important; min-height: 220px; }
    .goal-card-overlay {
        background: linear-gradient(to bottom, rgba(8,8,12,0.88) 0%, rgba(8,8,12,0.35) 55%, rgba(8,8,12,0.65) 100%);
    }
    .goal-title-v { display: none; }
    .goal-card-body { opacity: 1; transform: none; pointer-events: auto; padding: 16px 20px; }
    .goal-card h3 { font-size: 18px; white-space: normal; text-shadow: 0 2px 12px rgba(0,0,0,0.7); line-height: 1.25; }
    .goal-btn { padding: 8px 16px; font-size: 13px; }
    .goal-icon-sm { display: none; }
    .hero-contacts { gap: 16px; }
}

/* ─── ПОДВАЛ ─── */
footer {
    background: #0D0D0D;
    color: white;
    padding: 80px 32px 48px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 56px;
}

.footer-slogan {
    font-size: 14px;
    color: var(--gray-tx);
    margin-top: 18px;
    line-height: 1.7;
    max-width: 260px;
}

.footer-license {
    font-size: 12px;
    color: rgba(201,164,101,0.5);
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.footer-social-btn {
    width: 38px; height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--gray-tx);
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.footer-social-btn:hover { background: rgba(201,164,101,0.15); color: var(--gold); }
.footer-social-btn--wa:hover { background: rgba(37,211,102,0.15); color: #25D366; }

.footer-col h5 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gray-tx);
    margin-bottom: 24px;
    opacity: 0.6;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }

.footer-col a {
    color: rgba(245,240,232,0.4);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col a i { font-size: 13px; opacity: 0.7; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(245,240,232,0.3);
}

.footer-bottom a {
    color: rgba(245,240,232,0.3);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ─── COOKIE BANNER ─── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 680px;
    width: calc(100% - 48px);
    padding: 16px 20px;
    background: rgba(17,25,41,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212,168,67,0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s;
}
.cookie-banner--show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.cookie-banner p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    flex: 1;
}
.cookie-btn {
    flex-shrink: 0;
    padding: 8px 20px;
    background: var(--gold);
    color: var(--bg);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.cookie-btn:hover { background: #E8C060; }
@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ─── ВНУТРЕННИЕ СТРАНИЦЫ ─── */
.hero h1 { color: var(--white); }
/* .page-text здесь объявлялся вторично и конфликтовал с блоком
   «КОНТЕНТНАЯ ОБЛАСТЬ» ниже. Цвет ссылок был var(--gold) = 2.07:1
   на светлом фоне, то есть ссылки были практически не видны.
   Всё описание .page-text теперь в одном месте — ниже. */

/* ─── АНИМАЦИИ СКРОЛЛА ─── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── БУРГЕР ─── */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

.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;
    position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    overflow-y: auto;
    background: rgba(17,17,22,0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: clamp(16px, 5vh, 40px);
    padding-bottom: 32px;
    gap: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mobile-menu ul { list-style: none; width: 100%; padding: 0 24px; margin-bottom: 16px; }
.mobile-menu > ul > li:not(.mob-has-drop) { border-bottom: 1px solid rgba(255,255,255,0.06); }

.mobile-menu a {
    font-family: var(--font-display);
    font-size: clamp(19px, 4.5vw, 24px);
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
    display: block;
    padding: 13px 0;
}

.mobile-menu a:hover { opacity: 1; color: var(--gold); }

/* ─── КАРТОЧКИ ПОДУСЛУГ (страница-направление) ─── */
.svc-direction { padding: 60px 32px 80px; background: var(--bg2); }
.svc-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.svc-direction .svc-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    color: var(--white);
}
.svc-direction .svc-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(201,164,101,0.15);
}
.svc-card-icon { font-size: 28px; color: var(--gold); }
.svc-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.25;
}
.svc-card-text { font-size: 15px; color: var(--gray-tx); line-height: 1.6; flex: 1; }
.svc-card-arrow { color: var(--gold); font-size: 14px; font-weight: 600; margin-top: 4px; }
.page-hero-cta { margin-top: 32px; }
@media (max-width: 640px) {
    .svc-cards { grid-template-columns: 1fr; }
    .svc-direction { padding: 40px 20px 60px; }
}

/* ─── МОБИЛЬНОЕ МЕНЮ — второй уровень ─── */
.mob-has-drop {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mob-has-drop > a {
    flex: 1;
    padding-right: 0;
    border-bottom: none;
}
.mob-drop-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
    color: var(--white);
    opacity: 0.6;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.25s, opacity 0.2s, background 0.2s;
    font-family: inherit;
}
.mob-drop-btn:hover { background: rgba(201,164,101,0.12); opacity: 1; }
.mob-has-drop.open .mob-drop-btn { transform: rotate(180deg); opacity: 1; background: rgba(201,164,101,0.12); }
.mobile-menu .mob-sub-list {
    display: none;
    list-style: none;
    flex-basis: 100%;
    margin: 0;
    padding: 4px 0 8px 16px;
    border-left: 2px solid rgba(201,164,101,0.2);
    margin-left: 0;
    margin-bottom: 8px;
}
.mob-has-drop.open .mob-sub-list { display: block; }
.mob-sub-list li { margin-bottom: 0; }
.mob-sub-list a {
    font-size: clamp(15px, 3.5vw, 17px) !important;
    opacity: 0.65 !important;
    padding: 10px 0 !important;
}
.mob-has-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.mob-has-sub > a {
    flex: 1;
    padding-right: 0;
}
.mob-sub-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    -webkit-appearance: none; appearance: none;
    color: var(--white); opacity: 0.45;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.25s, opacity 0.2s;
    font-family: inherit;
}
.mob-has-sub.open .mob-sub-btn { transform: rotate(180deg); opacity: 0.8; }
.mob-sub-sub-list {
    display: none;
    list-style: none;
    flex-basis: 100%;
    margin: 0 0 6px;
    padding: 4px 0 4px 12px;
    border-left: 1px solid rgba(201,164,101,0.15);
}
.mob-has-sub.open .mob-sub-sub-list { display: block; }
.mob-sub-sub-list li { margin-bottom: 0 !important; }
.mob-sub-sub-list a {
    font-size: clamp(13px, 3vw, 15px) !important;
    opacity: 0.5 !important;
    padding: 8px 0 !important;
    display: block;
}

.mobile-phone {
    font-family: 'Manrope', sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    color: var(--gold) !important;
    opacity: 1 !important;
    text-decoration: none;
}

/* ─── АДАПТИВ ─── */
@media (max-width: 1024px) {
    .nav-phone-text { display: none; }
}

@media (max-width: 768px) {
    .nav-phones { display: none; }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    nav { top: 0; padding-top: env(safe-area-inset-top, 0px); }
    .nav-inner { padding: 0 20px; height: 64px; }
    section { padding: 80px 20px; }
    main > section:first-child { padding-top: calc(140px + env(safe-area-inset-top, 0px)); }
    .hero { padding: 120px 20px 80px; min-height: 85vh; }
    .hero h1 { font-size: clamp(36px, 9vw, 56px); }
    .nav-links { display: none; }
    .nav-actions { display: none; }
    .burger { display: flex; padding: 8px; }
    .mobile-menu { display: flex; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .process-steps::before { display: none; }
    .process-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .services-grid { gap: 0; }
    .messengers { display: none; }

    /* типографика на мобильных */
    body { font-size: 17px; }
    .page-text, .why-text, .text-content, .route-text {
        font-size: var(--read-size-m);
        line-height: 1.68;
    }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ─── ТЕКСТОВЫЙ БЛОК ─── */
.text-content {
    max-width: var(--measure);
    margin: 56px auto 0;
    font-family: var(--font-read);
    font-size: var(--read-size);
    line-height: var(--read-line);
    color: var(--tx-dark-2);
}
.text-content p { margin-bottom: 1.15em; }
.text-content h2, .text-content h3 { color: var(--white); margin: 1.8em 0 0.6em; font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; }

/* ─── DROPDOWN МЕНЮ ─── */
.nav-links .has-dropdown { position: relative; }

.nav-arrow {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.6;
    transition: transform 0.2s;
    display: inline-block;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: rgba(17,25,41,0.97);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding-top: 16px;
    padding-bottom: 8px;
    list-style: none;
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    z-index: 200;
}

.nav-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: rgba(255,255,255,0.98);
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.nav-dropdown li a:hover {
    color: var(--gold);
    background: rgba(212,168,67,0.06);
}

.has-dropdown:hover .nav-dropdown { display: block; }
.has-dropdown:hover .nav-arrow { transform: rotate(180deg); opacity: 1; }

/* Мегадропдаун с группировкой */
.nav-dropdown--mega { min-width: 260px; }
.nav-group-sub { list-style: none; }
.nav-group > a {
    color: var(--gold) !important;
    font-size: 11px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 14px !important;
    padding-bottom: 8px !important;
}
.nav-group:first-child > a { border-top: none; margin-top: 0; padding-top: 16px !important; }
.nav-group-sub li a {
    padding: 7px 20px 7px 30px !important;
    font-size: 13px !important;
    color: rgba(255,255,255,0.8) !important;
    white-space: nowrap;
}
.nav-group-sub li a:hover { color: var(--gold) !important; background: rgba(212,168,67,0.05) !important; }

/* ─── NAV ACTIONS: переключатель языков + CTA ─── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    border: 1px solid rgba(201,164,101,0.2);
    border-radius: 3px;
    overflow: hidden;
}

.lang-btn {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(245,240,232,0.4);
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
    line-height: 1.6;
}
.lang-btn:hover { color: var(--white); }
.lang-active {
    background: var(--gold);
    color: #111116 !important;
}

/* ─── МОБИЛЬНЫЕ КОНТАКТЫ ─── */
.mobile-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.mobile-messengers {
    display: flex;
    gap: 16px;
}

.mobile-messengers a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--white) !important;
    opacity: 1 !important;
    text-decoration: none;
    transition: background 0.2s;
}
.mobile-messengers a:hover { background: rgba(201,164,101,0.15); }

.mobile-lang {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.mobile-sub a {
    padding-left: 32px !important;
    font-size: 15px !important;
    opacity: 0.7;
}

/* ─── FLOAT КНОПКИ МЕССЕНДЖЕРОВ ─── */
.messengers {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.messenger-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.messenger-btn:hover { transform: scale(1.1); }
.messenger-btn.tg { background: #229ED9; }
.messenger-btn.wa { background: #25D366; }

/* ─── ВНУТРЕННИЕ СТРАНИЦЫ ─── */
.page-hero {
    padding: 160px 32px 80px;
    background: var(--bg);
    position: relative;
    min-height: 42vh;
    display: flex;
    align-items: flex-end;
}

.page-hero::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 560px; height: 560px;
    background: radial-gradient(circle, rgba(201,164,101,0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.page-hero-inner {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    position: static;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 10pt;
    font-family: var(--font-ui);
    letter-spacing: 0.01em;
    color: rgba(245,240,232,0.5);
    flex-wrap: wrap;
    background: none;
    border: none;
    z-index: auto;
}

.breadcrumb a {
    color: rgba(245,240,232,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(245,240,232,0.3); }
.breadcrumb-curr { color: rgba(245,240,232,0.95); font-weight: 400; }

.page-hero-icon {
    width: 56px; height: 56px;
    background: rgba(201,164,101,0.1);
    border: 1px solid rgba(201,164,101,0.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--gold);
    margin-bottom: 24px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 20px;
}

.page-hero-intro {
    font-size: 19px;
    color: var(--tx-dark-2);
    max-width: 640px;
    line-height: 1.65;
}

/* ─── КОНТЕНТНАЯ ОБЛАСТЬ ─── */
.page-body {
    padding: 80px 32px 100px;
    background: var(--paper);
}

.page-body-inner {
    max-width: 860px;
    margin: 0 auto;
}
.page-body-inner--wide { max-width: 1280px; }

.page-with-photo {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: start;
}
.page-photo img {
    width: 100%;
    border-radius: 12px;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
}
img.page-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin-bottom: 40px;
}
.photo-caption {
    margin: 12px 0 0;
    font-size: 15px;
    color: var(--ink-3);   /* было #888 = 3.14:1 */
    text-align: center;
    line-height: 1.4;
}
.photo-quote {
    margin: 20px 0 0;
    padding: 16px 20px;
    border-left: 3px solid var(--gold);
    background: rgba(201,164,101,0.07);
    border-radius: 0 8px 8px 0;
    font-family: var(--font-read);
    font-size: 21px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink-1);
}

.page-text {
    font-family: var(--font-read);
    font-size: var(--read-size);
    line-height: var(--read-line);
    color: var(--ink-1);
    max-width: var(--measure);
    margin-left: auto;
    margin-right: auto;
}

.page-text p  { margin-bottom: 1.15em; }
.page-text h2 { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 31px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); margin: 1.9em 0 0.6em; scroll-margin-top: calc(var(--nav-h) + 24px); }
.page-text h3 { font-family: var(--font-display); font-size: 21px; font-weight: 400; line-height: 1.25; color: var(--ink); margin: 1.7em 0 0.5em; scroll-margin-top: calc(var(--nav-h) + 24px); }
.page-text ul { margin: 0 0 1.3em 1.2em; }
.page-text li { margin-bottom: 0.55em; }
.page-text strong { font-weight: 600; color: var(--ink); }
.page-text a.btn { color: #111116; text-decoration: none; }
.page-text a.btn:hover { color: #111116; }
.page-text .btn-wrap { margin: 2em 0; }

/* Ссылки в тексте. Подчёркиваются только внутри абзацев и списков —
   ссылки-блоки (карточки, ячейки карты маршрута) не трогаем. */
.page-text p > a:not(.btn),
.page-text li > a:not(.btn) {
    color: var(--gold-ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
    text-decoration-color: var(--gold-line);
    transition: text-decoration-color 0.18s;
}
.page-text p > a:not(.btn):hover,
.page-text li > a:not(.btn):hover { text-decoration-color: var(--gold-ink); }

/* FAQ аккордеон — обернуть блок в <div class="faq-accordion"> */
.faq-accordion h3 {
    font-family: var(--font-ui) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--ink) !important;
    margin: 0 !important;
    cursor: pointer;
    position: relative;
    padding: 18px 36px 18px 0 !important;
    user-select: none;
    border-bottom: 1px solid rgba(26,26,24,0.1);
    line-height: 1.4 !important;
}
.faq-accordion h3::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 300;
    color: var(--gold-ink);
    line-height: 1;
    transition: transform 0.25s;
}
.faq-accordion h3.faq-open::after { transform: translateY(-50%) rotate(45deg); }
.faq-accordion .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}
.faq-accordion .faq-answer.faq-open {
    max-height: 600px;
    padding: 14px 0 20px;
}
.faq-accordion .faq-answer p {
    font-family: var(--font-read) !important;
    font-size: 18px !important;
    font-style: normal !important;
    line-height: 1.6 !important;
    color: var(--ink-1) !important;
    margin-bottom: 10px !important;
}
.faq-accordion .faq-answer p:last-child { margin-bottom: 0 !important; }

/* Список с галочками — добавить class="check-list" на <ul> в исходнике редактора */
.check-list {
    list-style: none;
    margin-left: 0;
    padding: 0;
}
.check-list li {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 0.6em;
    width: 100%;
    justify-content: flex-start;   /* было center — рвался левый край */
}
.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--gold-ink);
    font-size: 13px;
    flex-shrink: 0;
}

/* ─── GRID УСЛУГ (страница service.list) ─── */
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 16px;
}

.svc-card {
    background: #F5F4F1;
    border-radius: 14px;
    padding: 36px 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.svc-card-icon {
    width: 52px; height: 52px;
    background: rgba(201,164,101,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #8A6A2E;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.svc-card h3 {
    font-family: var(--font-display);
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 400;
    color: #1A1A18;
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.svc-card p {
    font-family: var(--font-ui);
    font-size: 16px;
    color: rgba(26,26,24,0.72);
    line-height: 1.7;
    flex: 1;
    margin: 0 0 24px;
}

.svc-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #8A6A2E;
    letter-spacing: 0.3px;
}

/* ─── КАТАЛОГ УСЛУГ: ГРУППЫ ─── */
.svc-group {
    margin-bottom: 56px;
}
.svc-group:last-child { margin-bottom: 0; }

.svc-group-head {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.svc-group-icon {
    width: 48px; height: 48px;
    background: rgba(201,164,101,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #8A6A2E;
    flex-shrink: 0;
}
.svc-group-info { flex: 1; min-width: 0; }
.svc-group-info h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 4px;
    color: #1A1A18;
}
.svc-group-info h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.svc-group-info h2 a:hover { color: #8A6A2E; }
.svc-group-info p {
    font-size: 15px;
    color: rgba(26,26,24,0.55);
    margin: 0;
}
.svc-group-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #8A6A2E;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.svc-group-link:hover { opacity: 0.7; }

@media (max-width: 768px) {
    .svc-group-link { display: none; }
    .svc-group-info h2 { font-size: 20px; }
}

/* ─── МИНИ CTA НА ВНУТРЕННИХ СТРАНИЦАХ ─── */
.page-cta {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 72px 32px;
    text-align: center;
}

.page-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 400;
    letter-spacing: -1px;
    color: var(--white);
    margin-bottom: 16px;
}

.page-cta p {
    font-size: 18px;
    color: var(--gray-tx);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.page-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .services-page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .page-hero { padding: 120px 20px 60px; }
    .page-body  { padding: 56px 20px 72px; }
    .page-cta   { padding: 56px 20px; }
    .services-page-grid { grid-template-columns: 1fr; }
    .breadcrumb { display: none; }
    .page-with-photo { grid-template-columns: 1fr; gap: 32px; }
    .page-photo img { max-height: none; aspect-ratio: auto; object-fit: contain; }
}

/* ─── ФОРМА: статусы ─── */
.cta-success {
    background: rgba(201,164,101,0.08);
    border: 1px solid rgba(201,164,101,0.25);
    border-radius: 12px;
    padding: 48px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-success-icon {
    font-size: 52px;
    color: var(--gold);
}

.cta-success h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    color: var(--white);
}

.cta-success p {
    font-size: 16px;
    color: var(--gray-tx);
    max-width: 320px;
    line-height: 1.6;
    margin: 0;
}

.form-error {
    background: rgba(220, 80, 80, 0.12);
    border: 1px solid rgba(220, 80, 80, 0.3);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #F08080;
    margin-bottom: 16px;
}

/* ─── POPUP ФОРМА ─── */
.popup-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(10,10,14,0.75);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
}
.popup-overlay.popup-open { opacity: 1; pointer-events: all; }

.popup-modal {
    background: #1A1A20;
    border: 1px solid rgba(201,164,101,0.18);
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%; max-width: 460px;
    position: relative;
    transform: translateY(24px);
    transition: transform .3s;
}
.popup-overlay.popup-open .popup-modal { transform: translateY(0); }

.popup-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.06); border: none; cursor: pointer;
    color: rgba(245,240,232,0.5); font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
}
.popup-close:hover { background: rgba(201,164,101,0.15); color: var(--gold); }

.popup-head { margin-bottom: 24px; }
.popup-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.popup-head h3 { font-size: 22px; font-weight: 400; color: var(--white); margin-bottom: 6px; }
.popup-head p  { font-size: 14px; color: rgba(245,240,232,0.5); }

.popup-form .form-group { margin-bottom: 12px; }
.popup-form input,
.popup-form select { background: rgba(255,255,255,0.05); border-color: rgba(201,164,101,0.2); color: var(--white); }
.popup-form input::placeholder { color: rgba(245,240,232,0.35); }
.popup-form select option { background: #1A1A20; color: var(--white); }

.popup-check {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 14px 0 18px; cursor: pointer;
    font-size: 13px; color: rgba(245,240,232,0.5); line-height: 1.5;
}
.popup-check input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; accent-color: var(--gold); width: 15px; height: 15px; }
.popup-check a { color: var(--gold); }

.popup-error {
    background: rgba(220,80,80,0.1); border: 1px solid rgba(220,80,80,0.3);
    border-radius: 6px; padding: 10px 14px; font-size: 13px; color: #F08080;
    margin-bottom: 14px;
}

.popup-success { text-align: center; padding: 20px 0; }
.popup-success-icon { font-size: 48px; color: var(--gold); margin-bottom: 16px; }
.popup-success h4 { font-size: 20px; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.popup-success p  { font-size: 14px; color: rgba(245,240,232,0.5); }

.btn-outline-dark {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 6px; font-size: 14px; font-weight: 600;
    border: 1.5px solid rgba(26,26,32,0.35); color: #1A1A20 !important;
    text-decoration: none; transition: background .2s, color .2s;
}
.btn-outline-dark:hover { background: #1A1A20; color: var(--white) !important; }

/* ─── ТЁМНЫЙ FAQ (на главной) ─── */
.faq-list--dark .faq-item { background: rgba(255,255,255,0.04); border-color: rgba(201,164,101,0.12); }
.faq-list--dark .faq-question { color: var(--white); }
.faq-list--dark .faq-q-icon { background: rgba(255,255,255,0.06); border-color: rgba(201,164,101,0.2); color: rgba(245,240,232,0.5); }
.faq-list--dark .faq-item.open .faq-q-icon { background: var(--gold); color: #111116; }
.faq-list--dark .faq-answer-inner { color: rgba(245,240,232,0.6); }
.faq-list--dark .faq-answer-inner a { color: var(--gold); }

/* ─── FAQ АККОРДЕОН ─── */
.faq-group { max-width: 860px; margin: 0 auto 48px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: #1A1A18;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(201,164,101,0.35);
}
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; }
.faq-group .faq-list { margin: 0; max-width: none; }

.faq-item {
    background: #fff;
    border: 1px solid #E8E4DC;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%; text-align: left; cursor: pointer;
    padding: 22px 28px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    background: none; border: none;
    font-size: 16px; font-weight: 600; color: #1A1A20;
    line-height: 1.4;
    transition: color .2s;
}
.faq-question:hover { color: var(--gold); }

.faq-q-icon {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    background: var(--paper-2); border: 1px solid rgba(23,24,26,0.13);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--ink-2); transition: background .25s, color .25s, transform .25s;
}
.faq-item.open .faq-q-icon { background: var(--gold); color: #fff; transform: rotate(45deg); }

.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease, padding .25s;
}
.faq-answer-inner {
    padding: 0 28px 22px;
    font-size: 15px; line-height: 1.7; color: #555;
}
.faq-answer-inner p { margin: 0 0 12px; }
.faq-answer-inner p:last-child { margin: 0; }

/* ─── КЕЙСЫ — GRID КАРТОЧЕК ─── */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.case-card {
    background: #F5F4F1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    display: flex; flex-direction: column;
    transition: box-shadow .25s, transform .25s;
    text-decoration: none;
    color: inherit;
}
.case-card:hover { box-shadow: 0 16px 48px rgba(0,0,0,0.12); transform: translateY(-4px); }

.case-card-photo {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #1A1A20;
}
.case-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-card-no-photo {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,164,101,0.08);
    font-size: 40px; color: rgba(201,164,101,0.5);
}
.case-card-photo-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
}
.case-card-photo-title {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 16px 20px;
    color: #fff; font-size: 17px; font-weight: 700; line-height: 1.3;
}

.case-card-body { padding: 28px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.case-card-title {
    font-family: var(--font-display);
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 400;
    color: #1A1A18;
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.case-card-intro { font-family: var(--font-ui); font-size: 16px; line-height: 1.7; color: rgba(26,26,24,0.72); flex: 1; margin: 0 0 24px; }
.case-card-more {
    margin-top: 18px;
    color: var(--gold); font-weight: 600; font-size: 14px;
    display: inline-flex; align-items: center; gap: 6px;
}

/* ─── МАРШРУТЫ ─── */
.routes-section { padding: 96px 32px; }

.routes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.route-card {
    background: #F5F4F1;
    border-radius: 14px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: transform 0.25s, box-shadow 0.25s;
}
.route-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.route-card-icon {
    width: 52px; height: 52px;
    background: rgba(201,164,101,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #8A6A2E;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.route-card h3 {
    font-family: var(--font-display);
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 400;
    color: #1A1A18;
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.route-card p {
    font-family: var(--font-ui);
    font-size: 16px;
    color: rgba(26,26,24,0.72);
    line-height: 1.7;
    flex: 1;
    margin: 0 0 24px;
}
.route-card-rte {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(26,26,24,0.75);
    flex: 1;
    margin: 0 0 24px;
}
.route-card-rte p { margin: 0 0 10px; }
.route-card-rte p:last-child { margin-bottom: 0; }
.route-card-rte strong,
.route-card-rte b { font-weight: 700; color: #1A1A18; }
.route-card-rte em,
.route-card-rte i { font-style: italic; }
.route-card-rte ul { padding-left: 18px; margin: 0 0 10px; }
.route-card-rte ul li { margin-bottom: 4px; }
.route-card-btn { margin-top: auto; align-self: flex-start; }
/* CTA-карточка «Не нашли маршрут» */
.route-card--cta {
    background: linear-gradient(135deg, #F5F0E6 0%, #EDE8DC 100%);
    border: 1px solid rgba(201,164,101,0.25);
}
.route-card--cta .route-card-icon {
    background: rgba(201,164,101,0.18);
    color: #8A6A2E;
}
/* Золотая ссылка-кнопка (не попап) */
.route-card-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: #8A6A2E;
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    margin-top: auto;
    transition: color .2s, gap .2s;
}
.route-card-link:hover { color: #C9A465; gap: 10px; }
/* На странице routes.list — та же сетка */
.routes-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}

@media (max-width: 1024px) {
    .routes-grid { grid-template-columns: repeat(2, 1fr); }
    .routes-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .routes-grid { grid-template-columns: 1fr; }
    .routes-page-grid { grid-template-columns: 1fr; }
    .routes-section { padding: 56px 20px; }
}

@media(max-width: 900px) {
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 600px) {
    .cases-grid { grid-template-columns: 1fr; }
    .faq-question { padding: 18px 20px; font-size: 15px; }
    .faq-answer-inner { padding: 0 20px 18px; }
}


/* ════════════════════════════════════════════════════════════════════════
   СТРАНИЦА МАРШРУТА
   Этого блока в файле не было — маршрут рендерился обычным .page-text.
   Разметка страницы:

   <div class="route-stepbar" id="stepbar">
     <div class="route-stepbar__inner" id="stepbarInner"></div>
     <div class="route-stepbar__progress" id="progress"></div>
   </div>
   ...
   <article class="page-text route-text"> … </article>
   ════════════════════════════════════════════════════════════════════════ */

.route-text {
    max-width: var(--measure);
    font-family: var(--font-read);
    font-size: var(--read-size);
    line-height: var(--read-line);
    color: var(--ink-1);
}
.route-text p { margin-bottom: 1.15em; }
.route-text strong { font-weight: 600; color: var(--ink); }

/* маркеры: тонкое тире вместо кружка — меньше визуального шума */
.route-text ul { list-style: none; margin: 0 0 1.4em 0; padding: 0; }
.route-text ul li {
    padding: 4px 0 4px 24px;
    position: relative;
    color: var(--ink-1);
    margin-bottom: 0;
}
.route-text ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.85em;
    width: 9px;
    height: 2px;
    background: var(--gold-ink);
}


/* ─── ЗАГОЛОВКИ ШАГОВ ────────────────────────────────────────────────────
   Разметка:
   <h2 class="step-h" id="…">
     <span class="step-badge">Шаг 01</span>
     <span class="step-title">Заголовок</span>
   </h2>
   Правило продублировано на сам h2 — на случай, если CMS отдаёт
   заголовок без вложенного span.                                        */
.route-text h2.step-h,
.route-text h2:not(.step-h),
.route-text [id] {
    scroll-margin-top: calc(var(--nav-h) + var(--stepbar-h) + 16px);
}

.route-text h2.step-h {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid rgba(23,24,26,0.12);
    padding-top: 48px;
    margin: 60px 0 22px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(25px, 2.7vw, 33px);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.route-text h2.step-h .step-title {
    display: block;
    font: inherit;
    color: inherit;
    max-width: 22ch;
}
.route-text h2.step-h .step-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--gold-ink);
    
    padding: 7px 15px;
}
.route-text h2.step-h .step-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-ink);
    flex-shrink: 0;
}

.route-text h2:not(.step-h) {
    font-family: var(--font-display);
    font-size: clamp(24px, 2.6vw, 31px);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--ink);
    margin: 2.2em 0 0.6em;
}


/* ─── КАРТА МАРШРУТА ─────────────────────────────────────────────────────
   Индекс, а не сетка карточек. Маршрут — последовательность,
   и читаться он должен сверху вниз, а не как матрица 3×2.
   Масштабируется на любое число шагов без перестроения.

   Разметка (или сборка скриптом из <ol> в .route-summary):
   <div class="routemap-grid">
     <a class="routemap-cell" href="#…">
       <span class="routemap-num">01</span>
       <span class="routemap-label">Заголовок шага</span>
       <span class="routemap-note">Короткое пояснение</span>   ← необязательно
     </a>
   </div>                                                                */
.routemap-grid {
    display: block;
    border-top: 1px solid var(--ink);
    margin: 0 0 22px;
}

.routemap-cell {
    display: grid;
    grid-template-columns: 3rem 1fr 1.5rem;
    column-gap: 20px;
    row-gap: 4px;
    align-items: baseline;
    padding: 19px 0 20px;
    border-bottom: 1px solid rgba(23,24,26,0.13);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: padding-left 0.22s cubic-bezier(.4,.1,.2,1);
}
.routemap-cell::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold-ink);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.22s cubic-bezier(.4,.1,.2,1);
}
.routemap-cell::after {
    content: '→';
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    font-family: var(--font-ui);
    font-size: 17px;
    color: var(--ink-3);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.22s, transform 0.22s;
}
.routemap-cell:hover { padding-left: 10px; }
.routemap-cell:hover::before,
.routemap-cell.is-current::before { transform: scaleY(1); }
.routemap-cell:hover::after { opacity: 1; transform: none; }

.routemap-num {
    grid-column: 1;
    grid-row: 1 / span 2;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: var(--gold-ink);
}
.routemap-label {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.018em;
    color: var(--ink);
    max-width: 26ch;
}
.routemap-note {
    grid-column: 2;
    grid-row: 2;
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink-2);
    max-width: 40ch;
}


/* ─── СВОДКА «ВЕСЬ ПУТЬ» ─────────────────────────────────────────────────
   Без фоновой панели и рамки: карта уже структурирована линиями,
   ещё один контейнер вокруг неё давал коробку в коробке.               */
.route-text .route-summary {
    margin: 40px 0 52px;
}
.route-text .route-summary > h2 {
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 14px;
    padding: 0 0 14px;
    border: 0;
    line-height: 1.2;
}
.route-text .route-summary > p {
    font-family: var(--font-ui);
    font-size: 15px;
    font-style: normal;
    line-height: 1.55;
    color: var(--ink-2);
    margin: 22px 0 0;
    max-width: var(--measure);
}

/* Запасной вариант: если скрипт не собрал карту и остался обычный <ol> */
.route-text .route-summary ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: route-step;
    border-top: 1px solid var(--ink);
}
.route-text .route-summary ol li {
    counter-increment: route-step;
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 20px;
    align-items: baseline;
    padding: 18px 0 19px;
    border-bottom: 1px solid rgba(23,24,26,0.13);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0;
}
.route-text .route-summary ol li::before {
    content: counter(route-step, decimal-leading-zero);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--gold-ink);
}


/* ─── ЛИПКАЯ ПАНЕЛЬ ШАГОВ ────────────────────────────────────────────────
   Встаёт под шапкой. Высота шапки — в переменной --nav-h,
   она же переопределена в медиазапросе, поэтому на мобильных
   панель не отрывается от меню.                                        */
.route-stepbar {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(23,24,26,0.96);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid rgba(201,164,101,0.15);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}
.route-stepbar.is-on {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.route-stepbar__inner {
    max-width: 900px;
    margin: 0 auto;
    height: var(--stepbar-h);
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 32px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.route-stepbar__inner::-webkit-scrollbar { display: none; }

.route-stepbar__chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    color: rgba(245,240,232,0.55);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
}
.route-stepbar__chip:hover { background: rgba(245,240,232,0.08); color: rgba(245,240,232,0.9); }
.route-stepbar__chip.is-active {
    background: rgba(201,164,101,0.15);
    color: var(--gold);
    font-weight: 600;
}
.route-stepbar__chip b {
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    opacity: 0.6;
}
.route-stepbar__chip.is-active b { opacity: 1; }

.route-stepbar__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--gold-ink);
}


/* ─── ВРЕЗКИ ─────────────────────────────────────────────────────────────
   <div class="note"><span class="note__tag">Правило</span><p>…</p></div>
   <div class="note warn"> … </div>  — для предупреждений               */
.note {
    max-width: var(--measure);
    border-left: 3px solid var(--gold-ink);
    background: var(--gold-tint);
    border-radius: 0 4px 4px 0;
    padding: 20px 24px;
    margin: 1.6em 0;
}
.note p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-1);
}
.note__tag {
    display: block;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-ink);
    margin-bottom: 9px;
}
.note.warn {
    border-left-color: #B0801F;
    background: rgba(247,240,227,0.9);
}

/* Глобальные таблицы */
.page-text table, .route-text table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}
.page-text table th, .route-text table th {
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-2);
    padding: 8px 12px;
    border-bottom: 1px solid var(--rule);
}
.page-text table td, .route-text table td {
    padding: 9px 12px;
    color: var(--ink-1);
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}
.page-text table tr:last-child td, .route-text table tr:last-child td {
    border-bottom: none;
}


/* ─── FAQ НА <details> ───────────────────────────────────────────────── */
.route-text details { border-bottom: 1px solid rgba(23,24,26,0.12); }
.route-text details summary {
    list-style: none;
    padding: 20px 40px 20px 0;
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
    cursor: pointer;
    position: relative;
    user-select: none;
}
.route-text details summary::-webkit-details-marker { display: none; }
.route-text details summary::after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 300;
    color: var(--gold-ink);
    transition: transform 0.25s;
}
.route-text details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.route-text details > *:not(summary) {
    padding: 0 0 20px;
    font-family: var(--font-read);
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-1);
}


/* ─── ВОЗВРАТ В МАРШРУТ (для страниц услуг) ──────────────────────────────
   <div class="route-back">
     <span class="route-back__pos">Шаг 03 из 06</span>
     <span class="route-back__bar"><i style="width:50%"></i></span>
     <a href="/routes/entrepreneur/">← Вернуться в маршрут</a>
   </div>                                                                */
.route-back {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    max-width: var(--measure);
    margin: 0 0 40px;
    padding: 16px 20px;
    background: var(--paper-2);
    border: 1px solid rgba(23,24,26,0.09);
    border-left: 3px solid var(--gold-ink);
    font-family: var(--font-ui);
    font-size: 15px;
}
.route-back__pos { font-weight: 600; color: var(--ink); }
.route-back__bar { flex: 1 1 90px; min-width: 70px; height: 3px; background: rgba(23,24,26,0.13); }
.route-back__bar i { display: block; height: 100%; background: var(--gold-ink); }
.route-back a { color: var(--gold-ink); text-decoration: none; }
.route-back a:hover { text-decoration: underline; }


/* ─── АДАПТИВ СТРАНИЦЫ МАРШРУТА ────────────────────────────────────────── */
@media (max-width: 768px) {
    .route-stepbar__inner { padding: 0 16px; }

    .route-text h2.step-h { padding-top: 34px; margin: 44px 0 18px; }
    .route-text .route-summary { margin: 30px 0 40px; }

    .routemap-cell { grid-template-columns: 2.4rem 1fr; column-gap: 14px; padding: 16px 0 17px; }
    .routemap-cell::after { display: none; }
    .routemap-cell:hover { padding-left: 0; }
    .routemap-label { font-size: 19px; }
    .routemap-note  { font-size: 14px; }

    .route-text .route-summary ol li { grid-template-columns: 2.4rem 1fr; column-gap: 14px; font-size: 18px; }
    .note { padding: 18px 20px; }
    .note p { font-size: 17px; }
    .page-text table, .route-text table { font-size: 12px; overflow-x: auto; display: block; }
}


/* ════════════════════════════════════════════════════════════════════════
   ДОСТУПНОСТЬ
   ════════════════════════════════════════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--gold-ink);
    outline-offset: 3px;
    border-radius: 2px;
}
nav a:focus-visible,
.topbar a:focus-visible,
.page-hero a:focus-visible,
.dark-section a:focus-visible,
footer a:focus-visible { outline-color: var(--gold2); }

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


/* ════════════════════════════════════════════════════════════════════════
   ИНЛАЙНОВЫЕ СТИЛИ ИЗ ВИЗУАЛЬНОГО РЕДАКТОРА
   Текст, вставленный из Word или старой вёрстки, тащит за собой
   style="font-size:14px" прямо в тегах. Инлайн сильнее любого
   внешнего CSS — здесь он гасится.
   ════════════════════════════════════════════════════════════════════════ */
.page-text  [style*="font-size"],
.route-text [style*="font-size"],
.why-text   [style*="font-size"],
.text-content [style*="font-size"]     { font-size: inherit !important; }

.page-text  [style*="font-family"],
.route-text [style*="font-family"],
.why-text   [style*="font-family"],
.text-content [style*="font-family"]   { font-family: inherit !important; }

.page-text  [style*="line-height"],
.route-text [style*="line-height"]     { line-height: inherit !important; }

.page-text  font[size],
.route-text font[size]                 { font-size: inherit !important; }
