/* System Doctor — стили многостраничного сайта (layout.blade.php).
   Без фреймворков: один файл, mobile-first, контрольные точки 768/1024. */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("fonts/manrope/manrope-cyrillic.woff2") format("woff2-variations"), url("fonts/manrope/manrope-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("fonts/manrope/manrope-latin.woff2") format("woff2-variations"), url("fonts/manrope/manrope-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --navy: #0f1b2d;
    --navy-2: #172c4d;
    --ink: #142033;
    --muted: #5a6577;
    --line: #e2e7ef;
    --bg: #f4f6fa;
    --card: #fff;
    --accent: #ff7a1a;
    --accent-hover: #ff8f3d;
    --accent-ink: #c2410c;
    --accent-soft: #fff1e6;
    --ok: #16a34a;
    --danger: #b42318;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px rgba(15, 27, 45, .06);
    --shadow-lg: 0 24px 60px rgba(15, 27, 45, .18);
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    font: 400 16px/1.55 var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(23px, 3.2vw, 32px); margin-bottom: 24px; }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid rgba(255, 122, 26, .65); outline-offset: 2px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.container--narrow { max-width: 820px; }

.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

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

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 24px;
    border: 0; border-radius: var(--radius-sm);
    background: var(--accent); color: var(--navy);
    font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
    cursor: pointer; transition: background-color .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 6px 18px rgba(255, 122, 26, .28);
}
.btn:hover { background: var(--accent-hover); color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: rgba(127, 127, 127, .1); color: inherit; }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: none;
    border: 0; border-radius: var(--radius-sm);
    background: #eef2f7; color: var(--navy); cursor: pointer;
}
.icon-btn .ic { width: 22px; height: 22px; }

.link { padding: 0; border: 0; background: none; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--ink); }

.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.more .ic { transition: transform .15s; }
.more:hover .ic { transform: translateX(3px); }

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

.hdr {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; gap: 10px; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--navy); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--navy); }
.brand img { width: 44px; height: auto; }
.brand__txt { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sub { font-size: 12px; color: var(--muted); line-height: 1.3; }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__sub { color: rgba(255, 255, 255, .6); }

.nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    padding: 4px 16px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.nav.is-open { display: flex; }
.nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent-ink); }
.nav .nav__phone { border-bottom: 0; color: var(--navy); font-weight: 800; }

.hdr__contact, .hdr__cta { display: none; }
.hdr__call { background: var(--accent); }
.burger .ic--close, .burger[aria-expanded="true"] .ic--open { display: none; }
.burger[aria-expanded="true"] .ic--close { display: block; }

@media (max-width: 767px) {
    .brand--long .brand__name { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .brand--long .brand__sub { display: none; }
}

@media (max-width: 380px) {
    .brand__sub { display: none; }
}

@media (min-width: 768px) {
    .hdr__cta { display: inline-flex; }
}

@media (min-width: 1024px) {
    .hdr__in { min-height: 76px; gap: 20px; }
    .brand { margin-right: 0; }
    .brand img { width: 52px; }
    .nav {
        display: flex; position: static; flex-direction: row; gap: 2px;
        margin-inline: auto; padding: 0; background: none; border: 0; box-shadow: none;
    }
    .nav a { padding: 8px 12px; border: 0; border-radius: 10px; font-size: 15.5px; }
    .nav a:hover { background: #eef2f7; }
    .nav a[aria-current="page"] { background: var(--accent-soft); }
    .nav .nav__phone { display: none; }
    .hdr__contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
    .hdr__phone { color: var(--navy); font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap; }
    .hdr__hours { color: var(--muted); font-size: 12.5px; }
    .hdr__call, .burger { display: none; }
}

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

.hero {
    color: #fff;
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(255, 122, 26, .28), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(56, 120, 255, .18), transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
    padding: 28px 0 64px;
}
.hero__in { display: grid; gap: 28px; }
.eyebrow {
    display: inline-block; margin-bottom: 14px; padding: 6px 12px;
    border-radius: 999px; background: rgba(255, 255, 255, .1);
    color: #ffc79f; font-size: 13.5px; font-weight: 700;
}
.hero h1 { font-size: clamp(28px, 5.2vw, 50px); }
.hero__lead { margin-top: 14px; font-size: 17px; color: rgba(255, 255, 255, .82); max-width: 640px; }
.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-weight: 600; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .ic { color: var(--accent); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.hero__hours { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .78); font-size: 15px; }

@media (max-width: 639px) {
    .hero__actions .btn { flex: 1 1 100%; }
}

.card { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card__title { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.card__text { margin: 4px 0 16px; color: var(--muted); font-size: 15px; }
.hero__form { box-shadow: var(--shadow-lg); }
.card__title + .form { margin-top: 14px; }

@media (min-width: 960px) {
    .hero { padding: 56px 0 96px; }
    .hero__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 56px; }
    .hero__form { padding: 28px; }
}

/* Внутренние страницы */
.page-hero { padding: 8px 0 8px; }
.page-hero h1 { font-size: clamp(27px, 4.2vw, 42px); }
.page-hero__lead { margin-top: 12px; max-width: 760px; color: var(--muted); font-size: 17px; }
.page-hero .hero__points .ic { color: var(--ok); }

.svc-hero__in { display: grid; gap: 24px; }
.svc-hero__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.svc-hero__ic { display: none; }

@media (min-width: 960px) {
    .page-hero { padding: 12px 0 16px; }
    .svc-hero__in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 48px; }
    .svc-hero__img { aspect-ratio: 4 / 3; }
    .svc-hero__ic {
        display: flex; align-items: center; justify-content: center; justify-self: center;
        width: 240px; height: 240px; border-radius: 40px;
        background: var(--accent-soft); color: var(--accent-ink);
    }
    .svc-hero__ic .ic { width: 112px; height: 112px; stroke-width: 1.4; }
}

/* ---------- Факты (2×2 на телефоне) ---------- */

.facts-wrap { position: relative; margin-top: -36px; }
.facts-wrap--flat { margin-top: 16px; }
.facts {
    list-style: none;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
.facts li {
    display: flex; flex-direction: column; gap: 2px;
    padding: 14px 16px;
    background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.facts b { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -.01em; }
.facts span { font-size: 13px; color: var(--muted); line-height: 1.3; }

@media (min-width: 768px) {
    .facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
    .facts li { padding: 20px 22px; border-radius: var(--radius); }
    .facts b { font-size: 26px; }
    .facts span { font-size: 14px; }
}

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

.section { padding: 44px 0; }
.section--tight { padding-top: 20px; }
.section--alt { background: #fff; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__head h2 { margin-bottom: 0; }
.note { margin-top: 14px; color: var(--muted); font-size: 14px; }
a[href^="tel:"] { white-space: nowrap; }

@media (min-width: 768px) {
    .section { padding: 64px 0; }
    .section--tight { padding-top: 24px; }
}

/* Карточки услуг: на телефоне — две колонки без описания */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.svc {
    display: flex; flex-direction: column; gap: 10px;
    padding: 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.svc:hover { color: var(--ink); border-color: #ffc29a; box-shadow: var(--shadow); transform: translateY(-2px); }
.svc__ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent-ink);
}
.svc__ic .ic { width: 22px; height: 22px; }
.svc__title { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.svc__text { color: var(--muted); font-size: 14.5px; }
.svc__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.svc__price { font-weight: 700; font-size: 14px; color: var(--navy); }
.svc__go { color: var(--accent-ink); transition: transform .15s; }
.svc:hover .svc__go { transform: translateX(3px); }

.svc-grid--detailed { grid-template-columns: minmax(0, 1fr); }

/* Нечётная последняя карточка в две колонки — на всю ширину, без «дыры» справа */
@media (max-width: 899px) {
    .svc-grid > .svc:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Каталог на телефоне: иконка слева от текста, а не над ним — карточки вдвое ниже */
@media (max-width: 639px) {
    .svc-grid--detailed .svc { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; }
    .svc-grid--detailed .svc > * { grid-column: 2; }
    .svc-grid--detailed .svc__ic { grid-column: 1; grid-row: 1 / span 3; }
    .svc-grid--detailed .svc__foot { margin-top: 4px; }
}

@media (min-width: 640px) {
    .svc-grid--detailed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .svc-grid, .svc-grid--detailed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .svc { padding: 22px; gap: 12px; }
    .svc__ic { width: 48px; height: 48px; }
    .svc__ic .ic { width: 24px; height: 24px; }
    .svc__title { font-size: 18px; }
    .svc__price { font-size: 15px; }
}

/* Прайс */
.plist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plist__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; }
.plist__row + .plist__row { border-top: 1px solid var(--line); }
.plist__problem { color: var(--muted); font-size: 13px; }
.plist__name { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.plist__name a { color: var(--ink); text-decoration-color: rgba(20, 32, 51, .25); }
.plist__name a:hover { color: var(--accent-ink); }
.plist__price { flex: none; font-weight: 800; font-size: 16px; color: var(--navy); white-space: nowrap; text-align: right; }
.plist__unit { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.section--alt .plist { background: var(--bg); border-color: transparent; }

@media (min-width: 768px) {
    .plist__row { padding: 16px 24px; }
    .plist__name { font-size: 17px; }
    .plist__price { font-size: 18px; }
}

.price-group + .price-group { margin-top: 32px; }
.price-group h2 { font-size: clamp(20px, 2.6vw, 24px); margin-bottom: 14px; }
.price-group h2 a { color: var(--ink); text-decoration: none; }
.price-group h2 a:hover { color: var(--accent-ink); }

/* Условия */
.usp { display: grid; gap: 10px; }
.usp__item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.usp__item p { font-size: 14.5px; color: var(--muted); }
.usp__item b { display: block; color: var(--ink); font-size: 16px; }
.usp__ic, .discount__ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: none; border-radius: 12px;
    background: var(--navy); color: #fff;
}
.discount {
    display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px 18px;
    border-radius: var(--radius); color: #fff;
    background: linear-gradient(120deg, var(--navy), var(--navy-2));
}
.discount p { font-size: 15px; color: rgba(255, 255, 255, .85); }
.discount b { color: #fff; }
.discount__ic { background: var(--accent); color: var(--navy); }

@media (min-width: 640px) {
    .usp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1024px) {
    .usp { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .usp__item { flex-direction: column; padding: 22px; }
    .discount { margin-top: 16px; padding: 18px 24px; }
}

/* Полоса с формой */
.band { color: #fff; background: linear-gradient(120deg, var(--navy), var(--navy-2)); padding: 36px 0; }
.band__in { display: grid; gap: 20px; }
.band__title { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.band__text p:not(.band__title) { color: rgba(255, 255, 255, .8); }

@media (min-width: 960px) {
    .band { padding: 48px 0; }
    .band__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 48px; }
    .band .form { grid-template-columns: 1fr 1fr auto; }
    .band .form .consent, .band .form .form__error, .band .form .form__note { grid-column: 1 / -1; grid-row: 2; }
    .band .form .form__error { grid-row: 3; }
    .band .form .form__note { grid-row: 4; }
}

/* Этапы */
.steps { list-style: none; counter-reset: step; display: grid; gap: 8px; }
.steps li {
    counter-increment: step; position: relative;
    padding: 12px 14px 12px 56px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--muted); font-size: 14.5px;
}
.steps li::before {
    content: counter(step);
    position: absolute; left: 14px; top: 12px;
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-ink); font-weight: 800;
}
.steps__title { color: var(--ink); font-weight: 700; font-size: 16px; margin-bottom: 2px; }

@media (min-width: 640px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .steps li { padding: 16px 16px 16px 64px; }
    .steps li::before { left: 16px; top: 16px; width: 34px; height: 34px; }
}

@media (min-width: 1024px) {
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .steps li { padding: 22px 22px 22px 72px; }
    .steps li::before { left: 22px; top: 22px; }
}

/* Фото работ */
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.work { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: #dfe5ee; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.work:hover img { transform: scale(1.04); }
.work__cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 24px 10px 8px; color: #fff; font-size: 12.5px; line-height: 1.3;
    background: linear-gradient(transparent, rgba(0, 0, 0, .7));
}

@media (min-width: 768px) {
    .works { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
    .work { border-radius: var(--radius); }
    .work__cap { font-size: 14px; padding: 32px 14px 12px; }
}

/* Вопросы */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.section--alt .faq details { background: var(--bg); border-color: transparent; }
.faq summary {
    position: relative; padding: 16px 52px 16px 18px;
    font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 18px; top: 50%;
    width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
    transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 18px 18px; color: var(--muted); }

/* Текст услуги */
.prose h2 { font-size: clamp(21px, 2.8vw, 26px); margin: 32px 0 14px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.65; }
.checks { list-style: none; margin: 0 0 16px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-size: 16.5px; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: 2px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-block; padding: 9px 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink); font-weight: 600; font-size: 14.5px; text-decoration: none;
}
.chip:hover { color: var(--accent-ink); border-color: #ffc29a; }

/* Хлебные крошки */
.crumbs { padding-top: 16px; padding-bottom: 8px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: #a3adbb; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }

/* Контакты */
.contacts { display: grid; gap: 12px; }
.contact { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.contact p { color: var(--muted); font-size: 14.5px; }
.contact__ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent-ink);
}
.contact__label { font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.contact .contact__value { color: var(--navy); font-weight: 800; font-size: 19px; text-decoration: none; }
.contact__links { list-style: none; display: grid; gap: 4px; font-weight: 600; }

@media (max-width: 639px) {
    .contact { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; }
    .contact > * { grid-column: 2; justify-self: start; }
    .contact__ic { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; }
}

@media (min-width: 640px) {
    .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* Карточек от двух до четырёх — сколько контактов задано в админке */
@media (min-width: 1024px) {
    .contacts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

/* Отзывы */
.reviews { display: grid; gap: 20px; }
.reviews h2 { margin-bottom: 8px; }
.reviews p { color: var(--muted); max-width: 620px; }
.reviews__links { display: flex; flex-wrap: wrap; gap: 12px; color: var(--navy); }
.reviews__links .ic { color: var(--accent); }

@media (min-width: 960px) {
    .reviews { grid-template-columns: 1fr auto; align-items: center; }
}

/* Заявка внизу страницы */
.cta { color: #fff; background: radial-gradient(800px 400px at 100% 0, rgba(255, 122, 26, .22), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); }
.cta__in { display: grid; gap: 24px; }
.cta__text p { color: rgba(255, 255, 255, .82); max-width: 560px; }
.cta__contacts { list-style: none; display: grid; gap: 10px; margin-top: 20px; font-weight: 600; }
.cta__contacts li { display: flex; align-items: center; gap: 10px; }
.cta__contacts .ic { color: var(--accent); }
.cta__contacts a { color: #fff; font-size: 20px; font-weight: 800; text-decoration: none; }

@media (min-width: 960px) {
    .cta__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 56px; }
}

/* ---------- Форма ---------- */

.form { display: grid; gap: 10px; }
.input {
    width: 100%; min-height: 52px; padding: 0 16px;
    border: 1.5px solid #cfd7e2; border-radius: var(--radius-sm);
    background: #fff; color: var(--ink); font: 500 16px var(--font);
    transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #8a94a6; }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 122, 26, .18); }
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.consent a { color: inherit; }
.band .consent, .band .consent a { color: rgba(255, 255, 255, .72); }
.form__error { padding: 10px 12px; border-radius: 10px; background: #fef3f2; color: var(--danger); font-size: 14px; }
.form__error a { color: inherit; font-weight: 700; }
.form__note { font-size: 11.5px; line-height: 1.35; color: #8a94a6; }
.form__note a { color: inherit; }
.band .form__note, .band .form__note a { color: rgba(255, 255, 255, .55); }

/* ---------- Окна ---------- */

.modal {
    width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px);
    padding: 28px 24px 24px; border: 0; border-radius: 20px;
    color: var(--ink); background: #fff; box-shadow: var(--shadow-lg);
}
.modal[open] { animation: modal-in .2s ease-out; }
.modal::backdrop { background: rgba(8, 15, 27, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__close {
    position: absolute; top: 10px; right: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: #eef2f7; color: var(--navy); cursor: pointer;
}
.modal__title { font-size: 23px; font-weight: 800; letter-spacing: -.01em; padding-right: 40px; }
.modal__text { margin: 8px 0 18px; color: var(--muted); }
.modal__ok {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%;
    background: #dcfce7; color: var(--ok);
}
.modal__ok .ic { width: 28px; height: 28px; }
.modal--photo { width: min(1000px, calc(100% - 24px)); padding: 0; background: #000; overflow: hidden; }
.modal--photo img { width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.modal__caption { padding: 12px 16px; color: #fff; font-size: 15px; }
.modal__caption:empty { display: none; }
.modal--photo .modal__close { z-index: 1; background: rgba(255, 255, 255, .9); }

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
}

/* ---------- Подвал ---------- */

.ftr { background: #0b1424; color: #aab5c6; font-size: 15px; padding-top: 44px; }
.ftr__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.ftr__about { grid-column: 1 / -1; }
.ftr__about p { margin-top: 10px; }
.ftr__phone { display: inline-block; margin-top: 14px; color: #fff; font-size: 22px; font-weight: 800; text-decoration: none; }
.ftr__title { margin: 0 0 10px; color: #fff; font-weight: 700; }
.ftr__title:not(:first-child) { margin-top: 24px; }
.ftr ul { list-style: none; display: grid; gap: 8px; }
.ftr a { color: #aab5c6; text-decoration: none; }
.ftr a:hover, .ftr .ftr__phone { color: #fff; }
.ftr__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    margin-top: 36px; padding-top: 18px; padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #7d899c;
}

@media (min-width: 768px) {
    .ftr { padding-top: 56px; }
    .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
    .ftr__about { grid-column: auto; }
}

/* ---------- Нижняя панель на телефоне ---------- */

.mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 24px rgba(15, 27, 45, .12);
}
.mbar__call, .mbar__order {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; border-radius: var(--radius-sm);
    font: 700 16px var(--font); text-decoration: none; cursor: pointer;
}
.mbar__call { color: var(--navy); background: #eef2f7; }
.mbar__order { border: 0; color: var(--navy); background: var(--accent); }
.ftr { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
    .mbar { display: none; }
    .ftr { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
