

/* Start:/bitrix/templates/terra/template_styles.css?179436135781920*/
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:url('/bitrix/templates/terra/fonts/montserrat/montserrat-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:400;font-display:swap;src:url('/bitrix/templates/terra/fonts/montserrat/montserrat-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:url('/bitrix/templates/terra/fonts/montserrat/montserrat-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:500;font-display:swap;src:url('/bitrix/templates/terra/fonts/montserrat/montserrat-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url('/bitrix/templates/terra/fonts/montserrat/montserrat-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:600;font-display:swap;src:url('/bitrix/templates/terra/fonts/montserrat/montserrat-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url('/bitrix/templates/terra/fonts/montserrat/montserrat-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-style:normal;font-weight:700;font-display:swap;src:url('/bitrix/templates/terra/fonts/montserrat/montserrat-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* cyrillic */

/* ============================================================
   ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
    /* Цвета */
    --color-primary:       #008289;
    --color-primary-dark:  #006b71;
    --color-primary-light: #e6f4f5;
    --color-accent:        #f5a623;   /* жёлтый акцент ~10-20% */
    --color-accent-light:  #fff8ed;
    --color-text:          #1e293b;
    --color-text-muted:    #64748b;
    --color-bg:            #ffffff;
    --color-bg-soft:       #f8fafc;
    --color-border:        #e2e8f0;
    --color-border-active: #008289;

    /* Градиенты */
    --gradient-btn:        linear-gradient(135deg, #008289 0%, #00a3ab 100%);
    --gradient-btn-hover:  linear-gradient(135deg, #006b71 0%, #008289 100%);
    --gradient-accent:     linear-gradient(135deg, #008289 0%, #f5a623 100%);
    --gradient-card-hover: linear-gradient(135deg, #e6f4f5 0%, #f0fbfb 100%);

    /* Типографика */
    --font-family:         'Montserrat', sans-serif;
    --text-base:           16px;
    --text-sm:             14px;
    --text-xs:             13px;
    --text-h4:             16px;
    --text-h3:             17px;
    --text-h2:             36px;
    --text-h1-inner:       44px;
    --text-h1-hero:        48px;
    --fw-normal:           400;
    --fw-medium:           500;
    --fw-semibold:         600;

    /* Отступы блоков — уменьшены на ~40% по сравнению с предыдущими */
    --section-gap:         48px;   /* было ~80px */
    --section-gap-sm:      32px;   /* между подблоками */
    --block-gap:           24px;   /* внутри блока */
    --container-px:        24px;   /* боковые отступы */

    /* Скругления */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;

    /* Тени */
    --shadow-card:         0 2px 8px rgba(0,0,0,0.06);
    --shadow-card-hover:   0 6px 20px rgba(0,130,137,0.15);
    --shadow-btn:          0 4px 12px rgba(0,130,137,0.3);
    --shadow-btn-hover:    0 6px 18px rgba(0,130,137,0.45);
}

/* ============================================================
   БАЗОВЫЕ СТИЛИ
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif !important;
    font-size: var(--text-base);
    font-weight: var(--fw-normal);
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, p, li, a, span, div, button, input, textarea, select {
    font-family: 'Montserrat', sans-serif !important;
}

/* ============================================================
   ТИПОГРАФИКА
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: var(--fw-semibold);
    line-height: 1.25;
    margin: 0 0 var(--block-gap);
}

/* H1 на внутренних страницах */
h1 { font-size: var(--text-h1-inner); }

/* H1 на главном баннере — применять класс .h1-hero */
.h1-hero { font-size: var(--text-h1-hero); }

h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); font-weight: var(--fw-semibold); }

p, li { font-size: var(--text-base); font-weight: var(--fw-normal); line-height: 1.65; }
ul, ol { padding-left: 1.5em; margin: 0 0 var(--block-gap); }
ul li, ol li { margin-bottom: 6px; }

/* Хлебные крошки */
.breadcrumbs, .breadcrumbs a, .breadcrumbs span {
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
}
.breadcrumbs a:hover { color: var(--color-primary); }

/* Контакты над шапкой */
.topbar-contacts, .topbar-contacts a {
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
}

/* Меню */
.nav-link, nav a {
    font-size: var(--text-base);
    font-weight: var(--fw-medium);
}

/* ============================================================
   КОНТЕЙНЕР И ОТСТУПЫ СЕКЦИЙ
   ============================================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--container-px);
    padding-right: var(--container-px);
}

section, .section {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

.section-sm {
    padding-top: var(--section-gap-sm);
    padding-bottom: var(--section-gap-sm);
}

/* Стандартный верх внутренней страницы */
.page-top {
    padding-top: 24px;
    padding-bottom: var(--section-gap);
}
.page-top .breadcrumbs { margin-bottom: 16px; }
.page-top h1 { margin-bottom: var(--section-gap-sm); }

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

/* Основная кнопка */
.btn, .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gradient-btn);
    color: #ffffff;
    font-family: var(--font-family);
    font-size: var(--text-base);
    font-weight: var(--fw-medium);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-btn);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.btn::after, .btn-primary::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.2s ease;
}
.btn:hover, .btn-primary:hover {
    background: var(--gradient-btn-hover);
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}
.btn:hover::after, .btn-primary:hover::after { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn-no-arrow::after, .btn-no-arrow:hover::after { content: none; }

/* Кнопка-контур (вторичная) */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 27px;
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-family);
    font-size: var(--text-base);
    font-weight: var(--fw-medium);
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-outline::after { content: '→'; transition: transform 0.2s ease; }
.btn-outline:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-card-hover);
}
.btn-outline:hover::after { transform: translateX(3px); }

/* Большая кнопка */
.btn-lg { padding: 16px 40px; font-size: 17px; border-radius: var(--radius-lg); }

/* Кнопка на всю ширину */
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   HOVER — КЛИКАБЕЛЬНЫЕ КАРТОЧКИ / ПЛИТКИ
   ============================================================ */
.card-clickable {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    box-shadow: var(--shadow-card);
    transition: background 0.2s ease, border-color 0.2s ease,
                box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}
.card-clickable:hover {
    background: var(--gradient-card-hover);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}
/* Активная/выделенная карточка */
.card-clickable.active, .card-clickable[aria-selected="true"] {
    background: var(--gradient-card-hover);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-card-hover);
}

/* ============================================================
   HOVER — НЕКЛИКАБЕЛЬНЫЕ БЛОКИ (тихий, без ощущения клика)
   ============================================================ */
.card-static {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-static:hover {
    box-shadow: 0 4px 14px rgba(0,130,137,0.09);
    border-color: #c8e8ea;
}

/* ============================================================
   ТАБЫ
   ============================================================ */
.tab-active {
    background: var(--gradient-btn);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-btn);
    font-weight: var(--fw-medium);
}
.tab-inactive {
    background: transparent;
    color: var(--color-text-muted);
    font-weight: var(--fw-medium);
}
.tab-inactive:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-md);
}
.tab-content { animation: fadeIn 0.3s ease-in-out; }

/* ============================================================
   ГАЛЕРЕЯ — лёгкое увеличение при наведении
   ============================================================ */
.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
}
.gallery-item img {
    transition: transform 0.35s ease;
    display: block;
    width: 100%;
}
.gallery-item:hover img { transform: scale(1.04); }

/* ============================================================
   ПЛИТКИ С ФОТО (услуги, категории) — название поверх фото
   ============================================================ */
.tile-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
}
.tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.tile-img:hover img { transform: scale(1.05); }
.tile-img .tile-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 32px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    color: #fff;
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
}

/* ============================================================
   МЕНЮ — ВЫПАДАЮЩИЕ
   ============================================================ */
.dropdown-menu {
    background: #f0f8f8; /* светло-серый с зелёным оттенком */
    border: 1px solid #d0eaeb;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.dropdown-menu a {
    font-size: var(--text-base);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    padding: 8px 16px;
    display: block;
    transition: background 0.15s ease, color 0.15s ease;
    border-radius: var(--radius-sm);
}
.dropdown-menu a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

/* ============================================================
   АККОРДЕОН
   ============================================================ */
.accordion-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}
.accordion-content.open { max-height: 800px; opacity: 1; }

/* ============================================================
   ФОРМА — общие стили
   ============================================================ */
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-family);
    font-size: var(--text-base);
    font-weight: var(--fw-normal);
    color: var(--color-text);
    background: #fff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,130,137,0.12);
}
.form-field label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

/* Форма тёмная — класс form-bg используется в HTML */
.form-bg {
    background-color: #1e293b;
    background-image: radial-gradient(circle at 100% 50%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

/* Форма тёмная */
.form-dark .form-field input,
.form-dark .form-field textarea {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: #fff;
}
.form-dark .form-field input::placeholder,
.form-dark .form-field textarea::placeholder { color: rgba(255,255,255,0.45); }
.form-dark .form-field input:focus,
.form-dark .form-field textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,130,137,0.25);
}

/* Чекбокс согласия */
.consent-checkbox {
    width: 18px; height: 18px;
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}
.consent-checkbox:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.485 1.431a1.473 1.473 0 0 0-2.084 0l-6.54 6.539-2.263-2.263a1.473 1.473 0 0 0-2.084 2.084l3.305 3.305a1.473 1.473 0 0 0 2.084 0l7.582-7.581a1.473 1.473 0 0 0 0-2.084z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}
.consent-checkbox:required:invalid { border-color: var(--color-border); }
.consent-checkbox:user-invalid { border-color: #ef4444; }
/* После попытки отправки (класс was-submitted добавляется через JS) */
form.was-submitted .consent-checkbox:required:invalid { border-color: #ef4444; }
form.was-submitted:invalid .consent-label span { color: #ef4444; }
/* На тёмном фоне — светло-красный */
form.was-submitted:invalid .consent-label--dark span { color: #fca5a5; }
/* Современные браузеры */
form:has(.consent-checkbox:user-invalid) .consent-label span { color: #ef4444; }
form:has(.consent-checkbox:user-invalid) .consent-label--dark span { color: #fca5a5; }

/* ============================================================
   ПРОЧЕЕ
   ============================================================ */
.glass-overlay {
    background: linear-gradient(90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,0.95) 60%,
        rgba(255,255,255,0) 100%);
}

.table-scroll::-webkit-scrollbar { height: 6px; }
.table-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.table-scroll::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ZOOM — десктоп (zoom = 1 по умолчанию, как в ТЗ)
   ============================================================ */
@media (min-width: 1025px) {
    body { zoom: 1; }
}
@media (min-width: 1024px) and (max-width: 1280px) {
    body { zoom: 0.9; }
}
/* Шапка на 1024–1100px: иначе кнопки справа выходят за край экрана */
@media (min-width: 1024px) and (max-width: 1100px) {
    header nav { gap: 16px !important; }
}

/* ============================================================
   Внутренние страницы (не главная) — единые отступы
   body.page-inner добавляется в header.php для всех страниц кроме /
   Значения меняются только здесь.
   ============================================================ */
:root {
    --page-top:    32px;   /* шапка → хлебные крошки */
    --crumbs-gap:  24px;   /* хлебные крошки → первый блок */
    --page-bottom: 64px;   /* последний блок → подвал */
}
@media (max-width: 767px) {
    :root {
        --page-top:    24px;
        --page-bottom: 48px;
    }
}

body.page-inner main.max-w-\[1400px\],
body.page-inner > div.max-w-\[1400px\] {
    padding-top: var(--page-top) !important;
    padding-bottom: var(--page-bottom) !important;
}

/* Расстояние до подвала задаёт только --page-bottom */
body.page-inner main.max-w-\[1400px\] > :last-child,
body.page-inner main.max-w-\[1400px\] > :has(+ #certModal),
body.page-inner > div.max-w-\[1400px\] > :last-child {
    margin-bottom: 0 !important;
}
body.page-inner main.max-w-\[1400px\] > section:last-child:not(.p-4):not(.p-6):not(.p-8),
body.page-inner > div.max-w-\[1400px\] > section:last-child:not(.p-4):not(.p-6):not(.p-8) {
    padding-bottom: 0 !important;
}

/* Хлебные крошки */
body.page-inner nav.text-\[13px\] {
    margin-bottom: var(--crumbs-gap) !important;
}

/* Секции-карточки (p-4, p-6, p-8) сохраняют собственные внутренние отступы */
body.page-inner section:not(.p-4):not(.p-6):not(.p-8),
body.page-inner .section {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
}

/* Tailwind py-* классы — уменьшаем вдвое на внутренних страницах */
body.page-inner .py-20,  body.page-inner .md\:py-20  { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
body.page-inner .py-16,  body.page-inner .md\:py-16  { padding-top: 2rem   !important; padding-bottom: 2rem   !important; }
body.page-inner .py-12,  body.page-inner .md\:py-12  { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
body.page-inner .mb-20,  body.page-inner .md\:mb-20  { margin-bottom: 2.5rem !important; }
body.page-inner .mb-16,  body.page-inner .md\:mb-16  { margin-bottom: 2rem   !important; }
body.page-inner .mb-12,  body.page-inner .md\:mb-12  { margin-bottom: 1.5rem !important; }
body.page-inner .mt-20,  body.page-inner .md\:mt-20  { margin-top: 2.5rem !important; }
body.page-inner .mt-16,  body.page-inner .md\:mt-16  { margin-top: 2rem   !important; }
body.page-inner .pt-20,  body.page-inner .md\:pt-20  { padding-top: 2.5rem !important; }
body.page-inner .pt-16,  body.page-inner .md\:pt-16  { padding-top: 2rem   !important; }
body.page-inner .pb-20,  body.page-inner .md\:pb-20  { padding-bottom: 2.5rem !important; }
body.page-inner .pb-16,  body.page-inner .md\:pb-16  { padding-bottom: 2rem   !important; }

/* ============================================================
   ЕДИНАЯ ДИЗАЙН-СИСТЕМА
   Tailwind подключается после этого файла, поэтому здесь нужен !important.
   ============================================================ */
:root {
    --gradient-primary:       linear-gradient(135deg, #00565b 0%, #007b81 62%, #2fb3a8 100%);
    --gradient-primary-hover: linear-gradient(135deg, #00494d 0%, #006b70 62%, #259c92 100%);
    --hover-bg:     #eff9f8;
    --hover-border: #b9e2de;
    --hover-shadow: 0 10px 26px rgba(0, 107, 112, .13);
    --blocks-gap:   64px;   /* между блоками страницы */
    --home-block-y: 32px;   /* половина отступа между блоками на главной */
}
@media (max-width: 767px) {
    :root {
        --blocks-gap:   40px;
        --home-block-y: 20px;
    }
}

/* ---------- Типографика ---------- */
h1:not(footer *) {
    font-size: 44px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}
body:not(.page-inner) h1 { font-size: 48px !important; }
/* Главная: слегка уплотняем только заголовок первого экрана */
body:not(.page-inner) .home-hero h1 { letter-spacing: -0.02em !important; }

h2:not(footer *):not(.text-\[13px\]):not(.text-\[15px\]):not(.text-\[18px\]):not(.text-xl):not(.t-card *):not(.t-note *):not(.t-stats *):not(.t-prose *):not(.t-band *):not(.t-cat-tile *) {
    font-size: 36px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}
h3:not(footer *),
h4.text-\[17px\]:not(footer *),
h2.text-\[18px\] {
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}
h4:not(footer *):not(.text-\[17px\]),
h2.text-\[13px\],
h2.text-\[15px\] {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

/* Основной текст: кроме мелких подписей .text-xs, [11px], [12px] */
body > :not(header, footer, .cart-overlay, .modal-bg, #terraFavPanel, #cookie-banner) :is(p, li, td, dd):not(.text-xs, .text-\[11px\], .text-\[12px\]),
body > :not(header, footer, .cart-overlay, .modal-bg, #terraFavPanel, #cookie-banner) :is(.text-sm, .text-\[13px\], .text-\[14px\], .text-\[15px\]):not(nav, nav *, .leading-tight) {
    font-size: 16px !important;
}
th:not(footer *) {
    font-size: 16px !important;
    font-weight: 600 !important;
}
strong, b { font-weight: 600 !important; }

/* Хлебные крошки */
nav.text-\[13px\], nav.text-\[13px\] * {
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Контакты над шапкой */
body > div.hidden.lg\:block, body > div.hidden.lg\:block * {
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Верхнее меню: «Покупателям» наследовало меньший размер */
header nav > a,
header nav > div > a,
header nav > div > span {
    font-size: 16px !important;
    font-weight: 500 !important;
}

/* ---------- Кнопки ---------- */
a[class~="bg-[#006b70]"], a[class~="bg-[#008289]"],
button[class~="bg-[#006b70]"], button[class~="bg-[#008289]"],
a[style*="linear-gradient"], button[style*="linear-gradient"],
.btn-primary, .modal-submit {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(0, 107, 112, .25) !important;
    opacity: 1 !important;
    transition: background .2s, box-shadow .2s !important;
}
a[class~="bg-[#006b70]"]:hover, a[class~="bg-[#008289]"]:hover,
button[class~="bg-[#006b70]"]:hover, button[class~="bg-[#008289]"]:hover,
a[style*="linear-gradient"]:hover, button[style*="linear-gradient"]:hover,
.btn-primary:hover, .modal-submit:hover {
    background: var(--gradient-primary-hover) !important;
    box-shadow: 0 8px 20px rgba(0, 107, 112, .32) !important;
}

/* Контурные кнопки */
a[class~="text-[#006b70]"][class~="hover:bg-[#006b70]"],
a[class~="text-[#008289]"][class~="hover:bg-[#008289]"],
button[class~="text-[#006b70]"][class~="hover:bg-[#006b70]"],
button[class~="text-[#008289]"][class~="hover:bg-[#008289]"] {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #006b70 !important;
    background: transparent !important;
    border: 1.5px solid #008289 !important;
    border-radius: 12px !important;
    transition: background-color .2s, border-color .2s !important;
}
a[class~="text-[#006b70]"][class~="hover:bg-[#006b70]"]:hover,
a[class~="text-[#008289]"][class~="hover:bg-[#008289]"]:hover,
button[class~="text-[#006b70]"][class~="hover:bg-[#006b70]"]:hover,
button[class~="text-[#008289]"][class~="hover:bg-[#008289]"]:hover {
    color: #006b70 !important;
    background: var(--hover-bg) !important;
}

/* ---------- Большие вкладки (главная) ---------- */
.tab-btn.tab-active, .tab-btn.tab-inactive {
    font-size: 16px !important;
    font-weight: 500 !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    transition: background .2s, border-color .2s, color .2s !important;
}
.tab-btn.tab-active {
    background: var(--gradient-primary) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 107, 112, .28) !important;
}
.tab-btn.tab-inactive {
    background: transparent !important;
    color: #334155 !important;
}
.tab-btn.tab-inactive:hover {
    background: var(--hover-bg) !important;
    border-color: var(--hover-border) !important;
}

/* ---------- Вкладки с текстом (страницы услуг) ---------- */
.tabs-arrow, .tabs-fade-left, .tabs-fade-right { display: none !important; }
.tabs-outer { padding-top: 0 !important; margin-bottom: 24px !important; }
.tabs-scroll {
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 6px !important;
    min-height: 0 !important;
    padding: 6px !important;
    align-items: stretch !important;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
}
.tab-btn.active, .tab-btn.inactive {
    display: block !important;
    flex: 0 1 auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    overflow: visible !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    color: #334155 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    transform: none !important;
}
.tab-btn.active::before, .tab-btn.active::after,
.tab-btn.inactive::before, .tab-btn.inactive::after { display: none !important; }
.tab-btn.inactive:hover {
    color: #0f172a !important;
    background: var(--hover-bg) !important;
    border-color: var(--hover-border) !important;
}
.tab-btn.active {
    color: #006b70 !important;
    border-radius: 10px 10px 0 0 !important;
    box-shadow: inset 0 -2px 0 #008289 !important;
}

/* ---------- Текст услуг из панели управления ---------- */
.t-prose > :last-child { margin-bottom: 0; }
.t-prose p, .t-prose ul, .t-prose ol, .t-table, .t-figure { margin-bottom: 16px; }
.t-prose h3 { margin: 24px 0 12px; }
.t-prose > h3:first-child { margin-top: 0; }
.t-prose ul, .t-prose ol { padding-left: 22px; }
.t-prose ul { list-style: disc; }
.t-prose ol { list-style: decimal; }
.t-prose li { margin-bottom: 6px; }
.t-prose li > ul, .t-prose li > ol { margin: 6px 0 0; }
.t-prose a { color: #008289; text-decoration: underline; }
.t-table { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 12px; }
.t-table table { width: 100%; border-collapse: collapse; }
.t-table th, .t-table td { padding: 10px 14px; border-bottom: 1px solid #f3f4f6; text-align: left; vertical-align: top; }
.t-table th { background: #f9fafb; font-weight: 600; }
.t-table tr:last-child td { border-bottom: none; }
.t-figure img { max-width: 100%; max-height: 420px; border-radius: 12px; }

/* ---------- Кликабельные плитки ---------- */
a.product-card, .product-card, a.group.rounded-2xl {
    border: 1px solid transparent;
    transition: background-color .2s, border-color .2s, box-shadow .2s !important;
}
a.product-card:hover, .product-card:hover, a.group.rounded-2xl:hover {
    background-color: var(--hover-bg) !important;
    border-color: var(--hover-border) !important;
    box-shadow: var(--hover-shadow) !important;
    transform: none !important;
}

/* Кнопка «В корзину» 16px не вмещается в колонку 240px рядом со счётчиком */
@media (min-width: 768px) {
    #product-list .product-card > div:last-child { width: 272px !important; }
    #product-list, div.flex-1:has(> #product-list), #product-list .product-card > .flex-1 { min-width: 0; }
}

/* ---------- Некликабельные карточки: инверсия с градиентом ---------- */
.card-static,
div.bg-white.rounded-2xl.p-6.flex.items-start,
div.bg-white.rounded-2xl.p-7,
div.bg-white.rounded-2xl.p-6.flex-col[class*="hover:shadow-md"],
div.rounded-\[20px\].p-5 {
    transition: background .2s, border-color .2s, box-shadow .2s !important;
}
.card-static:hover,
div.bg-white.rounded-2xl.p-6.flex.items-start:hover,
div.bg-white.rounded-2xl.p-7:hover,
div.bg-white.rounded-2xl.p-6.flex-col[class*="hover:shadow-md"]:hover,
div.rounded-\[20px\].p-5:hover {
    background: var(--gradient-primary) !important;
    border-color: transparent !important;
    box-shadow: var(--hover-shadow) !important;
}
.card-static:hover :is(h2, h3, h4, p, span, a, li, div, svg, i),
div.bg-white.rounded-2xl.p-6.flex.items-start:hover :is(h2, h3, h4, p, span, a, li, div, svg, i),
div.bg-white.rounded-2xl.p-7:hover :is(h2, h3, h4, p, span, a, li, div, svg, i),
div.bg-white.rounded-2xl.p-6.flex-col[class*="hover:shadow-md"]:hover :is(h2, h3, h4, p, span, a, li, div, svg, i),
div.rounded-\[20px\].p-5:hover :is(h2, h3, h4, p, span, a, li, div, svg, i) {
    color: #fff !important;
}
.card-static:hover .rounded-full,
div.bg-white.rounded-2xl.p-6.flex-col[class*="hover:shadow-md"]:hover .rounded-full {
    background: rgba(255, 255, 255, .15) !important;
    border-color: rgba(255, 255, 255, .4) !important;
}

/* ---------- Отступы между блоками ---------- */
.home-block {
    padding-top: var(--home-block-y) !important;
    padding-bottom: var(--home-block-y) !important;
}
body.page-inner main.max-w-\[1400px\] > section:not(:last-child),
body.page-inner > div.max-w-\[1400px\] > section:not(:last-child) {
    margin-bottom: var(--blocks-gap) !important;
}
body.page-inner main.max-w-\[1400px\] > section:not(.p-4):not(.p-6):not(.p-8),
body.page-inner > div.max-w-\[1400px\] > section:not(.p-4):not(.p-6):not(.p-8) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* H1 → контент. Заголовок услуги стоит вверху, а не по центру картинки */
body.page-inner h1 { margin-bottom: 16px !important; }
body.page-inner main > section:first-of-type > .flex.items-center { align-items: flex-start !important; }

/* ---------- Мобильная версия ---------- */
@media (max-width: 767px) {
    h1:not(footer *) { font-size: 28px !important; }
    body:not(.page-inner) h1 { font-size: 30px !important; }
    h2:not(footer *):not(.text-\[13px\]):not(.text-\[15px\]):not(.text-\[18px\]):not(.text-xl):not(.t-card *):not(.t-note *):not(.t-stats *):not(.t-prose *):not(.t-band *):not(.t-cat-tile *) { font-size: 24px !important; }
    body > :not(header, footer, .cart-overlay, .modal-bg, #terraFavPanel, #cookie-banner) :is(p, li, td, dd):not(.text-xs, .text-\[11px\], .text-\[12px\]),
    body > :not(header, footer, .cart-overlay, .modal-bg, #terraFavPanel, #cookie-banner) :is(.text-sm, .text-\[13px\], .text-\[14px\], .text-\[15px\]):not(nav, nav *, .leading-tight) {
        font-size: 15px !important;
    }
    th:not(footer *) { font-size: 15px !important; }
    nav.text-\[13px\], nav.text-\[13px\] * { font-size: 13px !important; }
    a[class~="bg-[#006b70]"], a[class~="bg-[#008289]"],
    button[class~="bg-[#006b70]"], button[class~="bg-[#008289]"],
    a[style*="linear-gradient"], button[style*="linear-gradient"] { font-size: 15px !important; }
    .tab-btn.active, .tab-btn.inactive { padding: 8px 12px !important; font-size: 15px !important; }
}

/* ---------- Главная ---------- */
.home-stats { padding-bottom: var(--home-block-y) !important; }
.title-text { font-size: 17px !important; font-weight: 600 !important; }

/* ---------- Формы связи ---------- */
.t-form {
    display: grid;
    grid-template-columns: minmax(0, 47%) minmax(0, 1fr);
    gap: 40px;
    padding: 40px;
    color: #fff;
    background: linear-gradient(135deg, #0b2b33 0%, #0d3f47 55%, #0f5a5e 100%);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(6, 42, 50, .25);
}
.t-form h2 { margin-bottom: 12px !important; color: #fff !important; }
.t-form p { color: #cfe3e3 !important; }
.t-form__intro { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.t-form__features {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.t-form__features li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px !important;
    line-height: 1.3;
    text-align: center;
    color: #e6f4f5;
}
.t-form__features svg {
    width: 44px;
    height: 44px;
    padding: 11px;
    color: #7fe3d6;
    background: rgba(82, 214, 198, .14);
    border-radius: 50%;
}
.t-form__fields { display: flex; flex-direction: column; gap: 12px; }
.t-form__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.t-form input[type="text"], .t-form input[type="tel"], .t-form input[type="email"], .t-form textarea {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s;
}
.t-form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.t-form input::placeholder, .t-form textarea::placeholder { color: #b8cfd0; }
.t-form input:focus, .t-form textarea:focus { border-color: #52d6c6; }
.t-form__file {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    color: #cfe3e3;
    border: 1px dashed rgba(255, 255, 255, .3);
    border-radius: 10px;
    cursor: pointer;
}
.t-form__file svg { width: 18px; height: 18px; }
.t-form__file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* Яндекс SmartCaptcha: место под виджет занято заранее, чтобы форма не прыгала при его загрузке */
.t-captcha { min-height: 102px; }
.t-captcha[data-err]::after {
    content: "Подтвердите, что вы не робот";
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #dc2626;
}
.t-form .t-captcha[data-err]::after { color: #ffb4a9; }
.t-form__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.t-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #cfe3e3;
    cursor: pointer;
}
.t-form__consent a { color: #fff; text-decoration: underline; }
.t-form__consent input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    appearance: auto;
    accent-color: #2fb3a8;
}
.t-form__submit {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 24px;
    white-space: nowrap;
    cursor: pointer;
}
.t-form__submit svg { width: 18px; height: 18px; }
.t-form--photo {
    display: block;
    padding: 44px;
    background:
        url('/upload/terra/forms/form2-photo.webp') right 35% / auto 116% no-repeat,
        linear-gradient(135deg, #0b2b33 0%, #0b2b33 60%, #0d3a42 100%);
}
.t-form--photo form { max-width: 660px; gap: 16px; }
.t-form--photo h2 { margin-bottom: 0 !important; }
.t-form--photo p { margin: 0; }

/* ---------- Карта перед подвалом ---------- */
.t-map-card {
    position: absolute;
    right: 72px;
    bottom: 52px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 16px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

@media (max-width: 1023px) {
    .t-form { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; gap: 20px; }
    .t-form--photo { padding: 24px 18px; background: linear-gradient(135deg, #08303a 0%, #0d4a50 100%); }
    .t-form__row { grid-template-columns: 1fr; }
    .t-form__bottom { flex-direction: column; align-items: stretch; }
    .t-form__submit { justify-content: center; }
    .t-map-card { right: 12px; bottom: 12px; left: 12px; width: auto; }
}

/* Вкладки в карточке товара: переносятся, а не ездят в сторону */
[role="tablist"].overflow-x-auto {
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 6px !important;
    padding: 6px !important;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 14px;
}

/* ---------- Телефон: компактные блоки ---------- */
@media (max-width: 767px) {
    /* Главный баннер: светлый фон, текст, кнопка на всю ширину, под ней фото (как у Акватеха) */
    .home-hero {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        background: linear-gradient(180deg, #f3f8f9 0%, #e6f1f2 100%) !important;
    }
    .home-hero > .absolute { display: none !important; }
    .home-hero > .h-full {
        height: auto !important;
        min-height: 0 !important;
        justify-content: flex-start !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }
    .home-hero .max-w-2xl { margin-top: 0 !important; }
    .home-hero h1 { margin-bottom: 20px !important; }
    .home-hero ul { margin-bottom: 28px !important; }
    .home-hero .space-y-4 > * + * { margin-top: 12px !important; }
    .home-hero button { width: 100% !important; justify-content: center; }

    /* Цифры о компании: как на странице «О компании», в столбик */
    .home-stats { margin-top: 0 !important; padding-top: var(--home-block-y); }

    /* Плитки услуг и категорий по две в ряд, «Подробнее» той же высоты */
    .tab-content .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    a.product-card, .tab-content .grid > a { height: 150px !important; }
    .home-block .pb-10:has(> .tab-content) { padding-bottom: 0 !important; }
    a.product-card .p-5 { padding: 10px 12px !important; }
    a.product-card h3 { font-size: 14px !important; width: 100% !important; }
    a.product-card img { width: 66% !important; height: 58% !important; }
    .tab-content.p-6 { padding: 14px !important; }
    .card-static { padding: 14px !important; }

    /* Преимущества в карточке товара и каталоге */
    div.rounded-xl.p-4.flex.items-center.gap-3 { min-width: 0; padding: 10px !important; gap: 8px !important; }
    div.rounded-xl.p-4.flex.items-center.gap-3 > div { width: 30px !important; height: 30px !important; }
    div.rounded-xl.p-4.flex.items-center.gap-3 > span { min-width: 0; font-size: 12px !important; }

    /* Категории не висят над товарами */
    body:has(#product-list) div.grid:has(> a h2.text-\[13px\]) { display: none !important; }

    /* Фильтры скрыты, пока их не откроют */
    aside.shrink-0 > .t-filters { padding: 14px; }

    /* Товары по два в ряд */
    #product-list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    #product-list .product-card { flex-direction: column !important; gap: 8px !important; padding: 10px !important; }
    #product-list .product-card > a:first-of-type { height: 110px !important; padding: 4px !important; }
    #product-list .product-card > .flex-1 { padding-top: 0 !important; }
    #product-list .product-card > .flex-1 > :not(h2) { display: none !important; }
    #product-list h2 { margin-bottom: 0 !important; font-size: 14px !important; line-height: 1.3 !important; }
    #product-list .product-card > div:last-child { padding: 8px 0 0 !important; border-top: none !important; }
    #product-list .product-card > div:last-child > div:last-child { flex-wrap: wrap; gap: 6px !important; }
    #product-list .text-\[26px\] { font-size: 17px !important; white-space: normal; }
    #product-list .t-price-ask { font-size: 14px; white-space: normal; }
    #product-list .product-card > div:last-child > div:last-child > * { flex: 1 0 100%; width: 100% !important; }
}

/* ---------- Схема работы ---------- */
div.text-center:has(> h1) { text-align: left !important; }
div.text-center:has(> h1) > p { margin-left: 0 !important; }
span.text-\[40px\].text-gray-100 { color: var(--color-primary) !important; }


/* ---------- Многоуровневое меню ---------- */
.t-menu { position: relative; }
.t-menu__top { display: flex; align-items: center; gap: 4px; }
.t-menu__list {
    position: absolute; top: 100%; left: 0; z-index: 60; display: none;
    width: 320px; padding: 8px; list-style: none; background: #fff;
    border: 1px solid #eef0f3; border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}
.t-menu > .t-menu__list { margin-top: 10px; }
.t-menu > .t-menu__list::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.t-menu:hover > .t-menu__list, .t-menu__item:hover > .t-menu__list { display: block; }
.t-menu__item { position: relative; }
.t-menu__item > .t-menu__list { top: -9px; left: 100%; }
.t-menu__item > a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: #1f2937;
}
.t-menu__item > a:hover, .t-menu__item:hover > a { background: var(--hover-bg); color: #008289; }
.t-menu__item > a svg { width: 16px; height: 16px; flex-shrink: 0; color: #9ca3af; }
@media (max-width: 1280px) {
    .t-menu__item .t-menu__item > .t-menu__list { left: auto; right: 100%; }
}

/* ---------- Подвал ---------- */
.t-foot { padding: 56px 0 28px; color: #cbd5e1; font-size: 15px; }
.t-foot__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.t-foot__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.t-foot__logo span { font-size: 13px; color: #94a3b8; line-height: 1.3; }
.t-foot__logo b { display: block; font-size: 18px; font-weight: 700; color: #fff; }
.t-foot__contacts { list-style: none; }
.t-foot__contacts li { display: flex; gap: 10px; margin-bottom: 12px; line-height: 1.45; }
.t-foot__contacts svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: #2bb6bd; }
.t-foot__contacts a { display: block; }
.t-foot a:hover { color: #fff; }
.t-foot__title { margin-bottom: 16px; font-size: 15px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.t-foot__links { list-style: none; }
.t-foot__links li { margin-bottom: 10px; }
.t-foot__req p { margin-bottom: 6px; line-height: 1.45; }
.t-foot__company { font-weight: 600; color: #fff; }
.t-foot__docs { list-style: none; margin-top: 14px; }
.t-foot__docs li { margin-bottom: 6px; line-height: 1.3; }
.t-foot__docs a { font-size: 12.5px !important; text-decoration: underline; }
@media (min-width: 1280px) { .t-foot__docs a { white-space: nowrap; } }
.t-foot__bottom { padding-top: 20px; border-top: 1px solid #334155; font-size: 12px; line-height: 1.6; color: #94a3b8; }
@media (max-width: 1100px) { .t-foot__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .t-foot { padding-top: 40px; }
    .t-foot__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Блоки главной на внутренних страницах ---------- */
body.page-inner main .home-block { max-width: none; padding-left: 0 !important; padding-right: 0 !important; background: none !important; border: 0 !important; }
body.page-inner main .home-block > .max-w-\[1400px\] { padding-left: 0; padding-right: 0; }
.t-why-ico { width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; background: #fff; }

/* ---------- Форма №3 ---------- */
.t-band {
    display: flex; align-items: center; min-height: 240px; padding: 40px 48px; border-radius: 16px; overflow: hidden;
    background: url(/upload/terra/forms/form3-photo.webp) right center / auto 100% no-repeat, linear-gradient(180deg, #f8fafa 0%, #deebed 100%);
    border: 1px solid #e3e8eb;
}
.t-band h2 { margin-bottom: 8px; font-size: 32px !important; }
.t-band p { margin-bottom: 20px; }
@media (max-width: 767px) {
    .t-band {
        min-height: 0; padding: 24px 20px 170px;
        background: url(/upload/terra/forms/form3-photo.webp) right bottom / 100% auto no-repeat, linear-gradient(180deg, #f8fafa 0%, #f8fafa 58%, #deebed 100%);
    }
    .t-band h2 { font-size: 24px !important; }
}

/* ---------- Как мы работаем ---------- */
.t-steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0; list-style: none; }
.t-steps__list li { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 18px 20px; background: #fff; border: 1px solid #eef0f3; border-radius: 14px; font-weight: 600; color: #111827; }
.t-steps__list span {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 10px; color: #fff; font-weight: 700; background: linear-gradient(135deg, #006b70, #2bb6bd);
}
@media (max-width: 1023px) { .t-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
    .t-steps__list { gap: 8px; }
    .t-steps__list li { padding: 12px; gap: 10px; font-size: 14px; }
    .t-steps__list span { width: 32px; height: 32px; }
}

/* ---------- Страницы услуг ---------- */
.t-prose h2 { margin: 0 0 16px; font-size: 24px !important; line-height: 1.25; }
.t-gallery h2 { margin-bottom: 24px; }
.t-related__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.t-related__tile { position: relative; display: block; height: 220px; padding: 20px; border-radius: 16px; background: #f4f5f8; overflow: hidden; }
.t-related__tile h3 { position: relative; z-index: 1; max-width: 80%; color: #111827; }
.t-related__tile img { position: absolute; right: 4px; bottom: 4px; width: 80%; height: 70%; object-fit: contain; }
.t-tiles > p, .t-tiles > div.mb-8 { margin: 16px 0 24px; }
.t-tiles { margin-top: 16px; }
@media (max-width: 1023px) { .t-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
    .t-prose h2 { font-size: 20px !important; }
    .t-related__grid { gap: 10px; }
    .t-related__tile { height: 150px; padding: 12px; }
    .t-related__tile h3 { max-width: 100%; font-size: 14px !important; }
    .t-related__tile img { width: 66%; height: 58%; }
}

/* ---------- Карточки и плашки страниц ---------- */
.t-cards { display: grid; gap: 20px; }
.t-cards--2 { grid-template-columns: repeat(2, 1fr); }
.t-cards--3 { grid-template-columns: repeat(3, 1fr); }
.t-cards--4 { grid-template-columns: repeat(4, 1fr); }
.t-card { padding: 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }
.t-card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 17px !important; line-height: 1.3; color: #111827; }
.t-card h2 svg { width: 22px; height: 22px; flex-shrink: 0; color: #008289; }
.t-card p { margin-bottom: 10px; }
.t-card > :last-child { margin-bottom: 0; }
.t-card__strong { font-weight: 600; color: #111827; }
.t-rows { list-style: none; }
.t-rows li { display: flex; gap: 10px; margin-bottom: 10px; line-height: 1.45; }
.t-rows li:last-child { margin-bottom: 0; }
.t-rows svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: #008289; }
.t-check { list-style: none; }
.t-check li { position: relative; margin-bottom: 8px; padding-left: 26px; line-height: 1.45; }
.t-check li:last-child { margin-bottom: 0; }
.t-check li::before {
    content: ''; position: absolute; left: 0; top: 4px; width: 17px; height: 17px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008289' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card-static:hover .t-check li::before { filter: brightness(0) invert(1); }
.card-static:hover .t-rows svg, .card-static:hover h2 svg { color: #fff; }
.card-static:hover .t-card__strong { color: #fff; }
.t-note { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #006b70, #2bb6bd); }
.t-note svg { width: 34px; height: 34px; flex-shrink: 0; }
.t-note h2 { margin-bottom: 4px; font-size: 22px !important; color: #fff; }
.t-note p { margin: 0; color: #fff !important; }
.t-wide-img { display: block; width: 100%; height: auto; border-radius: 16px; }
.t-actions { display: flex; flex-wrap: wrap; gap: 12px; }
main > .t-actions { margin-bottom: var(--blocks-gap); }
.t-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.t-contact__map { min-height: 560px; border-radius: 16px; overflow: hidden; background: #e5e7eb; }
.t-contact__map iframe { display: block; width: 100%; height: 100%; min-height: 560px; border: 0; }
.t-form--col { display: block; height: 100%; }
.t-form--col .t-form__intro { margin-bottom: 20px; }
.t-stats { padding: 32px; border-radius: 20px; text-align: center; background: linear-gradient(135deg, #dcf0f1, #f3fafa 50%, #d3ecee); }
.t-stats h2 { margin-bottom: 28px; font-size: 24px !important; }
.t-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t-stats__grid div + div { border-left: 1px solid #c9e3e5; }
.t-stats__grid > div { font-size: 15px; line-height: 1.45; color: #475569; }
.t-stats__grid b { display: block; margin-bottom: 6px; font-size: 56px; font-weight: 600; line-height: 1.1; color: #006b70; }
/* Главная: заголовок слева, цифры справа */
.t-stats--side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); align-items: center; gap: 24px; padding: 36px 40px; text-align: left; box-shadow: 0 10px 40px rgba(0, 0, 0, .08); }
.t-stats h2 { font-weight: 600 !important; color: #0f172a; }
.t-stats--side h2 { margin: 0 !important; line-height: 1.3 !important; }
.t-stats--side .t-stats__grid { text-align: center; }
.t-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.t-stage { position: relative; min-height: 190px; padding: 24px; overflow: hidden; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }
.t-stage span { position: absolute; top: 4px; right: 14px; font-size: 76px; font-weight: 800; line-height: 1; color: #e4f2f3; }
.t-stage p { position: relative; max-width: 88%; margin: 40px 0 0; }
.t-stage--last { color: #fff; background: linear-gradient(135deg, #006b70, #2bb6bd); border-color: transparent; }
.t-stage--last p { color: #fff !important; }
.t-stage--last span { color: rgba(255, 255, 255, .22); }
@media (max-width: 1100px) {
    .t-cards--4 { grid-template-columns: repeat(2, 1fr); }
    .t-cards--3, .t-stages { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .t-cards--2, .t-cards--3, .t-cards--4, .t-stages, .t-contact { grid-template-columns: 1fr; }
    .t-cards { gap: 12px; }
    .t-card, .t-note { padding: 18px; }
    .t-stats { padding: 20px 14px; }
    .t-stats__grid { grid-template-columns: 1fr; }
    .t-stats__grid div + div { padding-top: 12px; border-left: 0; border-top: 1px solid #c9e3e5; }
    .t-stats__grid b { font-size: 40px; }
    .t-stats--side { grid-template-columns: 1fr; gap: 18px; padding: 22px 16px; text-align: center; }
    .t-stage { min-height: 0; }
    .t-contact__map, .t-contact__map iframe { min-height: 320px; }
}

/* Заголовки внутри компонентов сильнее общего правила для h2 */
body main .t-card h2 { font-size: 17px !important; line-height: 1.3 !important; margin-bottom: 14px !important; }
body main .t-note h2 { font-size: 22px !important; margin-bottom: 4px !important; color: #fff !important; }
body main .t-stats h2 { font-size: 24px !important; margin-bottom: 28px !important; }
body main .t-prose h2 { font-size: 24px !important; line-height: 1.25 !important; margin: 0 0 16px !important; }
body .t-band h2 { font-size: 32px !important; margin-bottom: 8px !important; }
@media (max-width: 767px) {
    body main .t-prose h2 { font-size: 20px !important; }
    body .t-band h2 { font-size: 24px !important; }
}

/* ---------- Каталог ---------- */
.t-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.t-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.t-status--stock { color: #008289; }
.t-status--order { color: #ea7a0c; }
.t-status--none { color: #dc2626; }
.t-props div { display: flex; flex-wrap: wrap; gap: 0 12px; margin-bottom: 6px; font-size: 14px; }
.t-props dt { flex: 0 0 150px; color: #6b7280; }
.t-props dd { flex: 1 1 150px; min-width: 0; color: #111827; overflow-wrap: break-word; }
.t-props--wide { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f3f4f6; }
.t-props--wide dt { flex-basis: 190px; }
.t-filters { padding: 24px; background: #fff; border: 1px solid #eef0f3; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.t-filters > h2 { margin-bottom: 16px !important; }
.t-filter__input { width: 100%; margin-bottom: 16px; padding: 10px 12px; border: 1px solid #e2e6ea; border-radius: 10px; font-size: 14px; outline: none; }
.t-filter__input:focus, .t-filter__range input:focus { border-color: #008289; }
.t-filter { padding: 14px 0; border-top: 1px solid #eef0f3; }
.t-filter summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; color: #111827; cursor: pointer; list-style: none; user-select: none; }
.t-filter summary::-webkit-details-marker { display: none; }
.t-filter summary::after {
    content: ''; flex-shrink: 0; width: 14px; height: 14px; transition: transform .2s;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.t-filter[open] summary::after { transform: rotate(180deg); }
.t-filter__list { margin-top: 10px; }
.t-opt, .t-toggle { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: #374151; cursor: pointer; }
.t-opt input { width: 17px; height: 17px; flex-shrink: 0; accent-color: #008289; cursor: pointer; }
.t-opt span, .t-toggle span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.t-opt em, .t-toggle em { font-style: normal; font-size: 12px; color: #9ca3af; }
.t-opt.is-off, .t-toggle.is-off { color: #b6bcc4; cursor: default; }
.t-opt.is-off input { cursor: default; }
.t-filter:not(.is-all) .t-opt--more { display: none; }
.t-filter__more { margin-top: 6px; font-size: 13px; font-weight: 500; color: #008289; cursor: pointer; }
.t-filter__more:hover { color: #006b70; }
.t-toggle { margin-top: 10px; }
.t-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.t-toggle i { position: relative; flex-shrink: 0; width: 36px; height: 20px; background: #d9dee3; border-radius: 10px; transition: background .2s; }
.t-toggle i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s; }
.t-toggle input:checked + i { background: #008289; }
.t-toggle input:checked + i::after { transform: translateX(16px); }
.t-toggle input:focus-visible + i { outline: 2px solid #008289; outline-offset: 2px; }
.t-filter__range { display: flex; gap: 10px; margin-top: 10px; }
.t-filter__range label { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; font-size: 13px; color: #6b7280; }
.t-filter__range input { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid #e2e6ea; border-radius: 8px; font-size: 14px; color: #111827; text-align: center; outline: none; }
.t-filter__range input::-webkit-inner-spin-button, .t-filter__range input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.t-filter__sub { margin-top: 12px; }
.t-filter__sub > p { font-size: 13px !important; color: #6b7280; }
.t-filter__sub .t-filter__range, .t-filter__sub .t-filter__list { margin-top: 6px; }
.t-filter__apply { width: 100%; margin-top: 12px; padding: 10px; border: 1px solid #008289; border-radius: 10px; font-weight: 600; color: #008289; background: #fff; cursor: pointer; }
#t-catalog.is-loading > * { opacity: .55; transition: opacity .15s; }
.t-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.t-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 10px 6px 12px; font-size: 13px; color: #0f4f54; background: #e6f4f5; border-radius: 8px; overflow-wrap: anywhere; }
.t-chip i { position: relative; flex-shrink: 0; width: 12px; height: 12px; }
.t-chip i::before, .t-chip i::after { content: ''; position: absolute; top: 5px; left: 0; width: 12px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.t-chip i::after { transform: rotate(-45deg); }
.t-chip:hover { background: #d3ecee; }
.t-chips__reset { padding: 6px 4px; font-size: 13px; font-weight: 500; color: #008289; }
.t-chips__reset:hover { color: #006b70; }
/* Планшет: фильтры открываются по нажатию на заголовок */
@media (max-width: 1023px) {
    aside.shrink-0 h2 { cursor: pointer; }
    aside.shrink-0:not(.filters-open) > .t-filters > :first-child { margin-bottom: 0 !important; }
    aside.shrink-0:not(.filters-open) > .t-filters > :not(:first-child) { display: none !important; }
    aside.shrink-0 h2::after { content: ' ▾'; color: var(--color-primary); }
    aside.shrink-0.filters-open h2::after { content: ' ▴'; }
}
/* Карточка в списке: при нехватке ширины покупка уходит вниз, название и поля остаются широкими */
@media (min-width: 768px) and (max-width: 1279px) {
    #product-list .product-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px 20px; }
    #product-list .product-card > a:first-of-type { width: 180px; height: 150px; }
    #product-list .product-card > div:last-child {
        grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px;
        width: auto !important; padding: 14px 0 0; border-left: 0; border-top: 1px solid #f3f4f6;
    }
    #product-list .product-card > div:last-child > :first-child { width: auto; margin-bottom: 0; align-items: flex-start; }
    #product-list .product-card > div:last-child > :last-child { width: 272px; flex-shrink: 0; margin-top: 0; }
}
.t-price-ask { font-size: 20px; font-weight: 700; color: #111827; white-space: nowrap; }
.t-price-ask--big { font-size: 28px; }

/* ---------- Преимущества каталога ---------- */
.t-benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 24px 0; }
.t-benefits__item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; background: #fff; border: 1px solid #eef0f3; border-radius: 14px; }
.t-benefits__item svg { flex-shrink: 0; width: 26px; height: 26px; color: #008289; }
.t-benefits__item p { min-width: 0; font-size: 13px; line-height: 1.35; color: #6b7280; }
.t-benefits__item b { display: block; font-weight: 700; color: #111827; }
@media (max-width: 1023px) { .t-benefits { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
    .t-benefits { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .t-benefits__item { padding: 10px; gap: 8px; }
    .t-benefits__item:last-child { grid-column: 1 / -1; }
}

/* ---------- Плитки категорий ---------- */
.t-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.t-cat-tile { position: relative; display: block; aspect-ratio: 1; padding: 20px; background: #f8f8f9; border: 1px solid #dfe3e7; border-radius: 16px; overflow: hidden; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.t-cat-tile:hover { background: var(--hover-bg); border-color: var(--hover-border); box-shadow: var(--hover-shadow); }
.t-cat-tile h2 { position: relative; z-index: 1; margin: 0 !important; font-size: 18px !important; font-weight: 500 !important; line-height: 1.3 !important; color: #111827; }
.t-cat-tile img { position: absolute; right: 6px; bottom: 6px; width: 82%; height: 74%; object-fit: contain; clip-path: inset(1%); mix-blend-mode: darken; transition: transform .5s; }
.t-cat-tile:hover img { transform: scale(1.05); }
@media (max-width: 1023px) { .t-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) {
    .t-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .t-cat-tile { padding: 12px; }
    .t-cat-tile h2 { font-size: 14px !important; }
}

/* ---------- Карточка товара ---------- */
body.page-inner h1.t-product-title { font-size: 26px !important; line-height: 1.25 !important; font-weight: 600 !important; margin-bottom: 22px !important; }
.t-zoom { min-width: 0; cursor: zoom-in; }
#product-content-container .t-prose { max-width: none; }
.t-spec { width: 100%; font-size: 15px; border-collapse: collapse; }
.t-spec th, .t-spec td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #eef0f3; }
.t-spec th { width: 42%; font-weight: 500; color: #6b7280; }
.t-spec td { color: #111827; overflow-wrap: anywhere; }
.t-spec tr:nth-child(odd) th, .t-spec tr:nth-child(odd) td { background: #f9fafb; }
.t-dims { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.t-dims__img { display: block; padding: 16px; background: #fff; border: 1px solid #eef0f3; border-radius: 14px; cursor: zoom-in; }
.t-dims__img img { width: 100%; height: auto; }
.t-dims__note { color: #6b7280; }
#product-content-container .t-cards { margin-top: 16px; }
#product-content-container .t-steps { margin: 0; }
.t-lightbox { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 56px 72px; background: rgba(8, 20, 24, .92); }
.t-lightbox[hidden] { display: none; }
.t-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 12px; }
.t-lightbox__close { position: absolute; top: 12px; right: 20px; font-size: 36px; line-height: 1; color: #fff; cursor: pointer; }
.t-lightbox__nav { position: absolute; top: 50%; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: -22px; color: #fff; background: rgba(255, 255, 255, .14); border-radius: 50%; cursor: pointer; }
.t-lightbox__nav svg { width: 24px; height: 24px; }
.t-lightbox__nav--prev { left: 16px; }
.t-lightbox__nav--next { right: 16px; }
.t-lightbox.is-single .t-lightbox__nav { display: none; }
.t-recent { display: flex; flex-direction: column; flex-shrink: 0; width: 240px; padding: 16px; background: #fff; border: 1px solid #eef0f3; border-radius: 16px; transition: box-shadow .2s; }
.t-recent:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .07); }
.t-recent img { width: 100%; height: 140px; margin-bottom: 12px; padding: 12px; object-fit: contain; background: #fafafa; border-radius: 12px; }
#product-list .product-card > a:first-of-type, .t-zoom { background: #f8f8f9 !important; }
.t-recent p { margin-bottom: 8px; font-size: 13px; font-weight: 600; line-height: 1.3; color: #111827; }
.t-recent b { margin-top: auto; font-size: 14px; color: #008289; }
@media (max-width: 767px) {
    body.page-inner h1.t-product-title { font-size: 20px !important; }
    .t-dims { grid-template-columns: 1fr; gap: 16px; }
    .t-spec { font-size: 14px; }
    .t-spec th, .t-spec td { padding: 8px 10px; }
    .t-lightbox { padding: 48px 12px; }
    .t-recent { width: 200px; }
}
.t-count { margin-bottom: 12px; font-size: 14px; color: #6b7280; }
.t-empty { padding: 32px; text-align: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }
.t-empty p { margin-bottom: 16px; }
.t-empty p:last-child { margin-bottom: 0; }
.t-pager { display: flex; flex-wrap: wrap; gap: 8px; }
.t-pager a {
    display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px;
    border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; font-weight: 600; color: #374151;
}
.t-pager a:hover { border-color: #008289; color: #008289; }
.t-pager a.is-active { border-color: transparent; color: #fff; background: linear-gradient(135deg, #006b70, #2bb6bd); }
.t-pager svg { width: 16px; height: 16px; }
.range-slider { position: relative; height: 6px; margin: 16px 0 20px; background: #e2e8f0; border-radius: 9999px; }
.range-slider-track { position: absolute; height: 100%; background: #008289; border-radius: 9999px; pointer-events: none; }
.range-input { position: absolute; top: -5px; width: 100%; height: 16px; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; outline: none; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: #008289; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); pointer-events: auto; cursor: pointer; }
.range-input::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: #008289; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); pointer-events: auto; cursor: pointer; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
@media (max-width: 767px) {
    .t-props dt { flex-basis: 120px; }
    .t-props--wide dt { flex-basis: 150px; }
    .modal-items-head { display: none !important; }
    .modal-item-row { grid-template-columns: 52px 1fr auto !important; }
    .modal-item-img { width: 52px !important; height: 52px !important; }
    .modal-item-qty { display: none; }
}

body main .t-card h2, body main .t-note h2, body main .t-stats h2, body main .t-prose h2, body .t-band h2 { font-weight: 600 !important; color: inherit; }
body .t-band h2, body main .t-card h2, body main .t-prose h2 { color: #0f172a; }

/* ---------- Документы и единые кнопки ---------- */
.t-doc { padding: 32px; }
body main .t-doc h2 { display: block; margin: 32px 0 12px !important; font-size: 22px !important; }
body main .t-doc > h2:first-child { margin-top: 0 !important; }
.t-doc h3 { margin: 18px 0 8px; }
.t-doc .t-table td ul, .t-table td ul { margin: 0; padding-left: 16px; list-style: disc; }
.t-table th[scope="row"] { width: 230px; background: #f9fafb; font-weight: 600; }
.t-table--wide table { min-width: 1120px; font-size: 13px; }
.t-table--wide td, .t-table--wide th { padding: 8px 10px; }
/* Кнопки: без иконок слева, иконка остаётся только у корзины */
:is(a, button):is([class~="bg-[#008289]"], [class~="bg-[#006b70]"], .btn-primary) > svg:first-child:not(.lucide-shopping-cart):not(:only-child) { display: none; }
@media (max-width: 767px) { .t-doc { padding: 18px; } }

.t-band.p-6 { padding: 40px 48px; }
@media (max-width: 767px) {
    .t-band.p-6 { padding: 24px 20px 150px; }
    .t-doc .t-table:not(.t-table--wide) tr, .t-doc .t-table:not(.t-table--wide) th[scope="row"], .t-doc .t-table:not(.t-table--wide) td { display: block; width: auto; }
    .t-doc .t-table:not(.t-table--wide) th[scope="row"] { border-bottom: 0; padding-bottom: 2px; }
    .t-doc .t-table:not(.t-table--wide) td { padding-top: 4px; }
}

/* ============================================================
   ПРАВКИ №2 (2026-11-04)
   Общее правило размера текста (выше, «Основной текст») имеет вес #id, поэтому
   размеры внутри блоков ниже заданы через :is(#t-, .блок) — тот же вес, правило стоит позже.
   У абзацев с классом text-[13px] вес общего правила выше, для них добавлено :not(#t-).
   ============================================================ */

/* Фото баннера под кнопкой — только на телефоне */
.t-hero-pic { display: none; }

/* Почему выбирают: заголовок и текст 15px */
body :is(#t-, .t-why) h3,
body :is(#t-, .t-why) .card-static p:not(#t-) { font-size: 15px !important; line-height: 1.4 !important; }
body :is(#t-, .t-why) h3 { margin-bottom: 4px !important; }
.t-why .t-why-ico { width: 56px; height: 56px; }

/* Форма без фото: подписи под иконками 15px */
body :is(#t-, .t-form) .t-form__features li { font-size: 15px !important; }
/* Узкие ноутбуки 1024–1279: заголовок формы мельче, чтобы остался в одну строку */
@media (min-width: 1024px) and (max-width: 1279px) {
    body :is(#t-, .t-form) .t-form__intro h2 { font-size: 28px !important; }
}

/* Преимущества каталога: 15px, второй пункт «Производим по ГОСТ» */
body :is(#t-, .t-benefits) .t-benefits__item p { font-size: 15px !important; line-height: 1.35 !important; }

/* Каталог и карточка товара: насыщенность 600 */
#product-list .text-\[26px\] { font-weight: 600 !important; }
aside .t-filters > h2 { font-weight: 600 !important; }
.t-product-price { font-weight: 600 !important; margin-bottom: 22px !important; }
.t-props--product { margin-bottom: 22px; padding-bottom: 18px; }
.t-buy { gap: 16px !important; }
@media (min-width: 640px) {
    .t-buy > button { width: auto !important; flex: 1 1 auto; max-width: 380px; }
}

/* Схема работы: кнопки «Оплата» и «Доставка» крупнее и по центру */
.t-actions { justify-content: center; gap: 16px; }
main > .t-actions { margin-top: 40px; }
.t-actions .btn-primary { justify-content: center; min-width: 220px; padding: 16px 40px; font-size: 17px !important; }

/* Доставка и оплата: отступ от заголовка до контента как на «Схеме работы» */
body.page-inner h1.t-page-head { margin-bottom: 32px !important; }
body.page-inner h1.t-page-head + section.t-cards { padding-top: 0 !important; }
main > section > .t-note + section.t-cards { padding-top: 0 !important; margin-top: 28px; }

/* Кнопка «Наверх» под окнами корзины и заказа */
.t-totop { z-index: 350; }

@media (max-width: 767px) {
    /* Баннер «О компании»: без фона-фото и рамок вокруг текста, фото под текстом */
    .t-about-hero { min-height: 0 !important; background: linear-gradient(180deg, #f3f8f9 0%, #e6f1f2 100%) !important; border: 0 !important; }
    .t-about-hero > .absolute { display: none !important; }
    .t-about-hero > .relative { padding: 24px 20px !important; }
    .t-hero-pic { display: block; width: 100%; height: 200px; margin-top: 24px; object-fit: cover; object-position: 72% center; border-radius: 16px; }

    /* Преимущества полиуретана: текст ответа шире, ближе к рамке */
    .accordion-content > div { margin-left: 16px !important; margin-right: 16px !important; padding-left: 0 !important; padding-right: 0 !important; }
    [id^="header-item"] { padding: 16px !important; }

    /* Преимущества каталога: по одному в строку, каждая надпись в одну строку */
    .t-benefits { grid-template-columns: 1fr; gap: 6px; }
    .t-benefits__item { padding: 10px 12px; gap: 10px; }
    .t-benefits__item:last-child { grid-column: auto; }
    .t-benefits__item svg { width: 22px; height: 22px; }
    body :is(#t-, .t-benefits) .t-benefits__item p { font-size: 15px !important; white-space: nowrap; }

    /* Вкладка товара «Изготовление под заказ»: в узкой карточке этапы в одну колонку, иначе слова не помещаются */
    #product-content-container .t-steps__list { grid-template-columns: 1fr; gap: 8px; }

    /* Пагинация по центру, кнопки форм и разделов на всю ширину */
    .t-pager { justify-content: center; }
    .t-band .btn-primary,
    .t-steps > .btn-primary,
    .t-related > .btn-primary { display: flex; width: 100%; justify-content: center; }
    .t-hero-btns > button { flex: 1 1 100%; justify-content: center; }

    /* Схема работы: две крупные кнопки по центру */
    main > .t-actions { margin-top: 28px; }
    .t-actions .btn-primary { flex: 1 1 0; min-width: 0; padding: 14px 12px; font-size: 16px !important; }

    /* Кнопка «Наверх» ниже и меньше */
    .t-totop { bottom: calc(16px + env(safe-area-inset-bottom)) !important; right: 12px !important; width: 44px !important; height: 44px !important; }

    /* Плитки услуг на всех страницах по две в ряд, как на главной */
    .grid:has(> a.product-card) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .grid:has(> a.product-card) > a { height: 150px !important; }
    .grid:has(> a.product-card) > a:not(.product-card) span { font-size: 14px !important; letter-spacing: .08em !important; }
}
@media (max-width: 380px) {
    /* Самые узкие телефоны: этапы «Как мы работаем» в одну колонку */
    .t-steps__list { grid-template-columns: 1fr; gap: 8px; }
    /* Подписи под иконками формы: на самых узких экранах три колонки помещаются только при 13px */
    .t-form__features { gap: 8px; }
    body :is(#t-, .t-form) .t-form__features li { min-width: 0; font-size: 13px !important; }
}

/* ===== ЗАПУСК (2026-11-09): плитки услуг, кнопки под плитками, мессенджеры ===== */
/* Сетка плиток: --cols в ряду, неполный последний ряд по центру */
.t-grid { --gap: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.t-grid > .t-svc-tile { flex: 0 0 calc((100% - var(--gap) * (var(--cols) - 1)) / var(--cols)); }
.t-svc-tile { position: relative; display: block; height: 220px; border-radius: 16px; background: #f4f5f8; overflow: hidden; transition: transform .3s, box-shadow .3s; text-decoration: none; }
.t-svc-tile:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
body :is(#t-, .t-svc-tile) h3:not(#t-) { position: relative; z-index: 1; max-width: 78%; margin: 0; padding: 20px; font-size: 17px; font-weight: 500; line-height: 1.375; color: #111827; transition: color .3s; }
.t-svc-tile:hover h3 { color: #008289 !important; }
/* clip-path срезает светлую кромку по краю исходных картинок: на фоне плитки она видна тонкой линией */
.t-svc-tile img { position: absolute; right: 4px; bottom: 4px; width: 80%; height: 75%; object-fit: contain; transition: transform .5s; mix-blend-mode: darken; clip-path: inset(3px); }
.t-svc-tile:hover img { transform: scale(1.05); }
/* Кнопки под плитками: по центру, в стиле остальных кнопок сайта */
.t-btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.t-btn-row .btn-primary { justify-content: center; min-width: 200px; }
.t-cross, .t-related { margin-bottom: 56px; }
.t-cross > h2, .t-related > h2 { margin-bottom: 24px; }
.t-related > .t-grid { margin: 0; }
@media (max-width: 1023px) {
    .t-grid > .t-svc-tile { flex-basis: calc((100% - var(--gap) * 2) / 3); }
}
@media (max-width: 767px) {
    .t-grid { --gap: 10px; }
    .t-grid > .t-svc-tile { flex-basis: calc((100% - var(--gap)) / 2); height: 150px; }
    body :is(#t-, .t-svc-tile) h3:not(#t-) { max-width: 100%; padding: 12px; font-size: 14px; }
    .t-btn-row { flex-direction: column; align-items: stretch; }
    .t-btn-row .btn-primary { width: 100%; }
}

/* Мессенджеры: «Напишите нам» и две иконки */
.t-msgr { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.t-msgr__label { font-size: 11px; font-weight: 600; line-height: 1; color: #6b7280; white-space: nowrap; }
.t-msgr__icons { display: flex; gap: 8px; }
.t-msgr__ic { display: block; line-height: 0; }
.t-msgr__ic img { width: 34px; height: 34px; border-radius: 9px; transition: transform .2s; }
.t-msgr__ic:hover img { transform: translateY(-2px); }
.t-msgr--head { display: none; }
@media (min-width: 1024px) { .t-msgr--head { display: flex; } }
/* В шапке иконки стоят справа, рядом с поиском и корзиной, без подписи: так шапка снова из трёх частей
   (логотип, меню, кнопки) с равными промежутками, как до мессенджеров */
.t-msgr--head { flex-shrink: 0; margin-right: 4px; }
/* 1024–1279 px: меню чуть плотнее, пункты не переносятся */
@media (min-width: 1024px) and (max-width: 1279px) {
    header nav.gap-8 { column-gap: 24px; }
    header nav a, header nav span { white-space: nowrap; }
    header .btn.btn-primary { padding: 9px 16px !important; font-size: 14px !important; }
}
/* До 1179 px подпись логотипа не помещается */
@media (min-width: 1024px) and (max-width: 1179px) {
    header > div > a:first-child > .leading-tight { display: none; }
}
.t-msgr--mobile { flex-direction: row; justify-content: space-between; padding: 12px 0 4px; border-top: 1px solid #f3f4f6; }
.t-msgr--mobile .t-msgr__label { font-size: 14px; color: #111827; }
.t-msgr--mobile .t-msgr__ic img { width: 40px; height: 40px; border-radius: 11px; }
.t-msgr--foot { flex-direction: row; justify-content: flex-start; margin-top: 10px; }
.t-msgr--foot .t-msgr__ic img { width: 32px; height: 32px; }

/* End */
/* /bitrix/templates/terra/template_styles.css?179436135781920 */
