/* ==============================================
   assets/css/main.css  v2.0 — REDESIGN 2025
   Концепция: Dark Premium + Glassmorphism
   Цвета: Indigo/Violet + Amber accent
   Типографика: Inter Variable fluid scale
   Анимации: scroll-driven + micro
   ============================================== */

/* -----------------------------------------------
   1. CSS ПЕРЕМЕННЫЕ — DESIGN TOKENS 2025
----------------------------------------------- */
:root {
    /* Brand */
    --p:        #6366f1;
    --p-light:  #818cf8;
    --p-dark:   #4338ca;
    --p-glow:   rgba(99,102,241,0.35);
    --accent:   #f59e0b;
    --accent2:  #fbbf24;
    --green:    #10b981;
    --green2:   #34d399;
    --red:      #f43f5e;

    /* Surfaces */
    --bg:       #f1f5f9;
    --bg2:      #e8edf5;
    --surface:  #ffffff;
    --surface2: #f8fafc;
    --glass:    rgba(255,255,255,0.72);
    --glass2:   rgba(255,255,255,0.45);

    /* Dark surfaces */
    --dark:     #0f172a;
    --dark2:    #1e293b;
    --dark3:    #0a0f1e;
    --dark-glass: rgba(15,23,42,0.85);

    /* Text */
    --text:     #0f172a;
    --text2:    #334155;
    --text3:    #64748b;
    --text4:    #94a3b8;
    --text-inv: #ffffff;

    /* Borders */
    --border:   rgba(226,232,240,0.8);
    --border2:  rgba(148,163,184,0.2);
    --border-p: rgba(99,102,241,0.25);

    /* Radius */
    --r-full:  9999px;
    --r-2xl:   24px;
    --r-xl:    20px;
    --r-lg:    16px;
    --r-md:    12px;
    --r-sm:    8px;
    --r-xs:    6px;

    /* Shadows */
    --sh-xs:   0 1px 4px rgba(0,0,0,0.06);
    --sh-sm:   0 2px 10px rgba(0,0,0,0.07);
    --sh:      0 4px 24px rgba(0,0,0,0.09);
    --sh-md:   0 8px 36px rgba(0,0,0,0.11);
    --sh-lg:   0 16px 56px rgba(0,0,0,0.14);
    --sh-p:    0 8px 32px rgba(99,102,241,0.30);
    --sh-p2:   0 4px 16px rgba(99,102,241,0.20);
    --sh-gold: 0 4px 20px rgba(245,158,11,0.25);

    /* Transitions */
    --tr:      all 0.28s cubic-bezier(.4,0,.2,1);
    --tr-fast: all 0.16s ease;
    --tr-slow: all 0.45s cubic-bezier(.4,0,.2,1);
    --tr-spring: all 0.4s
        cubic-bezier(0.34,1.56,0.64,1);

    /* Blur */
    --blur-sm: blur(8px);
    --blur:    blur(16px);
    --blur-lg: blur(32px);

    /* Header height */
    --hh:      64px;

    /* Gradients */
    --grad-hero:
        linear-gradient(
            150deg,
            #070c1a 0%,
            #0f1535 30%,
            #1a0f3a 60%,
            #0d1525 100%
        );
    --grad-p:
        linear-gradient(135deg,
            var(--p), var(--p-light)
        );
    --grad-gold:
        linear-gradient(135deg,
            #f59e0b, #fbbf24
        );
    --grad-surface:
        linear-gradient(
            180deg, #ffffff 0%, #f8fafc 100%
        );
}

/* -----------------------------------------------
   2. СБРОС И БАЗОВЫЕ СТИЛИ
----------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Inter', -apple-system,
        BlinkMacSystemFont, 'Segoe UI',
        sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Базовый отступ под хедер
       (мобильные — самые маленькие) */
    padding-top: 58px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* -----------------------------------------------
   3. TYPOGRAPHY — FLUID SCALE
----------------------------------------------- */
.tf-text-xs   { font-size: clamp(10px, 2vw, 11px); }
.tf-text-sm   { font-size: clamp(12px, 2.5vw, 13px); }
.tf-text-base { font-size: clamp(14px, 3vw, 15px); }
.tf-text-lg   { font-size: clamp(16px, 3.5vw, 18px); }

/* -----------------------------------------------
   4. ЗОЛОТЫЕ АКЦЕНТЫ — цвет текста в Hero
----------------------------------------------- */
.yi-gold {
    color: var(--accent2);
}

.yi-sky-text {
    background: linear-gradient(
        135deg, #ffc107, #ffc107
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -----------------------------------------------
   5. ХЕДЕР 2025 — Glassmorphism + blur
----------------------------------------------- */
.tf-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--hh);
    z-index: 1000;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid
        rgba(255,255,255,0.07);
    transition: var(--tr);
}

/* Тонкая акцентная линия снизу хедера */
.tf-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--p) 30%,
        var(--accent) 50%,
        var(--p-light) 70%,
        transparent 100%
    );
    opacity: 0.5;
}

.tf-header.scrolled {
    background: rgba(7, 10, 22, 0.95);
    height: calc(var(--hh) - 6px);
    box-shadow: 0 4px 32px
        rgba(0,0,0,0.35);
}

.tf-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tf-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: var(--tr);
}

.tf-header__logo:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.tf-header__logo img {
    height: 44px;
    width: auto;
    transition: var(--tr);
    /* Делаем логотип ярче на тёмном фоне */
    filter: brightness(1.1);
}

.tf-header.scrolled .tf-header__logo img {
    height: 38px;
}

/* Кнопка телефона — 2025 стиль */
.tf-header__phone {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 9px 20px;
    border-radius: var(--r-full);
    background: linear-gradient(
        135deg,
        rgba(99,102,241,0.25) 0%,
        rgba(129,140,248,0.18) 100%
    );
    border: 1px solid rgba(99,102,241,0.35);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    transition: var(--tr-spring);
    position: relative;
    overflow: hidden;
}

.tf-header__phone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, var(--p), var(--p-light)
    );
    opacity: 0;
    transition: var(--tr);
}

.tf-header__phone:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-p);
    border-color: var(--p);
    color: #fff;
}

.tf-header__phone:hover::before {
    opacity: 1;
}

.tf-header__phone-icon,
.tf-header__phone > * {
    position: relative;
    z-index: 1;
}

.tf-header__phone-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    animation: tf-ring 4s ease infinite;
}

/* -----------------------------------------------
   6. HERO 2025 — Immersive dark + particles
----------------------------------------------- */
.tf-hero {
    background: var(--grad-hero);
    padding: 25px 0 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Mesh gradient background */
.tf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 60% at 20% 40%,
            rgba(99,102,241,0.18) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 60% 50% at 80% 20%,
            rgba(167,139,250,0.12) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse 50% 40% at 50% 80%,
            rgba(245,158,11,0.08) 0%,
            transparent 50%
        );
    pointer-events: none;
}

/* Subtle grid pattern */
.tf-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255,255,255,0.02) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.02) 1px,
            transparent 1px
        );
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: linear-gradient(
        180deg, transparent 0%,
        rgba(0,0,0,0.5) 30%,
        rgba(0,0,0,0.5) 70%,
        transparent 100%
    );
}

.tf-hero__blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.tf-hero__blob-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(
        circle,
        rgba(99,102,241,0.20) 0%,
        transparent 70%
    );
    top: -100px;
    left: -80px;
    animation: tf-blob-float 8s ease infinite;
}

.tf-hero__blob-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(
        circle,
        rgba(245,158,11,0.12) 0%,
        transparent 70%
    );
    top: 0;
    right: -60px;
    animation: tf-blob-float 10s ease infinite
        reverse;
}

.tf-hero__blob-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(167,139,250,0.15) 0%,
        transparent 70%
    );
    bottom: 80px;
    left: 35%;
    animation: tf-blob-float 12s ease infinite
        1s;
}

@keyframes tf-blob-float {
    0%,100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(15px, -20px)
                    scale(1.05); }
    66%      { transform: translate(-10px, 10px)
                    scale(0.97); }
}

.tf-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Live badge */
.tf-hero__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    padding: 7px 18px;
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 22px;
    transition: var(--tr);
}

.tf-hero__live:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.tf-hero__live-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow:
        0 0 0 3px rgba(34,197,94,0.2),
        0 0 10px rgba(34,197,94,0.6);
    animation: tf-blink 2.2s ease infinite;
}

@keyframes tf-blink {
    0%,100% {
        opacity: 1;
        box-shadow:
            0 0 0 3px rgba(34,197,94,0.2),
            0 0 10px rgba(34,197,94,0.6);
    }
    50% {
        opacity: 0.5;
        box-shadow:
            0 0 0 2px rgba(34,197,94,0.1),
            0 0 4px rgba(34,197,94,0.3);
    }
}

/* Hero H1 — fluid typography */
.tf-hero h1 {
    font-size: clamp(26px, 7vw, 54px);
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    padding: 0;
    text-shadow: 0 2px 20px
        rgba(0,0,0,0.3);
}

.tf-hero__sub {
    font-size: clamp(14px, 3vw, 17px);
    color: rgba(255,255,255,0.58);
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 420px;
}

/* CTA кнопка звонка в Hero */
.tf-hero__call {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: var(--r-full);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 75px;
    transition: var(--tr-spring);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.tf-hero__call::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(245,158,11,0.25),
        rgba(251,191,36,0.15)
    );
    opacity: 0;
    transition: var(--tr);
}

.tf-hero__call:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(245,158,11,0.5);
    box-shadow: 0 8px 24px
        rgba(0,0,0,0.2),
        var(--sh-gold);
    color: #fff;
    text-decoration: none;
}

.tf-hero__call:hover::before {
    opacity: 1;
}

.tf-hero__call:active {
    transform: scale(0.98);
}

.tf-hero__call-icon {
    animation: tf-ring 3.5s
        cubic-bezier(.4,0,.2,1) infinite;
    display: flex;
    position: relative;
    z-index: 1;
}

.tf-hero__call > span:last-child {
    position: relative;
    z-index: 1;
}

@keyframes tf-ring {
    0%,20%,100% { transform: rotate(0deg); }
    5%  { transform: rotate(14deg); }
    10% { transform: rotate(-12deg); }
    15% { transform: rotate(8deg); }
    18% { transform: rotate(-4deg); }
}

/* -----------------------------------------------
   7. ФОРМА ПОИСКА — Glassmorphism card
----------------------------------------------- */
.tf-search-section {
    padding: 0 12px 28px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.tf-search-card {
    background: var(--surface);
    border-radius: var(--r-2xl);
    box-shadow:
        var(--sh-md),
        0 0 0 1px rgba(99,102,241,0.07),
        inset 0 1px 0
            rgba(255,255,255,0.8);
    overflow: visible;
    position: relative;
}

/* Animated gradient top border */
.tf-search-card::before {
    content: '';
    position: absolute;
    top: 0; left: 15px; right: 15px;
    height: 4px;
    border-radius:
        var(--r-2xl) var(--r-2xl) 0 0;
    background: linear-gradient(
        90deg,
        var(--p),
        var(--p-light),
        var(--accent),
        var(--green),
        var(--p-light),
        var(--p)
    );
    background-size: 400% 100%;
    animation: tf-bar 5s
        linear infinite;
}

@keyframes tf-bar {
    0%   { background-position: 0% 50%; }
    100% { background-position:
        400% 50%; }
}

.tf-search-inner {
    padding: 22px 18px 18px;
    border-radius: var(--r-2xl);
    overflow: hidden;
}

.tf-search-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.tf-search-title-icon {
    width: 34px;
    height: 34px;
    background: var(--grad-p);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--sh-p2);
}

.tf-search-title-icon svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
}

/* Поля формы */
.tf-field-wrap {
    position: relative;
    margin-bottom: 10px;
}

.tf-field-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tf-field-label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tf-field-label-dot.from {
    background: var(--p);
    box-shadow: 0 0 0 3px
        rgba(99,102,241,0.15);
}

.tf-field-label-dot.to {
    background: var(--green);
    box-shadow: 0 0 0 3px
        rgba(16,185,129,0.15);
}

.tf-field {
    width: 100%;
    padding: 14px 46px 14px 16px;
    font-size: 15px;
    font-weight: 500;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    background: var(--surface2);
    color: var(--text2);
    font-family: inherit;
    transition: var(--tr);
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}

.tf-field::placeholder {
    color: var(--text4);
    font-weight: 400;
}

.tf-field:focus {
    outline: none;
    border-color: var(--p);
    background: var(--surface);
    box-shadow:
        0 0 0 4px rgba(99,102,241,0.10),
        var(--sh-xs);
    color: var(--text);
}

/* Кнопка очистки поля */
.tf-field-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text4);
    border-radius: 50%;
    padding: 0;
    transition: var(--tr-fast);
}

.tf-field-clear.visible {
    display: flex;
}

.tf-field-clear:hover {
    background: var(--bg2);
    color: var(--text3);
}

.tf-field-clear svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
}

/* Swap кнопка */
.tf-swap-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px 0;
    position: relative;
}

.tf-swap-row::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border),
        transparent
    );
}

.tf-swap-btn {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    transition: var(--tr-spring);
    box-shadow: var(--sh-xs);
}

.tf-swap-btn:hover {
    border-color: var(--p);
    box-shadow: var(--sh-p2);
    transform: scale(1.08);
}

.tf-swap-btn:active {
    transform: rotate(180deg) scale(0.9);
    border-color: var(--p);
}

.tf-swap-btn svg {
    width: 12px;
    height: 12px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2.5px;
    stroke-linecap: round;
    display: block;
}

/* Кнопка НАЙТИ ТАКСИ */
.tf-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    padding: 16px;
    margin-top: 14px;
    background: var(--grad-p);
    color: #fff;
    border: none;
    border-radius: var(--r-md);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--tr-spring);
    font-family: inherit;
    letter-spacing: 0.2px;
    box-shadow:
        var(--sh-p),
        inset 0 1px 0
            rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

/* Shimmer эффект */
.tf-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    animation: tf-shimmer 3s
        ease infinite 1s;
}

@keyframes tf-shimmer {
    0%       { left: -100%; }
    60%,100% { left: 160%; }
}

.tf-search-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 36px rgba(99,102,241,0.40),
        inset 0 1px 0
            rgba(255,255,255,0.25);
}

.tf-search-btn:active {
    transform: scale(0.98)
        translateY(0);
    box-shadow: var(--sh-p2);
}

.tf-search-btn svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    fill: none;
    stroke-linecap: round;
}

/* -----------------------------------------------
   8. TRUST BADGES
----------------------------------------------- */
.tf-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
}

.tf-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    text-align: center;
    border-right: 1px solid var(--border);
    line-height: 1.3;
    transition: var(--tr-fast);
}

.tf-trust-item:last-child {
    border-right: none;
}

.tf-trust-item:hover {
    background: rgba(99,102,241,0.03);
    color: var(--text2);
}

.tf-trust-item span:first-child {
    font-size: 20px;
    line-height: 1;
}

/* -----------------------------------------------
   9. DROPDOWN АВТОДОПОЛНЕНИЯ
----------------------------------------------- */
.tf-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow:
        var(--sh-lg),
        0 0 0 1px rgba(99,102,241,0.08);
    border: 1px solid var(--border);
    z-index: 200;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    overflow-x: hidden;
}

.tf-dropdown.show {
    display: block;
    animation: tf-dd-in 0.2s
        cubic-bezier(.4,0,.2,1);
}

@keyframes tf-dd-in {
    from {
        opacity: 0;
        transform: translateY(-8px)
            scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0)
            scale(1);
    }
}

.tf-dd-item {
    padding: 13px 16px;
    border-bottom: 1px solid
        rgba(241,245,249,0.8);
    cursor: pointer;
    transition: var(--tr-fast);
}

.tf-dd-item:last-child {
    border-bottom: none;
}

.tf-dd-item:hover,
.tf-dd-item.sel {
    background: rgba(99,102,241,0.05);
}

.tf-dd-item:active {
    background: rgba(99,102,241,0.09);
}

.tf-dd-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.tf-dd-name strong {
    color: var(--p);
    font-weight: 700;
}

.tf-dd-addr {
    font-size: 12px;
    color: var(--p);
    opacity: 0.75;
    margin-top: 3px;
}

.tf-dd-reg {
    display: inline-block;
    background: var(--surface2);
    color: var(--text3);
    padding: 2px 8px;
    border-radius: var(--r-xs);
    font-size: 10px;
    font-weight: 600;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

.tf-dd-empty {
    padding: 20px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text4);
}

/* Скроллбар dropdown */
.tf-dropdown::-webkit-scrollbar {
    width: 4px;
}

.tf-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.tf-dropdown::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

/* -----------------------------------------------
   10. СЕКЦИЯ НАПРАВЛЕНИЙ — Bento Grid
----------------------------------------------- */
.tf-quick {
    padding: 0 0 28px;
}

.tf-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin-bottom: 14px;
}

.tf-section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.tf-section-title span {
    background: var(--grad-p);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Кнопка "все направления" */
.tf-section-all {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grad-p);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--sh-p2);
    transition: var(--tr-spring);
}

.tf-section-all:hover {
    transform: scale(1.12)
        translateX(2px);
    box-shadow: var(--sh-p);
    color: #fff;
    text-decoration: none;
}

.tf-section-all:active {
    transform: scale(0.94);
}

/* Горизонтальный скролл карточек */
.tf-quick-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 16px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Плавный инерционный скролл */
    scroll-behavior: smooth;
}

.tf-quick-scroll::-webkit-scrollbar {
    display: none;
}

/* Карточка направления */
.tf-quick-card {
    flex-shrink: 0;
    width: 136px;
    scroll-snap-align: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 18px 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: var(--tr-spring);
    position: relative;
    overflow: hidden;
    /* Ускорение через GPU */
    will-change: transform;
}

/* Цветная шапка карточки */
.tf-quick-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--card-color,
        var(--p));
    transition: var(--tr);
}

/* Свечение при hover */
.tf-quick-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 0%,
        var(--card-color, var(--p)),
        transparent 70%
    );
    opacity: 0;
    transition: var(--tr);
}

.tf-quick-card:hover {
    transform: translateY(-4px)
        scale(1.02);
    box-shadow: var(--sh-md);
    border-color: rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
}

.tf-quick-card:hover::after {
    opacity: 0.06;
}

.tf-quick-card:active {
    transform: scale(0.96);
    box-shadow: var(--sh-xs);
}

.tf-quick-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.tf-quick-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.tf-quick-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    position: relative;
    z-index: 1;
}

.tf-quick-time {
    font-size: 11px;
    color: var(--text4);
    margin-top: 3px;
    position: relative;
    z-index: 1;
}

/* -----------------------------------------------
   11. ПРЕИМУЩЕСТВА — Feature cards
----------------------------------------------- */
.tf-features {
    padding: 0 16px 28px;
}

.tf-section-head--compact {
    padding: 0;
    margin-bottom: 14px;
}

.tf-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tf-feat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 22px 18px;
    position: relative;
    overflow: hidden;
    transition: var(--tr);
    /* Subtle gradient border */
    background-clip: padding-box;
}

.tf-feat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: linear-gradient(
        160deg,
        rgba(99,102,241,0.04) 0%,
        transparent 60%
    );
    pointer-events: none;
    opacity: 0;
    transition: var(--tr);
}

.tf-feat:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-sm);
    border-color: var(--border-p);
}

.tf-feat:hover::before {
    opacity: 1;
}

.tf-feat-icon {
    font-size: 30px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.tf-feat-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.tf-feat-sub {
    font-size: 12px;
    color: var(--text3);
    line-height: 1.5;
}

/* -----------------------------------------------
   12. ПОЧЕМУ МЫ — Dark glass card
----------------------------------------------- */
.tf-why {
    margin: 0 16px 28px;
    background: var(--grad-hero);
    border-radius: var(--r-2xl);
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid
        rgba(255,255,255,0.06);
}

/* Mesh overlay */
.tf-why::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 70% 60%
            at 90% 10%,
            rgba(99,102,241,0.2),
            transparent 60%
        ),
        radial-gradient(
            ellipse 50% 40%
            at 10% 90%,
            rgba(245,158,11,0.1),
            transparent 50%
        );
    pointer-events: none;
}

.tf-why-title {
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.tf-why-title span {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tf-why-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.tf-why-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.tf-why-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid
        rgba(255,255,255,0.07);
    border-radius: var(--r-lg);
    transition: var(--tr);
}

.tf-why-item:hover {
    background: rgba(255,255,255,0.07);
    border-color:
        rgba(255,255,255,0.12);
    transform: translateX(4px);
}

.tf-why-num {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: rgba(99,102,241,0.2);
    border: 1px solid
        rgba(99,102,241,0.3);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: var(--p-light);
    letter-spacing: 0.5px;
}

.tf-why-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: -0.2px;
}

.tf-why-text span {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}

/* -----------------------------------------------
   13. FAQ — Accordion 2025
----------------------------------------------- */
.tf-faq {
    padding: 0 16px 28px;
}

.tf-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tf-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: var(--tr);
}

.tf-faq-item.open {
    border-color: var(--border-p);
    box-shadow:
        0 4px 20px rgba(99,102,241,0.08),
        0 0 0 1px rgba(99,102,241,0.05);
}

.tf-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: var(--tr-fast);
}

.tf-faq-btn:hover {
    background: rgba(99,102,241,0.02);
}

.tf-faq-q {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin: 0;
    flex: 1;
    letter-spacing: -0.1px;
}

.tf-faq-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tr-spring);
}

.tf-faq-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: var(--tr);
}

.tf-faq-item.open .tf-faq-icon {
    background: var(--grad-p);
    border-color: transparent;
    transform: rotate(45deg);
    box-shadow: var(--sh-p2);
}

.tf-faq-item.open .tf-faq-icon svg {
    stroke: #fff;
}

.tf-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s
        cubic-bezier(.4,0,.2,1);
}

.tf-faq-body-inner {
    padding: 2px 18px 20px;
    font-size: 14px;
    color: var(--text3);
    line-height: 1.75;
    border-top: 1px solid var(--border);
    margin: 0 18px;
}

.tf-faq-body-inner p {
    margin: 12px 0 0;
}

.tf-faq-body-inner ul {
    padding-left: 20px;
    margin: 12px 0 0;
}

.tf-faq-body-inner li {
    margin-bottom: 7px;
}

.tf-faq-body-inner li::marker {
    color: var(--p);
}

.tf-faq-body-inner strong {
    color: var(--text);
    font-weight: 700;
}

.tf-faq-tel {
    color: var(--p);
    font-weight: 700;
    transition: var(--tr-fast);
}

.tf-faq-tel:hover {
    color: var(--p-dark);
    text-decoration: underline;
}

/* -----------------------------------------------
   14. CTA ЗВОНОК — Premium call block
----------------------------------------------- */
.tf-cta {
    margin: 0 16px 28px;
    background: var(--grad-hero);
    border-radius: var(--r-2xl);
    padding: 32px 24px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid
        rgba(255,255,255,0.06);
}

/* Accent glow overlay */
.tf-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse 80% 50% at 50% 0%,
            rgba(99,102,241,0.25),
            transparent 60%
        );
    pointer-events: none;
}

/* Декоративный элемент */
.tf-cta::after {
    content: '🚖';
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 90px;
    opacity: 0.06;
    transform: rotate(-12deg);
    pointer-events: none;
    line-height: 1;
}

.tf-cta-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid
        rgba(255,255,255,0.14);
    padding: 6px 16px;
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.tf-cta-title {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.tf-cta-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 24px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

/* Большая кнопка телефона */
.tf-cta-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    color: var(--p-dark);
    text-decoration: none;
    padding: 18px 28px;
    border-radius: var(--r-lg);
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 900;
    letter-spacing: 0.2px;
    transition: var(--tr-spring);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.25),
        inset 0 1px 0
            rgba(255,255,255,0.5);
    position: relative;
    z-index: 1;
    max-width: 340px;
    width: 100%;
    margin: 0 auto 20px;
}

.tf-cta-phone:hover {
    transform: translateY(-3px)
        scale(1.02);
    box-shadow:
        0 16px 48px rgba(0,0,0,0.3),
        inset 0 1px 0
            rgba(255,255,255,0.6);
    color: var(--p-dark);
    text-decoration: none;
    background: #fff;
}

.tf-cta-phone:active {
    transform: scale(0.97);
    box-shadow:
        0 4px 16px rgba(0,0,0,0.2);
    color: var(--p-dark);
}

.tf-cta-phone svg {
    width: 22px;
    height: 22px;
    stroke: var(--p);
    fill: none;
    flex-shrink: 0;
    animation: tf-ring 3.5s
        ease infinite;
}

/* Фото авто */
.tf-cta-car {
    position: relative;
    z-index: 1;
}

.tf-cta-car img {
    width: 100%;
    max-width: 340px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: var(--r-lg);
    object-fit: cover;
    box-shadow:
        0 16px 48px rgba(0,0,0,0.3);
    /* Лёгкая граница */
    outline: 1px solid
        rgba(255,255,255,0.08);
}

/* -----------------------------------------------
   15. ПЕРЕЛИНКОВКА — Direction pills
----------------------------------------------- */
.tf-directions {
    padding: 0 16px 32px;
}

.tf-directions-inner {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: 28px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle top accent */
.tf-directions-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-p);
    border-radius:
        var(--r-2xl) var(--r-2xl) 0 0;
    opacity: 0.5;
}

.tf-directions-title {
    font-size: clamp(17px, 4vw, 20px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 22px;
    letter-spacing: -0.4px;
    line-height: 1.3;
}

.tf-directions-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}

.tf-directions-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    background: var(--surface2);
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    text-decoration: none;
    transition: var(--tr-spring);
    white-space: nowrap;
}

.tf-directions-link:hover {
    border-color: var(--p);
    color: var(--p);
    background: rgba(99,102,241,0.05);
    transform: translateY(-2px);
    box-shadow: var(--sh-p2);
    text-decoration: none;
}

.tf-directions-link:active {
    transform: scale(0.96);
}

/* Кнопка "Все направления" */
.tf-directions-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--grad-p);
    border: none;
    border-radius: var(--r-full);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: var(--tr-spring);
    box-shadow: var(--sh-p2);
    letter-spacing: 0.1px;
}

.tf-directions-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-p);
    color: #fff;
    text-decoration: none;
}

.tf-directions-all:active {
    transform: scale(0.96);
}

.tf-directions-all svg {
    transition: transform 0.25s
        cubic-bezier(.4,0,.2,1);
}

.tf-directions-all:hover svg {
    transform: translateX(4px);
}

/* -----------------------------------------------
   16. DISCLAIMER + FOOTER
----------------------------------------------- */
.tf-disclaimer {
    padding: 0 16px 20px;
    text-align: center;
}

.tf-disclaimer p {
    font-size: 10px;
    color: var(--text4);
    line-height: 1.7;
    padding: 14px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.tf-footer {
    text-align: center;
    padding: 20px 0 36px;
    border-top: 1px solid var(--border);
    margin: 0 16px;
}

.tf-footer p {
    font-size: 12px;
    color: var(--text4);
    letter-spacing: 0.2px;
}

/* -----------------------------------------------
   17. УТИЛИТЫ
----------------------------------------------- */
.tf-page-wrap { background: var(--bg); }
.tf-mb-0      { margin-bottom: 0; }

.tf-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* -----------------------------------------------
   18. АДАПТИВ — МОБИЛЬНЫЕ до 479px
   Самые маленькие экраны: базовый 58px
   из body (секция 2), доп. правил нет
----------------------------------------------- */
@media (max-width: 479px) {
    .tf-header__phone {
        font-size: 14px;
        padding: 8px 14px;
        letter-spacing: 0;
    }

    .tf-quick-card {
        width: 128px;
    }

    .tf-why,
    .tf-cta {
        border-radius: var(--r-xl);
    }
}

/* -----------------------------------------------
   19. АДАПТИВ — МОБИЛЬНЫЕ 480–767px
----------------------------------------------- */
@media (min-width: 480px)
and (max-width: 767px) {

    body {
        padding-top: 62px;
    }

    .tf-header {
        height: 62px;
    }

    .tf-header__logo img {
        height: 42px;
    }

    .tf-hero {
        padding-top: 35px;
    }

    .tf-quick-card {
        width: 148px;
    }
}

/* -----------------------------------------------
   20. АДАПТИВ — ПЛАНШЕТЫ от 768px
----------------------------------------------- */
@media (min-width: 768px) {

    body {
        padding-top: 68px;
    }

    .tf-header {
        height: 68px;
    }

    .tf-header__logo img {
        height: 46px;
    }

    .tf-header.scrolled {
        height: 60px;
    }

    .tf-header.scrolled
    .tf-header__logo img {
        height: 40px;
    }

    .tf-hero {
        padding: 25px 40px 0;
        min-height: 500px;
    }

    .tf-hero h1 {
        font-size: clamp(38px,6vw,54px);
    }

    .tf-hero__sub {
        font-size: 17px;
        max-width: 520px;
    }

    .tf-search-section {
        padding: 0 40px 36px;
        margin-top: -44px;
    }

    .tf-search-inner {
        padding: 28px 28px 22px;
    }

    .tf-search-btn {
        flex-shrink: 0;
        width: auto;
        padding: 15px 36px;
        margin-top: 0;
    }

    .tf-trust {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .tf-quick-scroll {
        padding-left: 40px;
        padding-right: 40px;
    }

    .tf-quick-card {
        width: 158px;
    }

    .tf-section-head,
    .tf-features,
    .tf-faq,
    .tf-disclaimer {
        padding-left: 40px;
        padding-right: 40px;
    }

    .tf-features-grid {
        grid-template-columns:
            repeat(4, 1fr);
        gap: 12px;
    }

    .tf-why,
    .tf-cta {
        margin-left: 40px;
        margin-right: 40px;
        padding: 36px 32px;
    }

    .tf-why-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .tf-directions {
        padding-left: 40px;
        padding-right: 40px;
    }

    .tf-directions-inner {
        padding: 36px 32px;
    }

    .tf-directions-title {
        font-size: 20px;
    }

    .tf-directions-list {
        gap: 10px;
    }

    .tf-directions-link {
        font-size: 14px;
        padding: 10px 20px;
    }

    .tf-footer {
        margin: 0 40px;
    }
}

/* -----------------------------------------------
   21. АДАПТИВ — ДЕСКТОП от 1024px
----------------------------------------------- */
@media (min-width: 1024px) {

    body {
        padding-top: 68px;
    }

    .tf-header__phone {
        font-size: 16px;
        padding: 10px 24px;
    }

    .tf-hero {
        padding: 35px 0 0;
        min-height: 560px;
    }

    .tf-hero__content {
        max-width: 720px;
        margin: 0 auto;
    }

    .tf-hero h1 {
        font-size: clamp(48px, 6vw, 60px);
        letter-spacing: -2px;
    }

    .tf-hero__sub {
        font-size: 18px;
        max-width: 560px;
    }

    .tf-search-section {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 0 40px;
        margin-top: -48px;
    }

    /* Горизонтальная форма */
    .tf-search-inner {
        padding: 32px 36px 28px;
    }

    .tf-search-fields-row {
        display: flex;
        gap: 12px;
        align-items: flex-end;
    }

    .tf-search-fields-row
    .tf-field-wrap {
        flex: 1;
        margin-bottom: 0;
    }

    .tf-swap-row {
        flex-shrink: 0;
        margin: 0;
        padding-bottom: 2px;
    }

    .tf-swap-row::before {
        display: none;
    }

    /* Направления — сетка вместо скролла */
    .tf-quick-scroll {
        flex-wrap: wrap;
        overflow-x: visible;
        padding: 4px 0 10px;
        gap: 12px;
        max-width: 900px;
        margin: 0 auto;
    }

    .tf-quick-card {
        width: calc((100% - 66px) / 6);
        min-width: 120px;
    }

    .tf-section-head,
    .tf-features,
    .tf-faq,
    .tf-disclaimer {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .tf-features-grid {
        grid-template-columns:
            repeat(4, 1fr);
        gap: 14px;
    }

    .tf-feat {
        padding: 24px 20px;
    }

    .tf-why,
    .tf-cta {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .tf-why-list {
        grid-template-columns:
            repeat(3, 1fr);
        gap: 14px;
    }

    .tf-cta-phone {
        font-size: 24px;
        padding: 20px 40px;
        max-width: 380px;
    }

    .tf-cta-car img {
        max-width: 440px;
        border-radius: var(--r-xl);
    }

    .tf-directions {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .tf-directions-inner {
        padding: 40px 40px;
    }

    .tf-directions-title {
        font-size: 22px;
    }

    .tf-directions-list {
        gap: 12px;
    }

    .tf-directions-link {
        padding: 10px 22px;
        font-size: 14px;
    }

    .tf-footer {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        padding: 24px 0 40px;
    }
}

/* -----------------------------------------------
   22. АДАПТИВ — ШИРОКИЙ ДЕСКТОП от 1280px
----------------------------------------------- */
@media (min-width: 1280px) {

    .tf-hero h1 {
        font-size: 64px;
        letter-spacing: -2.5px;
    }

    .tf-search-section {
        max-width: 960px;
    }

    .tf-section-head,
    .tf-features,
    .tf-faq,
    .tf-disclaimer,
    .tf-why,
    .tf-cta,
    .tf-directions,
    .tf-footer {
        max-width: 960px;
    }

    .tf-quick-scroll {
        max-width: 960px;
    }

    .tf-quick-card {
        width: calc((100% - 72px) / 7);
        min-width: 116px;
    }

    .tf-directions-inner {
        padding: 44px 48px;
    }
}

/* -----------------------------------------------
   23. АНИМАЦИИ ПОЯВЛЕНИЯ — Scroll-triggered
   Работает через IntersectionObserver
   (добавить в main.php если нужно)
----------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {

    .tf-feat,
    .tf-why-item,
    .tf-faq-item,
    .tf-directions-link {
        opacity: 0;
        transform: translateY(16px);
        transition:
            opacity 0.45s ease,
            transform 0.45s
                cubic-bezier(.4,0,.2,1),
            box-shadow 0.28s ease,
            border-color 0.28s ease,
            background 0.28s ease;
    }

    .tf-feat.visible,
    .tf-why-item.visible,
    .tf-faq-item.visible,
    .tf-directions-link.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Задержки для эффекта каскада */
    .tf-feat:nth-child(1) {
        transition-delay: 0.05s;
    }
    .tf-feat:nth-child(2) {
        transition-delay: 0.10s;
    }
    .tf-feat:nth-child(3) {
        transition-delay: 0.15s;
    }
    .tf-feat:nth-child(4) {
        transition-delay: 0.20s;
    }

    .tf-why-item:nth-child(1) {
        transition-delay: 0.05s;
    }
    .tf-why-item:nth-child(2) {
        transition-delay: 0.10s;
    }
    .tf-why-item:nth-child(3) {
        transition-delay: 0.15s;
    }
    .tf-why-item:nth-child(4) {
        transition-delay: 0.20s;
    }
    .tf-why-item:nth-child(5) {
        transition-delay: 0.25s;
    }
    .tf-why-item:nth-child(6) {
        transition-delay: 0.30s;
    }

    .tf-faq-item:nth-child(1) {
        transition-delay: 0.05s;
    }
    .tf-faq-item:nth-child(2) {
        transition-delay: 0.10s;
    }
    .tf-faq-item:nth-child(3) {
        transition-delay: 0.15s;
    }
    .tf-faq-item:nth-child(4) {
        transition-delay: 0.20s;
    }
}

/* -----------------------------------------------
   24. PRINT — минимальные стили печати
----------------------------------------------- */
@media print {

    .tf-header,
    .tf-hero__blob,
    .tf-cta-car,
    .tf-search-btn,
    .tf-hero__call {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: #fff;
        color: #000;
    }

    .tf-hero {
        background: none;
        padding: 20px 0;
        min-height: auto;
    }

    .tf-hero h1,
    .tf-hero__sub {
        color: #000;
    }
}