/* =========================================================================
   НЕО ПК — стили сайта.
   Цвета взяты со старого neopc.ru: фирменный синий #0188cc и жёлтые кнопки.
   Светлая тема: белые и голубые фоны, синие «дорожки платы»,
   «золотые» контакты-кнопки.
   ========================================================================= */

/* Шрифты лежат на самом сайте (OFL): Golos Text — текст, Unbounded — заголовки. */
@font-face {
    font-family: "Golos Text";
    src: url("../fonts/golos-text.woff") format("woff");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Unbounded";
    src: url("../fonts/unbounded.woff") format("woff");
    font-weight: 500 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --board-900: #041a2e;
    --board-800: #06263f;
    --board-700: #0b3558;
    --board-600: #164a74;
    --brand: #0188cc;
    --brand-600: #0172ad;
    --signal: #19b6ff;
    --gold: #ffd21f;
    --gold-600: #f2bd00;
    --gold-edge: #c99700;
    --brand-700: #015f90;
    --sky-50: #f3f9fe;
    --sky-100: #e7f4fd;
    --sky-200: #cfe7f8;
    --sky-300: #a9d6f3;
    --paper: #f3f8fc;
    --white: #ffffff;
    --ink: #0d2236;
    --ink-2: #3c5266;
    --muted: #64798d;
    --line: #d7e4ef;
    --line-2: #e6eff6;
    --ok: #14a865;
    --danger: #d43f3a;
    --wa: #1fb655;

    --r-xl: 24px;
    --r-lg: 18px;
    --r: 12px;
    --r-sm: 8px;

    --shadow: 0 1px 2px rgba(1, 80, 130, .06), 0 14px 34px -20px rgba(1, 80, 130, .32);
    --shadow-pop: 0 24px 56px -26px rgba(1, 80, 130, .45);

    --font-text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
    --display-weight: 600;

    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --sec: clamp(56px, 8vw, 104px);
    --hdr-h: 72px;
}

html[lang^="zh"] {
    --font-text: "Golos Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
    --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
    --display-weight: 700;
}

/* В Unbounded нет таджикских букв (ғ, ӣ, қ, ӯ, ҳ, ҷ) — заголовки на таджикском набираем Golos Text. */
html[lang="tg"] {
    --font-display: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display-weight: 800;
}

html[lang="ko"] {
    --font-text: "Golos Text", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
    --font-display: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
    --display-weight: 700;
}

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

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

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

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
    outline: 3px solid var(--signal);
    outline-offset: 2px;
    border-radius: 6px;
}

.sr-only {
    position: absolute !important;
    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: 12px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: var(--r-sm);
    background: var(--gold); color: var(--ink); font-weight: 700;
}
.skip:focus { top: 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ico { flex: none; display: inline-block; vertical-align: middle; }

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

/* ---------- Заголовки секций ---------- */

.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head--row {
    max-width: none;
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px;
}
.sec-head--row > div:first-child { max-width: 680px; }

.sec-title, .page-title {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: clamp(1.6rem, 1.05rem + 2vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -.01em;
    hyphens: auto;
    overflow-wrap: break-word;
}
.sec-lead, .page-lead {
    margin: 14px 0 0;
    color: var(--ink-2);
    font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
    max-width: 66ch;
}

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

.btn {
    --btn-bg: var(--white);
    --btn-fg: var(--ink);
    --btn-edge: var(--line);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1.5px solid transparent;
    border-radius: var(--r);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }

/* «Золотой контакт»: как жёлтые кнопки старого сайта, с нижней гранью */
.btn--gold {
    --btn-bg: var(--gold);
    --btn-fg: var(--ink);
    box-shadow: inset 0 -3px 0 var(--gold-edge);
    font-weight: 700;
}
.btn--gold:hover { --btn-bg: #ffdc4d; }
.btn--gold:active { box-shadow: inset 0 -1px 0 var(--gold-edge); }

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border-color: var(--line);
}
.btn--outline:hover { border-color: var(--brand); --btn-fg: var(--brand-600); }

.btn--ghost {
    --btn-bg: var(--white);
    --btn-fg: var(--brand-700);
    border-color: var(--sky-300);
}
.btn--ghost:hover { --btn-bg: var(--sky-50); --btn-fg: var(--brand-700); border-color: var(--brand); }

.btn--whatsapp { --btn-bg: var(--wa); --btn-fg: #fff; }
.btn--whatsapp:hover { --btn-bg: #1aa04a; }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; border-radius: 10px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.chip-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--white);
    color: var(--ink); text-decoration: none; font-size: .9375rem;
}
.chip-link:hover { color: var(--brand-600); border-color: var(--brand); }

/* ---------- Формы ---------- */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field__label { font-weight: 600; font-size: .9375rem; color: var(--ink); padding: 0; }
.field__hint { margin: 0; font-size: .8125rem; color: var(--muted); }
.req { color: var(--danger); }

.input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    background: var(--white);
    color: var(--ink);
    font-size: 1rem;
    transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: #98a8b7; }
.input:hover { border-color: #b8c7d4; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(1, 136, 204, .15); }

.select {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23677c90' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.field.is-invalid .input,
.field.is-invalid .drop { border-color: var(--danger); }
.field.is-invalid .input:focus { box-shadow: 0 0 0 4px rgba(212, 63, 58, .15); }
.field__error, .form__error { margin: 0; color: var(--danger); font-size: .875rem; font-weight: 500; }
.field__error:empty, .form__error:empty { display: none; }
.form__note { margin: 4px 0 0; font-size: .8125rem; color: var(--muted); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* чекбокс согласия */
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .875rem; color: var(--ink-2); line-height: 1.45; }
.check input { position: absolute; left: 0; top: 0; opacity: 0; width: 22px; height: 22px; margin: 0; }
.check__box {
    flex: none; width: 22px; height: 22px; margin-top: 1px;
    display: grid; place-items: center;
    border: 1.5px solid #a9bacb; border-radius: 6px;
    background: var(--white); color: transparent;
    transition: background-color .15s, border-color .15s;
}
.check input:checked + .check__box { background: var(--brand); border-color: var(--brand); color: #fff; }
.check input:focus-visible + .check__box { outline: 3px solid var(--signal); outline-offset: 2px; }
.check.is-invalid .check__box, .consent.is-invalid .check__box { border-color: var(--danger); }
.check a { color: inherit; }

/* звёзды отзыва */
.stars-input__row { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-input { position: relative; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { color: #c9d4de; cursor: pointer; padding: 2px; transition: color .1s, transform .1s; }
.stars-input label .ico { fill: currentColor; }
.stars-input input:checked ~ label,
.stars-input label:hover,
.stars-input label:hover ~ label { color: var(--gold-600); }
.stars-input input:focus-visible + label { outline: 3px solid var(--signal); border-radius: 6px; }

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

.hdr {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.hdr.is-scrolled { border-color: var(--line-2); box-shadow: 0 6px 24px -18px rgba(6, 38, 63, .5); }
.hdr__in { display: flex; align-items: center; gap: 20px; min-height: var(--hdr-h); }

.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; color: var(--ink); }
.logo__img { width: auto; height: 44px; max-width: 170px; object-fit: contain; }
.logo__mark { display: inline-flex; align-items: center; gap: 10px; }
.logo__chip {
    width: 30px; height: 30px; border-radius: 7px;
    background: var(--brand);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .65), 0 0 0 3px var(--brand);
    position: relative;
}
.logo__chip::after {
    content: ""; position: absolute; inset: 9px; border-radius: 2px; background: var(--gold);
}
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__link {
    padding: 8px 12px; border-radius: 10px;
    color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96875rem; white-space: nowrap;
}
.nav__link:hover { background: var(--paper); color: var(--ink); }
.nav__link.is-active { color: var(--brand-600); background: rgba(1, 136, 204, .08); }
.nav__mobile-extra { display: none; }

.hdr__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .hdr__tools { margin-left: 0; }

.hdr__phone { display: grid; text-decoration: none; color: var(--ink); line-height: 1.15; text-align: right; }
.hdr__phone-num { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hdr__phone-hours { font-size: .75rem; color: var(--muted); }
.hdr__icon-btn {
    display: none; place-items: center;
    width: 44px; height: 44px;
    border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--white); color: var(--ink);
}
.hdr__burger .i-close { display: none; }

.lang { position: relative; }
.lang__btn {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 6px 10px;
    border: 1.5px solid var(--line); border-radius: 10px;
    list-style: none; cursor: pointer; font-weight: 600; font-size: .875rem; user-select: none;
}
.lang__btn::-webkit-details-marker { display: none; }
.lang__chev { transition: transform .15s; }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__list {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
    min-width: 210px; margin: 0; padding: 6px; list-style: none;
    background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r);
    box-shadow: var(--shadow-pop);
}
.lang__list a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px;
    color: var(--ink); text-decoration: none;
}
.lang__list a:hover { background: var(--paper); }
.lang__list a.is-current { background: rgba(1, 136, 204, .08); color: var(--brand-600); font-weight: 600; }
.lang__code {
    min-width: 34px; padding: 2px 6px; border-radius: 6px;
    background: var(--paper); font-size: .75rem; font-weight: 700; text-align: center;
}

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

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #eaf6fe 0%, #f6fbff 70%, var(--white) 100%);
    color: var(--ink);
    padding-block: clamp(40px, 6vw, 88px) 0;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__photo {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    opacity: .16; mix-blend-mode: multiply; filter: saturate(.7);
}
.hero__media::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(760px 420px at 88% 22%, rgba(25, 182, 255, .16), transparent 62%),
        linear-gradient(90deg, rgba(240, 248, 254, .97) 0%, rgba(240, 248, 254, .9) 45%, rgba(240, 248, 254, .55) 100%);
}
.hero__traces { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(1, 136, 204, .17); z-index: 1; }

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}
.hero__title {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: clamp(1.85rem, 1.05rem + 3vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -.015em;
    color: var(--ink);
    hyphens: auto;
    overflow-wrap: break-word;
    max-width: 17ch;
}
html[lang^="zh"] .hero__title, html[lang="ko"] .hero__title { max-width: 20ch; letter-spacing: 0; }
.hero__lead { margin: 22px 0 0; max-width: 54ch; font-size: clamp(1.03rem, .98rem + .35vw, 1.2rem); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* панель «Ближайшее свободное время» — модуль на плате */
.board {
    position: relative;
    padding: 22px;
    border-radius: var(--r-xl);
    background: var(--white);
    border: 1px solid var(--sky-200);
    box-shadow: var(--shadow-pop);
}
.board::before, .board::after {
    content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
    background: var(--white); box-shadow: inset 0 0 0 2px var(--sky-300);
}
.board::before { top: 12px; right: 12px; }
.board::after { bottom: 12px; right: 12px; }
.board__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--sky-200); }
.board__led {
    width: 10px; height: 10px; border-radius: 50%; flex: none;
    background: #39e58c;
    box-shadow: 0 0 0 3px rgba(57, 229, 140, .18), 0 0 12px rgba(57, 229, 140, .8);
}
.board__title { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.board__days { list-style: none; margin: 0; padding: 0; }
.board__day { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.board__date { display: flex; align-items: baseline; gap: 10px; }
.board__date b { color: var(--ink); font-weight: 700; }
.board__date span { color: var(--muted); font-size: .875rem; }
.board__times { display: flex; flex-wrap: wrap; gap: 8px; }
.time-chip {
    display: inline-grid; place-items: center;
    min-width: 66px; min-height: 40px; padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #bfe0f6;
    background: var(--sky-100);
    color: var(--brand-700); text-decoration: none;
    font-weight: 700; font-variant-numeric: tabular-nums;
    transition: background-color .12s, color .12s, border-color .12s;
}
.time-chip:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.time-chip--more { min-width: 0; color: var(--muted); border-style: dashed; border-color: var(--line); background: transparent; }
.board__all {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
    color: var(--brand-600); font-weight: 700; text-decoration: none;
}
.board__all:hover { color: var(--brand); }
.board__empty { margin: 16px 0; color: var(--ink-2); }
.board__call { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--sky-200); color: var(--muted); font-size: .9375rem; }
.board__call a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* «загрузка» панели — единственная анимация страницы */
@media (prefers-reduced-motion: no-preference) {
    .board__led { animation: led-boot 1.4s ease-out .2s both; }
    .board .time-chip { animation: chip-in .45s ease-out both; animation-delay: calc(.35s + var(--i, 0) * 55ms); }
}
@keyframes led-boot {
    0% { background: #1d4a3a; box-shadow: none; }
    30% { background: #39e58c; box-shadow: 0 0 0 6px rgba(57, 229, 140, .25), 0 0 18px rgba(57, 229, 140, 1); }
    100% { background: #39e58c; box-shadow: 0 0 0 3px rgba(57, 229, 140, .18), 0 0 12px rgba(57, 229, 140, .8); }
}
@keyframes chip-in {
    from { opacity: 0; transform: translateY(6px); border-color: transparent; }
    to { opacity: 1; transform: none; }
}

.facts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
    border-top: 1px solid var(--line);
}
.fact { padding: 22px 20px 26px 0; }
.fact + .fact { padding-left: 20px; border-left: 1px solid var(--line); }
.fact dt { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); color: var(--brand-600); line-height: 1.2; }
.fact dd { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.4; }

/* ---------- Преимущества ---------- */

.adv { padding-block: var(--sec); }
.adv__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.adv__head { position: sticky; top: calc(var(--hdr-h) + 24px); }
.adv__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
}
.adv-item { display: flex; gap: 16px; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); }
.adv-item:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--line); }
.adv-item__icon {
    flex: none; display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(1, 136, 204, .08); color: var(--brand-600);
}
.adv-item__icon img { width: 36px; height: 36px; object-fit: contain; }
.adv-item__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 6px; }
.adv-item__text { margin: 0; color: var(--ink-2); font-size: .96875rem; line-height: 1.55; }

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

.calc { padding-block: var(--sec); background: var(--paper); }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }

.calc-group { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.calc-group__title {
    display: block; width: 100%;
    margin-bottom: 10px; padding: 0 4px;
    font-size: .875rem; font-weight: 700; color: var(--muted);
}

.calc-item {
    position: relative;
    background: var(--white);
    border: 1.5px solid transparent;
    border-radius: var(--r-lg);
    box-shadow: 0 1px 2px rgba(6, 38, 63, .05);
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.calc-item + .calc-item { margin-top: 8px; }
.calc-item:hover { border-color: #c9d8e4; }
.calc-item.is-on { border-color: var(--brand); background: #f6fbff; box-shadow: 0 0 0 4px rgba(1, 136, 204, .08); }

.calc-item__main {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center; gap: 14px;
    padding: 14px 18px 14px 14px;
    cursor: pointer;
}
.calc-item__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-item__pad {
    width: 26px; height: 26px; border-radius: 8px;
    display: grid; place-items: center;
    border: 1.5px solid #a9bacb; color: transparent; background: var(--white);
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}
.calc-item.is-on .calc-item__pad {
    background: var(--brand); border-color: var(--brand); color: #fff;
    box-shadow: 0 0 10px rgba(25, 182, 255, .55);
}
.calc-item__input:focus-visible ~ .calc-item__pad { outline: 3px solid var(--signal); outline-offset: 2px; }
.calc-item__icon { color: var(--brand-600); opacity: .85; }
.calc-item__body { display: grid; gap: 2px; min-width: 0; }
.calc-item__name { font-weight: 600; line-height: 1.3; }
.calc-item__desc { font-size: .875rem; color: var(--muted); line-height: 1.4; }
.calc-item__price { font-weight: 700; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.calc-item__price small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }

.stepper { display: flex; align-items: center; gap: 6px; padding: 0 18px 14px 94px; }
.stepper__btn {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center;
    border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
}
.stepper__btn:hover { border-color: var(--brand); color: var(--brand-600); }
.stepper__val {
    width: 52px; height: 36px; text-align: center;
    border: 1.5px solid var(--line); border-radius: 10px;
    font-weight: 700; font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}
.stepper__val::-webkit-inner-spin-button, .stepper__val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__unit { color: var(--muted); font-size: .875rem; margin-left: 4px; }

.calc__panel {
    position: sticky; top: calc(var(--hdr-h) + 16px);
    padding: 16px;
    background: var(--white);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow);
}

/* табло калькулятора — светлый ЖК-экран с семисегментными цифрами */
.display {
    padding: 16px 18px 14px;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, #f0f8fe, #e4f2fc);
    color: var(--ink-2);
    box-shadow: inset 0 0 0 1px var(--sky-200);
}
.display__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.display__label { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.display__reset {
    padding: 4px 10px; border-radius: 8px;
    border: 1px solid var(--sky-300); background: var(--white);
    color: var(--brand-700); font-size: .8125rem;
}
.display__reset:hover { border-color: var(--brand); color: var(--brand); }
.display__screen {
    display: flex; align-items: flex-end; justify-content: flex-end; gap: 8px;
    min-height: 74px; margin: 10px 0 6px; padding: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, #d3e8f6, #dcedf8);
    box-shadow: inset 0 2px 8px rgba(1, 80, 130, .2), inset 0 0 0 1px rgba(1, 80, 130, .08);
}
.display__from { font-weight: 700; color: #0b3a5c; font-size: 1rem; padding-bottom: 8px; }
.display__digits { display: inline-flex; align-items: flex-end; gap: 4px; height: 54px; }
.display__cur { font-family: var(--font-display); font-size: 1.6rem; color: #0b3a5c; line-height: 1; padding-bottom: 4px; }
.display__count { font-size: .8125rem; color: var(--muted); text-align: right; }

.seg-digit { height: 54px; width: auto; transform: skewX(-7deg); overflow: visible; }
.seg-digit .seg { fill: rgba(11, 58, 92, .07); transition: fill .12s; }
.seg-digit .seg.on { fill: #0b3a5c; }
.seg-gap { width: 6px; }

.calc__empty { margin: 14px 4px 0; color: var(--muted); font-size: .9375rem; }
.calc__summary { list-style: none; margin: 12px 0 0; padding: 0; max-height: 220px; overflow: auto; }
.calc__summary li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 8px 4px; border-bottom: 1px dashed var(--line);
    font-size: .9375rem;
}
.calc__summary li span:last-child { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__free { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; font-size: .9375rem; color: var(--ink-2); }
.calc__free .ico { color: var(--ok); }
.calc__free b { margin-left: auto; color: var(--ok); white-space: nowrap; }
.calc__hint {
    margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r);
    background: #fff8d6; color: #5c4700; font-size: .9375rem; font-weight: 500;
    border: 1px solid #f5df7a;
}
.calc__actions { display: grid; gap: 10px; margin-top: 16px; }
.calc__form { gap: 10px; }
.calc__phone-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.calc__note { margin: 12px 4px 0; font-size: .8125rem; color: var(--muted); }

/* ---------- Пакеты ---------- */

.packages { padding-block: var(--sec); }
.pk-board {
    display: grid;
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--white);
}
.pk { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; }
.pk + .pk { border-left: 1px solid var(--line); }
.pk--featured {
    margin: -12px 0; padding-top: 38px;
    border-radius: var(--r-xl);
    background: var(--white); color: var(--ink);
    border: 2px solid var(--brand) !important;
    box-shadow: 0 24px 50px -28px rgba(1, 95, 144, .55);
}
.pk--featured + .pk { border-left-color: transparent; }
.pk__flag {
    position: absolute; top: 12px; left: 22px;
    padding: 3px 10px; border-radius: 999px;
    background: var(--gold); color: var(--ink);
    font-size: .75rem; font-weight: 700;
}
.pk__img {
    height: 112px; margin-bottom: 16px;
    display: grid; place-items: center;
    border-radius: var(--r);
    background: var(--paper);
    overflow: hidden;
}
.pk--featured .pk__img { background: var(--sky-50); }
.pk__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.pk__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.2rem; }
.pk__price {
    margin: 10px 0 16px;
    font-size: 1.75rem; font-weight: 800; line-height: 1.1;
    font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.pk--featured .pk__price { color: var(--brand-600); }
.pk__list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; font-size: .9375rem; }
.pk__list li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; }
.pk__list li .ico { margin-top: 2px; }
.pk__list .is-on .ico { color: var(--ok); }
.pk__list .is-off { color: #9aabbb; }
.pk__btn { margin-top: auto; }

.pk-biz {
    display: grid; grid-template-columns: minmax(0, .9fr) repeat(2, minmax(0, 1fr));
    gap: 0; margin-top: 40px;
    border-radius: var(--r-xl);
    background: var(--paper);
    overflow: hidden;
}
.pk-biz__intro { padding: 28px; }
.pk-biz__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.25rem; margin-bottom: 10px; }
.pk-biz__intro p { margin: 0; color: var(--ink-2); }
.pk-biz__plan { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-left: 1px solid var(--line); }
.pk-biz__img { width: 72px; height: 56px; object-fit: contain; border-radius: 8px; background: var(--white); padding: 4px; }
.pk-biz__name { font-size: 1.0625rem; font-weight: 700; }
.pk-biz__price { margin: 4px 0 0; font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pk-biz__price small { font-size: .875rem; font-weight: 500; color: var(--muted); }
.pk-biz__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9375rem; color: var(--ink-2); }
.pk-biz__list li { display: flex; gap: 8px; align-items: flex-start; }
.pk-biz__list .ico { color: var(--ok); margin-top: 3px; }
.pk-biz__plan .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Скидки ---------- */

.promo { padding-block: var(--sec); background: linear-gradient(180deg, #e8f5fe, var(--sky-50)); color: var(--ink); position: relative; overflow: hidden; }
.promo::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(1, 136, 204, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(1, 136, 204, .07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.promo__grid { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.promo__pics { display: flex; gap: 14px; margin-top: 28px; }
.promo__pics img {
    width: 50%; max-width: 220px; aspect-ratio: 1; object-fit: contain;
    border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--sky-200); padding: 10px;
}
.promo__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promo-item {
    display: flex; gap: 14px; padding: 22px;
    border-radius: var(--r-lg);
    border: 1px solid var(--sky-200);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(1, 80, 130, .05);
}
.promo-item--lead { grid-column: 1 / -1; background: var(--gold); color: var(--ink); border: 0; }
.promo-item__icon {
    flex: none; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--sky-100); color: var(--brand-600);
}
.promo-item--lead .promo-item__icon { background: rgba(13, 34, 54, .1); color: var(--ink); }
.promo-item__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.promo-item--lead .promo-item__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); color: var(--ink); }
.promo-item__text { margin: 0; color: var(--ink-2); }
.promo-item--lead .promo-item__text { color: #3d3200; font-size: 1.0625rem; }

/* ---------- Как проходит ремонт ---------- */

.steps { padding-block: var(--sec); }
.steps .sec-title { margin-bottom: clamp(28px, 4vw, 48px); }
.steps__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
    position: relative;
}
.step { position: relative; }
/* дорожка платы от этапа к этапу */
.step:not(:last-child)::before {
    content: ""; position: absolute; top: 23px; left: 56px; width: calc(100% + 24px - 64px); height: 2px;
    background: repeating-linear-gradient(90deg, var(--brand) 0 14px, transparent 14px 22px);
    opacity: .45;
}
.step__node {
    position: relative;
    display: grid; place-items: center;
    width: 48px; height: 48px; margin-bottom: 18px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--brand);
    color: var(--brand-600);
    font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
    box-shadow: 0 0 0 6px var(--white);
}
.step:last-child .step__node { background: var(--brand); color: #fff; }
.step__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 6px; }
.step__text { margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }

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

.reviews { padding-block: var(--sec); background: var(--paper); }
.reviews__grid { columns: 3 300px; column-gap: 20px; }
.review {
    break-inside: avoid;
    margin: 0 0 20px; padding: 24px;
    border-radius: var(--r-lg);
    background: var(--white);
    box-shadow: 0 1px 2px rgba(6, 38, 63, .05);
}
.review__stars { display: flex; gap: 2px; color: #d3dde6; margin-bottom: 12px; }
.review__stars .is-on { color: var(--gold-600); }
.review__stars .ico { fill: currentColor; }
.review__text { margin: 0; font-size: 1rem; line-height: 1.6; }
.review__text p:last-child { margin-bottom: 0; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review__author span:last-child { display: grid; line-height: 1.3; }
.review__author time { font-size: .8125rem; color: var(--muted); }
.review__avatar {
    flex: none; display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--sky-100); color: var(--brand-700);
    font-weight: 700; font-size: .9375rem;
}
.review__reply { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--paper); border-radius: 0 var(--r) var(--r) 0; font-size: .9375rem; }
.review__reply b { display: block; margin-bottom: 4px; font-size: .8125rem; color: var(--brand-600); }
.review__reply p:last-child { margin-bottom: 0; }
.reviews__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

.rating-sum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rating-sum b { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.rating-sum__stars { display: inline-flex; gap: 2px; color: #cfd9e2; }
.rating-sum__stars .is-on { color: var(--gold-600); }
.rating-sum__stars .ico { fill: currentColor; }
.rating-sum > span:last-child { color: var(--muted); font-size: .9375rem; }
.rating-sum--hero { margin-top: 20px; }

.empty-note {
    margin: 0 0 20px; padding: 28px;
    border: 1.5px dashed var(--line); border-radius: var(--r-lg);
    background: var(--white); color: var(--ink-2); text-align: center;
}

/* ---------- Вопросы ---------- */

.faq { padding-block: var(--sec); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--hdr-h) + 24px); }
.faq__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.faq__list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 20px 0;
    list-style: none; cursor: pointer;
    font-weight: 600; font-size: 1.0625rem; line-height: 1.4;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--brand-600); }
.faq-item__icon { color: var(--brand); transition: transform .2s; }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { padding: 0 48px 20px 0; color: var(--ink-2); }
.faq-item__a p:last-child { margin-bottom: 0; }

/* ---------- Полоса записи ---------- */

.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 7vw, 88px); background: linear-gradient(115deg, #0167a0 0%, var(--brand) 60%, #1aa6ec 100%); color: #fff; }
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .14; mix-blend-mode: luminosity; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(1, 103, 160, .96) 30%, rgba(1, 136, 204, .5)); }
.cta-band--plain::after { display: none; }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); color: #fff; }
.cta-band__text { margin: 10px 0 0; color: #e6f4fd; max-width: 60ch; }

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

.contacts { padding-block: var(--sec); }
.contacts__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.contacts__list { display: grid; gap: 0; margin: 28px 0 0; }
.contacts__list > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contacts__list dt { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); }
.contacts__list dt .ico { color: var(--brand); }
.contacts__list dd { margin: 0; display: grid; gap: 2px; }
.contacts__list dd small { color: var(--muted); font-size: .875rem; }
.contacts__phone { font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.contacts__phone:hover { color: var(--brand-600); }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contacts__map {
    position: relative; min-height: 420px;
    border-radius: var(--r-xl); overflow: hidden;
    background:
        linear-gradient(rgba(1, 136, 204, .06) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(1, 136, 204, .06) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--paper);
}
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contacts__route {
    position: absolute; left: 16px; bottom: 16px;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 10px;
    background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
    box-shadow: var(--shadow);
}

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

.ftr { background: #f1f7fc; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: clamp(48px, 6vw, 72px); font-size: .9375rem; }
.ftr a { color: var(--ink); text-decoration: none; }
.ftr a:hover { color: var(--brand-600); text-decoration: underline; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; }
.ftr__logo {
    display: inline-flex; align-items: center;
    padding: 10px 14px; margin-bottom: 16px;
    border-radius: var(--r);
    background: #fff; border: 1px solid var(--line-2); color: var(--ink) !important; text-decoration: none !important;
}
.ftr__logo img { height: 40px; width: auto; max-width: 170px; object-fit: contain; }
.ftr__brand p { max-width: 40ch; margin: 0; }
.ftr__nav { display: grid; gap: 8px; align-content: start; }
.ftr__contacts { display: grid; gap: 6px; align-content: start; }
.ftr__phone { font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.ftr__msgr { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ftr__bottom {
    position: relative;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
    padding-block: 20px 28px;
    font-size: .8125rem; color: var(--muted);
}
.ftr__bottom::before {
    content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
    border-top: 1px solid var(--line);
}
.ftr__legal { display: flex; flex-wrap: wrap; gap: 16px; }
.ftr__langs { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.ftr__langs a { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--white); font-weight: 600; }
.ftr__langs a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Модальные окна ---------- */

.modal {
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    margin: auto; padding: 0;
    border: 0; border-radius: var(--r-xl);
    background: var(--white); color: var(--ink);
    box-shadow: var(--shadow-pop);
    overflow: auto;
}
.modal::backdrop { background: rgba(13, 34, 54, .45); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close-form { position: sticky; top: 0; height: 0; display: flex; justify-content: flex-end; z-index: 2; }
.modal__close {
    margin: 12px 12px 0 0;
    width: 40px; height: 40px; border-radius: 12px;
    display: grid; place-items: center;
    border: 0; background: var(--paper); color: var(--ink);
}
.modal__close:hover { background: var(--line-2); }
.modal__body { padding: 28px; }
.modal__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.4rem; padding-right: 40px; }
.modal__text { margin: 10px 0 20px; color: var(--ink-2); }

/* ---------- Успех ---------- */

.success {
    display: grid; justify-items: center; gap: 4px;
    padding: 32px 24px; text-align: center;
    border-radius: var(--r-xl);
    background: var(--white);
}
.success:focus { outline: none; }
.success__icon {
    display: grid; place-items: center;
    width: 64px; height: 64px; margin-bottom: 12px;
    border-radius: 50%;
    background: rgba(20, 168, 101, .12); color: var(--ok);
}
.success__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.35rem; }
.success__slot { margin: 8px 0 0; font-weight: 700; font-size: 1.125rem; color: var(--brand-600); }
.success__slot:empty { display: none; }
.success__text { margin: 6px 0 0; color: var(--ink-2); max-width: 44ch; }
.success .btn { margin-top: 18px; }
.success--page { margin-bottom: 28px; border: 1.5px solid rgba(20, 168, 101, .35); }

/* ---------- Подсказка о языке ---------- */

.suggest {
    position: fixed; left: 50%; bottom: 16px; z-index: 70;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 12px;
    width: max-content; max-width: calc(100vw - 24px);
    padding: 10px 10px 10px 18px;
    border-radius: 14px;
    background: var(--white); color: var(--ink);
    border: 1px solid var(--sky-200);
    box-shadow: var(--shadow-pop);
}
.suggest__close {
    border: 0; background: transparent; color: var(--muted);
    padding: 8px 10px; border-radius: 8px; font-size: .875rem;
}
.suggest__close:hover { color: var(--ink); background: var(--sky-50); }

/* ---------- Внутренние страницы ---------- */

.page-hero { padding-block: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 44px); background: var(--paper); border-bottom: 1px solid var(--line-2); }
.page-hero--compact .page-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: .875rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand-600); }

.mini-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); line-height: 1.45; }
.mini-steps b { display: block; color: var(--ink); margin-bottom: 2px; }
.mini-steps__n {
    flex: none; display: grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--brand); color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: .875rem;
}

/* ---------- Запись ---------- */

.booking { padding-block: clamp(28px, 4vw, 56px) var(--sec); }
.booking__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.booking__col { display: grid; gap: 18px; min-width: 0; }
.booking__col--form {
    gap: 16px; padding: clamp(20px, 3vw, 32px);
    border-radius: var(--r-xl);
    background: var(--white);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow);
}
.booking__subtitle { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.2rem; }

.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.mode__opt { position: relative; cursor: pointer; }
.mode__opt input { position: absolute; opacity: 0; }
.mode__card {
    display: grid; gap: 4px; align-content: start; height: 100%;
    padding: 16px 18px;
    border: 1.5px solid var(--line); border-radius: var(--r-lg);
    background: var(--white);
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.mode__card .ico { color: var(--brand); margin-bottom: 6px; }
.mode__card b { font-weight: 700; line-height: 1.3; }
.mode__card small { color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.mode__opt:hover .mode__card { border-color: #b8c7d4; }
.mode__opt input:checked + .mode__card { border-color: var(--brand); background: #f6fbff; box-shadow: 0 0 0 4px rgba(1, 136, 204, .1); }
.mode__opt input:focus-visible + .mode__card { outline: 3px solid var(--signal); outline-offset: 2px; }

.cal {
    padding: 18px;
    border-radius: var(--r-xl);
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow);
}
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal__month { font-size: 1.125rem; font-weight: 700; text-align: center; }
.cal__nav {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
}
.cal__nav:hover:not(:disabled) { background: var(--sky-50); border-color: var(--brand); color: var(--brand-600); }
.cal__nav:disabled { opacity: .3; cursor: default; }
.cal__week, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__week { margin-bottom: 6px; }
.cal__week span { text-align: center; font-size: .75rem; font-weight: 600; color: var(--muted); }
.cal__day {
    position: relative;
    aspect-ratio: 1 / .9; min-height: 40px;
    display: grid; place-items: center;
    border-radius: 10px; border: 1px solid transparent;
    background: transparent; color: #a9b9c7;
    font-weight: 600; font-variant-numeric: tabular-nums;
    cursor: default;
}
.cal__day.is-empty { visibility: hidden; }
.cal__day.has-slots { color: var(--brand-700); background: var(--sky-100); border-color: var(--sky-200); cursor: pointer; font-weight: 700; }
.cal__day.has-slots::after {
    content: ""; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; border-radius: 50%; background: #1fb36a;
}
.cal__day.has-slots:hover { background: #d4ebfb; border-color: var(--sky-300); }
.cal__day.is-today { box-shadow: inset 0 0 0 2px rgba(242, 189, 0, .75); }
.cal__day.is-selected { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.cal__day.is-selected::after { background: var(--ink); box-shadow: none; }
.cal__status { margin: 12px 0 0; font-size: .875rem; color: var(--muted); }
.cal__status:empty { display: none; }
.cal .field__error { margin-top: 10px; }

.times { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--sky-200); }
.times__title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.times__list { display: flex; flex-wrap: wrap; gap: 8px; }
.times__list .time-chip { cursor: pointer; font: inherit; font-weight: 600; }
.times__list .time-chip[aria-checked="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.callback-note {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 20px; border-radius: var(--r-lg);
    background: #f6fbff; border: 1.5px solid rgba(1, 136, 204, .25);
    color: var(--ink-2);
}
.callback-note .ico { color: var(--brand); margin-top: 2px; }
.callback-note p { margin: 0; }

.picked {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: var(--r);
    background: #fff8d6; border: 1px solid #f5df7a;
    font-weight: 600;
}

.from-calc { padding: 16px; border-radius: var(--r); background: var(--paper); font-size: .9375rem; }
.from-calc b { display: block; margin-bottom: 8px; }
.from-calc ul { list-style: none; margin: 0; padding: 0; }
.from-calc li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.from-calc li span:last-child { white-space: nowrap; font-weight: 600; }
.from-calc p { margin: 10px 0 0; font-weight: 700; }

.drop {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
    padding: 16px;
    border: 1.5px dashed #b8c7d4; border-radius: var(--r);
    background: var(--paper);
    transition: border-color .15s, background-color .15s;
}
.drop.is-over { border-color: var(--brand); background: #eef7fd; }
.drop__hint { color: var(--ink-2); font-size: .9375rem; }
.drop__rules { width: 100%; color: var(--muted); font-size: .8125rem; }
.drop__list { width: 100%; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.drop__list:empty { display: none; }
.drop__item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line-2); }
.drop__item img { width: 100%; height: 100%; object-fit: cover; }
.drop__item span { display: grid; place-items: center; height: 100%; padding: 6px; font-size: .6875rem; color: var(--muted); text-align: center; word-break: break-all; }
.drop__remove {
    position: absolute; top: 4px; right: 4px;
    width: 26px; height: 26px; border-radius: 8px;
    display: grid; place-items: center;
    border: 0; background: rgba(4, 26, 46, .72); color: #fff;
}

/* ---------- Страница отзывов ---------- */

.reviews--page { background: var(--white); padding-top: clamp(28px, 4vw, 48px); }
.reviews-page { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.reviews-page__list .review { background: var(--paper); box-shadow: none; }
.reviews-page__form {
    position: sticky; top: calc(var(--hdr-h) + 16px);
    padding: 28px; border-radius: var(--r-xl);
    background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pager__btn {
    display: inline-grid; place-items: center;
    min-width: 42px; height: 42px; padding: 0 10px;
    border-radius: 10px; border: 1.5px solid var(--line);
    color: var(--ink); text-decoration: none; font-weight: 600;
}
.pager__btn:hover { border-color: var(--brand); color: var(--brand-600); }
.pager__btn.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager__btn.is-disabled { opacity: .35; }
.pager__gap { padding: 0 6px; align-self: center; color: var(--muted); }

/* ---------- Тексты ---------- */

.legal { padding-block: clamp(28px, 4vw, 56px) var(--sec); }
.prose { max-width: 72ch; color: var(--ink-2); }
.prose p { margin-bottom: 1.1em; }

.error-page { padding-block: clamp(64px, 10vw, 140px); }
.error-page__in { max-width: 720px; }
.error-page__code {
    margin: 0 0 8px;
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(4rem, 3rem + 6vw, 8rem); line-height: 1;
    color: transparent; -webkit-text-stroke: 2px var(--brand);
}
.error-page__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

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

@media (max-width: 1180px) {
    .nav { display: none; }
    .hdr__burger { display: grid; }
    .hdr.is-open .nav {
        position: absolute; left: 0; right: 0; top: 100%;
        display: grid; gap: 2px; margin: 0;
        padding: 12px var(--gutter) 20px;
        background: var(--white);
        border-bottom: 1px solid var(--line-2);
        box-shadow: 0 24px 40px -24px rgba(6, 38, 63, .45);
        max-height: calc(100dvh - var(--hdr-h));
        overflow: auto;
    }
    .hdr.is-open .nav__link { padding: 14px 12px; font-size: 1.0625rem; }
    .hdr.is-open .nav__mobile-extra { display: grid; gap: 12px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line-2); }
    .nav__phone { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; }
    .hdr.is-open .hdr__burger .i-open { display: none; }
    .hdr.is-open .hdr__burger .i-close { display: block; }

    .calc__grid { grid-template-columns: minmax(0, 1fr) 360px; }
}

@media (max-width: 1024px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__title { max-width: 22ch; }
    .board { max-width: 560px; }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact:nth-child(3) { padding-left: 0; border-left: 0; }
    .fact:nth-child(n+3) { border-top: 1px solid var(--line); }

    .adv__grid, .faq__grid, .promo__grid { grid-template-columns: 1fr; }
    .adv__head, .faq__aside { position: static; }

    .calc__grid { grid-template-columns: 1fr; }
    .calc__panel { position: static; }

    .pk-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pk:nth-child(odd) { border-left: 0; }
    .pk:nth-child(n+3) { border-top: 1px solid var(--line); }
    .pk--featured { margin: 0; }
    .pk-biz { grid-template-columns: 1fr 1fr; }
    .pk-biz__intro { grid-column: 1 / -1; padding-bottom: 0; }
    .pk-biz__plan:first-of-type { border-left: 0; }

    .steps__list { grid-template-columns: 1fr; gap: 0; }
    .step:not(:last-child)::before { top: 56px; bottom: 6px; left: 23px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--brand) 0 10px, transparent 10px 16px); }
    .step { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; padding-bottom: 24px; }
    .step__node { grid-row: span 2; margin: 0; }

    .contacts__grid { grid-template-columns: 1fr; }
    .contacts__map { min-height: 340px; }

    .booking__grid { grid-template-columns: 1fr; }
    .reviews-page { grid-template-columns: 1fr; }
    .reviews-page__form { position: static; }

    .ftr__grid { grid-template-columns: 1fr 1fr; }
    .ftr__brand { grid-column: 1 / -1; }
}

/* плашка с суммой внизу экрана на телефоне и планшете */
.calc-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    display: none; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px;
    border-radius: 16px;
    background: var(--white); color: var(--ink);
    border: 1px solid var(--sky-200);
    box-shadow: var(--shadow-pop);
    visibility: hidden; opacity: 0; transform: translateY(16px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.calc-bar.is-visible { visibility: visible; opacity: 1; transform: none; }
.calc-bar__label { display: block; font-size: .75rem; color: var(--muted); }
.calc-bar__sum { font-weight: 800; font-size: 1.25rem; color: var(--brand-700); font-variant-numeric: tabular-nums; }
@media (max-width: 1024px) {
    .calc-bar { display: flex; }
}

@media (max-width: 760px) {
    :root { --hdr-h: 64px; }
    body { font-size: 16px; }
    .hdr__in { gap: 10px; }
    .logo__img { height: 38px; max-width: 132px; }
    .hdr__phone, .hdr__cta { display: none; }
    .hdr__call { display: grid; }
    .lang__btn { padding: 6px 8px; }
    .lang__btn > span { max-width: 4.5em; overflow: hidden; text-overflow: ellipsis; }

    .hero { padding-top: 32px; }
    .hero__actions .btn { width: 100%; }
    .board { padding: 18px; }
    .fact { padding: 18px 14px 20px 0; }
    .fact + .fact { padding-left: 14px; }
    .fact:nth-child(3) { padding-left: 0; }

    .adv__list { grid-template-columns: 1fr; }
    .adv-item, .adv-item:nth-child(even) { padding: 20px 0; border-left: 0; }

    .calc-item__main { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 14px 14px 14px 12px; }
    .calc-item__icon { display: none; }
    .calc-item__desc { display: none; }
    .calc-item.is-on .calc-item__desc { display: block; }
    .stepper { padding: 0 14px 14px 50px; }

    .pk-board { grid-template-columns: 1fr; border: 0; background: transparent; gap: 14px; }
    .pk, .pk + .pk { border: 1px solid var(--line) !important; border-radius: var(--r-xl); background: var(--white); }
    .pk.pk--featured { border: 2px solid var(--brand) !important; }
    .pk-biz { grid-template-columns: 1fr; }
    .pk-biz__plan { border-left: 0; border-top: 1px solid var(--line); }

    .promo__list { grid-template-columns: 1fr; }
    .promo__pics img { width: calc(50% - 7px); }

    .faq-item__a { padding-right: 0; }
    .contacts__list > div { grid-template-columns: 1fr; gap: 4px; }

    .field-row { grid-template-columns: 1fr; }
    .mode { grid-template-columns: 1fr; }
    .mini-steps { grid-template-columns: 1fr; }
    .cal { padding: 14px; }
    .cal__week, .cal__grid { gap: 4px; }

    .ftr__grid { grid-template-columns: 1fr; gap: 28px; }
    .ftr__langs { margin-left: 0; }

    .modal__body { padding: 22px; }
    .suggest { left: 12px; right: 12px; transform: none; width: auto; flex-wrap: wrap; }
}

@media (max-width: 420px) {
    .calc__phone-row { grid-template-columns: 1fr; }
    .time-chip { min-width: 60px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
    .hdr, .ftr, .calc__panel, .suggest, .hero__media { display: none !important; }
    body { color: #000; }
}

.cal.is-invalid { box-shadow: 0 0 0 3px var(--danger), var(--shadow); }
