/* ==========================================================================
   СТО «Кубань» — кузовной ремонт. Стиль «монохромная сталь» + жёлтый акцент.
   Порядок: переменные → база → компоненты → блоки → адаптив.
   Подход mobile-first: базовые правила — для телефона, медиазапросы — вверх.
   ========================================================================== */

:root {
    --ink:          #14171a;
    --ink-2:        #1b1f24;
    --steel:        #23282e;
    --steel-2:      #2f353d;
    --steel-line:   #3a424b;
    --gray:         #6f7883;
    --gray-2:       #9aa3ad;
    --light:        #f2f4f5;
    --light-2:      #e4e8ea;
    --white:        #fff;

    --accent:       #ffc400;
    --accent-dark:  #e6a800;
    --accent-ink:   #14171a;
    --danger:       #e5484d;
    --success:      #2f9e5f;
    --wa:           #25d366;
    --tg:           #29a0da;
    /* MAX: цвета из официального брендбука go.max.ru/brandbook */
    --max:          #471aff;
    --max-2:        #9500ff;
    --max-gradient: linear-gradient(135deg, var(--max), var(--max-2));

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-cond: "Oswald", "Bahnschrift", "DIN Alternate", "Haettenschweiler",
                 "Arial Narrow", var(--font);

    --radius:    14px;
    --radius-sm: 10px;
    --radius-lg: 22px;

    --shadow:    0 18px 40px rgba(9, 12, 15, .18);
    --shadow-sm: 0 6px 18px rgba(9, 12, 15, .12);

    --gap:       clamp(16px, 4vw, 28px);
    --section-y: clamp(56px, 9vw, 110px);
    --header-h:  64px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- База ---- */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 40px);
}
.container--narrow { max-width: 880px; }

/* Текстовая страница (данные на сайте) */
.doc h2 { margin-top: 30px; font-size: 20px; }
.doc p { color: var(--gray); }
.doc__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    border-radius: var(--radius-sm);
}
.skip-link:focus { left: 12px; }

.link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.section--dark .link, .hero .link { color: var(--accent); }
.req { color: var(--accent-dark); }

/* --------------------------------------------------------- Секции ------- */

.section { padding: var(--section-y) 0; }

.section--dark {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(255, 196, 0, .09), transparent 60%),
        var(--ink);
    color: var(--light);
}

.section--muted { background: var(--light); }

.section__head { max-width: 780px; margin-bottom: clamp(28px, 5vw, 56px); }

.section__head--row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
    max-width: none;
}

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-dark);
}
.section--dark .section__eyebrow { color: var(--accent); }

.section__title { font-size: clamp(26px, 4.6vw, 44px); }

.section__lead {
    margin: 0;
    font-size: clamp(15px, 2vw, 18px);
    color: var(--gray);
}
.section--dark .section__lead { color: var(--gray-2); }

/* Появление блоков при скролле */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease) var(--delay, 0ms),
                transform .7s var(--ease) var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --------------------------------------------------------- Кнопки ------- */

.btn {
    --btn-bg: var(--accent);
    --btn-fg: var(--accent-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease),
                background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-dark); }

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: currentColor;
    border-color: var(--steel-line);
}
.section--dark .btn--outline, .hero .btn--outline { color: var(--light); border-color: rgba(255, 255, 255, .28); }
/* Внутри белой карточки контур снова тёмный, иначе текст не читается */
.channels .btn--outline, .modal .btn--outline { color: var(--ink); border-color: var(--light-2); }
.calc__result .btn--outline { color: var(--light); border-color: rgba(255, 255, 255, .28); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--ghost {
    --btn-bg: rgba(255, 255, 255, .06);
    --btn-fg: var(--light);
    border-color: rgba(255, 255, 255, .16);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--link {
    --btn-bg: transparent;
    padding: 6px 0;
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--accent);
}
.btn--link:hover { transform: none; box-shadow: none; color: var(--accent-dark); }
.section--dark .btn--link:hover { color: var(--accent); }

.btn--wa { --btn-bg: var(--wa); --btn-fg: #06331a; }
.btn--tg { --btn-bg: var(--tg); --btn-fg: #04222f; }

.btn--max {
    --btn-fg: var(--white);
    background: var(--max-gradient);
}
.btn--max:hover { filter: brightness(1.08); }

.btn--sm  { padding: 10px 16px; font-size: 14px; }
.btn--lg  { padding: 17px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn__icon { display: inline-flex; }

.round-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid var(--light-2);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.round-btn:hover { border-color: var(--accent); background: var(--accent); }
.round-btn[disabled] { opacity: .4; pointer-events: none; }

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 196, 0, .22);
}

/* ----------------------------------------------- Поле поиска (страховые) --
   Единственное поле ввода на сайте. Оно ничего не отправляет:
   это фильтр по списку, который работает в браузере.
   ------------------------------------------------------------------------ */

.field__label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--gray);
}

.field__input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
    appearance: none;
}
.field__input::placeholder { color: #aeb5bd; }
.field__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 196, 0, .18);
}

/* --------------------------------------------------------- Шапка -------- */

.header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(20, 23, 26, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: var(--light);
    transition: box-shadow .25s var(--ease);
}
.header.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
}

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

.logo__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--accent-ink);
    flex-shrink: 0;
    overflow: hidden;
}

.logo__mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.logo__text { display: grid; line-height: 1.15; }
.logo__text strong { font-size: 16px; letter-spacing: -.01em; }
.logo__text small { font-size: 11px; color: var(--gray-2); }

.nav { display: none; }

.nav__link {
    padding: 8px 0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: var(--light);
    opacity: .82;
    transition: opacity .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover, .nav__link.is-active { opacity: 1; color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__contact { display: none; }

.header__phone {
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }
.header__schedule { display: block; font-size: 11px; color: var(--gray-2); }

.burger {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 12px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}
.burger span {
    height: 2px;
    background: var(--light);
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------- Первый экран ------- */

.hero {
    position: relative;
    padding: clamp(36px, 7vw, 96px) 0 clamp(52px, 8vw, 104px);
    background: var(--ink);
    color: var(--light);
    overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Затемнение ровно настолько, чтобы текст читался, а цех оставался виден */
    background:
        linear-gradient(180deg, rgba(20, 23, 26, .55) 0%, rgba(20, 23, 26, .82) 68%, var(--ink) 100%),
        linear-gradient(90deg, rgba(20, 23, 26, .88) 0%, rgba(20, 23, 26, .35) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(28px, 5vw, 48px);
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 100px;
    background: rgba(255, 255, 255, .04);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero__title { font-size: clamp(30px, 6.4vw, 60px); margin-bottom: 18px; }

.hero__title-accent {
    display: block;
    margin-top: 12px;
    font-family: var(--font-cond);
    font-size: clamp(19px, 3.2vw, 30px);
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--accent);
}

.hero__subtitle {
    max-width: 620px;
    font-size: clamp(15px, 2.1vw, 19px);
    color: var(--gray-2);
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin: 0 0 28px;
    padding-top: 6px;
}
.hero__facts li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-2);
}
.hero__facts strong {
    font-family: var(--font-cond);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.hero__cta { display: grid; gap: 12px; }
.hero__note { margin: 18px 0 0; font-size: 13px; color: var(--gray-2); }

.hero__card {
    position: relative;
    padding: clamp(22px, 4vw, 32px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(47, 53, 61, .96), rgba(27, 31, 36, .98));
    box-shadow: var(--shadow);
}
.hero__card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.hero__card-head { margin-bottom: 20px; }
.hero__card-title { font-size: clamp(19px, 2.6vw, 24px); }
.hero__card-text { margin: 0; font-size: 14px; color: var(--gray-2); }

/* Кнопки мессенджеров: столько в ряд, сколько влезает без переносов текста */
.hero__card-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.hero__card-note {
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--gray);
}

/* Шаги «как узнать цену» */

.steps { display: grid; gap: 16px; margin: 0; padding: 0; counter-reset: step; }

.steps__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }

.steps__num {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-cond);
    font-size: 17px;
    font-weight: 700;
}

.steps__body { display: grid; gap: 3px; font-size: 13.5px; color: var(--gray-2); }
.steps__body strong { font-size: 15.5px; color: var(--white); }

.hero__scroll { display: none; }

/* ------------------------------------------------- Боли клиента --------- */

.pains__grid { display: grid; gap: var(--gap); }

.pain {
    display: grid;
    gap: 18px;
    padding: clamp(20px, 3.4vw, 28px);
    border: 1px solid var(--steel-line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(47, 53, 61, .55), rgba(27, 31, 36, .8));
}

.pain__quote {
    position: relative;
    margin: 0;
    padding-left: 30px;
    font-size: 16px;
    font-style: italic;
    color: var(--gray-2);
}
.pain__quote-mark {
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 40px;
    line-height: 1;
    font-style: normal;
    color: var(--accent);
    opacity: .55;
}

.pain__solution {
    padding-top: 18px;
    border-top: 1px dashed var(--steel-line);
}

.pain__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--accent-ink);
}

.pain__tag {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.pain__title { font-size: clamp(18px, 2.4vw, 22px); }
.pain__text { margin: 0; font-size: 15px; color: var(--gray-2); }

.pains__cta {
    display: grid;
    gap: 14px;
    align-items: center;
    margin-top: clamp(28px, 4vw, 44px);
    padding: clamp(20px, 3.4vw, 30px);
    border-radius: var(--radius-lg);
    background: rgba(255, 196, 0, .08);
    border: 1px solid rgba(255, 196, 0, .25);
}
.pains__cta p { margin: 0; font-size: 16px; font-weight: 600; }

/* --------------------------------------------------- Калькулятор -------- */

.calc__layout { display: grid; gap: var(--gap); align-items: start; }

.calc__form { display: grid; gap: clamp(20px, 3vw, 30px); }

.calc__group { margin: 0; padding: 0; border: 0; }

.calc__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 0;
    font-size: 17px;
    font-weight: 800;
}
.calc__legend small { font-size: 13px; font-weight: 500; color: var(--gray); }

.calc__step {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--accent);
    font-family: var(--font-cond);
    font-size: 15px;
    font-weight: 700;
}

.calc__chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip input, .option input, .switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.chip__box {
    display: inline-block;
    padding: 11px 16px;
    border: 2px solid var(--light-2);
    border-radius: 100px;
    background: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.chip__box:hover { border-color: var(--gray); }
.chip input:checked + .chip__box {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}
.chip input:focus-visible + .chip__box { outline: 3px solid var(--accent); outline-offset: 2px; }

.calc__options { display: grid; gap: 10px; }
.calc__options--compact { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.option__box {
    display: grid;
    gap: 3px;
    height: 100%;
    padding: 14px 16px;
    border: 2px solid var(--light-2);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.option__box:hover { border-color: var(--gray); }
.option__title { font-size: 15px; font-weight: 700; }
.option__note { font-size: 13px; color: var(--gray); }
.option input:checked + .option__box {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 3px rgba(255, 196, 0, .16);
}
.option input:focus-visible + .option__box { outline: 3px solid var(--accent); outline-offset: 2px; }

.switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
}
.switch__track {
    position: relative;
    flex: 0 0 auto;
    width: 52px;
    height: 30px;
    border-radius: 100px;
    background: var(--light-2);
    transition: background-color .2s var(--ease);
}
.switch__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .2s var(--ease);
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track .switch__knob { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--accent); outline-offset: 3px; }

.calc__result {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    padding: clamp(22px, 3.4vw, 30px);
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: var(--light);
    box-shadow: var(--shadow);
}

.calc__result-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gray-2);
}

.calc__amount {
    margin: 0 0 18px;
    font-family: var(--font-cond);
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent);
}
.calc__empty { font-family: var(--font); font-size: 17px; font-weight: 600; color: var(--gray-2); }

.calc__breakdown { display: grid; gap: 8px; margin-bottom: 18px; font-size: 14px; }
.calc__breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--steel-line);
    color: var(--gray-2);
}
.calc__breakdown li span:last-child { color: var(--white); font-weight: 700; white-space: nowrap; }

.calc__insurance {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 196, 0, .12);
    font-size: 14px;
    color: var(--light);
}
.calc__insurance strong { display: block; color: var(--accent); }

.calc__actions { display: grid; gap: 10px; margin-bottom: 16px; }

.calc__disclaimer { margin: 0; font-size: 12px; color: var(--gray); }

/* ------------------------------------------------------- Услуги --------- */

.services__list { display: grid; gap: clamp(32px, 6vw, 72px); }

.service { display: grid; gap: clamp(18px, 3vw, 36px); align-items: center; }

.service__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.service__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.service__price {
    position: absolute;
    right: 16px;
    top: 16px;
    padding: 9px 14px;
    border-radius: 100px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 14px;
    font-weight: 800;
}

.service__body { position: relative; }

.service__num {
    display: block;
    font-family: var(--font-cond);
    font-size: clamp(34px, 6vw, 54px);
    font-weight: 700;
    line-height: 1;
    color: var(--light-2);
}

.service__title { font-size: clamp(21px, 3vw, 30px); margin-top: 6px; }

.service__master { margin: 0 0 12px; font-size: 14px; color: var(--gray); }
.service__master strong { color: var(--ink); }

.service__text { font-size: 15px; color: var(--gray); }

.service__list { display: grid; gap: 8px; margin-bottom: 20px; }
.service__list li {
    position: relative;
    padding-left: 26px;
    font-size: 15px;
}
.service__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 8px;
    border-left: 2.5px solid var(--accent-dark);
    border-bottom: 2.5px solid var(--accent-dark);
    transform: rotate(-45deg);
}

.service__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------------------------------------------------- Портфолио --------- */

.portfolio__grid { display: grid; gap: var(--gap); }

.case {
    margin: 0;
    border: 1px solid var(--steel-line);
    border-radius: var(--radius-lg);
    background: var(--ink-2);
    overflow: hidden;
}

.ba {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    touch-action: pan-y;
    background: var(--steel);
}
.ba__img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* Обрезаем «до» через clip-path: обе фотографии остаются одного размера и точно совпадают */
.ba__before {
    position: absolute;
    inset: 0;
    -webkit-clip-path: inset(0 50% 0 0);
    clip-path: inset(0 50% 0 0);
}

.ba__label {
    position: absolute;
    top: 12px;
    padding: 5px 11px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    pointer-events: none;
}
.ba__label--before { left: 12px; background: rgba(20, 23, 26, .82); color: var(--light); }
.ba__label--after  { right: 12px; background: var(--accent); color: var(--accent-ink); }

.ba__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: translateX(-50%);
    pointer-events: none;
}
.ba__handle svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}

.case__body { padding: 18px 20px 22px; }
.case__title { font-size: 19px; margin-bottom: 4px; }
.case__work { margin: 0 0 14px; font-size: 14px; color: var(--gray-2); }

.case__meta { display: flex; gap: 26px; margin: 0; }
.case__meta dt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray);
}
.case__meta dd {
    margin: 2px 0 0;
    font-family: var(--font-cond);
    font-size: 19px;
    font-weight: 700;
    color: var(--accent);
}

.portfolio__cta {
    display: grid;
    gap: 14px;
    margin-top: clamp(26px, 4vw, 44px);
    text-align: center;
    justify-items: center;
}
.portfolio__cta p { margin: 0; color: var(--gray-2); }

/* ---------------------------------------------------- Статистика -------- */

.stats {
    padding: clamp(30px, 5vw, 52px) 0;
    background: var(--accent);
    color: var(--accent-ink);
}

.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 4vw, 40px); }

.stat__value {
    margin: 0 0 4px;
    font-family: var(--font-cond);
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.01em;
}

.stat__label { margin: 0; font-size: 14px; font-weight: 600; opacity: .78; }

/* -------------------------------------------------------- Отзывы -------- */

.reviews__nav { display: none; gap: 10px; }

.slider { position: relative; }

.slider__track {
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }

.review {
    flex: 0 0 min(88%, 420px);
    scroll-snap-align: start;
    display: grid;
    gap: 14px;
    padding: clamp(20px, 3.4vw, 28px);
    border: 1px solid var(--light-2);
    border-radius: var(--radius-lg);
    background: var(--light);
}

.review__rating { display: flex; gap: 3px; margin: 0; color: var(--accent-dark); }

.review__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--steel);
}

.review__author { display: flex; align-items: center; gap: 12px; }
.review__author strong { display: block; font-size: 15px; }
.review__author small { font-size: 13px; color: var(--gray); }

.review__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--accent);
    font-family: var(--font-cond);
    font-size: 20px;
    font-weight: 700;
}

.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.slider__dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--light-2);
    cursor: pointer;
    transition: width .2s var(--ease), background-color .2s var(--ease);
}
.slider__dots button.is-active { width: 26px; border-radius: 100px; background: var(--accent-dark); }

/* ----------------------------------------------------- Страховые -------- */

.insurers__layout { display: grid; gap: clamp(26px, 4vw, 48px); align-items: start; }

.insurers__search { margin: 26px 0; }
.insurers__input-wrap { position: relative; }
.insurers__input-wrap .field__input { padding-right: 46px; }
.insurers__icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
}

.insurers__answer {
    min-height: 24px;
    margin: 10px 0 0;
    font-size: 14px;
    font-weight: 700;
}
.insurers__answer.is-yes { color: #1d7345; }
.insurers__answer.is-no  { color: var(--accent-dark); }

.insurers__hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--gray); }

.insurers__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.insurers__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    padding: clamp(18px, 3vw, 26px);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.insurers__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--steel);
    transition: opacity .2s var(--ease), color .2s var(--ease);
}
.insurers__item svg { flex: 0 0 auto; color: var(--success); }
.insurers__item.is-dimmed { opacity: .28; }
.insurers__item.is-match { color: var(--accent-dark); }

/* ---------------------------------------------------------- FAQ --------- */

.faq__list {
    display: grid;
    gap: 12px;
    max-width: 900px;
}

.acc {
    border: 2px solid var(--light-2);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color .2s var(--ease);
}
.acc.is-open { border-color: var(--accent); }

.acc__heading { margin: 0; font-size: inherit; }

.acc__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 20px;
    border: 0;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.acc__sign {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}
.acc__sign::before, .acc__sign::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: var(--accent-dark);
    border-radius: 2px;
    transition: transform .25s var(--ease);
}
.acc__sign::after { transform: rotate(90deg); }
.acc.is-open .acc__sign::after { transform: rotate(0); }

.acc__panel { padding: 0 20px 20px; }
.acc__panel p { margin: 0; color: var(--gray); }

/* ------------------------------------------------------ Контакты -------- */

.contacts__layout { display: grid; gap: var(--gap); align-items: start; }

/* Каналы связи вместо формы: карточка-ссылка на звонок или мессенджер */

.channels {
    display: grid;
    gap: 12px;
    padding: clamp(20px, 4vw, 32px);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.channels__title { font-size: clamp(18px, 2.4vw, 22px); margin-bottom: 4px; }

.channel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid var(--light-2);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .18s var(--ease), transform .18s var(--ease),
                box-shadow .18s var(--ease);
}
.channel:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.channel__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--light);
    color: var(--steel);
}
.channel--phone .channel__icon { background: var(--accent); color: var(--accent-ink); }
.channel--wa .channel__icon    { background: var(--wa); color: #06331a; }
.channel--tg .channel__icon    { background: var(--tg); color: #04222f; }
.channel--max .channel__icon   { background: var(--max-gradient); color: var(--white); }
.channel--mail .channel__icon  { background: var(--steel); color: var(--light); }

.channel__body { display: grid; gap: 2px; font-size: 13.5px; color: var(--gray); }
.channel__body strong { font-size: 16.5px; color: var(--ink); }

.channel__arrow {
    font-size: 20px;
    color: var(--gray);
    transition: transform .18s var(--ease), color .18s var(--ease);
}
.channel:hover .channel__arrow { transform: translateX(4px); color: var(--accent-dark); }

/* Памятка «какие фото прислать» */

.channels__shots {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px dashed var(--light-2);
}
.channels__shots-title { margin: 0 0 14px; font-size: 15px; font-weight: 800; }

.shots { display: grid; gap: 12px; }

.shot { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.shot strong { display: block; font-size: 14.5px; }
.shot small { font-size: 13px; color: var(--gray); }

.shot__num {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--font-cond);
    font-size: 15px;
    font-weight: 700;
}

.contacts__info { display: grid; gap: var(--gap); }

.contacts__list {
    display: grid;
    gap: 20px;
    padding: clamp(20px, 3.4vw, 28px);
    border: 1px solid var(--steel-line);
    border-radius: var(--radius-lg);
    background: rgba(47, 53, 61, .45);
}
.contacts__list > li { display: grid; gap: 4px; }

.contacts__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray-2);
}

.contacts__value { font-size: 17px; font-weight: 700; text-decoration: none; }
.contacts__value--lg {
    font-family: var(--font-cond);
    font-size: clamp(24px, 4vw, 32px);
    color: var(--accent);
}
.contacts__note { font-size: 13px; color: var(--gray); }
.contacts__messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.map {
    position: relative;
    min-height: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--steel);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 260px; border: 0; }

.map__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 260px;
    padding: 24px;
    border: 0;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px),
        var(--steel);
    color: var(--light);
    cursor: pointer;
    transition: background-color .2s var(--ease);
}
.map__placeholder:hover { background-color: var(--steel-2); }
.map__pin { color: var(--accent); }
.map__text { display: grid; gap: 2px; text-align: center; }
.map__text strong { font-size: 16px; }
.map__text small { font-size: 13px; color: var(--gray-2); }

/* --------------------------------------------------------- Футер -------- */

.footer {
    padding: clamp(40px, 6vw, 68px) 0 100px;
    background: var(--ink-2);
    color: var(--gray-2);
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.footer__inner { display: grid; gap: clamp(26px, 4vw, 44px); }
.footer__col { display: grid; gap: 14px; align-content: start; }
.logo--footer { color: var(--white); }
.footer__text { margin: 0; font-size: 14px; }

.footer__title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
}

.footer__links { display: grid; gap: 10px; font-size: 14.5px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--accent); }
.footer__links--contacts a { font-weight: 700; color: var(--white); }
.footer__col .btn { justify-self: start; }

.footer__bottom {
    display: grid;
    gap: 8px;
    margin-top: clamp(26px, 4vw, 40px);
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: 12.5px;
}
.footer__bottom p { margin: 0; }

/* ------------------------------------- Плавающие кнопки и мобильная панель */

.fab {
    position: fixed;
    right: 16px;
    bottom: 78px;
    z-index: 80;
    display: grid;
    justify-items: end;
    gap: 10px;
}

.fab.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}

.fab__toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
    cursor: pointer;
    order: 2;
    transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.fab__toggle:hover { transform: scale(1.06); }

.fab__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: fab-pulse 2.6s ease-out infinite;
}
@keyframes fab-pulse {
    0%   { transform: scale(1);   opacity: .8; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

.fab__icon--close { display: none; }
.fab.is-open .fab__icon--phone { display: none; }
.fab.is-open .fab__icon--close { display: block; }
.fab.is-open .fab__pulse { display: none; }

.fab__menu {
    display: grid;
    gap: 8px;
    justify-items: end;
    order: 1;
}
.fab__menu[hidden] { display: none; }

.fab__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 0;
    border-radius: 100px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    animation: fab-in .22s var(--ease) both;
}
.fab__item:hover { transform: translateX(-3px); }
.fab__item-icon { display: inline-flex; }
.fab__item--accent { background: var(--accent); }
.fab__item--wa { background: var(--wa); color: #06331a; }
.fab__item--tg { background: var(--tg); color: #04222f; }
.fab__item--max { background: var(--max-gradient); color: var(--white); }

@keyframes fab-in {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(20, 23, 26, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bar__item {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 10px 6px;
    border: 0;
    background: transparent;
    color: var(--light);
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.mobile-bar__item--accent { color: var(--accent); }

/* ------------------------------------------------------- Модалки -------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 16px;
    overflow-y: auto;
}
.modal[hidden] { display: none; }

.modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 15, .72);
    backdrop-filter: blur(3px);
    animation: fade-in .2s var(--ease) both;
}

.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: auto;
    padding: clamp(24px, 4vw, 36px);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow);
    animation: modal-in .26s var(--ease) both;
}
.modal__dialog--sm { max-width: 440px; text-align: center; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to   { opacity: 1; transform: none; }
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--light);
    color: var(--steel);
    cursor: pointer;
}
.modal__close:hover { background: var(--light-2); }

.modal__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-dark);
}
.modal__title { font-size: clamp(21px, 3.4vw, 28px); }
.modal__text { font-size: 15px; color: var(--gray); }

.modal__channels { display: grid; gap: 10px; margin: 20px 0 16px; }

.modal__legal { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--gray); }
.modal__legal a { color: inherit; text-decoration: underline; }

/* ========================================================= Адаптив ====== */

@media (min-width: 480px) {
    .hero__cta { grid-auto-flow: column; justify-content: start; }
    .pains__cta { grid-template-columns: 1fr auto; }
    .portfolio__cta { grid-template-columns: 1fr auto; text-align: left; align-items: center; }
}

@media (min-width: 700px) {
    .stats__grid { grid-template-columns: repeat(4, 1fr); }
    .pains__grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
    .footer__bottom { grid-template-columns: 1fr auto; align-items: center; }
    .service { grid-template-columns: 1fr 1fr; }
    .service--reverse .service__media { order: 2; }
    .review { flex-basis: min(60%, 420px); }
}

@media (min-width: 900px) {
    :root { --header-h: 76px; }

    .header__contact { display: block; text-align: right; }
    .burger { display: none; }
    .nav { display: flex; gap: clamp(14px, 2vw, 26px); }
    .mobile-bar { display: none; }
    .footer { padding-bottom: clamp(40px, 6vw, 68px); }
    .fab { right: 24px; bottom: 24px; }

    .hero { padding-top: clamp(56px, 6vw, 90px); }
    .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); align-items: center; }
    .hero__scroll {
        position: absolute;
        left: 50%;
        bottom: 18px;
        z-index: 1;
        display: grid;
        place-items: center;
        width: 34px;
        height: 52px;
        transform: translateX(-50%);
        border: 2px solid rgba(255, 255, 255, .25);
        border-radius: 100px;
    }
    .hero__scroll span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
        animation: scroll-hint 1.8s var(--ease) infinite;
    }
    @keyframes scroll-hint {
        0%   { transform: translateY(-8px); opacity: 0; }
        40%  { opacity: 1; }
        100% { transform: translateY(9px); opacity: 0; }
    }

    .pains__grid { grid-template-columns: repeat(3, 1fr); }
    .calc__layout { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); }
    .calc__options { grid-template-columns: repeat(2, 1fr); }
    .contacts__layout { grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); }
    .insurers__layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); }
    .reviews__nav { display: flex; }
    .service { gap: clamp(28px, 4vw, 56px); }
}

@media (min-width: 1100px) {
    .portfolio__grid { grid-template-columns: repeat(3, 1fr); }
    .review { flex-basis: min(40%, 400px); }
}

/* Мобильное меню: выезжающая панель */
@media (max-width: 899px) {
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        z-index: 89;
        display: grid;
        gap: 2px;
        padding: 12px clamp(16px, 5vw, 40px) 22px;
        background: var(--ink);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        box-shadow: var(--shadow);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform .24s var(--ease), opacity .24s var(--ease), visibility .24s;
    }
    .nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav__link { padding: 13px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
    .header__actions .btn--ghost { display: none; }
}

@media print {
    .header, .fab, .mobile-bar, .modal, .hero__scroll, .map { display: none !important; }
    body { color: #000; background: #fff; }
}
