/* ============================================================
   AP-Service — ap-service.by
   Технологичный современный стиль: глубокий графит + электрик-синий,
   моноширинные акценты, тонкие рамки, сетка в hero.
   Шрифты: Inter (UI) + JetBrains Mono (метки/цифры).
   ============================================================ */

:root {
    --ap-primary: #2563eb;
    --ap-primary-dark: #1d4ed8;
    --ap-cyan: #06b6d4;
    --ap-dark: #0b1220;
    --ap-dark-2: #101a2e;
    --ap-text: #0f172a;
    --ap-text-2: #475569;
    --ap-muted: #94a3b8;
    --ap-border: #e2e8f0;
    --ap-bg: #f6f8fa;
    --ap-white: #ffffff;
    --ap-radius: 14px;
    --ap-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 16px rgba(15, 23, 42, 0.06);
    --ap-shadow-hover: 0 4px 12px rgba(37, 99, 235, 0.12), 0 12px 32px rgba(15, 23, 42, 0.10);
    --ap-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ap-text);
    background: var(--ap-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ap-primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ap-primary-dark); }

/* ============================================================
   ШАПКА
   ============================================================ */

.td-header {
    background: var(--ap-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(2, 8, 23, .35);
}

.td-header-top {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.td-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.td-header-top .td-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
}

.td-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.td-logo-img { height: 34px; width: auto; }

.td-logo-text {
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.02em;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.td-logo-text .td-logo-accent { color: var(--ap-cyan); font-weight: 800; }

.td-logo-sub {
    font-family: var(--ap-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.35);
    border-radius: 6px;
    padding: 2px 7px;
}

/* --- навигация --- */

.td-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.td-nav-item { position: relative; }

.td-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 13px;
    color: #cbd5e1;
    font-size: 14.5px;
    font-weight: 500;
    border-radius: 8px;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease;
}

.td-nav-item:hover > .td-nav-link,
.td-nav-item.has-children:hover > .td-nav-link {
    color: #fff;
    background: rgba(37, 99, 235, 0.18);
}

.td-nav-toggle {
    display: inline-flex;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    padding: 4px;
}

/* --- dropdown --- */

.td-dropdown,
.td-dropdown-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 265px;
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: 12px;
    box-shadow: 0 20px 48px rgba(2, 8, 23, 0.18);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 1100;
}

.td-dropdown.flip-left { left: auto; right: 0; }

.td-nav-item:hover > .td-dropdown,
.td-dropdown-item:hover > .td-dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.td-dropdown-item { position: relative; }

.td-dropdown-link {
    display: block;
    padding: 9px 12px;
    color: var(--ap-text);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    line-height: 1.4;
    transition: background .15s ease, color .15s ease;
}

.td-dropdown-item:hover > .td-dropdown-link {
    background: #eff6ff;
    color: var(--ap-primary);
}

/* --- подменю 2-го/3-го уровня: флайаут вправо (как у трёхуровневых меню) --- */

.td-dropdown-submenu {
    top: -7px;
    left: 100%;
    transform: translateX(8px);
}

.td-dropdown-item:hover > .td-dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* у правого края экрана — разворот влево (класс вешает fixDropdownFlip в header.php) */
.td-dropdown-submenu.flip-left {
    left: auto;
    right: 100%;
    transform: translateX(-8px);
}

.td-dropdown-item:hover > .td-dropdown-submenu.flip-left { transform: translateX(0); }

/* длинные конечные списки (17 марок МКПП, химчистки) — со скроллом;
   контейнеры с вложенными подменю (has-nested) не клипаем, иначе флайаут обрежется */
.td-dropdown:not(.has-nested),
.td-dropdown-submenu:not(.has-nested) {
    max-height: min(560px, calc(100vh - 120px));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, .4) transparent;
}

/* мостик через вертикальный зазор 6px между ссылкой и дропдауном (иначе hover теряется) */
.td-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

/* стрелка-шеврон справа у пунктов с подменю */
.td-nav-item.has-children > .td-nav-link,
.td-dropdown-item.has-children > .td-dropdown-link {
    padding-right: 28px;
}

.td-nav-item .td-nav-toggle,
.td-dropdown-item .td-nav-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.td-dropdown-item.has-children > .td-dropdown-link { transition: background .15s ease, color .15s ease; }

/* --- нижний ряд: телефоны --- */

.td-header-bottom .td-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    flex-wrap: wrap;
    padding-top: 4px;
    padding-bottom: 4px;
}

.td-header-phones { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.td-phone-header {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 14.5px;
    font-family: var(--ap-mono);
    letter-spacing: -0.01em;
}

.td-phone-header:hover { color: #7dd3fc; }

.td-phone-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: none;
    letter-spacing: 0;
}

.td-header-actions { display: flex; gap: 10px; }

/* --- бургер --- */

.td-burger {
    display: none;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #fff;
    font-size: 20px;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
}

/* ============================================================
   КНОПКИ
   ============================================================ */

.td-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
    text-decoration: none;
}

.td-btn-primary,
.td-btn:not(.td-btn-dark):not(.td-btn-secondary):not(.td-btn-small):not(.td-btn-white):not(.td-btn-submit) {
    background: linear-gradient(135deg, var(--ap-primary) 0%, #3b82f6 55%, var(--ap-cyan) 130%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.td-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.42);
    color: #fff;
}

.td-btn-dark {
    background: var(--ap-dark);
    color: #fff;
    box-shadow: 0 6px 16px rgba(11, 18, 32, 0.3);
}

.td-btn-dark:hover { background: var(--ap-dark-2); color: #fff; }

.td-btn-secondary {
    background: var(--ap-white);
    color: var(--ap-text);
    border-color: var(--ap-border);
    box-shadow: var(--ap-shadow);
}

.td-btn-secondary:hover { border-color: var(--ap-primary); color: var(--ap-primary); box-shadow: var(--ap-shadow-hover); }

.td-btn-white { background: #fff; color: var(--ap-primary); }

.td-btn-small { padding: 8px 18px; font-size: 13.5px; border-radius: 8px; }

.td-btn-submit { width: 100%; padding: 13px; font-size: 15.5px; }

.td-btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; }

.td-callback-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: 9px;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(37, 99, 235, 0.45);
    color: #93c5fd;
    font-weight: 600;
    font-size: 13.5px;
    transition: background .18s ease, color .18s ease;
}

.td-callback-btn:hover { background: var(--ap-primary); color: #fff; }

/* ============================================================
   СЕКЦИИ
   ============================================================ */

.td-section { padding: 56px 20px; }

/* Содержимое секции всегда в контейнере: по центру, до 1280px.
   Фон секции остаётся на всю ширину, ограничивается только контент. */
.td-section > * {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.td-container,
.td-section > .td-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.td-section-light { background: var(--ap-white); }

.td-section-warm {
    background: var(--ap-bg);
    border-top: 1px solid var(--ap-border);
    border-bottom: 1px solid var(--ap-border);
}

.td-section-dark { background: var(--ap-dark); color: #e2e8f0; }

.td-section-cta {
    background:
        radial-gradient(60% 120% at 85% 20%, rgba(6, 182, 212, 0.16) 0%, transparent 60%),
        radial-gradient(50% 100% at 15% 90%, rgba(37, 99, 235, 0.22) 0%, transparent 55%),
        var(--ap-dark);
    color: #fff;
}

.td-section-head { margin-bottom: 32px; }

.td-title {
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.22;
    color: var(--ap-text);
}

.td-section-dark .td-title, .td-section-cta .td-title { color: #fff; }

.td-eyebrow {
    font-family: var(--ap-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ap-primary);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.td-eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: linear-gradient(90deg, var(--ap-primary), var(--ap-cyan));
    border-radius: 2px;
}

.td-subtitle {
    font-size: 17px;
    color: var(--ap-text-2);
    max-width: 760px;
    margin-top: 10px;
}

/* ============================================================
   HERO (главные блоки страниц)
   ============================================================ */

.td-hero {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 44px;
    align-items: center;
    position: relative;
}

.td-section .td-hero { padding: 10px 0 6px; }

/* hero на главной секции страницы — тёмный с сеткой */
.td-hero-section {
    background:
        linear-gradient(rgba(11, 18, 32, 0.94), rgba(11, 18, 32, 0.96)),
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(148, 163, 184, 0.09) 39px, rgba(148, 163, 184, 0.09) 40px),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(148, 163, 184, 0.09) 39px, rgba(148, 163, 184, 0.09) 40px),
        var(--ap-dark);
    color: #fff;
}

.td-hero-section .td-subtitle { color: #cbd5e1; }
.td-hero-section .td-eyebrow { color: #7dd3fc; }

.td-hero-main { min-width: 0; }

.td-hero-side { min-width: 0; }

.td-contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.td-phone-big {
    font-family: var(--ap-mono);
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--ap-primary), #3b82f6);
    padding: 12px 20px;
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    transition: transform .15s ease, box-shadow .15s ease;
}

.td-phone-big:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 12px 26px rgba(37, 99, 235, 0.5); }

.td-address-big {
    font-size: 14.5px;
    font-weight: 500;
    color: #cbd5e1;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.5);
    padding-bottom: 2px;
}

.td-address-big:hover { color: #7dd3fc; border-color: #7dd3fc; }

.td-phone-big {
    color: #fff;
}

/* --- чипы --- */

.td-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.td-chip {
    font-family: var(--ap-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(125, 211, 252, 0.4);
    color: #bae6fd;
    background: rgba(6, 182, 212, 0.08);
}

.td-chip-accent {
    border-color: rgba(37, 99, 235, 0.55);
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.14);
}

/* ============================================================
   МЕДИА
   ============================================================ */

.td-media {
    border-radius: var(--ap-radius);
    overflow: hidden;
    position: relative;
}

.td-media-frame {
    border: 1px solid var(--ap-border);
    box-shadow: var(--ap-shadow);
    background: var(--ap-bg);
}

/* светящийся угол для hero-фото */
.td-hero-side .td-media-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--ap-radius);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.25), 0 24px 60px rgba(2, 8, 23, 0.5);
    pointer-events: none;
}

.td-img-cover { width: 100%; height: 100%; object-fit: cover; }

.td-media-fixed-md { aspect-ratio: 16 / 11; }

.td-media-fixed-sm { aspect-ratio: 4 / 3; }

/* ============================================================
   СЕТКИ
   ============================================================ */

.td-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 20px;
}

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

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

.td-grid-row { display: grid; gap: 20px; }

.td-grid-col-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ============================================================
   КАРТОЧКИ
   ============================================================ */

.td-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 24px;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.td-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: var(--ap-shadow-hover);
}

.td-card-warm { background: var(--ap-white); }

.td-card-dark {
    background:
        radial-gradient(80% 100% at 100% 0%, rgba(6, 182, 212, 0.14) 0%, transparent 55%),
        var(--ap-dark);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.16);
}

.td-card-dark:hover { border-color: rgba(6, 182, 212, 0.5); }

.td-card-dark .td-card-title { color: #fff; }

.td-card-dark .td-card-text { color: #94a3b8; }

.td-card-number {
    font-family: var(--ap-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--ap-primary);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    margin-bottom: 14px;
}

.td-card-number-dark {
    color: #7dd3fc;
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.4);
}

.td-card-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--ap-text);
}

.td-card-text { font-size: 14.5px; color: var(--ap-text-2); }

.td-service-link {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ap-primary);
}

/* ============================================================
   ТАБЛИЦА ЦЕН
   ============================================================ */

.td-price-table {
    max-width: 860px;
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    overflow: hidden;
}

.td-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--ap-border);
    transition: background .15s ease;
}

.td-price-row:last-child { border-bottom: 0; }

.td-price-row:hover { background: #f8fafc; }

.td-price-name { font-size: 15px; color: var(--ap-text); }

.td-price-value {
    font-family: var(--ap-mono);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ap-primary);
    white-space: nowrap;
}

.td-price-row-warm { background: #f8fafc; }

/* ============================================================
   ШАГИ
   ============================================================ */

.td-steps { display: grid; gap: 14px; max-width: 860px; }

.td-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 18px 22px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.td-step:hover { border-color: rgba(37, 99, 235, 0.4); box-shadow: var(--ap-shadow); }

.td-step-number {
    font-family: var(--ap-mono);
    font-weight: 700;
    font-size: 15px;
    color: var(--ap-primary);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.td-step-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.td-step-text { font-size: 14.5px; color: var(--ap-text-2); }

.td-step-arrow { align-self: center; color: var(--ap-muted); }

/* техно-шаги (горизонтальные с номерами 01/02) */
.td-tech-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    counter-reset: tech;
}

.td-tech-step {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 22px;
    position: relative;
}

.td-tech-number {
    font-family: var(--ap-mono);
    font-size: 30px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.td-tech-title { font-weight: 700; font-size: 16px; margin-bottom: 6px; }

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */

.td-feature {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 24px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.td-feature:hover { transform: translateY(-3px); border-color: rgba(37, 99, 235, 0.4); box-shadow: var(--ap-shadow-hover); }

.td-feature-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12));
    border: 1px solid rgba(37, 99, 235, 0.22);
    margin-bottom: 14px;
}

.td-feature-title { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }

.td-feature-text { font-size: 14.5px; color: var(--ap-text-2); }

/* ============================================================
   FAQ (details/summary)
   ============================================================ */

.td-faq-list { max-width: 860px; display: grid; gap: 10px; }

.td-faq-item {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .18s ease;
}

.td-faq-item[open] { border-color: rgba(37, 99, 235, 0.45); box-shadow: var(--ap-shadow); }

.td-faq-question {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15.5px;
    user-select: none;
    position: relative;
}

.td-faq-question::-webkit-details-marker { display: none; }

.td-faq-question::after {
    content: '+';
    font-family: var(--ap-mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--ap-primary);
    transition: transform .2s ease;
    flex-shrink: 0;
}

.td-faq-item[open] .td-faq-question::after { transform: rotate(45deg); }

.td-faq-answer {
    padding: 0 20px 18px;
    font-size: 14.5px;
    color: var(--ap-text-2);
}

/* ============================================================
   ТЕКСТОВЫЙ БЛОК
   ============================================================ */

.td-text-block { max-width: 860px; font-size: 16px; color: var(--ap-text-2); }

.td-text-block p { margin: 0 0 16px; }

.td-text-block strong, .td-text-strong { color: var(--ap-text); font-weight: 600; }

.td-text-block h2 {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--ap-text);
    margin: 30px 0 12px;
    padding-left: 14px;
    border-left: 3px solid var(--ap-primary);
}

.td-text-block h3 {
    font-size: 18.5px;
    font-weight: 700;
    color: var(--ap-text);
    margin: 24px 0 10px;
}

.td-text-block ul, .td-text-block ol { margin: 0 0 18px; padding-left: 4px; list-style: none; }

.td-text-block li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 8px;
}

.td-text-block ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-cyan));
}

.td-text-block ol { counter-reset: ol; }

.td-text-block ol li { counter-increment: ol; }

.td-text-block ol li::before {
    content: counter(ol);
    position: absolute;
    left: 0;
    top: 2px;
    font-family: var(--ap-mono);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ap-primary);
    width: 18px;
    text-align: center;
}

.td-text-block a { border-bottom: 1px dashed rgba(37, 99, 235, 0.5); }

.td-text-block img { border-radius: 12px; margin: 18px 0; border: 1px solid var(--ap-border); }

.td-text-block table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }

.td-text-block th, .td-text-block td { border: 1px solid var(--ap-border); padding: 10px 12px; text-align: left; }

.td-text-block th { background: var(--ap-bg); font-weight: 700; color: var(--ap-text); }

.td-text-block blockquote {
    border-left: 3px solid var(--ap-cyan);
    background: var(--ap-bg);
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    margin: 18px 0;
    font-style: italic;
}

.td-note {
    background: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 18px 0;
    font-size: 14.5px;
}

.td-note-warm { background: #fffbeb; border-color: rgba(245, 158, 11, 0.35); }

.td-note-dark { background: var(--ap-dark); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.2); }

.td-text-center { text-align: center; }
.td-text-left { text-align: left; }
.td-text-right { text-align: right; }

.td-mt-2 { margin-top: 8px; } .td-mt-3 { margin-top: 16px; } .td-mt-4 { margin-top: 24px; } .td-mt-16 { margin-top: 16px; } .td-mt-32 { margin-top: 32px; }
.td-mb-2 { margin-bottom: 8px; } .td-mb-3 { margin-bottom: 16px; } .td-mb-4 { margin-bottom: 24px; } .td-mb-16 { margin-bottom: 16px; } .td-mb-32 { margin-bottom: 32px; }

/* ============================================================
   TEXT + MEDIA
   ============================================================ */

.td-text-media { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }

.td-text-media-right { grid-template-columns: 0.9fr 1.1fr; }

.td-text-media-right .td-text-media-text { order: 2; }

.td-text-media-media { min-width: 0; }

/* ============================================================
   RELATED / BRANDS
   ============================================================ */

.td-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }

.td-brand-card, .td-brand-link {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: transform .15s ease, border-color .15s ease;
    text-decoration: none;
}

.td-brand-card:hover, .td-brand-link:hover { transform: translateY(-2px); border-color: rgba(37, 99, 235, 0.4); }

.td-brand-logo { height: 44px; margin: 0 auto 10px; object-fit: contain; }

.td-brand-name { font-weight: 600; font-size: 14px; color: var(--ap-text); }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */

.td-review {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 22px;
}

.td-review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.td-review-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-cyan));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 17px;
    flex-shrink: 0;
}

.td-review-name { font-weight: 700; font-size: 15px; }

.td-review-stars { color: #f59e0b; font-size: 13px; letter-spacing: 2px; }

.td-review-date { font-size: 12.5px; color: var(--ap-muted); }

.td-review-text { font-size: 14.5px; color: var(--ap-text-2); }

/* ============================================================
   ФОРМА ЗАЯВКИ
   ============================================================ */

.td-form {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    padding: 26px;
    box-shadow: var(--ap-shadow);
    max-width: 640px;
}

.td-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.td-form-full { grid-column: 1 / -1; }

.td-form-field input,
.td-form-field select,
.td-form-field textarea,
.td-form-group input,
.td-form-group select,
.td-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--ap-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ap-text);
    background: var(--ap-bg);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.td-form-field input:focus,
.td-form-field textarea:focus,
.td-form-field select:focus,
.td-form-group input:focus,
.td-form-group textarea:focus {
    outline: none;
    border-color: var(--ap-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.td-form-agree { font-size: 12.5px; color: var(--ap-muted); margin-top: 10px; }

.td-form-compact { max-width: 560px; }

/* ============================================================
   КАРТА
   ============================================================ */

.td-map { border-radius: var(--ap-radius); overflow: hidden; border: 1px solid var(--ap-border); box-shadow: var(--ap-shadow); }

.td-map iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ============================================================
   ФУТЕР
   ============================================================ */

.td-footer {
    background:
        linear-gradient(rgba(11, 18, 32, 0.97), rgba(11, 18, 32, 0.97)),
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(148, 163, 184, 0.07) 39px, rgba(148, 163, 184, 0.07) 40px),
        var(--ap-dark);
    color: #94a3b8;
    padding: 44px 0 0;
    margin-top: 0;
}

.td-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 32px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
}

.td-footer a { color: #cbd5e1; }

.td-footer a:hover { color: #7dd3fc; }

.td-footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.td-bottom-bar { border-top: 1px solid rgba(148, 163, 184, 0.14); }

.td-bottom-action {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    flex-wrap: wrap;
}

.td-bottom-split { display: flex; gap: 16px; align-items: center; }

.td-bottom-btn, .td-bottom-call, .td-bottom-msg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.35);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.td-bottom-btn:hover, .td-bottom-call:hover, .td-bottom-msg:hover { background: var(--ap-primary); color: #fff; }

.td-bottom-icon { font-size: 15px; }

/* --- соцсети --- */

.td-social-bar { padding: 18px 0 6px; }

.td-social-title { font-size: 13px; color: #64748b; margin-bottom: 10px; font-family: var(--ap-mono); text-transform: uppercase; letter-spacing: .1em; }

.td-social-list { display: flex; gap: 10px; flex-wrap: wrap; }

.td-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--ap-border);
    border-radius: 9px;
    font-size: 13.5px;
    color: var(--ap-text);
    background: var(--ap-white);
}

.td-social-link:hover { border-color: var(--ap-primary); color: var(--ap-primary); }

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ / НОЧНОЙ БАННЕР / 404
   ============================================================ */

.td-breadcrumbs {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px 0;
    font-size: 13px;
    color: var(--ap-muted);
}

.td-breadcrumb-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }

.td-breadcrumb-item a { color: var(--ap-muted); }

.td-breadcrumb-item a:hover { color: var(--ap-primary); }

.td-breadcrumb-current { color: var(--ap-text); font-weight: 500; }

.td-night-banner {
    display: flex;
    gap: 12px;
    align-items: center;
    background: linear-gradient(90deg, #1e293b, #0b1220);
    color: #e2e8f0;
    padding: 10px 20px;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.3);
}

.td-h1-band {
    background: var(--ap-dark);
    color: #fff;
    padding: 26px 0 6px;
}

.td-page-title {
    letter-spacing: -0.02em;
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    margin: 0;
}

.td-h1-band .td-page-title { color: #fff; }

@media (max-width: 768px) {
    .td-h1-band { padding: 18px 0 4px; }
}

/* ============================================================
   БАЗА ЗНАНИЙ / СТАТЬИ
   ============================================================ */

.knowledge-hero { background: var(--ap-dark); color: #fff; padding: 40px 0; }

.knowledge-filters, .knowledge-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }

.knowledge-filter {
    padding: 7px 14px;
    border: 1px solid var(--ap-border);
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--ap-text-2);
    background: var(--ap-white);
}

.knowledge-filter.active, .knowledge-filter:hover { border-color: var(--ap-primary); color: var(--ap-primary); }

.knowledge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }

.knowledge-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: block;
    color: inherit;
}

.knowledge-card:hover { transform: translateY(-3px); border-color: rgba(37, 99, 235, 0.4); box-shadow: var(--ap-shadow-hover); color: inherit; }

.knowledge-card-image { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

.knowledge-card-body { padding: 18px; }

.knowledge-card-title { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }

.knowledge-card-excerpt { font-size: 14px; color: var(--ap-text-2); }

.knowledge-card-meta { font-size: 12.5px; color: var(--ap-muted); margin-top: 10px; }

.knowledge-search { display: flex; gap: 8px; max-width: 520px; }

.knowledge-search input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--ap-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14.5px;
}

.knowledge-empty { padding: 40px 0; text-align: center; color: var(--ap-muted); }

.knowledge-pagination { display: flex; gap: 8px; justify-content: center; margin: 26px 0; }

.knowledge-article-wrap { max-width: 820px; margin: 0 auto; padding: 40px 20px; }

.article-content { font-size: 16px; color: var(--ap-text-2); }

.article-content h2 { color: var(--ap-text); margin: 28px 0 12px; font-size: 22px; }

.article-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ap-muted); font-size: 13.5px; margin-bottom: 20px; }

.article-tag, .tag-pill {
    display: inline-block;
    font-family: var(--ap-mono);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: var(--ap-primary);
}

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }

/* ============================================================
   ЛЕНДИНГ (ld-*)
   ============================================================ */

.ld-header {
    padding: 12px 16px;
    background: var(--ap-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ld-logo { font-weight: 800; font-size: 16px; color: #fff; }

.ld-phone { font-size: 14px; color: #7dd3fc; font-weight: 600; text-decoration: none; font-family: var(--ap-mono); }

.ld-main { max-width: 720px; margin: 0 auto; padding: 0 16px; }

.ld-hero { padding: 24px 0 16px; }

.ld-hero h1 { font-size: 26px; line-height: 1.2; margin-bottom: 12px; color: var(--ap-text); letter-spacing: -0.02em; }

.ld-hero p { font-size: 16px; color: var(--ap-text-2); margin-bottom: 20px; }

.ld-trust { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; font-size: 13px; color: var(--ap-text-2); }

.ld-trust span { display: flex; align-items: center; gap: 6px; }

.ld-footer { padding: 20px 16px; text-align: center; font-size: 13px; color: var(--ap-muted); border-top: 1px solid var(--ap-border); }

/* ============================================================
   CTA-БАННЕР
   ============================================================ */

.td-cta-banner {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.td-cta-title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #fff; letter-spacing: -0.02em; }

.td-cta-subtitle { color: #94a3b8; margin-top: 10px; font-size: 16px; }

/* ============================================================
   СРАВНЕНИЕ / ДО-НЕЛЬЗЯ / МЕТА-КАРТОЧКИ
   ============================================================ */

.td-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.td-compare-card { border-radius: var(--ap-radius); padding: 22px; border: 1px solid var(--ap-border); background: var(--ap-white); }

.td-compare-good { border-color: rgba(16, 185, 129, 0.4); background: #ecfdf5; }

.td-compare-bad { border-color: rgba(239, 68, 68, 0.35); background: #fef2f2; }

.td-compare-title { font-weight: 700; font-size: 16px; margin-bottom: 12px; }

.td-compare-list { list-style: none; }

.td-compare-list li { padding-left: 24px; position: relative; margin-bottom: 8px; font-size: 14.5px; }

.td-compare-list li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: 700; }

.td-compare-bad .td-compare-list li::before { content: '✕'; color: #ef4444; }

.td-do, .td-dont { display: inline-block; font-family: var(--ap-mono); font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 6px; margin-right: 8px; }

.td-do { background: #d1fae5; color: #047857; }

.td-dont { background: #fee2e2; color: #b91c1c; }

.td-meta-card { background: var(--ap-bg); border: 1px solid var(--ap-border); border-radius: 12px; padding: 18px 20px; }

.td-meta-card-dark { background: var(--ap-dark); color: #cbd5e1; border-color: rgba(148,163,184,.15); }

.td-meta-label { font-family: var(--ap-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ap-muted); margin-bottom: 6px; }

.td-meta-value { font-size: 17px; font-weight: 700; color: var(--ap-text); }

.td-guarantee-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.td-guarantee-item { background: var(--ap-white); border: 1px solid var(--ap-border); border-radius: 12px; padding: 20px; text-align: center; }

.td-guarantee-months { font-family: var(--ap-mono); font-size: 30px; font-weight: 800; background: linear-gradient(135deg, var(--ap-primary), var(--ap-cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.td-link-arrow::after { content: ' →'; }

/* ============================================================
   МАРКИ (brands_grid)
   ============================================================ */

.td-brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px; }

.td-brand-card {
    background: var(--ap-white);
    border: 1px solid var(--ap-border);
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.td-brand-card:hover { transform: translateY(-3px); box-shadow: var(--ap-shadow-hover); border-color: rgba(37, 99, 235, .35); }

.td-brand-logo { height: 44px; width: auto; margin: 0 auto 10px; object-fit: contain; display: block; }

.td-brand-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .14));
    color: var(--ap-primary);
    font-family: var(--ap-mono);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .04em;
}

.td-brand-name { font-weight: 700; font-size: 13px; letter-spacing: .02em; }

/* ============================================================
   КЕЙСЫ
   ============================================================ */

.td-cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.td-case-card { background: var(--ap-white); border: 1px solid var(--ap-border); border-radius: var(--ap-radius); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }

.td-case-card:hover { transform: translateY(-3px); box-shadow: var(--ap-shadow-hover); }

.td-case-dark { background: var(--ap-dark); color: #cbd5e1; border-color: rgba(148,163,184,.15); }

.td-case-body { padding: 20px; }

.td-case-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.td-case-desc, .td-case-text { font-size: 14.5px; color: var(--ap-text-2); }

.td-case-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 20px 20px; }

.td-case-photo { border-radius: 9px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.td-case-badge { display: inline-block; font-family: var(--ap-mono); font-size: 11.5px; padding: 3px 10px; border-radius: 999px; background: rgba(37,99,235,.1); color: var(--ap-primary); border: 1px solid rgba(37,99,235,.28); }

/* ============================================================
   МОБИЛЬНАЯ НИЖНЯЯ ПАНЕЛЬ
   ============================================================ */

@media (max-width: 768px) {
    .td-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--ap-dark); z-index: 1200; padding-bottom: env(safe-area-inset-bottom); }

    .td-bottom-action { justify-content: space-around; padding: 8px 10px; }

    .td-bottom-btn, .td-bottom-call, .td-bottom-msg { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 12px; border: 0; background: none; color: #cbd5e1; }

    body { padding-bottom: 62px; }

    /* --- шапка --- */
    .td-burger { display: inline-flex; }

    .td-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ap-dark);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        gap: 2px;
        display: none;
        border-bottom: 1px solid rgba(148,163,184,.15);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        box-shadow: 0 24px 48px rgba(2,8,23,.5);
        scrollbar-width: thin;
        scrollbar-color: rgba(37, 99, 235, .5) rgba(148, 163, 184, .08);
    }

    .td-nav.open { display: flex; }

    /* КРИТИЧНО: сбросить justify-content: flex-end из базового правила.
       На переполненном flex-контейнере flex-end уводит НАЧАЛО списка
       выше верхней границы контейнера в зону, недоступную скроллу
       (offsetTop < 0, scrollHeight = clientHeight) — верхние пункты
       «прячутся» под шапку и недоступны для тапа. */
    .td-nav { justify-content: flex-start; }

    /* На узких экранах бейдж у логотипа не помещается вместе с бургером —
       выдавливает его за край и создаёт горизонтальный скролл */
    @media (max-width: 430px) {
        .td-logo-sub { display: none; }
        .td-header-top .td-header-inner { padding: 0 14px; }
    }

    /* КРИТИЧНО: пункты не должны сжиматься flex-алгоритмом. Иначе при
       переполнении (3 уровня) flex ужимает высоты пунктов, контент
       налезает на соседей и уезжает под sticky-шапку, а скролл
       контейнера не включается (scrollHeight = clientHeight). */
    .td-nav > .td-nav-item { flex: 0 0 auto; }

    .td-nav-link { width: 100%; justify-content: space-between; padding: 12px 10px; font-size: 15px; }

    .td-dropdown, .td-dropdown-submenu {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        display: none;
        box-shadow: none;
        border: 0;
        background: rgba(148, 163, 184, 0.06);
        min-width: 0;
        padding: 4px 0 4px 8px;
        margin: 2px 0;
    }

    .td-dropdown.active, .td-dropdown-submenu.active { display: block; visibility: visible; opacity: 1; }

    /* На тёмном фоне мобильного меню ссылки подменю — светлые */
    .td-dropdown-link { color: #cbd5e1; }
    .td-dropdown-item:hover > .td-dropdown-link,
    .td-dropdown-link:active { background: rgba(37, 99, 235, 0.18); color: #fff; }

    /* вложенные уровни: отступ-линия + компактнее */
    .td-dropdown-submenu {
        border-left: 1px solid rgba(148, 163, 184, .22);
        border-radius: 0;
        padding-left: 10px;
        margin-left: 4px;
    }

    /* ВАЖНО: на мобильном никакой внутренней прокрутки у подменю —
       скроллится только сам .td-nav. Иначе scrollIntoView клика
       «прячет» пункт за шапкой (клип внутреннего контейнера). */
    .td-dropdown,
    .td-dropdown-submenu {
        max-height: none !important;
        overflow: visible !important;
    }

    .td-dropdown::before { display: none; }

    .td-dropdown-submenu .td-dropdown-link { font-size: 13.5px; padding: 8px 10px; }

    /* пункты с подменю: ссылка + шеврон в одну строку, дропдаун — на следующей */
    .td-nav-item.has-children,
    .td-dropdown-item.has-children { display: flex; align-items: center; flex-wrap: wrap; }

    .td-nav-item.has-children > .td-nav-link,
    .td-dropdown-item.has-children > .td-dropdown-link { flex: 1 1 auto; width: auto; }

    .td-nav-item.has-children > .td-dropdown,
    .td-nav-item.has-children > .td-dropdown-submenu,
    .td-dropdown-item.has-children > .td-dropdown,
    .td-dropdown-item.has-children > .td-dropdown-submenu { width: 100%; }

    .td-nav-item .td-nav-toggle,
    .td-dropdown-item .td-nav-toggle { position: static; transform: none; margin: 8px 2px; }

    .td-nav-toggle.active { transform: rotate(180deg); }

    .td-nav-item.has-children > .td-nav-link.active { color: #7dd3fc; background: rgba(37, 99, 235, 0.14); }

    .td-dropdown-item.has-children > .td-dropdown-link.active { color: #7dd3fc; background: rgba(37, 99, 235, 0.14); }

    .td-header-bottom .td-header-inner { justify-content: center; }

    .td-hero { grid-template-columns: 1fr; gap: 24px; }

    .td-text-media, .td-text-media-right { grid-template-columns: 1fr; }

    .td-text-media-right .td-text-media-text { order: 0; }

    .td-grid-3, .td-grid-4, .td-grid-col-2 { grid-template-columns: 1fr; }

    .td-compare-grid { grid-template-columns: 1fr; }

    .td-form-grid { grid-template-columns: 1fr; }

    .td-footer-inner { grid-template-columns: 1fr; gap: 24px; }

    .td-section { padding: 40px 16px; }

    .td-phone-big { font-size: 16.5px; padding: 11px 16px; }

    .td-price-row { flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 16px; }
}

@media (max-width: 1024px) {
    .td-nav-link { padding: 10px 9px; font-size: 13.5px; }
    .td-hero { gap: 30px; }
}

@media (min-width: 769px) {
    .td-nav-hidden { display: none !important; }
}

/* --- печать и мелочи --- */
::selection { background: rgba(37, 99, 235, 0.22); }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
