/* ============================================================
   PROBEG — Автосервис в Ялте · премиальная тема
   ============================================================ */

:root {
    --bg:            #0c0e12;
    --bg-2:          #12151b;
    --surface:       #161a21;
    --surface-2:     #1d222b;
    --line:          rgba(255,255,255,.08);
    --line-strong:   rgba(255,255,255,.16);
    --text:          #eef1f6;
    --muted:         #9aa3b2;
    --muted-2:       #6f7889;
    --red:           #e11d24;
    --red-2:         #ff3b30;
    --red-soft:      rgba(225,29,36,.14);
    --gold:          #d9a441;
    --radius:        18px;
    --radius-sm:     12px;
    --shadow:        0 24px 60px -20px rgba(0,0,0,.6);
    --maxw:          1240px;
    --ease:          cubic-bezier(.22,.61,.36,1);
}

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

/* overflow-x: clip (а не hidden) — режет горизонтальный скролл,
   но НЕ создаёт скролл-контейнер и не ломает position: sticky у шапки. */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a[href^="tel:"] { white-space: nowrap; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; font-weight: 600; line-height: 1.12; letter-spacing: .3px; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .3px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
    will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-2) 100%);
    color: #fff;
    box-shadow: 0 12px 30px -10px rgba(225,29,36,.7);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(225,29,36,.85); }

.btn--ghost {
    background: rgba(255,255,255,.05);
    color: var(--text);
    border-color: var(--line-strong);
    backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }

/* Шапка вынесена в #site-header — display:contents, чтобы sticky работал относительно body */
#site-header { display: contents; }

/* ============ ВЕРХНЯЯ ПЛАШКА ============ */
.topbar {
    background: #08090c;
    border-bottom: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--muted);
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 42px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 26px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar__item svg { color: var(--red); flex-shrink: 0; }
.topbar__hours { color: var(--text); }
.topbar__phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: .4px;
    color: #fff; white-space: nowrap; transition: color .2s;
}
.topbar__phone svg { color: var(--red); }
.topbar__phone:hover { color: var(--red-2); }

/* ============ ШАПКА ============ */
/* Обёртка-монтаж не должна образовывать containing block,
   иначе sticky-шапка «прилипает» лишь в пределах этой обёртки. */
#site-header { display: contents; }
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12,14,18,.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: background .3s, box-shadow .3s, transform .35s var(--ease);
}
.header.is-scrolled { background: rgba(10,12,16,.97); box-shadow: 0 10px 30px -15px rgba(0,0,0,.8); }
/* Скрытие при скролле вниз. ВАЖНО: transform применяется ТОЛЬКО в этом состоянии
   (без will-change), иначе шапка стала бы containing block для fixed-меню,
   и мобильное меню «прилипало» бы к шапке, а не к экрану. */
.header.is-hidden { transform: translateY(-100%); }
/* При открытом меню шапку никогда не трансформируем (меню — fixed-потомок шапки) */
body.menu-open .header.is-hidden { transform: none; }
.header__inner { display: flex; align-items: center; gap: 20px; height: 74px; }

.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo__mark { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 1px; color: #fff; }
.logo__mark span { color: var(--red); }
.logo__sub { font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
    position: relative;
    display: inline-flex; align-items: center;
    padding: 9px 11px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border-radius: 8px;
    white-space: nowrap;
    transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link::after {
    content: "";
    position: absolute;
    left: 11px; right: 11px; bottom: 4px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; margin-left: auto; background: none; border: 0; cursor: pointer; align-items: center; justify-content: center; flex-shrink: 0; }
.burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.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); }
.nav__close { display: none; }
.nav-overlay { display: none; }

/* ============ ГЕРОЙ ============ */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(1200px 600px at 75% 10%, rgba(225,29,36,.30), transparent 60%),
        radial-gradient(900px 500px at 10% 90%, rgba(45,90,180,.14), transparent 60%),
        linear-gradient(180deg, rgba(12,14,18,.74), rgba(10,12,16,.93)),
        url("../images/hero.jpg") center/cover no-repeat;
}
.hero__bg::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--bg)); }
.hero__inner { position: relative; z-index: 2; padding: 80px 24px; }
.hero__content { max-width: 760px; }

.hero__badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    background: var(--red-soft);
    border: 1px solid rgba(225,29,36,.4);
    color: #ff8a85;
    border-radius: 50px;
    font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    margin-bottom: 26px;
}
.hero__title {
    font-size: clamp(44px, 7vw, 88px);
    font-weight: 700;
    margin-bottom: 22px;
    text-transform: uppercase;
}
.hero__title span { color: var(--red); }
.hero__lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 620px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero__stats { display: flex; gap: 48px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: 'Oswald', sans-serif; font-size: 40px; font-weight: 700; color: #fff; }
.stat__label { font-size: 13.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 1px; }

.hero__scroll {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--muted-2); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.hero__scroll svg { animation: bob 1.8s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============ Заголовки секций ============ */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head__tag {
    display: inline-block;
    color: var(--red-2);
    font-weight: 700; font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
    margin-bottom: 14px;
}
.section-head__tag--light { color: #ffb3af; }
.section-head__title { font-size: clamp(30px, 4.4vw, 50px); text-transform: uppercase; margin-bottom: 16px; }
.section-head__desc { color: var(--muted); font-size: 16.5px; }

/* ============ ПРЕИМУЩЕСТВА ============ */
.features { padding: 90px 0 30px; background: var(--bg); }
.features__intro {
    max-width: 880px; margin: 0 auto 60px; text-align: center;
    font-size: clamp(18px, 2.4vw, 24px); line-height: 1.5; color: var(--text);
    font-weight: 500;
}
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--surface-2); }
.feature__icon {
    width: 58px; height: 58px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--red-soft); color: var(--red-2);
    margin-bottom: 20px;
}
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ============ УСЛУГИ ============ */
.services { padding: 90px 0; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.services__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.price-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    position: relative;
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s;
}
.price-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-2));
    transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.price-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.price-card:hover::before { transform: scaleX(1); }
.price-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.price-card__icon {
    width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--red-soft); color: var(--red-2);
}
.price-card__head h3 { font-size: 23px; }
.price-card__list { display: flex; flex-direction: column; }
.price-card__list li {
    display: flex; align-items: baseline; gap: 10px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 15px;
}
.price-card__list li span { color: var(--muted); }
.price-card__list li b {
    margin-left: auto; white-space: nowrap;
    font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 16px; color: #fff;
}
.price-card__more {
    display: inline-block; margin-top: 22px;
    color: var(--red-2); font-weight: 700; font-size: 15px;
    transition: gap .2s, color .2s;
}
.price-card__more:hover { color: #fff; }

/* ============ ГБО ============ */
.gbo {
    padding: 90px 0; position: relative; overflow: hidden;
    background:
        linear-gradient(180deg, rgba(18,21,27,.93), rgba(18,21,27,.96)),
        url("../images/gbo.jpg") center/cover no-repeat;
    background-attachment: fixed, fixed;
}
.gbo::after {
    content: ""; position: absolute; right: -10%; top: -20%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(225,29,36,.16), transparent 70%);
    pointer-events: none;
}
.gbo__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; position: relative; z-index: 2; }
.gbo__title { font-size: clamp(32px, 4.6vw, 54px); text-transform: uppercase; margin: 10px 0 18px; }
.gbo__price { font-size: 24px; color: var(--muted); margin-bottom: 18px; }
.gbo__price b { font-family: 'Oswald', sans-serif; font-size: 40px; color: var(--red-2); }
.gbo__text { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.gbo__install {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: var(--radius-sm);
    padding: 18px 22px; margin-bottom: 30px;
}
.gbo__install svg { color: var(--red-2); flex-shrink: 0; }
.gbo__install p { font-size: 15px; color: var(--muted); }
.gbo__install b { color: #fff; }

.gbo__visual { display: grid; place-items: center; }
.gbo__badge {
    width: 260px; height: 260px; border-radius: 50%;
    display: grid; place-content: center; text-align: center;
    background: conic-gradient(from 200deg, var(--red), var(--red-2), #7a0f14, var(--red));
    box-shadow: 0 30px 80px -20px rgba(225,29,36,.6);
    position: relative;
}
.gbo__badge::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--bg-2); }
.gbo__badge-num { position: relative; font-family: 'Oswald', sans-serif; font-size: 72px; font-weight: 700; color: #fff; }
.gbo__badge-text { position: relative; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; max-width: 150px; margin: 6px auto 0; line-height: 1.35; padding: 0 6px; }

/* ============ ЗАПЧАСТИ ============ */
.parts { padding: 90px 0; background: var(--bg); }
.parts__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.parts__card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 36px;
    transition: transform .35s var(--ease), border-color .35s;
}
.parts__card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.parts__card--big {
    grid-row: span 2;
    background: linear-gradient(160deg, var(--surface-2), var(--surface));
    display: flex; flex-direction: column; justify-content: center;
}
.parts__card--big h3 { font-size: clamp(26px, 3.2vw, 38px); text-transform: uppercase; margin-bottom: 18px; }
.parts__card--big p { color: var(--muted); font-size: 16.5px; margin-bottom: 28px; }
.parts__icon {
    width: 52px; height: 52px; border-radius: 13px;
    display: grid; place-items: center; background: var(--red-soft); color: var(--red-2);
    margin-bottom: 18px;
}
.parts__card h4 { font-size: 21px; margin-bottom: 10px; }
.parts__card p { color: var(--muted); font-size: 15px; }

/* ============ МАСЛА + ШИНЫ ============ */
.duo { padding: 30px 0 90px; background: var(--bg); }
.duo__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.duo__card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 44px 40px;
    transition: transform .35s var(--ease), border-color .35s;
}
.duo__card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.duo__icon {
    width: 64px; height: 64px; border-radius: 16px;
    display: grid; place-items: center; background: var(--red-soft); color: var(--red-2);
    margin-bottom: 22px;
}
.duo__card h3 { font-size: 27px; margin-bottom: 12px; }
.duo__card p { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.duo__link { color: var(--red-2); font-weight: 700; font-size: 15px; }
.duo__link:hover { color: #fff; }

/* ============ CTA полоса ============ */
.cta-band {
    padding: 64px 0;
    background:
        linear-gradient(135deg, rgba(225,29,36,.93), rgba(140,15,20,.94)),
        url("../images/engine.jpg") center/cover no-repeat;
    background-attachment: scroll, fixed;
    position: relative; overflow: hidden;
}
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 50%);
}
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); text-transform: uppercase; color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 17px; margin-top: 6px; }
.cta-band__phones { display: flex; flex-direction: column; gap: 8px; }
.cta-band__phone {
    font-family: 'Oswald', sans-serif; font-size: 30px; font-weight: 700; color: #fff;
    letter-spacing: 1px; transition: opacity .2s, transform .2s;
}
.cta-band__phone:hover { opacity: .85; transform: translateX(4px); }

/* ============ КОНТАКТЫ ============ */
.contacts { padding: 90px 0; background: var(--bg-2); }
.contacts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.contact-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 32px;
    transition: border-color .3s, transform .3s var(--ease);
}
.contact-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.contact-card h3 { font-size: 22px; margin-bottom: 18px; }
.contact-card__list li { display: flex; align-items: center; gap: 11px; padding: 7px 0; }
.contact-card__list svg { color: var(--red); }
.contact-card__list a { font-family: 'Oswald', sans-serif; font-size: 19px; color: #fff; transition: color .2s; }
.contact-card__list a:hover { color: var(--red-2); }
.contact-card--hours { background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.contact-card__big { font-family: 'Oswald', sans-serif; font-size: 38px; font-weight: 700; color: var(--red-2); margin-bottom: 4px; }
.contact-card p { color: var(--muted); }
.contact-card__city { display: block; margin-top: 14px; color: var(--muted-2); font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }

.contacts__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); filter: grayscale(.3) contrast(1.05); }

/* ============ ПОДВАЛ ============ */
.footer { background: #08090c; border-top: 1px solid var(--line); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 50px; }
.footer__brand p { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 320px; }
.footer__col h4 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; color: #fff; }
.footer__col a { display: block; color: var(--muted); font-size: 14.5px; padding: 6px 0; transition: color .2s, padding-left .2s; }
.footer__col a:hover { color: var(--red-2); padding-left: 5px; }
.footer__addr { display: block; color: var(--muted-2); font-size: 14px; margin-top: 12px; line-height: 1.7; }
.footer__bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 30px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px; }
.footer__copy { white-space: nowrap; }
.footer__legal { white-space: nowrap; }
.footer__disclaimer { max-width: 520px; margin-left: auto; text-align: right; text-wrap: balance; }

/* ============ Плавающая кнопка ============ */
.fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    display: none; place-items: center;
    background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff;
    box-shadow: 0 14px 34px -10px rgba(225,29,36,.8);
    animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 14px 34px -10px rgba(225,29,36,.8), 0 0 0 0 rgba(225,29,36,.5); } 70% { box-shadow: 0 14px 34px -10px rgba(225,29,36,.8), 0 0 0 16px rgba(225,29,36,0); } 100% { box-shadow: 0 14px 34px -10px rgba(225,29,36,.8), 0 0 0 0 rgba(225,29,36,0); } }

/* ============ Анимация появления ============ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ АДАПТИВ ============ */

/* Очень широкие экраны — слегка крупнее container */
@media (min-width: 1500px) {
    :root { --maxw: 1340px; }
}

/* Ноутбуки: 4 → 3 колонки преимуществ, чуть компактнее меню */
@media (max-width: 1200px) {
    .features__grid { grid-template-columns: repeat(3, 1fr); }
    .nav__link { padding: 9px 9px; font-size: 13.5px; }
}

/* Планшеты-ландшафт: включаем мобильное меню-оверлей */
@media (max-width: 1024px) {
    .header__inner { height: 70px; }
    /* убираем backdrop-filter: иначе он создаёт containing block и fixed-меню
       привязывается к шапке (а не к экрану) — отсюда «маленькая высота» */
    .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,12,16,.98); }
    .header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); height: 100dvh;
        flex-direction: column; align-items: stretch; gap: 0; margin: 0;
        background: var(--bg-2); border-left: 1px solid var(--line);
        padding: 86px 18px calc(28px + env(safe-area-inset-bottom)); overflow-y: auto;
        transform: translateX(105%); transition: transform .35s var(--ease);
        z-index: 95;
    }
    .nav.is-open { transform: none; box-shadow: -20px 0 60px -20px rgba(0,0,0,.7); }
    .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 94; }
    .nav-overlay.is-open { opacity: 1; visibility: visible; }
    .nav__close { display: grid; place-items: center; position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 12px; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; z-index: 2; }
    body.menu-open .burger { opacity: 0; pointer-events: none; }
    .nav__link { padding: 15px 12px; font-size: 16.5px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav__link::after { display: none; }
    .burger { display: flex; }
    .fab { display: grid; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .features__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Планшеты-портрет */
@media (max-width: 880px) {
    .gbo, .cta-band { background-attachment: scroll; }
    .topbar__left { display: none; }
    .topbar__inner { justify-content: center; }
    .topbar__right { gap: 18px; }
    .topbar__phone { display: none; }
    .services__grid, .parts__grid, .duo__inner, .contacts__grid { grid-template-columns: 1fr; }
    .parts__card--big { grid-row: auto; }
    .gbo__inner { grid-template-columns: 1fr; gap: 36px; }
    .gbo__visual { order: -1; }
    .features { padding: 70px 0 20px; }
    .services, .gbo, .parts, .contacts { padding: 70px 0; }
}

/* Смартфоны */
@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .topbar { display: none; }
    .header__inner { gap: 12px; }
    .gbo__badge { width: 200px; height: 200px; }
    .gbo__badge-num { font-size: 52px; }
    .gbo__badge-text { font-size: 9px; letter-spacing: .4px; max-width: 120px; }
    .hero { align-items: flex-start; }
    .hero__inner { padding: 44px 18px 60px; }
    .hero__badge { margin-bottom: 18px; }
    .hero__actions { margin-bottom: 32px; }
    .hero__stats {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px;
        border-top: 1px solid var(--line); padding-top: 22px;
    }
    .stat { align-items: center; text-align: center; }
    .stat__num { font-size: 27px; }
    .stat__label { font-size: 10.5px; letter-spacing: .6px; line-height: 1.3; margin-top: 3px; }
    .hero__scroll { display: none; }
    .footer__inner { grid-template-columns: 1fr; gap: 26px; padding-bottom: 36px; }
    .footer__disclaimer { text-align: left; max-width: none; }
    .footer__copy { white-space: normal; }
    .cta-band__inner { flex-direction: column; align-items: flex-start; }
    .cta-band { padding: 48px 0; }
    .price-card, .duo__card, .parts__card { padding: 26px 22px; }
    .section-head { margin-bottom: 40px; }
}

/* Узкие смартфоны */
@media (max-width: 420px) {
    .features__grid { grid-template-columns: 1fr; }
    .logo__sub { display: none; }
    .hero { min-height: auto; }
    .stat__num { font-size: 23px; }
    .stat__label { font-size: 9.5px; }
    .cta-band__phone { font-size: 24px; }
    .nav { width: 100%; }
}

/* Совсем узкие экраны (<360px): кнопка звонка только иконкой */
@media (max-width: 359px) {
    .header__call-txt { display: none; }
    .header__call { padding: 0 13px; }
}

/* Подпись «Цифровой Актив»: на мобильном — по левому краю */
@media (max-width: 600px) {
    [data-dasset-badge] { text-align: left !important; }
    [data-dasset-badge] a { align-items: flex-start !important; text-align: left !important; }
}

/* ============ Кнопка звонка в шапке (моб.) ============ */
.header__call {
    display: none; height: 44px; flex-shrink: 0; gap: 8px;
    align-items: center; justify-content: center; padding: 0 16px;
    background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff;
    border: 0; border-radius: 12px; cursor: pointer;
    font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .4px;
    box-shadow: 0 10px 22px -10px rgba(225,29,36,.75);
    transition: transform .15s, filter .2s;
}
.header__call svg { flex-shrink: 0; }
.header__call:hover { filter: brightness(1.08); }
.header__call:active { transform: scale(.93); }

/* FAB — теперь кнопка (открывает модалку) */
.fab { border: 0; cursor: pointer; }

/* ============ Модалка «Позвонить» ============ */
.call-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.call-modal.is-open { display: flex; }
.call-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: cm-fade .25s ease; }
.call-modal__box {
    position: relative; width: 100%; max-width: 440px; margin: 0;
    max-height: calc(100dvh - 32px); overflow-y: auto;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px;
    padding: 26px 20px 20px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.85);
    animation: cm-up .32s var(--ease);
}
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cm-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.call-modal__close {
    position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
    display: grid; place-items: center; background: rgba(255,255,255,.06);
    border: 1px solid var(--line); border-radius: 12px; color: #fff;
    font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s;
}
.call-modal__close:hover { background: rgba(255,255,255,.12); }
.call-modal__head { margin-bottom: 18px; padding-right: 44px; }
.call-modal__title { display: block; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 23px; letter-spacing: .5px; color: #fff; }
.call-modal__sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.call-modal__list { display: flex; flex-direction: column; gap: 10px; }
.call-row {
    display: flex; align-items: center; gap: 14px; padding: 13px 14px;
    background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px;
    transition: background .2s, border-color .2s, transform .15s;
}
.call-row:hover { background: rgba(225,29,36,.1); border-color: var(--red); }
.call-row:active { transform: scale(.99); }
.call-row__ic { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: linear-gradient(135deg, var(--red), var(--red-2)); color: #fff; }
.call-row__txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.call-row__num { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 19px; letter-spacing: .4px; color: #fff; white-space: nowrap; }
.call-row__dep { font-size: 13px; color: var(--muted); margin-top: 1px; }
.call-row > svg:last-child { color: var(--muted-2); flex-shrink: 0; }

@media (max-width: 1024px) {
    .header__call { display: inline-flex; margin-left: auto; }
}

/* ============ Согласие на обработку ПДн в формах ============ */
.form-consent {
    display: flex; align-items: flex-start; gap: 9px;
    margin: 2px 0 16px; font-size: 12.5px; line-height: 1.45;
    color: var(--muted); cursor: pointer;
}
.form-consent input { margin-top: 1px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--red); cursor: pointer; }
.form-consent a { color: var(--red-2); text-decoration: underline; }
.form-consent a:hover { color: var(--red); }
.form-consent.is-error { color: #ff8a85; }

/* Ссылка на политику в подвале */
.footer__legal a { color: var(--muted-2); text-decoration: none; transition: color .2s; }
.footer__legal a:hover { color: #fff; }
