/* =========================================================
   ON Service — стили сайта
   Визуальная основа: светлый минимализм, крупная типографика
   Montserrat, красный акцент, скруглённые блоки 20px.
   ========================================================= */

:root {
    --bg: #ffffff;
    --alt: #f5f5f5;
    --pale: #f8f8f8;
    --ink: #101010;
    --soft: #4a4a4a;
    --muted: #8a8a8a;
    --line: #e4e4e4;
    --accent: #c3032d;
    --accent-dark: #a00225;
    --accent-pale: #fbe9ed;
    --dark: #121212;
    --dark-2: #1c1c1c;
    --ok: #1f9d55;
    --warn: #e08a00;

    --r-block: 20px;
    --r-control: 12px;
    --r-pill: 999px;

    --font: "Montserrat", Arial, sans-serif;
    --font-hand: "Marck Script", cursive;

    --fs-display: clamp(2.5rem, 5vw, 4.5rem);
    --fs-h2: clamp(1.75rem, 3.4vw, 2.75rem);
    --fs-h3: 1.125rem;
    --fs-lead: clamp(1rem, 1.3vw, 1.125rem);

    --section-y: clamp(56px, 8vw, 104px);
    --container: 1240px;
    --gutter: clamp(16px, 3vw, 32px);
    --shadow: 0 10px 30px rgba(16, 16, 16, .08);
    --shadow-lg: 0 24px 60px rgba(16, 16, 16, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
.kicker {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--soft);
    margin-bottom: 18px;
}
.kicker--light { color: rgba(255, 255, 255, .6); }
.h2 {
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
}
.h2 em, .hero__title em {
    font-style: italic;
    font-weight: 900;
    color: var(--accent);
}
.section-lead { font-size: var(--fs-lead); color: var(--soft); margin-top: 18px; max-width: 620px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: var(--r-control);
    border: 2px solid transparent;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(195, 3, 45, .25); }
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 12px 26px rgba(195, 3, 45, .32); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2a2a; }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--outline { border-color: var(--line); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 18px 34px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-underline {
    font-weight: 600;
    color: var(--accent);
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
    transition: color .2s;
}
.link-underline:hover { color: var(--ink); }

.round-btn {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.round-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, .04); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo img { height: 54px; width: auto; }
.nav { display: flex; gap: 28px; margin-right: auto; }
.nav > a { font-size: 14px; font-weight: 500; color: var(--soft); transition: color .2s; }
.nav > a:hover { color: var(--accent); }
.nav__mobile-extra { display: none; }
.header__right { display: flex; align-items: center; gap: 20px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.header__phone svg { width: 16px; height: 16px; color: var(--accent); }
.burger {
    display: none;
    width: 48px; height: 48px;
    border: 0;
    border-radius: var(--r-control);
    background: var(--alt);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 8px 0 0; }
.hero__box {
    background: var(--alt);
    border-radius: var(--r-block);
    padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(20px, 3vw, 32px);
    position: relative;
    overflow: hidden;
}
.hero__box::before {
    content: "";
    position: absolute;
    right: -10%;
    top: -30%;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(195, 3, 45, .10), transparent 70%);
    pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; }
.hero__title {
    font-size: var(--fs-display);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.035em;
    color: #3a3a3a;
}
.hero__title em { display: inline; }
.hero__lead { font-size: var(--fs-lead); color: var(--soft); margin-top: 24px; max-width: 540px; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.hero__facts { display: flex; gap: clamp(20px, 3vw, 44px); margin-top: 44px; flex-wrap: wrap; }
.hero__facts li { display: flex; align-items: center; gap: 12px; }
.hero__facts b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.hero__facts span { font-size: 12px; line-height: 1.4; color: var(--soft); }

.hero__visual { position: relative; min-height: 460px; padding-top: 84px; }
.hero__photo {
    position: relative;
    margin-left: auto;
    width: min(100%, 400px);
    aspect-ratio: 4 / 5;
    border-radius: var(--r-block);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__note {
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-hand);
    font-size: 26px;
    line-height: 1.15;
    color: #333;
    transform: rotate(-6deg);
    z-index: 2;
}
.hero__note::after {
    content: "";
    display: block;
    width: 70px;
    height: 2px;
    background: #333;
    margin-top: 6px;
    border-radius: 2px;
}
.chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow);
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    white-space: nowrap;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-pale); }
.chip--a { left: 0; top: 56%; }
.chip--b { right: -6px; top: 24%; }
.rating-card {
    position: absolute;
    left: 10%;
    bottom: 4%;
    background: var(--ink);
    color: #fff;
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}
.rating-card__stars { color: #ffb400; font-size: 13px; letter-spacing: 2px; }
.rating-card__val { font-size: 34px; font-weight: 800; line-height: 1.1; }
.rating-card__src { font-size: 11px; color: rgba(255, 255, 255, .65); }

/* ---------- Quick form ---------- */
.quick-form {
    position: relative;
    margin-top: clamp(28px, 4vw, 44px);
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1.15fr 1fr .85fr 1fr auto;
    gap: 10px;
    align-items: center;
    box-shadow: var(--shadow);
}
.quick-form__head { padding: 0 10px; line-height: 1.3; }
.quick-form__head strong { display: block; font-size: 14px; font-weight: 800; }
.quick-form__head span { font-size: 12px; color: var(--muted); }
.field input, .cta__form input:not([type=checkbox]) {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-control);
    background: var(--pale);
    font-size: 14px;
    transition: border-color .2s, background .2s;
}
.field input:focus, .cta__form input:not([type=checkbox]):focus { outline: none; border-color: var(--ink); background: #fff; }
.field input.is-invalid, .cta__form input.is-invalid { border-color: var(--accent); background: var(--accent-pale); }
.quick-form .btn { height: 52px; }
.consents { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 4px 10px 0; }
.consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.4; color: var(--soft); cursor: pointer; }
.consent input { accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 16px; margin: 0; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--accent); }
.consent.is-invalid { color: var(--accent); }
.consent.is-invalid input { outline: 2px solid var(--accent); outline-offset: 1px; }
.consents--light { padding: 0; }
.consents--light .consent, .consents--light .consent a { color: #fff; }
.consents--light .consent input { accent-color: #fff; }
.consents--light .consent.is-invalid { color: #ffe0e6; }
.consents--light .consent.is-invalid input { outline-color: #fff; }
.form-status { grid-column: 1 / -1; font-size: 14px; font-weight: 600; padding: 0 10px; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--accent); }

/* ---------- Strip ---------- */
.strip { padding: 28px 0 0; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip__item { padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; }
.strip__item b { display: block; font-size: 15px; font-weight: 800; }
.strip__item span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--alt); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark .section-lead { color: rgba(255, 255, 255, .7); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
    background: var(--alt);
    border-radius: var(--r-block);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .25s, box-shadow .25s, background .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: #fff; }
.service h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.service p { font-size: 14px; color: var(--soft); }
.service__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
}
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service--feature {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--accent);
    color: #fff;
    padding: 36px;
}
.service--feature:hover { background: var(--accent-dark); }
.service--feature h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.service--feature p { color: rgba(255, 255, 255, .85); font-size: 16px; }
.service--feature .service__icon { background: rgba(255, 255, 255, .15); }
.service--feature .service__icon svg { stroke: #fff; }
.service--feature .ticks li { color: #fff; }
.service--feature .ticks li::before { background-color: #fff; }
.service__link { margin-top: auto; font-weight: 700; padding-top: 16px; }

.ticks { display: grid; gap: 10px; margin-top: 6px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; font-weight: 500; }
.ticks li::before {
    content: "";
    position: absolute;
    left: 0; top: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.service--feature .ticks li::before { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3032d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticks--lg { margin: 28px 0 32px; gap: 14px; }
.ticks--lg li { font-size: 16px; }

/* ---------- Diesel ---------- */
.diesel { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.diesel .h2 em { color: #ff4d6d; }
.diesel__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 36px 0; }
.diesel__list li { padding: 20px; border-radius: 16px; background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .06); }
.diesel__list b { display: block; font-size: 15px; margin-bottom: 6px; }
.diesel__list span { font-size: 13px; color: rgba(255, 255, 255, .62); line-height: 1.5; display: block; }
.diesel__quote {
    position: relative;
    background: linear-gradient(160deg, #1f1f1f, #161616);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--r-block);
    padding: clamp(28px, 4vw, 44px);
}
.diesel__quote::before {
    content: "“";
    position: absolute;
    top: -22px; left: 28px;
    font-size: 120px;
    line-height: 1;
    font-weight: 900;
    color: var(--accent);
}
.diesel__quote-text { font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 600; line-height: 1.45; }
.diesel__quote-author { margin-top: 18px; color: rgba(255, 255, 255, .55); font-size: 14px; }
.diesel__models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08); }
.diesel__models span { padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .06); font-size: 13px; font-weight: 600; }

/* ---------- Diagnostics ---------- */
.diag { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.diag__card {
    background: #fff;
    border-radius: var(--r-block);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    max-width: 460px;
}
.diag__card-head { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: baseline; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.diag__card-head span { font-weight: 800; font-size: 16px; }
.diag__card-head small { color: var(--muted); font-size: 12px; }
.diag__rows li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.diag__rows em { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.diag__rows .ok { background: #e6f6ed; color: var(--ok); }
.diag__rows .warn { background: #fff3df; color: var(--warn); }
.diag__rows .todo { background: var(--accent-pale); color: var(--accent); }
.diag__total { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: center; margin-top: 18px; padding: 14px 16px; background: var(--alt); border-radius: var(--r-control); font-size: 13px; }
.diag__total b { color: var(--accent); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--r-block); border: 1px solid var(--line); background: #fff; transition: border-color .25s, transform .25s; }
.step:hover { border-color: var(--accent); transform: translateY(-4px); }
.step__n { display: block; font-size: 44px; font-weight: 900; letter-spacing: -.04em; color: var(--accent); line-height: 1; margin-bottom: 22px; }
.step h3 { font-size: var(--fs-h3); font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--soft); }

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case { background: #fff; border-radius: var(--r-block); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.case__car { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); background: var(--ink); color: #fff; }
.case h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.25; margin-top: 8px; }
.case p { font-size: 14px; color: var(--soft); }
.case__meta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.case__meta span { display: block; font-size: 26px; font-weight: 900; color: var(--accent); letter-spacing: -.02em; line-height: 1.2; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-block); overflow: hidden; }
.why__item { background: #fff; padding: clamp(24px, 3vw, 40px); position: relative; }
.why__item::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 22px; }
.why__item h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.why__item p { font-size: 15px; color: var(--soft); }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.ratings { display: flex; gap: 12px; flex-wrap: wrap; }
.rating-badge {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 14px;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 14px 20px;
    transition: box-shadow .2s;
}
.rating-badge:hover { box-shadow: var(--shadow); }
.rating-badge__src { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rating-badge__val { font-size: 32px; font-weight: 900; line-height: 1.1; }
.rating-badge__stars { color: #ffb400; letter-spacing: 2px; font-size: 14px; }
.rating-badge__cnt { grid-column: 1 / -1; font-size: 12px; color: var(--soft); }

.slider { overflow: hidden; }
.slider__track { display: flex; gap: 16px; transition: transform .5s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.review {
    flex: 0 0 calc((100% - 32px) / 3);
    background: #fff;
    border-radius: var(--r-block);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 280px;
}
.review__stars { color: #ffb400; letter-spacing: 3px; }
.review p { font-size: 15px; line-height: 1.6; }
.review footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.review footer b { font-size: 14px; }
.review footer span { font-size: 12px; color: var(--muted); }
.slider__nav { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.slider__count { font-weight: 700; font-size: 15px; min-width: 52px; text-align: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq__head { position: sticky; top: 110px; }
.faq__head .btn { margin-top: 28px; }
.faq__list { display: grid; gap: 10px; }
.qa { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s; }
.qa[open] { border-color: var(--ink); }
.qa summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 64px 22px 24px;
    font-weight: 700;
    font-size: 16px;
    position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
    content: "+";
    position: absolute;
    right: 20px; top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--alt);
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 500;
    transition: transform .25s, background .25s, color .25s;
}
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent); color: #fff; }
.qa p { padding: 0 24px 22px; color: var(--soft); font-size: 15px; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.contacts__card { background: #fff; border-radius: var(--r-block); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.contacts__row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contacts__row:first-child { padding-top: 0; }
.contacts__label { font-size: 13px; color: var(--muted); font-weight: 500; padding-top: 2px; }
.contacts__value { font-weight: 600; font-size: 15px; line-height: 1.5; }
.contacts__value small { font-weight: 400; color: var(--muted); font-size: 13px; }
.contacts__phone { font-size: 22px; font-weight: 800; color: var(--accent); }
.contacts__social { display: flex; gap: 8px; flex-wrap: wrap; }
.soc { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-control); background: var(--alt); font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.soc:hover { background: var(--ink); color: #fff; }
.soc svg { width: 18px; height: 18px; }
.contacts__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 24px; }
.contacts__map { border-radius: var(--r-block); overflow: hidden; min-height: 440px; background: #e9e9e9; }
.contacts__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
.map-stub { height: 100%; min-height: 440px; display: grid; place-items: center; text-align: center; padding: 24px;
    background: repeating-linear-gradient(45deg, #ececec 0 12px, #e6e6e6 12px 24px); }
.map-stub__inner { max-width: 340px; background: #fff; border-radius: 16px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 10px; justify-items: center; }
.map-stub__inner svg { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.map-stub__inner p { font-size: 13px; color: var(--soft); }

/* ---------- CTA ---------- */
.cta-section { padding-top: clamp(40px, 6vw, 72px); }
.cta {
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-block);
    padding: clamp(32px, 5vw, 64px);
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta::after {
    content: "";
    position: absolute;
    right: -80px; bottom: -120px;
    width: 340px; height: 340px;
    border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .07);
    pointer-events: none;
}
.cta p { margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: var(--fs-lead); }
.cta__form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; position: relative; z-index: 1; }
.cta__form input:not([type=checkbox]) { background: #fff; border-color: #fff; height: 56px; }
.cta__form .btn { height: 56px; }
.cta__form .form-status { color: #fff; padding: 0; }
.cta__form .form-status.is-err { color: #ffe0e6; }


/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, .7); padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer__brand p { font-size: 14px; max-width: 340px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: rgba(255, 255, 255, .45); }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .slider__track { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
    .nav { gap: 20px; }
    .header__phone { display: none; }
    .services { grid-template-columns: repeat(3, 1fr); }
    .service--feature { grid-column: span 3; grid-row: auto; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .cases { grid-template-columns: repeat(2, 1fr); }
    .quick-form { grid-template-columns: 1fr 1fr 1fr; }
    .quick-form__head { grid-column: 1 / -1; padding: 4px 6px 4px; }
    .quick-form .btn { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
    .header__inner { height: 68px; gap: 16px; }
    .logo img { height: 40px; }
    .burger { display: flex; }
    .header__cta { display: none; }
    .header__right { margin-left: auto; }
    .nav {
        position: fixed;
        inset: 68px 0 auto 0;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 8px var(--gutter) 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(0, 0, 0, .08);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s, transform .25s, visibility .25s;
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav > a { padding: 14px 0; font-size: 17px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
    .nav__mobile-extra { display: grid; gap: 14px; padding-top: 18px; }
    .nav__phone { font-size: 20px; font-weight: 800; }

    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { min-height: 0; padding-top: 72px; }
    .hero__photo { margin: 0 auto; width: min(100%, 360px); }
    .hero__note { left: 4px; top: 0; font-size: 22px; }
    .chip--b { right: 0; top: 110px; }
    .chip--a { left: 0; top: auto; bottom: 30%; }
    .rating-card { left: auto; right: 4%; bottom: 2%; }

    .strip__inner { grid-template-columns: repeat(2, 1fr); }
    .services { grid-template-columns: repeat(2, 1fr); }
    .service--feature { grid-column: span 2; }
    .diesel, .diag, .faq, .contacts, .cta { grid-template-columns: 1fr; }
    .diag__card { margin: 0 auto; }
    .faq__head { position: static; }
    .why { grid-template-columns: repeat(2, 1fr); }
    .review { flex-basis: calc((100% - 16px) / 2); }
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    body { padding-bottom: 76px; }
    .hero__box { border-radius: 0 0 var(--r-block) var(--r-block); margin: 0 calc(var(--gutter) * -1); }
    .hero__title { letter-spacing: -.03em; }
    .hero__actions { gap: 20px; }
    .hero__actions .btn { width: 100%; }
    .hero__facts { gap: 16px 24px; }
    .hero__facts b { font-size: 24px; }
    .quick-form { grid-template-columns: 1fr; padding: 16px; }
    .quick-form__head, .quick-form .btn { grid-column: auto; }
    .consents, .form-status { grid-column: auto; }
    .consents { flex-direction: column; }
    .chip--a { display: none; }
    .strip__inner { grid-template-columns: 1fr 1fr; gap: 8px; }
    .strip__item { padding: 14px 16px; }
    .strip__item b { font-size: 14px; }
    .services, .cases, .steps, .why { grid-template-columns: 1fr; }
    .service--feature { grid-column: auto; padding: 28px; }
    .diesel__list { grid-template-columns: 1fr; }
    .review { flex-basis: 100%; }
    .contacts__row { grid-template-columns: 1fr; gap: 4px; }
    .contacts__map, .contacts__map iframe { min-height: 340px; }
    .cta__form { grid-template-columns: 1fr; }
    .footer { padding-bottom: 96px; }
    .footer__inner { grid-template-columns: 1fr; }
    .mobile-bar {
        display: grid;
        grid-template-columns: 1fr 1.4fr;
        gap: 8px;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 60;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--line);
    }
    .mobile-bar__btn { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: var(--r-control); font-weight: 700; background: var(--alt); }
    .mobile-bar__btn--primary { background: var(--accent); color: #fff; }
}

/* ---------- Footer legal & developer ---------- */
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; font-size: 13px; }
.footer__legal a, .link-btn { color: rgba(255, 255, 255, .65); }
.footer__legal a:hover, .link-btn:hover { color: #fff; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal + .footer__bottom { margin-top: 20px; }
.dev a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.dev a:hover { border-color: #fff; }
.footer--slim { margin-top: 64px; padding: 8px 0 28px; }
.footer--slim .footer__bottom { margin-top: 0; }

/* ---------- Cookie banner ---------- */
.cookie {
    position: fixed; z-index: 70; left: 16px; bottom: 16px;
    width: min(520px, calc(100% - 32px));
    background: #fff; border-radius: 16px; padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2); border: 1px solid var(--line);
    display: grid; gap: 14px;
}
.cookie[hidden] { display: none; }
.cookie b { font-size: 15px; }
.cookie p { font-size: 13px; color: var(--soft); margin-top: 4px; line-height: 1.5; }
.cookie a { color: var(--ink); text-decoration: underline; }
.cookie__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
    .cookie { left: 8px; right: 8px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); padding: 16px; }
    .cookie__actions .btn { flex: 1; }
}

/* ---------- Legal pages ---------- */
.legal-page .header { position: sticky; }
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding-top: 40px; align-items: start; }
.legal__nav { position: sticky; top: 100px; display: grid; gap: 6px; }
.legal__nav a { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--soft); background: var(--alt); }
.legal__nav a:hover { color: var(--ink); }
.legal__nav a.is-active { background: var(--ink); color: #fff; }
.legal__doc { max-width: 780px; min-width: 0; }
.legal__doc h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.legal__meta { color: var(--muted); font-size: 13px; margin: 8px 0 28px; }
.legal__doc h2 { font-size: 1.15rem; font-weight: 800; margin: 32px 0 10px; }
.legal__doc p, .legal__doc li { font-size: 15px; color: #2a2a2a; margin-bottom: 10px; }
.legal__doc ul { list-style: disc; padding-left: 22px; margin-bottom: 10px; }
.legal__doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__table { overflow-x: auto; margin: 12px 0 16px; }
.legal__doc table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.legal__doc th, .legal__doc td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); }
.legal__doc th { background: var(--alt); font-weight: 700; }
@media (max-width: 860px) {
    .legal { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
    .legal__nav { position: static; grid-auto-flow: row; }
}
.legal-page { padding-bottom: 0 !important; }
.legal-page .header__right { margin-left: auto; }
