/* ГорВодоУчет - строгий вид в духе сайтов госуслуг (ТЗ от 23.10) с доработкой по референсу
   клиента gcur.ru (26.10): заголовок капсом, контурный водомер, заявка в одну строку,
   светло-голубые скруглённые карточки с иконками, блок аттестата, цены карточками.
   Белый фон, светло-серые секции, один сдержанный синий для кнопок и ссылок, красный
   только в логотипе и предупреждениях. Цвета взяты из логотипа клиента и приглушены.
   Без градиентов, теней, иллюстраций и анимаций при прокрутке. */

/* PT Sans (ParaType, лицензия OFL) лежит в проекте */
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/ptsans-400-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/ptsans-700-cyrillic.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/ptsans-400-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/ptsans-700-latin-ext.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/ptsans-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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;
}
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/ptsans-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  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 {
  /* Ритм начала внутренних страниц (одинаковый на всех, руководитель 06.11.2026): крошки → H1 и H1 → первый блок */
  --crumbs-gap: clamp(20px, 3vw, 36px);
  --h1-gap: clamp(16px, 2vw, 24px);
  --bg: #FFFFFF;
  --grey: #F3F4F6;
  --grey-2: #E6E8EB;
  --line: #D6DBE0;
  --line-strong: #9AA4AE;
  --ink: #1F2329;
  --ink-2: #4F5963;
  --blue: #2A5CA8;
  --blue-dark: #214A88;
  --blue-tint: #EDF2F9;
  --brand-blue: #3B6CC0;
  --red: #C62A23;

  --radius: 8px;
  --radius-lg: 16px;
  --blue-soft: #EEF3FA;
  --font: "PT Sans", Arial, "Helvetica Neue", sans-serif;
  --header-h: 80px;
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }

.link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  background: none;
}
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 1.0625rem; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--secondary { background: #fff; border-color: var(--blue); color: var(--blue); }
.btn--secondary:hover { background: var(--blue-tint); color: var(--blue-dark); }

/* ---- Шапка (ТЗ п. 3, блок 1): закреплена при прокрутке ---- */

.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__top { display: flex; align-items: center; gap: 16px; min-height: 68px; padding-block: 6px; }

/* Логотип - картинка от клиента с эмблемой целиком */
.logo { display: block; margin-right: auto; }
/* Шапка в одну строку - до 1200 px; на широком экране логотип крупнее, шапка с меню 157 px */
.logo__img { display: block; width: auto; height: 66px; }
@media (min-width: 1200px) { .logo__img { height: 76px; } }

.header-address { display: none; align-items: flex-start; gap: 8px; font-size: .875rem; line-height: 1.35; color: var(--ink-2); }
.header-address .icon { color: var(--brand-blue); margin-top: 1px; }
.header-address p, .nav__addresses { display: grid; }
.header-callback { display: none; }
.header-call {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--blue);
}
.nav-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff;
}

/* Меню: «Услуги» раскрывает список */
.nav { display: none; border-top: 1px solid var(--line); }
.nav__list a, .nav__sub-toggle {
  display: flex; align-items: center; gap: 6px; padding: 12px 10px;
  border: 0; background: none; color: var(--ink); font-size: .975rem; font-weight: 700; text-decoration: none;
}
.nav__list a:hover, .nav__sub-toggle:hover { color: var(--blue); }
/* Текущий раздел: страница раздела, статья в «Статьях», услуга в «Услугах» */
.nav__list a[aria-current], .nav__sub-toggle.is-current { color: var(--blue); }
.nav__sub-toggle .icon { transition: transform .2s; }
.nav__sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__sub { display: none; }
.nav__item--sub.is-open > .nav__sub { display: block; }
.nav__contacts { display: none; }

/* Узкие экраны: бургер раскрывает меню под шапкой */
@media (max-width: 1199px) {
  .nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100dvh - 68px); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav__inner { padding-block: 4px 20px; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list a, .nav__sub-toggle { width: 100%; padding: 14px 0; justify-content: space-between; font-size: 1.0625rem; }
  .nav__sub { padding-bottom: 8px; }
  .nav__sub a { padding: 10px 0 10px 16px; font-weight: 400; }
  .nav.is-open .nav__contacts { display: grid; gap: 4px; justify-items: start; margin-top: 18px; }
  .nav__hours, .nav__addresses { font-size: .9375rem; color: var(--ink-2); }
  .nav__addresses { margin-top: 6px; }
  .nav__contacts .btn { margin-top: 12px; }
}

@media (min-width: 768px) { .header-call { display: none; } }
@media (min-width: 1024px) { .header-callback { display: inline-flex; } }

/* Широкие экраны: две строки, меню во всю ширину, список услуг выпадает */
@media (min-width: 1200px) {
  :root { --header-h: 137px; }
  .site-header__top { min-height: 80px; gap: 28px; }
  .header-address { display: flex; }
  .nav { display: block; }
  .nav-toggle { display: none; }
  .nav__list { display: flex; gap: 4px; }
  .nav__list > li:first-child > a { padding-left: 0; }
  .nav__item--sub { position: relative; }
  .nav__sub {
    position: absolute; left: 0; top: 100%; z-index: 5; min-width: 280px; padding: 6px 0;
    border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  }
  .nav__sub a { padding: 10px 16px; font-weight: 400; }
  .nav__sub a:hover { background: var(--blue-soft); }
}
@media (min-width: 1200px) and (hover: hover) {
  .nav__item--sub:hover > .nav__sub { display: block; }
}

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

.hero { padding-block: clamp(24px, 4.5vw, 56px) clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; gap: 24px; align-items: center; }
.hero__title {
  font-size: clamp(1.9rem, 1.05rem + 3.6vw, 3.6rem); font-weight: 700; line-height: 1.04;
  text-transform: uppercase; letter-spacing: .005em; max-width: 16ch;
}
.hero__city { display: block; color: var(--brand-blue); }
.hero__sub { margin-top: 18px; max-width: 34em; font-size: clamp(1.0625rem, .98rem + .45vw, 1.3125rem); line-height: 1.45; }

/* Акция и кнопки звонка и WhatsApp крупно (клиент 09.11.2026): клиенты в основном старшего возраста. Сначала цена,
   под ней плашка акции (руководитель 09.11.2026) */
.hero__promo { margin-top: 8px; }
.hero__promo-label {
  display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: var(--radius);
  background: var(--red); color: #fff; font-size: clamp(1rem, .92rem + .4vw, 1.25rem); font-weight: 700;
}
.hero__promo-price {
  display: block; color: var(--red);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); font-weight: 700; line-height: 1.05;
}
.hero__promo + .hero__sub { margin-top: 14px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__actions .btn { flex: 1 1 auto; white-space: nowrap; }
.hero__actions .icon { width: 24px; height: 24px; flex: none; }
.btn--xl { min-height: 60px; padding: 0 24px; font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); }
.hero__rating { display: block; margin-top: 16px; border: 0; }

/* Размер плашек считается от ширины картинки (container query), а не окна: тексты плашек из админки
   бывают длинными, и на узком экране они иначе наезжают друг на друга */
.hero__visual { position: relative; width: min(100%, 520px); margin-inline: auto; container-type: inline-size; }
.hero__meter { width: 100%; height: auto; }
.hero__pill {
  position: absolute; padding: .45em .9em; border-radius: var(--radius);
  background: var(--blue); color: #fff; font-weight: 700; font-size: clamp(.6875rem, 3.4cqi, 1.125rem);
  text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.hero__pill--home { left: 2%; bottom: 20%; rotate: -8deg; }
.hero__pill--nodismount { right: 0; bottom: 4%; rotate: 6deg; background: var(--brand-blue); }
.hero__pill--time { right: 2%; top: 4%; rotate: 5deg; background: var(--blue-dark); }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
}
@media (max-width: 959px) {
  .hero__visual { width: min(86%, 420px); }
}
@media (max-width: 559px) {
  .hero__visual { width: 74%; }
  .hero__pill--home { bottom: 25%; }
}

/* Заявка в одну строку под первым экраном */
.quick-form { margin-top: clamp(24px, 4vw, 40px); padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--blue-soft); }
.quick-form__title { margin-bottom: 16px; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 700; }
.quick-form__row { display: grid; gap: 14px; align-items: end; }
.quick-form .field + .field { margin-top: 0; }
.quick-form .field input:not([type="checkbox"]), .quick-form .field select { max-width: none; }
.quick-form__row .field-error:empty { display: none; }
.quick-form > .field { margin-top: 14px; }
@media (min-width: 900px) {
  .quick-form__row { grid-template-columns: 1.2fr 1fr auto; }
  .quick-form__submit { align-self: start; margin-top: 27px; }
}

/* ---- Условия: светло-голубые карточки с контурными иконками ---- */

.features { display: grid; gap: 16px; }
.feature { padding: 26px 26px 28px; border-radius: var(--radius-lg); background: var(--blue-soft); }
.feature__icon { width: 48px; height: 48px; fill: none; stroke: var(--brand-blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature__title { margin-top: 16px; font-size: 1.1875rem; font-weight: 700; line-height: 1.25; }
.feature p { margin-top: 8px; color: var(--ink-2); }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .features--4 { grid-template-columns: repeat(4, 1fr); } }
.feature--white { background: #fff; }

/* Почему выбирают (сверх ТЗ, 05.11.2026): знаки - иконка в двойном круге, заголовок, подпись */
/* flex, а не grid: неполный последний ряд (5 знаков) встаёт по центру */
.seals { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 24px; text-align: center; }
.seals > .seal { flex: 0 1 100%; }
@media (min-width: 700px) { .seals > .seal { flex-basis: calc((100% - 24px) / 2); } }
@media (min-width: 1200px) { .seals > .seal { flex-basis: calc((100% - 48px) / 3); } }
.seal { display: grid; justify-items: center; align-content: start; gap: 8px; color: var(--ink-2); }
.seal__icon { display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 8px; border: 3px double var(--blue); border-radius: 50%; outline: 1px solid var(--blue); outline-offset: 4px; color: var(--blue); }
.seal__icon .icon { width: 40px; height: 40px; }
.seal__title { color: var(--ink); font-size: 1.125rem; font-weight: 700; line-height: 1.25; }

/* ---- Аттестат аккредитации ---- */

.accr { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
.accr__number { margin-top: 14px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 700; line-height: 1.05; color: var(--brand-blue); }
.accr__facts { margin-top: 18px; border-top: 1px solid var(--line); }
.accr__facts > div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.accr__facts dt { font-size: .875rem; color: var(--ink-2); }
.accr__facts dd { font-weight: 700; }
@media (min-width: 560px) { .accr__facts > div { grid-template-columns: 140px 1fr; gap: 16px; } }
.accr__text { margin: 16px 0 20px; color: var(--ink-2); max-width: 40em; }

/* ---- Цены карточками ---- */

.price-cards { display: grid; gap: 16px; }
.price-card { display: flex; flex-direction: column; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.price-card__title { font-size: 1.25rem; font-weight: 700; }
.price-card .price-table { margin-top: 14px; }
.price-card__list { display: grid; gap: 6px; margin-top: 16px; }
.price-card__list li { position: relative; padding-left: 22px; color: var(--ink-2); }
.price-card__list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--brand-blue); border-bottom: 2px solid var(--brand-blue); rotate: -45deg; }
.price-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.price-card__price { font-size: 1.375rem; font-weight: 700; color: var(--ink); }
.price-card__price span { display: block; font-size: .875rem; font-weight: 400; color: var(--ink-2); }
.price-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.price-card--main { border-color: var(--brand-blue); }
.price-card--main .price-card__price { font-size: 1.75rem; color: var(--brand-blue); }
@media (min-width: 900px) {
  .price-cards { grid-template-columns: 1.2fr 1fr; }
  .price-card--main { grid-row: span 3; }
}

.price-table { width: 100%; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 6px 0; border-bottom: 1px dotted var(--line-strong); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th { text-align: left; font-weight: 400; }
.price-table td { text-align: right; font-weight: 700; white-space: nowrap; }

/* ---- Про ФГИС «Аршин» ---- */

.arshin { display: grid; gap: 20px; align-items: start; }
.arshin__icon { width: 72px; height: 72px; fill: none; stroke: var(--brand-blue); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.arshin__text { margin-top: 14px; max-width: 46em; color: var(--ink-2); }
@media (min-width: 768px) { .arshin { grid-template-columns: auto 1fr; gap: 32px; } }

.prices__promo { margin-top: 16px; font-size: .9375rem; color: var(--ink-2); }

/* ---- Лайтбокс для изображений (аттестат, сертификаты, благодарности) ---- */

.lightbox { width: min(100% - 24px, 1100px); max-height: calc(100dvh - 24px); padding: 16px; border: 0; border-radius: var(--radius-lg); background: #fff; }
.lightbox::backdrop { background: rgba(31, 35, 41, .8); }
.lightbox__figure img { width: 100%; height: auto; max-height: calc(100dvh - 120px); object-fit: contain; }
.lightbox__figure figcaption { margin-top: 10px; padding-right: 48px; font-weight: 700; }
.lightbox__close { top: auto; bottom: 10px; }

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

.section { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.section--grey { background: var(--grey); }
.section-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }

/* ---- Слайдер благодарностей ---- */
.slider__nav { display: flex; gap: 8px; }
.slider__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--blue); cursor: pointer; }
.slider__btn:hover:not(:disabled) { border-color: var(--blue); }
.slider__btn:disabled { color: var(--line-strong); cursor: default; }
.slider__btn--prev .icon { transform: rotate(90deg); }
.slider__btn--next .icon { transform: rotate(-90deg); }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 16px) / 1.3); gap: 16px; margin: 0; padding: 0; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > li { scroll-snap-align: start; }
.slider__track:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (min-width: 600px) { .slider__track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (min-width: 900px) { .slider__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; } }
@media (min-width: 1100px) { .slider__track { grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; } }

/* ---- Сертификаты и благодарности: скан в рамке, подпись, лайтбокс ---- */
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .cert-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.doc-card { margin: 0; }
.doc-card a { display: block; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.doc-card a:hover { border-color: var(--blue); }
.doc-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.doc-card figcaption { margin-top: 10px; font-size: .9375rem; }
.section-more { margin-top: clamp(24px, 3vw, 32px); }
.section-title { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem); font-weight: 700; line-height: 1.2; }
.section-lead { margin-top: 12px; max-width: 46em; color: var(--ink-2); }

/* ---- Формы в стиле госформ ---- */

.field { min-width: 0; }

.field + .field { margin-top: 18px; }
.field__label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9375rem; }
.field__hint { margin-top: 6px; font-size: .875rem; color: var(--ink-2); }
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%; max-width: 480px; height: 48px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; font-size: 1rem;
}
.field textarea { display: block; height: auto; min-height: 112px; padding: 12px 14px; font: inherit; resize: vertical; }
.field select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F5963' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6.5 9.5l5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.field.is-invalid input:not([type="checkbox"]), .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }
.field.is-invalid .check__box { border-color: var(--red); }
.field-error { margin-top: 6px; font-size: .875rem; font-weight: 700; color: var(--red); }
.field-error:empty { display: none; }

.check { position: relative; display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; cursor: pointer; }
.check input { position: absolute; z-index: 1; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.check__box {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px;
  border: 1px solid var(--line-strong); border-radius: 2px; background: #fff;
}
.check__box svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.check input:checked + .check__box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Ошибка отправки заявки (сервер или сеть) и поле-ловушка для ботов */
.form-alert { margin-top: 14px; font-weight: 700; color: var(--red); }
.form-alert:empty { display: none; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Порядок оказания услуги: крупные тонкие цифры, как у референса ---- */

.steps { display: grid; gap: 16px; }
.steps__item { padding: 22px 24px; border-top: 2px solid var(--brand-blue); background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.steps__num { display: block; font-size: 3.5rem; font-weight: 400; line-height: 1; color: var(--brand-blue); }
.steps__title { margin-top: 12px; font-size: 1.125rem; font-weight: 700; }
.steps__item p { margin-top: 6px; color: var(--ink-2); }
.steps__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.steps__actions .btn { flex: 1 1 auto; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

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

.stars {
  display: inline-block; width: 100px; height: 20px; flex: none;
  background: linear-gradient(90deg, #E8A400 calc(var(--rating, 5) * 20%), var(--grey-2) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 5.96 6.56.95-4.75 4.63 1.12 6.54L12 17.5l-5.87 3.08 1.12-6.54L2.5 9.41l6.56-.95z'/%3E%3C/svg%3E") 0 0 / 20% 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 5.96 6.56.95-4.75 4.63 1.12 6.54L12 17.5l-5.87 3.08 1.12-6.54L2.5 9.41l6.56-.95z'/%3E%3C/svg%3E") 0 0 / 20% 100% repeat-x;
}
.stars--lg { width: 130px; height: 26px; }
.reviews__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.reviews__score { font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--blue); }
.reviews__meta { color: var(--ink-2); }
.reviews { display: grid; gap: 16px; }
@media (min-width: 600px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.review { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--blue-soft); font-weight: 700; color: var(--blue); }
.review__name { font-weight: 700; }
/* Длинный текст свёрнут до 4 строк, кнопка «Читать полностью» снимает ограничение */
.review__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; color: var(--ink-2); }
.review__text.is-open { display: block; overflow: visible; }
.review__toggle { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- Вопросы и ответы ---- */

.faq__grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .faq__grid { grid-template-columns: .8fr 1.2fr; gap: 48px; } }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; font-size: 1.0625rem; font-weight: 700; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--blue); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item summary:hover { color: var(--blue); }
.faq__answer { padding-bottom: 18px; max-width: 62ch; color: var(--ink-2); }
.faq__answer p + p { margin-top: 8px; }

/* ---- Повторная форма заявки (ТЗ п. 3, блок 14) ---- */

.section-head + .quick-form, .section--order .quick-form { margin-top: 0; }
.section--grey .quick-form { border: 1px solid var(--line); background: #fff; }

/* ---- Полезные статьи (ТЗ п. 3, блок 15) ---- */

.posts { display: grid; gap: 24px; }
@media (min-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; } }
.post { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
@media (min-width: 600px) { .post { grid-template-columns: 180px 1fr; gap: 20px; } }
.post__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.post__title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.post__title a { color: inherit; text-decoration: none; }
/* Кликабельна вся карточка */
.post__title a::after { content: ""; position: absolute; inset: 0; }
.post:hover .post__title a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post__title a:focus-visible { outline: none; }
.post:has(a:focus-visible) { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: var(--radius); }
.post__text { margin-top: 6px; color: var(--ink-2); }

/* ---- Обратная связь, рекламации (ТЗ п. 3, блок 16) ---- */

.feedback__text { margin: 12px 0 24px; max-width: 56ch; font-size: 1.0625rem; color: var(--ink-2); }

/* ---- География работ (ТЗ п. 3, блок 17) ---- */

/* Табы - текстом с линией под выбранным: кнопками они спорили с кнопками заявки (руководитель 03.11.2026) */
.tabs { display: flex; flex-wrap: wrap; gap: 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tabs__tab { min-height: 44px; margin-bottom: -1px; padding: 0; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.tabs__tab:hover { color: var(--blue); }
.tabs__tab[aria-selected="true"] { border-bottom-color: var(--blue); color: var(--ink); }
/* Панели в одной ячейке: блок высотой по длинному списку, подвал не прыгает при переключении (Victoria 03.11.2026).
   Скрытая панель занимает место, но не видна и не фокусируется */
.areas-panels { display: grid; }
.areas-panels > .areas { grid-area: 1 / 1; }
.areas-panels > .areas[hidden] { display: block !important; visibility: hidden; }
.areas:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.areas ul { columns: 2; column-gap: 24px; }
@media (min-width: 768px) { .areas ul { columns: 3; } }
@media (min-width: 1100px) { .areas ul { columns: 4; } }
.areas li { break-inside: avoid; padding: 5px 0; color: var(--ink-2); }
.areas a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Страница услуги (ТЗ п. 2.2, пункт 2) ---- */

.service-head { padding-block: clamp(32px, 5vw, 64px); border-top: 0; }
.service-head__title { max-width: 22ch; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 700; line-height: 1.1; }
.service-head__text { max-width: 46em; margin: var(--h1-gap) 0 28px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--ink-2); }
.service-head__text > * + * { margin-top: 12px; }
.service-head__text ul { padding-left: 1.2em; list-style: disc; }
.price-cards--single { max-width: 720px; }

/* ---- Страницы «О нас», «Контакты», «Отзывы», документы, политика, 404 (ТЗ п. 2.2) ---- */

/* «О нас»: ключевые цифры под текстом */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facts li { padding: 18px 18px 20px; border-radius: var(--radius-lg); background: var(--blue-soft); }
.facts__value { display: block; font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2.25rem); font-weight: 700; line-height: 1.1; color: var(--brand-blue); }
.facts__label { display: block; margin-top: 6px; font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 1024px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .facts li { padding: 22px 24px 24px; }
}

/* «Контакты»: под заголовком карта, ниже контакты и реквизиты, рядом форма «Перезвоните мне» */
.contacts { display: grid; gap: 32px; align-items: start; margin-top: clamp(28px, 4vw, 48px); }
.service-head__text + .contacts { margin-top: 0; }
@media (min-width: 900px) { .contacts { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; } }
.contacts__facts { border-top: 1px solid var(--line); }
.contacts__facts > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .contacts__facts > div { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; } }
.contacts__facts dt { font-size: .875rem; color: var(--ink-2); }
@media (min-width: 560px) { .contacts__facts dt { padding-top: 2px; } }
.contacts__facts dd { font-weight: 700; overflow-wrap: anywhere; }
.contacts__phone { font-size: 1.375rem; line-height: 1.2; color: var(--ink); text-decoration: none; white-space: nowrap; }
.contacts__phone:hover { color: var(--blue); }
.contacts__addresses { display: grid; gap: 8px; }
.contacts__place { display: block; font-size: .9375rem; font-weight: 400; color: var(--ink-2); }
.contacts__title { margin-top: 28px; font-size: 1.25rem; font-weight: 700; }
.contacts__requisites { display: grid; gap: 4px; margin-top: 10px; color: var(--ink-2); }
.callback-card { padding: clamp(20px, 3vw, 28px); border-radius: var(--radius-lg); background: var(--blue-soft); }
.callback-card__title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.callback-card__lead { margin: 8px 0 20px; color: var(--ink-2); }
.callback-card .field input:not([type="checkbox"]) { max-width: none; }
.callback-card [type="submit"] { margin-top: 20px; }
.contacts-map { display: block; width: 100%; height: clamp(360px, 40vw, 520px); margin-top: var(--h1-gap); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--grey-2); }

/* «Отзывы»: балл и кнопки «Оставить отзыв» над списком; от 1024 px - колонкой справа (блок gcur.ru ниже) */
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Текст обычной страницы (политика конфиденциальности) */
.service-head .entry { max-width: 46em; margin-top: var(--h1-gap); }
.service-head .entry > * + * { margin-top: 14px; }
.service-head .entry h2 { margin-top: 32px; font-size: 1.375rem; line-height: 1.25; }
.service-head .entry > :first-child { margin-top: 0; }
.service-head .entry h3 { margin-top: 24px; font-size: 1.1875rem; }
.service-head .entry ul, .service-head .entry ol { padding-left: 1.4em; }
.service-head .entry ul { list-style: disc; }
.service-head .entry ol { list-style: decimal; }
.service-head .entry li + li { margin-top: 6px; }

/* 404 */
.not-found__title { margin-top: 40px; font-size: 1.25rem; font-weight: 700; }
.not-found__links { display: grid; gap: 8px; margin-top: 12px; }
.not-found__links a { font-weight: 700; text-underline-offset: 3px; }

/* ---- Внутренние страницы по референсу gcur.ru: крошки, шапка услуги и района, «Отзывы»,
   «Сертификаты», статьи ---- */

/* Хлебные крошки над H1: шапка с ними начинается ближе к меню, H1 - с воздухом сверху */
.service-head:has(.breadcrumbs) { padding-top: clamp(16px, 2.5vw, 28px); }
.breadcrumbs { margin-bottom: var(--crumbs-gap); font-size: .875rem; line-height: 1.4; color: var(--ink-2); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "/"; content: "/" / ""; margin-inline: 8px; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* Шапка услуги и района - первый экран главной без плашек. H1 мельче, чем на главной: длинные
   названия районов капсом («в Красногвардейском районе») должны влезать в колонку */
.hero--inner { padding-block: clamp(16px, 2.5vw, 28px) clamp(32px, 5vw, 64px); }
/* Капслок того же кегля выглядит крупнее строчного H1 остальных страниц: кегль меньше (до 40 px), чтобы заголовки
   страниц были одного веса, а название услуги и город на десктопе укладывались в две строки (руководитель 06.11.2026) */
.hero--inner .hero__title { max-width: none; font-size: clamp(1.5rem, .8rem + 2.4vw, 2.5rem); }
/* Колонка текста - по верху, а не по центру водомера: иначе у короткого текста (район) H1 опускается ниже,
   чем на остальных страницах */
.hero--inner .hero__grid { align-items: start; }
@media (max-width: 959px) {
  .hero--inner .hero__visual { width: min(64%, 320px); }
}

/* «Отзывы»: от 1024 px список слева, балл и кнопки - узкой колонкой справа, прилипают под шапкой */
.reviews-page { display: grid; gap: 28px; margin-top: var(--h1-gap); }
@media (min-width: 1024px) {
  .reviews-page { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
  .reviews-page__aside {
    grid-column: 2; grid-row: 1; position: sticky; top: 102px;
    padding: 24px; border-radius: var(--radius-lg); background: var(--blue-soft);
  }
  .reviews-page__aside .reviews__summary { margin-top: 0; }
  .reviews-page__aside .page-actions { flex-direction: column; margin-top: 20px; }
  .reviews-page .reviews { grid-column: 1; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Шапка с меню во всю ширину выше (157 px); колонка шире, чтобы кнопка «Оставить отзыв…» шла в одну строку */
@media (min-width: 1200px) {
  .reviews-page { grid-template-columns: minmax(0, 1fr) 360px; }
  .reviews-page__aside { top: 160px; }
}

/* Список статей под заголовком */
.service-head .posts { margin-top: var(--h1-gap); }

/* «Сертификаты», «Благодарности»: документы под H1 на белом фоне (серый фон убран 06.11.2026) */
.docs-list { margin-top: var(--h1-gap); }
.docs-list > p { color: var(--ink-2); }

/* ---- Подвал (ТЗ п. 3, блок 18) ---- */

/* Светлый подвал (Victoria 03.11.2026): у эмблемы белый фон, на белом подвале она без плашки */
.site-footer { padding-block: 48px 24px; border-top: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-size: .9375rem; }
.site-footer a { color: var(--ink); }
.site-footer__grid { display: grid; gap: 28px; }
/* Блок шириной с логотип, кнопка заявки растягивается на всю его ширину */
.site-footer__brand { display: grid; gap: 18px; align-content: start; width: fit-content; }
.logo--footer .logo__img { height: 132px; }
.site-footer__title { margin-bottom: 12px; font-size: 1rem; font-weight: 700; color: var(--ink); }
.site-footer__list { display: grid; gap: 8px; }
/* Строка реквизитов, под ней - ссылки на документы: в одну строку с реквизитами три ссылки не помещаются */
.site-footer__bottom { position: relative; display: grid; gap: 12px; margin-top: 36px; padding-top: 20px; font-size: .875rem; }
/* линия по ширине содержимого, без внутренних отступов контейнера */
.site-footer__bottom::before { content: ""; position: absolute; top: 0; left: clamp(16px, 4vw, 32px); right: clamp(16px, 4vw, 32px); border-top: 1px solid var(--line); }
.site-footer__docs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr .8fr 1fr; } }

/* ---- Попапы ---- */

.modal {
  width: min(100% - 32px, 460px); padding: 32px 28px 28px;
  border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--ink);
}
.modal::backdrop { background: rgba(31, 35, 41, .55); }
.modal__close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: var(--radius); background: transparent; color: var(--ink-2);
}
.modal__close:hover { background: var(--grey); color: var(--ink); }
.modal__title { padding-right: 40px; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.modal__lead { margin: 8px 0 20px; color: var(--ink-2); }
.modal .field + .field { margin-top: 16px; }
.modal .field input:not([type="checkbox"]) { max-width: none; }
.modal [type="submit"] { margin-top: 20px; }
.btn--block { width: 100%; }

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

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
}
.dock__btn {
  font: inherit; cursor: pointer; background: none;
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px;
  border: 1px solid var(--blue); border-radius: var(--radius); color: var(--blue);
  font-weight: 700; text-decoration: none;
}
.dock__btn--primary { background: var(--blue); color: #fff; }
.dock__btn .icon { width: 18px; height: 18px; }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .dock { display: none; } body { padding-bottom: 0; } }

/* ---- Подсказка для ссылок на будущие страницы ---- */

.toast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 60;
  translate: -50% 0; width: max-content; max-width: calc(100vw - 32px);
  padding: 10px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: .9375rem;
}
@media (min-width: 768px) { .toast { bottom: 24px; } }

/* ---- Плашка cookie: на телефоне - над нижней панелью ---- */

.cookie-notice {
  position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 14px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: .9375rem;
}
.cookie-notice p { flex: 1 1 240px; }
.cookie-notice a { color: #fff; text-underline-offset: 3px; }
.cookie-notice :focus-visible { outline-color: #9DBBEA; }
@media (min-width: 768px) { .cookie-notice { left: 24px; right: auto; bottom: 24px; max-width: 600px; } }

.nowrap { white-space: nowrap; }
.section-lead a { white-space: nowrap; }
