/* 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; }
.ic--down { transform: rotate(90deg); }
/* Значки площадок — в фирменных цветах, рядом с названием */
.place { display: inline-flex; align-items: center; gap: 8px; }
.ic--vk { color: #0077ff; }
.ic--max { color: #5b4bff; }
.ic--ymaps, .ic--yuslugi { color: #fc3f1d; }
/* Телефон внутри текста: значок и номер не разрываются переносом */
.tel { white-space: nowrap; }
.tel .ic { width: 1em; height: 1em; margin-right: .3em; vertical-align: -.12em; }

.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-align: left; 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); }

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

/* Полоса над шапкой: на планшете — два обещания, с 1200px — все четыре */
.topbar { display: none; background: var(--navy); color: rgba(255, 255, 255, .78); font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.topbar__facts { list-style: none; display: flex; gap: 22px; min-width: 0; }
.topbar__facts li, .topbar__city { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar .ic { width: 15px; height: 15px; color: var(--accent); }
.topbar__city { color: #fff; font-weight: 600; }

@media (min-width: 768px) {
    .topbar { display: block; }
    .topbar__facts li:nth-child(2), .topbar__facts li:nth-child(3) { display: none; }
}

@media (min-width: 1200px) {
    .topbar__facts li:nth-child(2), .topbar__facts li:nth-child(3) { display: inline-flex; }
}

/* Снизу — оранжевая линия, тающая к краю; после прокрутки — тень (site.js) */
.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);
    transition: box-shadow .2s;
}
.hdr::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), #ffb26b 35%, var(--line) 75%);
    pointer-events: none;
}
.hdr.is-stuck { box-shadow: 0 10px 30px rgba(15, 27, 45, .1); }
.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; transition: transform .3s; }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.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 { display: flex; align-items: center; gap: 10px; border-bottom: 0; color: var(--navy); font-weight: 800; }
/* В раскрытом меню телефона у пунктов — оранжевая стрелка справа */
@media (max-width: 1023px) {
    .nav a:not(.nav__phone) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .nav a:not(.nav__phone)::after {
        content: ""; width: 18px; height: 18px; flex: none;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7a1a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
    }
}
.nav__phone .ic, .hdr__phone .ic { color: var(--accent); }

.hdr__contact, .hdr__cta { display: none; }
.hdr__cta { white-space: nowrap; }
.hdr__call { background: var(--accent); animation: ring 2.6s ease-out infinite; }
/* Кнопка заявки: блик раз в несколько секунд */
.hdr__cta { position: relative; overflow: hidden; flex: none; box-shadow: 0 6px 16px rgba(255, 122, 26, .3); }
.hdr__cta::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
    transform: skewX(-20deg); animation: shine 6s ease-in-out 2s infinite; pointer-events: none;
}
@keyframes shine { 0% { left: -60%; } 18%, 100% { left: 130%; } }
/* Кружок телефона «звонит»: волна расходится от него */
@keyframes ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, .45); }
    70%, 100% { box-shadow: 0 0 0 10px rgba(255, 122, 26, 0); }
}
.burger .ic--close, .burger[aria-expanded="true"] .ic--open { display: none; }
.burger[aria-expanded="true"] .ic--close { display: block; }

/* Длинное название переносится на вторую строку, а не обрезается
   многоточием; пока шапке тесно (до 1200px), — мельче и без подписи */
.brand--long .brand__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

@media (max-width: 1199px) {
    .brand--long .brand__name { font-size: 15px; }
    .brand--long .brand__sub { display: none; }
}

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

/* На телефоне рядом с названием ещё две кнопки — «Компьютерная помощь
   {город}» занимает три строки */
@media (max-width: 479px) {
    .brand--long .brand__name { -webkit-line-clamp: 3; font-size: 14px; }
}

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

@media (min-width: 1024px) {
    .hdr__in { min-height: 76px; gap: 16px; }
    .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 { position: relative; padding: 8px 10px; border: 0; font-size: 15.5px; white-space: nowrap; }
    .nav a::after {
        content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; border-radius: 2px;
        background: var(--accent); transform: scaleX(0); transition: transform .2s ease-out;
    }
    .nav a:hover { color: var(--navy); }
    .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
    .nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
    .nav .nav__phone { display: none; }
    /* Телефон — с «звонящим» кружком слева, часы под номером */
    .hdr__contact { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding-left: 46px; line-height: 1.25; }
    .hdr__phone { display: inline-flex; color: var(--navy); font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap; }
    /* Кружок — сам svg: без overflow: visible браузер обрезает значок по
       скруглённой области внутри padding, и у трубки срезаются углы */
    .hdr__phone .ic {
        position: absolute; left: 0; top: 50%; width: 36px; height: 36px; margin-top: -18px; padding: 9px; border-radius: 50%;
        overflow: visible; background: var(--accent-soft); color: var(--accent-ink); animation: ring 2.6s ease-out infinite;
    }
    .hdr__phone:hover { color: var(--accent-ink); }
    .hdr__hours { color: var(--muted); font-size: 12.5px; }
    .hdr__call, .burger { display: none; }
}

/* Ноутбук до 1200px: меню плотнее, а у кнопки заявки — только ключ
   (подпись остаётся для экранного диктора), чтобы название не обрезалось */
@media (min-width: 1024px) and (max-width: 1199px) {
    .hdr__in { gap: 12px; }
    .nav a { padding-inline: 8px; }
    .nav a::after { left: 8px; right: 8px; }
    .hdr__cta { width: 42px; padding: 0; gap: 0; font-size: 0; }
    .hdr__cta .ic { width: 20px; height: 20px; }
}

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

.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; }
/* Районы выезда — под галочками, длинный список переносится строками */
.hero__areas { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; max-width: 640px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.hero__areas .ic { margin-top: 2px; color: var(--accent); }

@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; }

/* Главная: фото платы фоном — под затемнением, слева оно гуще, текст читается */
.hero--photo { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero--photo::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(255, 122, 26, .26), transparent 60%),
        linear-gradient(160deg, rgba(15, 27, 45, .92) 0%, rgba(23, 44, 77, .84) 100%);
}

@media (min-width: 960px) {
    .hero { padding: 56px 0 96px; }
    .hero--photo::before {
        background:
            radial-gradient(900px 420px at 88% -10%, rgba(255, 122, 26, .26), transparent 60%),
            linear-gradient(90deg, rgba(15, 27, 45, .95) 0%, rgba(15, 27, 45, .84) 45%, rgba(23, 44, 77, .55) 100%);
    }
    .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); }
/* Метка над h1 страницы 404 — у неё нет хлебных крошек, поэтому отступ сверху свой */
.page-hero__code {
    display: inline-block; margin: 20px 0 12px; padding: 5px 12px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-ink); font-size: 13.5px; font-weight: 700;
}

.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; }
/* Фото с работы мастера — квадраты под картинкой первого экрана, по клику
   открываются крупно (окно #photo). */
.svc-works { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.svc-works__title {
    flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px;
    color: var(--muted); font-size: 14px; font-weight: 700; line-height: 1.3;
}
.svc-works__title .ic { flex: none; width: 20px; height: 20px; color: var(--accent); }
.svc-works__list { list-style: none; display: flex; gap: 8px; }
.svc-work { display: block; overflow: hidden; border-radius: var(--radius-sm); background: #dfe5ee; }
.svc-work img { display: block; width: 64px; height: 64px; object-fit: cover; transition: transform .3s; }
.svc-work:hover img { transform: scale(1.06); }

@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-work img { width: 80px; height: 80px; }
    .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 на телефоне) ---------- */

/* На главной карточки наполовину заходят на первый экран, а под ними сразу
   фон следующей секции («Чем поможем», section--alt): серая полоса под
   карточками обрывалась ровно по их низу и резала блок на три полосы. */
.facts-wrap { position: relative; margin-top: -36px; background: linear-gradient(transparent 36px, #fff 0); }
.facts-wrap--flat { margin-top: 16px; background: none; }
.facts {
    list-style: none;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
/* Значок — рядом с числом, подпись — во всю ширину карточки: на узкой
   карточке слева от подписи ей не хватило бы места. */
.facts li {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: start; gap: 6px 10px;
    padding: 14px 16px;
    background: var(--card); border-radius: var(--radius-sm);
    box-shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 12px 32px rgba(15, 27, 45, .1);
}
.facts__ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent-ink);
}
.facts__ic .ic { width: 18px; height: 18px; }
.facts b { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -.01em; }
.facts b + span { grid-column: 1 / -1; font-size: 13px; color: var(--muted); line-height: 1.3; text-wrap: balance; }

@media (min-width: 768px) {
    .facts { gap: 16px; }
    .facts li { padding: 20px 22px; border-radius: var(--radius); }
    .facts b { font-size: 26px; }
    .facts b + span { font-size: 14px; }
}

/* В одну строку — с 900px: на 768px «отремонтированных» не помещалось в
   четверть ширины. */
@media (min-width: 900px) {
    .facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

/* Карточка широкая (две в ряд или четыре на 1200px) — значок слева от
   числа и подписи. */
@media (min-width: 640px) and (max-width: 899px), (min-width: 1200px) {
    .facts li { align-content: center; column-gap: 16px; row-gap: 2px; }
    .facts__ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; }
    .facts__ic .ic { width: 24px; height: 24px; }
    .facts b { align-self: end; }
    .facts b + span { grid-column: auto; align-self: start; }
}

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

.section { padding: 44px 0; }
.section--tight { padding-top: 20px; }
.section--alt { background: #fff; }
/* Секции подряд на одном фоне (серые, в том числе полоса консультации, или
   белые): между ними один отступ — нижний у предыдущей. Иначе отступы
   складываются в пустую полосу посреди страницы. */
:is(.section:not(.section--alt, .cta), .band) + .section:not(.section--alt, .cta),
.section--alt + .section--alt { padding-top: 0; }
.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; }
/* В две колонки на 360px «Видеонаблюдение» шире карточки: длинные слова
   переносятся по слогам, короткие — целиком, как раньше. */
.svc__title {
    font-weight: 700; font-size: 15.5px; line-height: 1.3;
    -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; overflow-wrap: break-word;
}
.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); }

/* Карточка каталога (/uslugi): ссылка — заголовок, растянутый на всю
   карточку; подстраницы услуги — ссылками поверх неё. Фото на телефоне —
   квадратом у заголовка (ниже), шире — сверху, значок услуги — на его
   нижнем крае. */
.svc-grid--detailed .svc { position: relative; flex-direction: row; gap: 0; padding: 0; overflow: hidden; }
.svc__media {
    position: relative; flex: 0 0 104px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft);
}
.svc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc__img + .svc__ic { display: none; }
.svc__body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; padding: 14px 16px; }
.svc__body .svc__foot { padding-top: 2px; }
.svc__link { color: var(--ink); text-decoration: none; }
.svc__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.svc__link:hover { color: var(--ink); }
.svc__link:focus-visible { outline: none; }
.svc:has(.svc__link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.svc__subs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.svc__subs a {
    position: relative; z-index: 1; display: inline-block; padding: 4px 10px;
    background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.svc__subs a:hover { color: var(--accent-ink); border-color: #ffc29a; }

/* /uslugi на телефоне — компактно: квадратное фото, справа от него
   заголовок и цена, ниже на всю ширину карточки — описание и подстраницы
   (тело карточки «растворяется» в её сетке); из длинного списка
   подстраниц видны три и «ещё N». Полоса фото слева ужимала всё в узкий
   столбец, и карточка вытягивалась на пол-экрана. */
.svc__more { display: none; }

@media (max-width: 639px) {
    .svc-grid--detailed .svc {
        display: grid; grid-template-columns: 56px minmax(0, 1fr);
        gap: 6px 12px; padding: 14px;
    }
    .svc-grid--detailed .svc__media { grid-row: 1 / span 2; align-self: center; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; }
    .svc-grid--detailed .svc__body { display: contents; }
    .svc-grid--detailed .svc__title { grid-column: 2; grid-row: 1; align-self: end; }
    .svc-grid--detailed .svc__foot { grid-column: 2; grid-row: 2; align-self: start; margin-top: 0; padding-top: 0; }
    .svc-grid--detailed .svc__text { grid-column: 1 / -1; margin-top: 4px; }
    .svc-grid--detailed .svc__subs { grid-column: 1 / -1; }
    .svc__subs--more li:nth-child(n+4):not(.svc__more) { display: none; }
    .svc__more {
        display: inline-block; padding: 5px 4px;
        color: var(--muted); font-size: 13.5px; font-weight: 600;
    }
}

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

@media (min-width: 640px) {
    .svc-grid--detailed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .svc-grid--detailed .svc { flex-direction: column; }
    .svc__media { flex: none; aspect-ratio: 16 / 9; }
    .svc__img + .svc__ic { display: inline-flex; }
    .svc__media .svc__ic { position: absolute; left: 16px; bottom: -21px; box-shadow: 0 0 0 4px var(--card); }
    .svc__body { gap: 10px; padding: 32px 18px 18px; }
}

/* Последняя карточка на всю ширину (две колонки) — фото слева, иначе оно
   во весь экран высотой */
@media (min-width: 640px) and (max-width: 899px) {
    .svc-grid--detailed > .svc:last-child:nth-child(odd) { flex-direction: row; }
    .svc-grid--detailed > .svc:last-child:nth-child(odd) .svc__media { flex: 0 0 calc(50% - 5px); aspect-ratio: auto; }
    .svc-grid--detailed > .svc:last-child:nth-child(odd) .svc__img + .svc__ic { display: none; }
    .svc-grid--detailed > .svc:last-child:nth-child(odd) .svc__body { padding: 18px; }
}

@media (min-width: 900px) {
    .svc-grid, .svc-grid--detailed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    /* Последняя карточка одна в ряду из трёх — по центру, а не у левого края */
    .svc-grid > .svc:last-child:nth-child(3n+1) { grid-column: 2; }
    .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; }
    .svc__media .svc__ic { left: 22px; bottom: -24px; }
    .svc__body { gap: 12px; padding: 38px 22px 22px; }
}

/* /uslugi: разделы каталога. Неполный последний ряд из трёх не оставляет
   дыр: одна карточка — на всю ширину, две — по половине, фото у них слева
   (сетка из шести дорожек, обычная карточка — на две). */
.svc-group { font-size: clamp(21px, 2.8vw, 26px); margin-bottom: 16px; }
.svc-grid + .svc-group { margin-top: 36px; }

@media (min-width: 900px) {
    .svc-grid--detailed { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .svc-grid--detailed > .svc { grid-column: span 2; }
    .svc-grid--detailed > .svc:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
    .svc-grid--detailed > .svc:nth-last-child(2):nth-child(3n+1),
    .svc-grid--detailed > .svc:nth-last-child(2):nth-child(3n+1) + .svc { grid-column: span 3; }
    .svc-grid--detailed > .svc:nth-child(3n+1):nth-last-child(-n+2),
    .svc-grid--detailed > .svc:nth-last-child(2):nth-child(3n+1) + .svc { flex-direction: row; }
    .svc-grid--detailed > .svc:nth-child(3n+1):nth-last-child(-n+2) .svc__media,
    .svc-grid--detailed > .svc:nth-last-child(2):nth-child(3n+1) + .svc .svc__media { flex: 0 0 40%; aspect-ratio: auto; min-height: 220px; }
    .svc-grid--detailed > .svc:last-child:nth-child(3n+1) .svc__media { flex-basis: calc((100% - 32px) / 3); }
    .svc-grid--detailed > .svc:nth-child(3n+1):nth-last-child(-n+2) .svc__img + .svc__ic,
    .svc-grid--detailed > .svc:nth-last-child(2):nth-child(3n+1) + .svc .svc__img + .svc__ic { display: none; }
    .svc-grid--detailed > .svc:nth-child(3n+1):nth-last-child(-n+2) .svc__body,
    .svc-grid--detailed > .svc:nth-last-child(2):nth-child(3n+1) + .svc .svc__body { padding: 22px; }
    .svc-grid + .svc-group { margin-top: 48px; }
}

/* /uslugi: шапка с мозаикой частых задач (плитки — ссылки на подстраницы) */
.hub-hero { display: grid; gap: 20px; }
.hub-mosaic { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hub-mosaic__tile {
    position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm); background: #dfe5ee;
    color: var(--ink); text-decoration: none;
}
.hub-mosaic__tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.hub-mosaic__tile:hover img { transform: scale(1.05); }
.hub-mosaic__label {
    position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px);
    padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92);
    font-size: 13px; font-weight: 700; line-height: 1.3;
}
.hub-mosaic__tile:hover .hub-mosaic__label { color: var(--accent-ink); }

/* Планшет: шапка ещё в одну колонку — мозаика в ряд, а не 2×2 во всю ширину */
@media (min-width: 640px) and (max-width: 899px) {
    .hub-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hub-mosaic__tile { aspect-ratio: 4 / 3; }
}

@media (min-width: 900px) {
    .hub-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 48px; }
    .hub-mosaic { gap: 12px; }
    .hub-mosaic__tile { aspect-ratio: 4 / 3; }
    .hub-mosaic__label { left: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: 14px; }
}

/* Прайс */
.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__main { flex: 1; min-width: 0; }
.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; }
}

/* Главная: прайс карточками «проблема → решение → цена». Проблема — репликой
   клиента, решение — с галочкой, цена — внизу за пунктиром, вся карточка —
   ссылка на услугу (растянутая ссылка названия), стрелка — в кружке. */
.plist--cards {
    display: grid; gap: 12px;
    background: none; border: 0; border-radius: 0; overflow: visible;
}
.plist--cards .plist__row {
    position: relative;
    display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto 1fr auto;
    grid-template-areas: "thumb problem" "thumb name" "price price";
    gap: 10px 14px; align-items: start; padding: 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.plist--cards .plist__row + .plist__row { border-top: 1px solid var(--line); }
.plist--cards .plist__main { display: contents; }
.plist__thumb { grid-area: thumb; flex: none; width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--line); }
.plist--cards .plist__problem {
    grid-area: problem; justify-self: start; max-width: 100%; padding: 5px 11px;
    border-radius: 12px 12px 12px 3px; background: var(--accent-soft);
    color: var(--accent-ink); font-size: 13.5px; font-weight: 600; line-height: 1.35;
}
.plist--cards .plist__name { grid-area: name; display: flex; gap: 8px; font-size: 16px; font-weight: 700; }
.plist--cards .plist__name::before {
    content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
    background: var(--ok) 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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plist--cards .plist__name a { text-decoration: none; }
.plist--cards .plist__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.plist--cards .plist__row:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.plist--cards .plist__name a:focus-visible { outline: none; }
.plist--cards .plist__price {
    grid-area: price; min-height: 34px; padding: 12px 48px 0 0; border-top: 1px dashed #d5dce7;
    font-size: 20px; text-align: left; white-space: normal;
}
.plist--cards .plist__unit { display: inline; font-size: 14px; }
/* Стрелка в кружке — у карточки со ссылкой; при наведении — оранжевая */
.plist--cards .plist__row:has(.plist__name a)::after {
    content: ""; position: absolute; right: 16px; bottom: 14px;
    width: 34px; height: 34px; 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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / 16px no-repeat;
    transition: background-color .15s, transform .15s;
}
.plist--cards .plist__row:hover {
    transform: translateY(-3px); border-color: #ffd3b3;
    box-shadow: 0 16px 32px -18px rgba(15, 27, 45, .35);
}
.plist--cards .plist__row:hover .plist__name a { color: var(--accent-ink); }
.plist--cards .plist__row:hover::after {
    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='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / 16px no-repeat;
    transform: translateX(2px);
}

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

@media (min-width: 1024px) {
    .plist--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .plist--cards .plist__row { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .plist--cards .plist__row, .plist--cards .plist__row::after { transition: none; }
    .plist--cards .plist__row:hover, .plist--cards .plist__row:hover::after { transform: none; }
}

/* Выделение маркером в заголовке и тёплое свечение в углах секции */
.hl {
    padding: 0 .06em;
    background: linear-gradient(transparent 58%, rgba(255, 122, 26, .3) 58%, rgba(255, 122, 26, .3) 90%, transparent 90%);
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* Пятна гаснут, не доходя до краёв (70% от 320 и 360px — 224 и 252px):
   над и под прайсом секции того же фона, и обрезанное свечение было бы
   видно полосой. */
.section--glow {
    background:
        radial-gradient(520px 320px at 0 240px, rgba(255, 122, 26, .09), transparent 70%),
        radial-gradient(560px 360px at 100% calc(100% - 260px), rgba(255, 122, 26, .08), transparent 70%),
        var(--bg);
}

/* /ceny: разделы (h2) → услуги (h3) → прайс; сверху — ссылки на разделы */
.toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin-top: 20px; }
.toc a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
    color: var(--ink); font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none;
}
.toc a:hover { border-color: #ffc29a; color: var(--accent-ink); }
.toc .ic { color: var(--accent-ink); transform: rotate(90deg); }
.price-cat { margin: 44px 0 18px; font-size: clamp(23px, 3vw, 30px); }
.price-group + .price-group { margin-top: 28px; }
.price-group h3 { font-size: clamp(19px, 2.4vw, 22px); margin-bottom: 12px; }
.price-group h3 a { color: var(--ink); text-decoration: none; }
.price-group h3 a:hover { color: var(--accent-ink); }
.price-group__more { margin-top: 12px; color: var(--muted); font-size: 15px; }
.price-group__label { font-size: 17px; }
.price-group__label b { color: var(--accent-ink); }

/* /ceny с 1024px: услуги раздела — в две колонки (как меню), блок услуги не
   рвётся между ними. Отступ — снизу: сверху у колонки он бы обрезался. */
@media (min-width: 1024px) {
    .price-cols { columns: 2; column-gap: 32px; }
    .price-cols > .price-group { break-inside: avoid; margin: 0; padding-bottom: 28px; }
    .price-cols + .price-cat { margin-top: 16px; }
}

/* Условия */
.usp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.usp__item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 18px 12px; text-align: center;
    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; margin-bottom: 2px; color: var(--ink); font-size: 16px; line-height: 1.3; }
.section--alt .usp__item { background: var(--bg); border-color: transparent; }
/* Фото над условиями, шире — слева от них */
.usp__photo { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.usp__ic, .discount__ic, .price-note__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); }
.price-note {
    display: flex; align-items: flex-start; gap: 14px; margin-top: 14px; padding: 16px 18px;
    border: 1px solid #ffd3b3; border-radius: var(--radius); background: var(--accent-soft);
}
.price-note p { font-size: 15px; color: var(--muted); }
.price-note b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 16px; }
.price-note .tel { font-weight: 700; }
.price-note__ic { background: var(--accent); color: var(--navy); }
.price-note--dark { margin: 0; border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); }
.price-note--dark p { color: #aab5c6; }
.price-note--dark b { color: #fff; }

@media (min-width: 640px) {
    .usp { gap: 16px; }
    .usp__item { padding: 22px 18px; }
    .usp__photo { aspect-ratio: 3 / 1; }
}

@media (min-width: 1024px) {
    .usp { grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); }
    .usp__photo { grid-column: 1; grid-row: span 2; height: 100%; aspect-ratio: auto; }
    .usp__item { padding: 24px 20px; }
    .discount { margin-top: 16px; padding: 18px 24px; }
    .price-note { align-items: center; margin-top: 16px; padding: 18px 24px; }
}

/* Принципы («О нас»): значок, заголовок, пояснение; номер — фоном в углу */
.principles { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: principle; }
.principle {
    position: relative; overflow: hidden;
    padding: 20px 20px 22px;
    background: var(--bg); border-radius: var(--radius);
    counter-increment: principle;
}
.principle::after {
    content: counter(principle, decimal-leading-zero);
    position: absolute; top: 10px; right: 16px;
    font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.04em;
    color: var(--line); pointer-events: none;
}
.principle > div { position: relative; z-index: 1; }
.principle__ic {
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--accent-soft); color: var(--accent-ink);
}
.principle__ic .ic { width: 26px; height: 26px; }
.principle__title { font-size: 18px; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 15px; }
.principles + .discount { margin-top: 16px; }

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

@media (min-width: 1024px) {
    .principle {
        display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 20px;
        padding: 26px 28px 28px;
    }
    .principle > div { padding-right: 52px; }
    .principle__ic { margin-bottom: 0; }
    .principle::after { top: 14px; right: 22px; font-size: 48px; }
    .principle__title { font-size: 19px; margin-top: 4px; }
}

/* «О нас» и «Организациям»: первый экран с коллажем — большое фото, на десктопе второе
   поверх угла и плашка; на телефоне — одно фото с плашкой */
.about-hero__in { display: grid; gap: 24px; }
.about-hero__media { position: relative; }
.about-hero__main { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-hero__small { display: none; }
.about-hero__badge {
    position: absolute; left: 12px; bottom: 12px;
    display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
    background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    color: var(--muted); font-size: 13px; line-height: 1.3;
}
.about-hero__badge b { display: block; color: var(--ink); font-size: 15px; }
.about-hero__badge-ic {
    display: flex; align-items: center; justify-content: center; flex: none;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--accent-soft); color: var(--accent-ink);
}

@media (min-width: 640px) and (max-width: 959px) {
    .about-hero__main { aspect-ratio: 2 / 1; }
}

@media (min-width: 960px) {
    .about-hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
    .about-hero__media { padding: 0 0 48px 56px; }
    .about-hero__main { aspect-ratio: 4 / 3; }
    .about-hero__small {
        display: block; position: absolute; left: 0; bottom: 0; width: 36%;
        aspect-ratio: 1; object-fit: cover;
        border: 6px solid var(--bg); border-radius: 20px; box-shadow: var(--shadow-lg);
    }
    .about-hero__badge { left: auto; right: 16px; bottom: auto; top: 16px; }
}

/* «Организациям»: услуги для офиса — строками-карточками */
.org-svcs { display: grid; gap: 10px; list-style: none; }
.org-svcs .cat__svc { height: 100%; margin: 0; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); }
.org-svcs .cat__svc:hover { border-color: var(--accent); background: var(--card); }

/* Главная: полоса-ссылка «Работаем с организациями» */
.org-strip__in {
    display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 14px;
    padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow);
    background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; text-decoration: none;
}
.org-strip__in:hover { color: #fff; }
.org-strip__img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.org-strip__title { display: block; font-weight: 800; font-size: 18px; line-height: 1.25; }
.org-strip__lead { display: block; margin-top: 4px; color: rgba(255, 255, 255, .75); font-size: 14px; line-height: 1.4; }
.org-strip__go {
    grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 20px; border-radius: var(--radius-sm);
    background: var(--accent); color: var(--navy); font-weight: 700; white-space: nowrap;
}
.org-strip__go .ic { transition: transform .15s; }
.org-strip__in:hover .org-strip__go .ic { transform: translateX(3px); }

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

@media (min-width: 768px) {
    .org-strip__in { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 20px; padding: 14px 20px 14px 14px; }
    .org-strip__img { width: 112px; height: 84px; }
    .org-strip__go { grid-column: auto; }
}

@media (min-width: 1024px) {
    .org-svcs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
}

/* «О нас»: текст и фото рядом */
.about-split { display: grid; gap: 24px; }
.about-split h2 { font-size: clamp(23px, 3.2vw, 32px); margin-bottom: 18px; }
.about-split__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

@media (min-width: 768px) {
    .about-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 32px; }
    .about-split__img { aspect-ratio: 4 / 3; }
}

@media (min-width: 1024px) {
    .about-split { gap: 56px; }
}

/* Услуги карточками с фото: на телефоне — строки (фото слева), шире — сетка */
.svc-photos { display: grid; gap: 10px; }
.svc-photo {
    display: grid; grid-template-columns: 112px minmax(0, 1fr); overflow: hidden;
    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-photo:hover { color: var(--ink); border-color: #ffc29a; box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-photo:hover .svc__go { transform: translateX(3px); }
.svc-photo__img { display: block; width: 100%; height: 100%; min-height: 84px; object-fit: cover; background: #dfe5ee; }
.svc-photo__ic { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); }
.svc-photo__ic .ic { width: 32px; height: 32px; }
.svc-photo__body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.svc-photo__title { font-weight: 700; font-size: 15.5px; line-height: 1.3; }

@media (min-width: 640px) {
    .svc-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .svc-photos > .svc-photo:last-child:nth-child(3n+1):not(:first-child) { grid-column: 2; }
    .svc-photo { grid-template-columns: none; grid-template-rows: auto 1fr; }
    .svc-photo__img { height: auto; aspect-ratio: 16 / 10; }
    .svc-photo__ic .ic { width: 48px; height: 48px; }
    .svc-photo__body { padding: 14px 16px 16px; }
}

@media (min-width: 1024px) {
    .svc-photos { gap: 16px; }
    .svc-photo__body { gap: 10px; padding: 18px 20px 20px; }
    .svc-photo__title { font-size: 17px; }
}

/* План работ услуги: на телефоне — строки (фото слева, номер шага на фото),
   от 640px — две колонки, от 1024px — все шаги в один ряд, фото сверху */
.plan { list-style: none; counter-reset: plan; display: grid; gap: 10px; }
.plan__step {
    counter-increment: plan; position: relative;
    display: grid; grid-template-columns: 120px minmax(0, 1fr); overflow: hidden;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.plan__step::before {
    content: counter(plan);
    position: absolute; top: 8px; left: 8px;
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent); color: var(--navy); font-weight: 800; font-size: 14px;
    box-shadow: 0 2px 8px rgba(15, 27, 45, .3);
}
.plan__img { display: block; width: 100%; height: 100%; min-height: 100px; object-fit: cover; background: #dfe5ee; }
.plan__body { padding: 12px 14px; }
.plan__title { font-weight: 700; font-size: 15.5px; line-height: 1.3; margin-bottom: 4px; }
.plan__text { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

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

@media (min-width: 1024px) {
    .plan { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
    .plan__step { grid-template-columns: none; grid-template-rows: auto 1fr; }
    .plan__step::before { top: 12px; left: 12px; width: 34px; height: 34px; font-size: 16px; }
    .plan__img { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
    .plan__body { padding: 16px 18px 18px; }
}

/* Консультация — яркая оранжевая карточка с формой: тёмная кнопка,
   декоративные круги, фото в белом кольце с «чатом». */
.band { padding: 28px 0; }
.band__in {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; gap: 20px;
    padding: 24px 18px;
    border-radius: 24px;
    color: var(--navy);
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 255, 255, .28) 0 70px, transparent 71px),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, .16) 0 160px, transparent 161px),
        radial-gradient(circle at 0 100%, rgba(194, 65, 12, .25), transparent 55%),
        linear-gradient(120deg, #ff7a1a, #ff9533 55%, #ffb04d);
    box-shadow: 0 24px 50px -18px rgba(255, 122, 26, .65);
}
/* Фото и заголовок — рядом, текст и обещание — под ними; с 960px фото
   слева от всего текста */
.band__text {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px;
    grid-template-areas: "photo title" "lead lead" "promise promise";
}
.band__photo { grid-area: photo; position: relative; }
.band__title { grid-area: title; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.band__lead { grid-area: lead; margin-top: 14px; color: rgba(15, 27, 45, .82); }
.band__promise {
    grid-area: promise; justify-self: start;
    display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
    padding: 7px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.3;
}
.band__promise .ic { color: var(--accent-ink); }
.band__img {
    width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
    box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(15, 27, 45, .25);
}
.band__badge {
    position: absolute; right: -4px; bottom: -2px;
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--navy); color: #fff; box-shadow: 0 0 0 3px #fff;
    animation: nudge 3s ease-in-out infinite;
}
.band__badge .ic { width: 16px; height: 16px; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(-14deg) scale(1.1); } 84% { transform: rotate(10deg) scale(1.1); } 92% { transform: rotate(-4deg); } }
.band .input { border-color: transparent; box-shadow: 0 6px 16px rgba(15, 27, 45, .12); }
.band .input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15, 27, 45, .18); }
.band .btn { background: var(--navy); color: #fff; box-shadow: 0 10px 22px rgba(15, 27, 45, .35); }
.band .btn:hover { background: var(--navy-2); color: #fff; }
.band .btn .ic { color: var(--accent); }

/* Имя и телефон — рядом, согласие и кнопка — во всю ширину под ними
   (здесь и в заявке внизу страницы) */
@media (min-width: 640px) {
    .band .form, .cta .form { grid-template-columns: 1fr 1fr; }
    :is(.band, .cta) .form :is(.consent, .btn, .form__error, .form__note) { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
    .band { padding: 40px 0; }
    .band__in { padding: 36px 40px; border-radius: 28px; }
}

@media (min-width: 960px) {
    .band { padding: 48px 0; }
    .band__text { column-gap: 26px; grid-template-areas: "photo title" "photo lead" "photo promise"; }
    .band__photo { align-self: start; }
    .band__title { align-self: end; }
    .band__lead { margin-top: 10px; }
    .band__img { width: 120px; height: 120px; box-shadow: 0 0 0 6px #fff, 0 14px 30px rgba(15, 27, 45, .25); }
    .band__badge { width: 40px; height: 40px; right: -2px; bottom: 0; }
    .band__badge .ic { width: 20px; height: 20px; }
    .band__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 40px 44px; }
}

/* Узкий десктоп: обещание — в одну строку */
@media (min-width: 960px) and (max-width: 1199px) {
    .band__in { gap: 28px; padding: 36px 32px; }
    .band__text { column-gap: 20px; }
    .band__promise { font-size: 13px; padding-inline: 12px; }
}

/* Этапы — цепочка: номер шага, линия со стрелкой к следующему и карточка.
   До 1024px цепочка идёт сверху вниз (номера слева от карточек), шире —
   слева направо (номера над карточками, все шаги в один ряд). */
.steps {
    --step-dot: 36px; --step-gap: 14px;
    --step-line: rgba(255, 122, 26, .45);
    list-style: none; counter-reset: step; display: grid; gap: var(--step-gap);
}
.steps li {
    counter-increment: step; position: relative;
    margin-left: calc(var(--step-dot) + 14px); padding: 14px 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--muted); font-size: 14.5px;
    display: flow-root;
}
.steps li::before {
    content: counter(step);
    position: absolute; z-index: 1; top: 10px; left: calc(-1 * var(--step-dot) - 15px);
    display: flex; align-items: center; justify-content: center;
    width: var(--step-dot); height: var(--step-dot); border-radius: 50%;
    background: var(--accent); color: var(--navy); font-weight: 800; font-size: 16px;
    box-shadow: 0 0 0 5px var(--accent-soft);
}
/* Линия от номера к номеру следующего шага, на конце — стрелка вниз */
.steps li:not(:last-child)::after {
    content: ""; position: absolute;
    top: calc(10px + var(--step-dot) + 9px); bottom: calc(-1 * var(--step-gap) - 10px + 9px);
    left: calc(-1 * var(--step-dot) / 2 - 15px - 6px); width: 12px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ff7a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom / 12px 8px no-repeat,
        linear-gradient(var(--step-line), var(--step-line)) center top / 2px calc(100% - 2px) no-repeat;
}
.steps__title { color: var(--ink); font-weight: 700; font-size: 16px; margin-bottom: 2px; }
/* У этапа фото — справа, текст его обтекает; шире 1024 — сверху карточки.
   overflow: hidden у карточки нельзя — за её краем номер и линия. */
.steps__img { float: right; width: 72px; height: 72px; margin: 2px 0 6px 12px; border-radius: 10px; object-fit: cover; }

@media (min-width: 640px) {
    .steps__img { width: 112px; height: 84px; margin-left: 16px; }
}

@media (min-width: 1024px) {
    .steps { --step-dot: 44px; --step-gap: 16px; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
    .steps li { margin: calc(var(--step-dot) + 20px) 0 0; padding: 0 16px 20px; text-align: center; }
    .steps__img {
        float: none; width: calc(100% + 32px); max-width: none; height: auto; margin: 0 -16px 14px;
        aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
    }
    .steps li::before { top: calc(-1 * var(--step-dot) - 20px); left: calc(50% - var(--step-dot) / 2); font-size: 18px; }
    /* Линия идёт вправо: от этого номера к номеру соседней карточки */
    .steps li:not(:last-child)::after {
        top: calc(-1 * var(--step-dot) / 2 - 20px - 6px); bottom: auto; height: 12px; width: auto;
        left: calc(50% + var(--step-dot) / 2 + 10px); right: calc(-50% - var(--step-gap) + var(--step-dot) / 2 + 10px);
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath d='M1 1l5 5-5 5' fill='none' stroke='%23ff7a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right center / 8px 12px no-repeat,
            linear-gradient(var(--step-line), var(--step-line)) left center / calc(100% - 2px) 2px no-repeat;
    }
}

/* Фото работ */
.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); }
.faq__col { display: grid; gap: 10px; align-content: start; }
.faq-wrap { display: grid; gap: 16px; }
.faq-ask { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--bg); border-radius: var(--radius); }
.faq-ask__img { flex: none; width: 88px; height: 88px; border-radius: 12px; object-fit: cover; }
.faq-ask__title { margin-bottom: 4px; color: var(--ink); font-weight: 800; font-size: 17px; }
.faq-ask p:not(.faq-ask__title) { color: var(--muted); font-size: 15px; }
.faq-ask .tel { font-weight: 700; }

@media (min-width: 768px) {
    .faq--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
    .faq--cols .faq__col { gap: 12px; }
    .faq-ask__img { width: 128px; height: 96px; }
}

@media (min-width: 1024px) {
    .faq-wrap { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
    .faq-ask { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
    .faq-ask__img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
    .faq-ask__body { padding: 16px 18px 20px; }
}

/* Текст услуги */
.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;
}

/* Текст страницы услуги: списки — белыми плитками, с 640px в две колонки
   (непарная последняя — во всю ширину). С 1024px справа — заявка, она едет
   вместе с текстом и занимает место, которое оставлял узкий столбец. */
.svc-about .checks { gap: 8px; margin-bottom: 20px; }
.svc-about .checks li {
    padding: 11px 14px 11px 46px;
    background: var(--card); border-radius: var(--radius-sm); box-shadow: var(--shadow);
    font-size: 15.5px; line-height: 1.5;
}
.svc-about .checks li::before { left: 14px; top: 12px; }
.svc-card { display: none; }

@media (min-width: 640px) {
    .svc-about .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .svc-about .checks li { padding: 14px 16px 14px 50px; }
    .svc-about .checks li::before { left: 16px; top: 14px; }
    .svc-about .checks li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
    .svc-about { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
    .svc-card {
        position: sticky; top: 96px;
        display: flex; flex-direction: column; gap: 14px;
        padding: 26px 24px 24px; border-radius: 20px;
        background: radial-gradient(circle at 100% 0, rgba(255, 122, 26, .32), transparent 55%), var(--navy);
        color: #fff; box-shadow: var(--shadow-lg);
    }
    .svc-card__ic {
        display: flex; align-items: center; justify-content: center;
        width: 56px; height: 56px; border-radius: 16px;
        background: rgba(255, 122, 26, .16); color: var(--accent);
    }
    .svc-card__ic .ic { width: 30px; height: 30px; }
    .svc-card__title { font-size: 20px; font-weight: 800; line-height: 1.25; }
    .svc-card__price { margin-top: -6px; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: var(--accent); }
    .svc-card__points { list-style: none; display: grid; gap: 8px; padding: 14px 0; border-block: 1px dashed rgba(255, 255, 255, .18); font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .86); }
    .svc-card__points li { position: relative; padding-left: 28px; }
    .svc-card__points li::before {
        content: ""; position: absolute; left: 0; top: 1px;
        width: 18px; height: 18px; border-radius: 50%;
        background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
    }
    .svc-card__btn { width: 100%; }
    .svc-card__tel { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 14px; color: rgba(255, 255, 255, .62); }
    .svc-card__tel a { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; color: #fff; text-decoration: none; }
    .svc-card__tel a:hover { color: var(--accent); }
    .svc-card__tel .ic { color: var(--accent); }
}

/* Главная: разделы услуг — услуги с ценой и частые задачи списком */
.cats { display: grid; gap: 12px; }
.cat {
    display: flex; flex-direction: column;
    padding: 18px 16px 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.section--alt .cat { background: var(--bg); border-color: transparent; }
.cat__title { margin-bottom: 8px; font-size: 19px; color: var(--navy); }
/* Обложка раздела — во всю ширину карточки, название поверх затемнения */
.cat__cover {
    position: relative; margin: -18px -16px 10px; overflow: hidden;
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: var(--navy);
}
.cat__cover img { width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.cat__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(15, 27, 45, .88)); }
.cat__cover .cat__title { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 12px; margin: 0; color: #fff; }
.cat__thumb { flex: none; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--line); }

@media (min-width: 640px) and (max-width: 899px) {
    .cat__cover img { aspect-ratio: 7 / 2; }
}
/* Список услуг растягивается: частые задачи соседних разделов — на одном уровне */
.cat__svcs { list-style: none; flex: 1; }
.cat__svcs li + li { border-top: 1px solid var(--line); }
.cat__svc {
    display: flex; align-items: center; gap: 12px;
    margin: 0 -8px; padding: 10px 8px; border-radius: var(--radius-sm);
    color: var(--ink); text-decoration: none;
    transition: background-color .15s;
}
.cat__svc:hover { background: var(--bg); color: var(--ink); }
.section--alt .cat__svc:hover { background: var(--card); }
.cat__ic {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 40px; height: 40px; border-radius: 11px;
    background: var(--accent-soft); color: var(--accent-ink);
}
.cat__ic .ic { width: 21px; height: 21px; }
.cat__name { display: flex; flex-direction: column; flex: 1; min-width: 0; font-weight: 700; font-size: 16px; line-height: 1.3; }
.cat__price { margin-top: 2px; font-weight: 600; font-size: 14px; color: var(--muted); }
.cat__go { color: var(--accent-ink); transition: transform .15s; }
.cat__svc:hover .cat__go { transform: translateX(3px); }
.cat__foot {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
    margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line);
}
.cat__label { font-weight: 700; font-size: 14px; color: var(--muted); }
.cat__more {
    display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
    color: var(--accent-ink); font-weight: 700; font-size: 14px; cursor: pointer;
}
.cat__more .ic { width: 1.1em; height: 1.1em; transform: rotate(90deg); }
.cat__more:hover { color: var(--ink); }
.cat__more[hidden] { display: none; }
.cat__tasks {
    list-style: none; flex-basis: 100%; order: 1;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 16px;
}
.cat__tasks a {
    position: relative; display: block; padding: 6px 0 6px 15px;
    color: var(--ink); font-size: 15px; line-height: 1.4; text-decoration: none;
}
.cat__tasks a::before {
    content: ""; position: absolute; left: 1px; top: calc(6px + .7em - 3px);
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.cat__tasks a:hover { color: var(--accent-ink); text-decoration: underline; }

@media (min-width: 900px) {
    .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .cat { padding: 22px 22px 20px; }
    .cat__title { font-size: 21px; }
    .cat__cover { margin: -22px -22px 12px; }
    .cat__cover img { aspect-ratio: 3 / 1; }
    .cat__cover .cat__title { left: 22px; right: 22px; bottom: 16px; }
}

/* «Другие услуги» на странице услуги — колонками по разделам */
.dir { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px 16px; }
.dir__title { margin-bottom: 6px; font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--navy); }
.dir ul { list-style: none; }
.dir__link { display: block; padding: 4px 0; color: var(--ink); font-size: 15px; line-height: 1.4; text-decoration: none; }
.dir__link:hover { color: var(--accent-ink); text-decoration: underline; }

@media (min-width: 768px) {
    .dir { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

/* «Чем поможем» в «О нас» — строки «услуга … цена», как в меню; разделы — в
   одну колонку, с 640px — в две, с 1200px — в четыре (уже колонки «бесплатно
   при ремонте» у диагностики не помещается). В четыре колонки у заголовков
   раздела — по две строки, чтобы строки услуг соседних колонок шли вровень. */
.dir--prices { grid-template-columns: minmax(0, 1fr); gap: 20px 32px; }
.dir--prices .dir__title { margin-bottom: 2px; font-size: 17px; }
.dir--prices .dir__link {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 8px 0; border-bottom: 1px solid var(--line);
}
.dir__price { flex: none; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
@media (min-width: 640px) {
    .dir--prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .dir--prices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; }
    .dir--prices .dir__title { min-height: 2.6em; }
}

/* Свёрнутые длинные списки главной (site.js): кнопка «Показать все…» */
[data-fold] > [hidden], .fold-btn[hidden] { display: none; }
.fold-btn { margin-top: 12px; color: var(--navy); }

/* Хлебные крошки */
.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; }

/* Контакты: первый экран — тёмная карточка с телефоном и фото рядом (с 960px) */
.contacts-hero__in { display: grid; gap: 24px; }
.contacts-call {
    display: grid; justify-items: start; gap: 6px; margin-top: 24px; padding: 20px;
    border-radius: var(--radius); color: #fff; box-shadow: var(--shadow-lg);
    background: radial-gradient(520px 280px at 100% 0, rgba(255, 122, 26, .24), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2));
}
.contacts-call__label { color: rgba(255, 255, 255, .7); font-size: 13.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.contacts-call__phone {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff; font-size: clamp(24px, 6.6vw, 34px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2;
    text-decoration: none; white-space: nowrap;
}
.contacts-call__phone .ic { width: .8em; height: .8em; }
.contacts-call__phone:hover { color: #ffc79f; }
.contacts-call__hours { display: flex; align-items: flex-start; gap: 8px; color: rgba(255, 255, 255, .82); }
.contacts-call :is(.contacts-call__phone, .contacts-call__hours) .ic { color: var(--accent); }
.contacts-call__hours .ic { margin-top: 2px; }
.contacts-call .btn { width: 100%; margin-top: 12px; padding-inline: 12px; }
.contacts-hero__media { display: none; position: relative; }
.contacts-hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

@media (min-width: 640px) {
    .contacts-call { padding: 24px 28px 28px; }
    .contacts-call .btn { width: auto; padding-inline: 24px; }
}

@media (min-width: 960px) {
    .contacts-hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
    .contacts-hero__media { display: block; }
}

/* Карточки: адрес, организациям, площадки */
.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 .link { margin-top: 6px; }
.contact .link > .ic:last-child { margin-left: 6px; }
/* Площадки — плашками во всю ширину карточки */
.contact__links { list-style: none; display: grid; gap: 8px; align-self: stretch; margin-top: 6px; font-weight: 700; }
.contact__links .place {
    display: flex; min-height: 46px; padding: 8px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--navy); text-decoration: none; transition: border-color .15s, background-color .15s;
}
.contact__links .place:hover { border-color: var(--accent); background: var(--accent-soft); }

@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 > .contact__links { justify-self: stretch; }
    .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; }
    /* Нечётная последняя карточка — во всю ширину, без дыры справа */
    .contacts > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .contacts > :last-child:nth-child(odd) .contact__links { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

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

/* Отзывы */
.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); }

@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; }
.cta__contacts .cta__addr { align-items: flex-start; }
.cta__addr .ic { flex: none; margin-top: 2px; }
.cta__note { display: block; color: rgba(255, 255, 255, .7); font-size: 14px; font-weight: 500; }
.cta__photo {
    width: calc(100% + 48px); max-width: none; margin: -24px -24px 20px;
    aspect-ratio: 5 / 2; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0;
}

/* Форма здесь во всю ширину — фото над ней пониже */
@media (min-width: 640px) and (max-width: 959px) {
    .cta__photo { aspect-ratio: 4 / 1; }
}

/* Рядом с текстом карточка не выше него: фото — превью у заголовка, а не
   обложка над формой */
@media (min-width: 960px) {
    .cta__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 56px; }
    .cta__form { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; column-gap: 18px; }
    .cta__photo { width: 100%; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
    .cta__form .form { grid-column: 1 / -1; margin-top: 18px; }
}

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

.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;
}
/* Подсказка в поле — светлее введённого текста, но не бледнее 4.5:1 (≈5:1 на белом). */
.input::placeholder { color: #667085; }
.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; }
/* Подписи под формой — не бледнее 4.5:1 и на самом тёмном месте оранжевой полосы. */
.band .consent, .band .consent a { color: rgba(15, 27, 45, .85); }
.band .consent input { accent-color: var(--navy); }
.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: 12px; line-height: 1.35; color: var(--muted); }
.form__note a { color: inherit; }
.band .form__note, .band .form__note a { color: rgba(15, 27, 45, .85); }

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

.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; gap: 28px; }
/* Название в подвале переносится, а не обрезается: колонка уже шапки. */
.ftr .brand__name { white-space: normal; overflow: visible; }
.ftr__about p { margin-top: 10px; }
.ftr__line { display: flex; align-items: flex-start; gap: 8px; }
.ftr__line .ic { margin-top: .1em; color: var(--accent); }
.ftr__phone { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; color: #fff; font-size: 22px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ftr__phone .ic { width: 20px; height: 20px; color: var(--accent); }
.ftr__title { margin: 0 0 10px; color: #fff; font-weight: 700; }
.ftr ul { list-style: none; display: grid; gap: 8px; }
.ftr .ftr__svc { display: block; columns: 2; column-gap: 16px; }
.ftr__svc li { break-inside: avoid; margin-bottom: 8px; }
.ftr__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.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;
    font-size: 13px; color: #7d899c;
    /* Линия — по ширине содержимого, а не контейнера с отступами: ровно по краям колонок и оговорки. */
    background: linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .08)) center top / calc(100% - 32px) 1px no-repeat;
}
.ftr__notes { display: grid; gap: 4px; }
.ftr__price { margin-top: 36px; }
.ftr__price + .ftr__bottom { margin-top: 24px; }

@media (min-width: 768px) {
    .ftr { padding-top: 56px; }
    .ftr__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px 40px; }
    .ftr__about { grid-column: 1 / -1; columns: 2; column-gap: 40px; }
    .ftr__about > * { break-inside: avoid; }
    .ftr .ftr__svc { column-gap: 24px; }
    .ftr__more { display: grid; grid-template-columns: none; gap: 24px; align-content: start; }
}

@media (min-width: 1024px) {
    .ftr__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; }
    .ftr__about { grid-column: auto; columns: auto; }
    /* Оговорки — справа от «©», в одну строку с ним: на планшете они под ним и выровнены влево. */
    .ftr__notes { text-align: right; }
}

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

.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; }
}
