/* =====================================================
   RESET & ПЕРЕМЕННЫЕ
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'PT Sans Caption', 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

:root {
    --navy:         #2e4f72;
    --navy-dark:    #1a3a5c;
    --orange:       #e5420b;
    --orange-hover: #c73708;
    --white:        #ffffff;
    --gray-bg:      #f5f5f5;
    --gray-border:  #e0e0e0;
    --text:         #333333;
    --text-muted:   #666666;
    --light-blue:   #f0f4f9;
    --header-h:     72px;
    --max-w:        1200px;
}

/* =====================================================
   ШАПКА
   ===================================================== */
.site-header {
    background: linear-gradient(120deg, #4a6a8e 0%, #2e4f72 100%);
    height: var(--header-h);
    min-height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.header-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo { flex-shrink: 0; line-height: 0; }
.logo img { height: 44px; width: auto; }

.main-nav { flex: 1; overflow: visible; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 11px;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 4px;
    transition: background 0.18s;
}

.nav-link:hover { background: rgba(255,255,255,0.12); }

.has-dropdown > .nav-link::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255,255,255,0.7);
    margin-top: 1px;
    transition: transform 0.2s;
}

.has-dropdown:hover > .nav-link::after { transform: rotate(180deg); }

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: var(--white);
    border-top: 3px solid var(--orange);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.16);
    z-index: 200;
}

.nav-item:hover > .dropdown { display: block; }

.dropdown li a {
    display: block;
    padding: 10px 18px;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid var(--gray-border);
    transition: background 0.15s, color 0.15s;
}

.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--gray-bg); color: var(--orange); }

.header-contacts {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-phone {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.15s;
}

.header-phone:hover { color: var(--orange); }

.btn-callback {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: background 0.18s, transform 0.1s;
    text-decoration: none;
    line-height: 1.3;
}

.btn-callback:hover { background: var(--orange-hover); }
.btn-callback:active { transform: scale(0.98); }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
    line-height: 1.3;
}

.btn-outline:hover { background: var(--orange); color: var(--white); }

.header-phone-mobile {
    display: none;
    color: var(--white);
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.18s;
    flex-shrink: 0;
    line-height: 0;
}
.header-phone-mobile:hover { background: rgba(255,255,255,0.12); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
    background: var(--gray-bg);
    border-bottom: 1px solid var(--gray-border);
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb .container { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.breadcrumb a { color: var(--text-muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--orange); }

.breadcrumb-sep { color: var(--gray-border); }
.breadcrumb-current { color: var(--text); }

/* =====================================================
   ГЕРОЙ СТРАНИЦЫ УСЛУГИ
   ===================================================== */
.page-hero {
    background:
        linear-gradient(rgba(13,37,69,0.72), rgba(13,37,69,0.82)),
        url('https://xn--80affnb0baakdkm8cwh.xn--p1ai/bitrix/templates/concept_kraken_s1/723a75169208cc22b03828cf1eee9a4a.webp')
        center / cover no-repeat;
    color: var(--white);
    padding: 96px 20px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Десктоп: фиксированная высота, чтобы герой не «прыгал» между страницами
   с разной длиной заголовка/наличием цены. Содержимое центрируется по
   вертикали за счёт flex; overflow:hidden — подстраховка на случай, если
   контент когда-нибудь всё же не влезет. */
@media (min-width: 901px) {
    .page-hero {
        height: 480px;
        min-height: 0;
        padding-top: 64px;
        padding-bottom: 64px;
        overflow: hidden;
    }
}

.page-hero h1 {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero .hero-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255,255,255,0.85);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta-row .btn-callback { font-size: 16px; padding: 14px 36px; }
.hero-cta-row .btn-outline { font-size: 16px; padding: 13px 32px; border-color: rgba(255,255,255,0.5); color: #fff; }
.hero-cta-row .btn-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }

/* =====================================================
   ФАКТЫ О КОМПАНИИ
   ===================================================== */
.stats {
    background: var(--gray-bg);
    padding: 48px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--orange);
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label { font-size: 14px; color: var(--text-muted); }

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

.review-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

.review-stars {
    color: var(--orange);
    font-size: 17px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    line-height: 1;
}

.review-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-border);
}

.review-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}

.review-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.review-ya {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.ya-badge {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #FC3F1D;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.reviews-more {
    text-align: center;
    margin-top: 28px;
}

.reviews-more a {
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
    border-bottom: 1px solid rgba(229,66,11,0.35);
    transition: border-color 0.18s;
}

.reviews-more a:hover { border-color: var(--orange); }

/* =====================================================
   ОБЩИЕ СЕКЦИИ
   ===================================================== */
.section { padding: 56px 0; }
.section-alt { background: var(--gray-bg); }
.section-navy { background: var(--navy); color: var(--white); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 32px;
    line-height: 1.25;
}

.section-navy .section-title { color: var(--white); }

/* =====================================================
   SEO-ТЕКСТ
   ===================================================== */
.seo-intro p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}

.seo-intro p:last-child { margin-bottom: 0; }
.seo-intro a { color: var(--orange); }

/* =====================================================
   ЧТО МЫ ДЕЛАЕМ — чеклист
   ===================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-item {
    background: var(--white);
    border-radius: 8px;
    padding: 20px 20px 20px 56px;
    position: relative;
    border: 1px solid var(--gray-border);
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 22px;
    width: 20px;
    height: 20px;
    background: var(--orange);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

/* =====================================================
   ЦЕНА В ГЕРОЕ
   ===================================================== */
.hero-price {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin: 0 auto 24px;
    max-width: 520px;
}

.hero-price strong { color: var(--orange); font-weight: 700; }

/* =====================================================
   ПРОЦЕСС — таймлайн
   ===================================================== */
.timeline-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 56px;
}

.tl-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px rgba(229,66,11,0.2);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.tl-line {
    width: 2px;
    flex: 1;
    min-height: 24px;
    background: rgba(255,255,255,0.2);
    margin: 6px 0;
}

.timeline-item:last-child .tl-line { display: none; }

.timeline-body {
    padding-top: 14px;
    padding-bottom: 28px;
    flex: 1;
}

.timeline-item:last-child .timeline-body { padding-bottom: 0; }

.timeline-body strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.timeline-body p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    max-width: 520px;
}

/* =====================================================
   ЧТО НУЖНО ОТ КЛИЕНТА
   ===================================================== */
.req-list-v {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 680px;
    margin-bottom: 20px;
}

.req-item-v {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
}

.req-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}

.req-note {
    font-size: 14px;
    color: var(--text-muted);
    background: var(--light-blue);
    border-radius: 8px;
    padding: 16px 20px;
    line-height: 1.6;
    margin-top: 32px;
}

/* =====================================================
   РИСКИ
   ===================================================== */
.risks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.risk-card {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray-border);
    border-left: 4px solid var(--orange);
    padding: 20px 24px;
}

.risk-card strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.risk-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =====================================================
   FAQ
   ===================================================== */
.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid var(--gray-border);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    line-height: 1.35;
}

.faq-question:hover { background: var(--gray-bg); }

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s;
    line-height: 1;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-answer a { color: var(--orange); }

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 20px 18px;
}

/* =====================================================
   CTA-БЛОК С ФОРМОЙ
   ===================================================== */
.cta-form-section {
    background: var(--light-blue);
    padding: 56px 0;
    text-align: center;
}

.cta-form-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.cta-form-section .cta-sub {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.inline-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.18s;
    background: var(--white);
}

.form-group input:focus { border-color: var(--navy); }

/* Invisible-виджет SmartCaptcha по умолчанию ничего не рисует, но
   резервируем отступ на случай, если он покажет видимый челлендж. */
.smart-captcha-container:not(:empty) { margin-bottom: 14px; }

.form-submit {
    width: 100%;
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.18s;
    margin-top: 4px;
}

.form-submit:hover { background: var(--orange-hover); }

.form-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 16px;
}

.form-success-icon { margin-bottom: 14px; }

.form-success p {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    max-width: 320px;
}

/* =====================================================
   ПОДВАЛ
   ===================================================== */
.site-footer {
    background: var(--navy);
    background-image: linear-gradient(rgba(13,37,69,0.88), rgba(13,37,69,0.92)), url('/bitrix/templates/praktikgrupp/images/footer-bg.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-top: 48px;
}

.footer-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-logo img { height: 40px; width: auto; }

.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-phone {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    transition: color 0.15s;
}

.footer-phone:hover { color: var(--orange); }

.footer-socials {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: color 0.18s;
}

.footer-social:hover { color: var(--white); }

.footer-legal {
    padding: 24px 0 28px;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
}

.footer-legal p { margin-bottom: 2px; }
.footer-legal a { color: rgba(255,255,255,0.9); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--white); }

.footer-bar {
    background: rgba(0,0,0,0.25);
    text-align: center;
    padding: 14px 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

/* =====================================================
   МОДАЛКА
   ===================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    animation: modal-in 0.2s ease;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 12px; right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--gray-border);
    cursor: pointer;
    transition: color 0.15s;
}

.modal-close:hover { color: var(--text); }

.modal h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.modal > p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.modal-or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 16px;
    color: var(--gray-border);
    font-size: 12px;
}
.modal-or::before, .modal-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-border);
}

.modal-socials { display: flex; gap: 10px; margin-bottom: 6px; }

.modal-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.18s;
    white-space: nowrap;
}

.modal-social-btn:hover { opacity: 0.85; }
.modal-social-btn.tg  { background: #229ED9; color: #fff; }
.modal-social-btn.max { background: #0077FF; color: #fff; }
.modal-social-btn.email { background: var(--gray-bg); color: var(--navy); border: 1px solid var(--gray-border); }

/* =====================================================
   ДЕСКТОП: карточки слайдера
   ===================================================== */
@media (min-width: 641px) {
    #step-track .timeline-item {
        flex: 0 0 calc((100% - 40px) / 3);
        flex-direction: column;
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 8px;
        padding: 24px 20px;
        gap: 0;
    }

    #step-track .timeline-marker {
        width: 56px;
        margin-bottom: 16px;
        flex-direction: column;
        align-items: center;
        position: static;
        transform: none;
    }

    #step-track .tl-line { display: none; }
    #step-track .timeline-body { padding: 0; text-align: left; }
    #step-track .timeline-body p { max-width: none; }

    #req-track .req-item-v {
        flex: 0 0 calc((100% - 40px) / 3);
        flex-direction: column;
    }
}

/* =====================================================
   СЛАЙДЕР
   ===================================================== */
.slider-outer {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.slider-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    position: relative;
}

.slider-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gray-border);
    background: var(--white);
    font-size: 22px;
    line-height: 1;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    padding: 0;
}

.slider-btn:hover:not(:disabled) {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--white);
}

.slider-btn:disabled { opacity: 0.3; cursor: default; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-border);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.slider-dots .dot.active {
    background: var(--orange);
    transform: scale(1.3);
}

.section-navy .slider-btn {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.section-navy .slider-btn:hover:not(:disabled) {
    border-color: var(--orange);
    background: var(--orange);
    color: var(--white);
}

.section-navy .slider-dots .dot { background: rgba(255,255,255,0.3); }

/* =====================================================
   МОБИЛКА: сброс слайдера
   ===================================================== */
@media (max-width: 640px) {
    .slider-outer { display: block; }
    .slider-btn { display: none; }
    .slider-viewport { overflow: visible; }
    .slider-dots { display: none; }

    #step-track {
        flex-direction: column;
        gap: 20px;
        transform: none !important;
        transition: none;
    }

    #step-track .timeline-item {
        flex: none;
        flex-direction: row;
        background: none;
        border: none;
        border-radius: 0;
        padding: 0;
        gap: 20px;
        align-items: center;
    }

    #step-track .timeline-marker {
        margin-bottom: 0;
        width: 56px;
        flex-shrink: 0;
        position: static;
        flex-direction: column;
        align-items: center;
    }

    #step-track .tl-line { display: none; }
    #step-track .timeline-body { padding-top: 0; padding-bottom: 0; }
    #step-track .timeline-item:last-child .timeline-body { padding-bottom: 0; }
    #step-track .timeline-item:last-child .tl-line { display: none; }

    #req-track {
        flex-direction: column;
        gap: 10px;
        transform: none !important;
        transition: none;
    }

    #req-track .req-item-v { flex: none; flex-direction: row; }
}

/* =====================================================
   АДАПТИВ
   ===================================================== */
@media (max-width: 1100px) {
    .nav-link { padding: 8px 7px; font-size: 13px; }
    .header-phone { font-size: 14px; }
    .header-container { gap: 16px; }
}

@media (max-width: 1060px) {
    .header-phone { display: none; }
}

@media (max-width: 992px) {
    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0; bottom: 0;
        background: var(--navy-dark);
        overflow-y: auto;
        padding: 16px 20px 40px;
        z-index: 900;
    }

    .main-nav.open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }

    .nav-link {
        padding: 14px 4px;
        font-size: 16px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .has-dropdown > .nav-link::after { margin-left: auto; }

    .dropdown {
        display: none;
        position: static;
        background: rgba(255,255,255,0.05);
        border: none;
        border-left: 3px solid var(--orange);
        border-radius: 0;
        box-shadow: none;
        padding: 4px 0;
        margin: 0 0 4px 12px;
    }

    .nav-item.open > .dropdown { display: block; }

    .dropdown li a { color: rgba(255,255,255,0.8); font-size: 14px; border-bottom-color: rgba(255,255,255,0.05); }
    .dropdown li a:hover { background: rgba(255,255,255,0.07); color: var(--white); }

    .header-contacts { display: none; }
    .header-phone-mobile { display: flex; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .risks-grid { grid-template-columns: 1fr; }

    .footer-top { flex-direction: column; align-items: center; text-align: center; }
    .footer-contacts { align-items: center; }
    .footer-socials { justify-content: center; }
    .section-title { font-size: 22px; }
    .cta-form-section h2 { font-size: 22px; }
}

@media (max-width: 600px) {
    :root { --header-h: 60px; }
    .logo img { height: 36px; }
    .modal { padding: 28px 20px; }
    .modal h2 { font-size: 19px; }
    .section { padding: 40px 0; }
    .features-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 48px 16px; }

    .stats { padding: 28px 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .stat-num { font-size: 26px; margin-bottom: 4px; }
    .stat-label { font-size: 12px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .hero-cta-row { flex-direction: column; align-items: center; }
    .hero-cta-row .btn-callback,
    .hero-cta-row .btn-outline { width: 100%; max-width: 280px; }
}

/* =====================================================
   Cookie-consent баннер
   ===================================================== */
.cookie-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 32px);
    max-width: 820px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: 'PT Sans Caption', Arial, sans-serif;
    font-size: 14px;
    color: var(--text);
    line-height: 1.55;
}
.cookie-bar a {
    color: var(--orange);
    text-decoration: underline;
}
.cookie-bar a:hover { color: var(--orange-hover); }
.cookie-bar__btn {
    flex-shrink: 0;
    white-space: nowrap;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 10px 28px;
    font-family: 'PT Sans Caption', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.cookie-bar__btn:hover  { background: var(--orange-hover); }
.cookie-bar__btn:active { transform: scale(0.98); }
.cookie-bar.hidden { display: none; }

@media (max-width: 640px) {
    .cookie-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        bottom: 12px;
        padding: 16px;
    }
    .cookie-bar__btn { text-align: center; }
}

/* Плавающая кнопка чата модуля "sme" (инжектится Bitrix'ом вне нашего
   шаблона, класс ag_chatpanel_wrap) переходит в мобильное позиционирование
   и перекрывает cookie-bar на телефонах и планшетах. Прячем её, пока
   баннер не принят — сам модуль вне нашего контроля. Порог 992px совпадает
   с общим breakpoint "мобильный/десктоп" в этом шаблоне. */
@media (max-width: 992px) {
    body.cookie-bar-visible .ag_chatpanel_wrap { display: none !important; }
}

/* =====================================================
   ГЛАВНАЯ СТРАНИЦА — карточки услуг (.slide-card)
   ===================================================== */
.slide-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray-border);
    padding: 20px;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s, transform 0.2s;
    box-sizing: border-box;
    box-shadow: inset 0 3px 0 0 var(--orange);
}

.slide-card:hover {
    box-shadow: inset 0 3px 0 0 var(--orange), 0 4px 20px rgba(0,0,0,0.1);
    transform: translateY(0px);
}

.slide-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.3;
}

.slide-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.card-spacer { flex: 1; }

.card-price {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 12px;
}

.card-link {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    margin-top: 6px;
}

.slide-card:hover .card-link { text-decoration: underline; }

@media (min-width: 901px) {
    #svc-track .slide-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    #svc-track .slide-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    #svc-prev, #svc-next, #svc-dots { display: none; }
    #svc-track {
        flex-direction: column;
        transform: none !important;
        transition: none;
        gap: 12px;
    }
    #svc-track .slide-card { flex: none; }
}
