/* ═══ Токены ═════════════════════════════════════════════════════════════ */

:root {
  --y:        #FFDB2B;   /* фирменный жёлтый */
  --y-dark:   #F0C800;
  --y-soft:   #FFF6D0;

  --ink:      #1B1B1B;
  --ink-2:    #3D3D3D;
  --ink-3:    #6B6B6B;
  --line:     #E4E4E4;
  --bg:       #FFFFFF;
  --bg-soft:  #F7F7F5;
  --dark:     #1E1E1E;
  --dark-2:   #292929;

  --r:    20px;   /* карточки */
  --r-sm: 13px;   /* кнопки, поля */
  --r-lg: clamp(22px, 3vw, 36px);   /* скругление тёмных секций */
  /* тени слегка тёплые — на светлом фоне не выглядят грязными */
  --shadow:    0 2px 12px rgba(62,48,24,.06);
  --shadow-lg: 0 18px 46px rgba(62,48,24,.14);

  --pad: clamp(16px, 4vw, 32px);
  --gap: clamp(16px, 2.4vw, 28px);
  --sec: clamp(52px, 7vw, 96px);
}

/* ═══ База ═══════════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font: 400 16px/1.6 Montserrat, "Segoe UI", system-ui, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(30px, 4.6vw, 54px); }
h2 { font-size: clamp(25px, 3.2vw, 40px); }
h3 { font-size: clamp(18px, 1.6vw, 22px); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite symbol { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid #0B69C7; outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--y); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

.container { width: min(1240px, 100% - var(--pad) * 2); margin-inline: auto; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: 2px solid transparent; border-radius: var(--r-sm);
  font-weight: 700; font-size: 15px; cursor: pointer; text-align: center;
  transition: background .18s, border-color .18s, transform .12s, color .18s;
}
.btn--y:hover, .btn--ghost:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--y { background: var(--y); border-color: var(--y); color: var(--ink); }
.btn--y:hover { background: var(--y-dark); border-color: var(--y-dark); }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--lg { padding: 17px 32px; font-size: 16px; border-radius: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

.sec--dark .btn--ghost { color: #fff; }
.sec--dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(0,0,0,.3); font-size: inherit; text-align: left;
}
.linkish:hover { text-decoration-color: currentColor; }


/* ═══ Шапка ══════════════════════════════════════════════════════════════ */

.hdr {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.hdr__bar {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 26px);
  min-height: 74px; padding-block: 10px;
}

.logo { display: flex; align-items: center; flex: none; }
.logo__img { height: 38px; width: auto; display: block; }
.logo--ftr .logo__img { height: 42px; }

.nav { display: flex; gap: clamp(10px, 1.4vw, 20px); margin-inline: auto; }
.nav a {
  font-size: 14.5px; font-weight: 600; padding: 6px 2px;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav a.is-active { border-bottom-color: var(--y); }

.hdr__meta { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.hdr__hours { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

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

.hero {
  position: relative;
  display: flex; align-items: center;
  /* Ровно один экран: высота окна минус залипающая шапка (74px) */
  min-height: max(560px, calc(100vh - 74px));
  padding-block: clamp(34px, 5vw, 62px);
  isolation: isolate;
}
/* Фон вынесен в ::after — так его можно медленно приближать, не трогая контент */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: url('../img/hero/hero-desktop.jpg');
  background-size: cover; background-position: 72% center; background-repeat: no-repeat;
  animation: heroZoom 26s ease-out forwards;
}
@supports (background-image: image-set(url('../img/hero/hero-desktop.webp') type('image/webp'))) {
  .hero::after { background-image: image-set(url('../img/hero/hero-desktop.webp') type('image/webp'), url('../img/hero/hero-desktop.jpg') type('image/jpeg')); }
}
/* Светлая вуаль слева — фото остаётся воздушным, тёмный текст читается */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255,255,255,.97) 0%,
    rgba(255,255,255,.94) 30%,
    rgba(255,255,255,.72) 46%,
    rgba(255,255,255,.24) 58%,
    rgba(255,255,255,0) 68%);
}
.hero__grid { position: relative; z-index: 1; display: block; }
.hero__copy { max-width: min(720px, 62%); }

/* Заголовок держим в две строки: размер подобран так, чтобы строка помещалась целиком */
.hero h1 { font-size: clamp(27px, 3.1vw, 42px); }
/* На узких экранах элемент работает как обычный пробел, на широких — как перенос строки */
.h1br { font-style: normal; }
@media (min-width: 1120px) { .h1br { display: block; height: 0; } }

/* Перенос внутри кнопок — только на мобильных */
.mbr { display: none; }

/* Кнопка «показать ещё» под свёрнутым списком */
.more-wrap { margin-top: 20px; text-align: center; }
.more-wrap[hidden] { display: none; }

.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 6px 14px;
  background: var(--y); border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
}
.hero__lead { margin: 20px 0 24px; font-size: clamp(16px, 1.35vw, 18px); color: var(--ink-2); max-width: 56ch; }

/* Ровная сетка 2×2 на всех экранах */
/* Сетка 2×2 внутри текстовой колонки. min-width:0 и отсутствие nowrap
   не дают пилюлям вылезти за правый край. */
/* Три пилюли в одну строку, каждая по ширине своего текста */
.usp { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.usp li {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-weight: 600; box-shadow: var(--shadow);
}
.usp .ic { width: 1.4em; height: 1.4em; }
.usp .ic { color: var(--y-dark); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.counters { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 46px); margin: 36px 0 0; }
.counters dt { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.counters dd { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* ═══ Полоса заявки под первым экраном ═══════════════════════════════════ */

.mbar {
  position: relative; isolation: isolate;
  color: #fff; padding-block: clamp(28px, 3.4vw, 40px);
  background-image: url('../img/hero/mbar-bg.jpg');
  background-size: cover; background-position: center;
}
@supports (background-image: image-set(url('../img/hero/mbar-bg.webp') type('image/webp'))) {
  .mbar { background-image: image-set(url('../img/hero/mbar-bg.webp') type('image/webp'), url('../img/hero/mbar-bg.jpg') type('image/jpeg')); }
}
.mbar::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,18,20,.66), rgba(18,18,20,.76));
}
.mbar__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(20px, 3vw, 46px); align-items: center; }
.mbar__title { font-size: clamp(20px, 2vw, 26px); }
.mbar__sub { margin: 8px 0 0; font-size: 14.5px; color: rgba(255,255,255,.72); }
.mbar__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.mbar__form .field > span { color: rgba(255,255,255,.72); }
.mbar__form input[type="text"], .mbar__form input[type="tel"] { background: #fff; }
.mbar__btn { white-space: nowrap; padding-block: 13px; }
.mbar__form .check { color: rgba(255,255,255,.6); }
.mbar__form .check .linkish { text-decoration-color: rgba(255,255,255,.4); }
.mbar__form .form__note { color: rgba(255,255,255,.55); }

/* ═══ Карточка / формы ═══════════════════════════════════════════════════ */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 2.4vw, 30px); box-shadow: var(--shadow-lg);
}
.card__sub { margin: 8px 0 20px; font-size: 14.5px; color: var(--ink-3); }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field > span b { color: #C4381F; }
.field input {
  width: 100%; padding: 16px 18px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder { color: #ADADAD; }
.field input:hover { border-color: #CFCFCF; }
.field input:focus { border-color: var(--y-dark); box-shadow: 0 0 0 4px rgba(255,219,43,.28); outline: none; }
.field.is-bad input { border-color: #C4381F; background: #FFF7F6; }
.field__err { font-size: 12.5px; color: #C4381F; font-weight: 600; }

.check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.check input { width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--y-dark); flex: none; }
.check.is-bad span { color: #C4381F; }
.check .linkish { font-size: inherit; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { margin: 0; font-size: 12.5px; color: var(--ink-3); text-align: center; }

.form__ok { display: grid; gap: 10px; place-items: center; text-align: center; padding: 18px 0; }
.form__ok b { font-size: 19px; }
.form__ok span { color: var(--ink-3); font-size: 14.5px; }
.form__ok .tick {
  width: 54px; height: 54px; display: grid; place-items: center;
  background: var(--y); border-radius: 50%; margin-bottom: 4px;
}
.form__ok .tick .ic { width: 28px; height: 28px; stroke-width: 2.6; }

/* ═══ Секции ═════════════════════════════════════════════════════════════ */

.sec { padding-block: var(--sec); }
.sec--soft { background: var(--bg-soft); }
.sec--dark { background: var(--dark); color: #fff; }

/* «Как проходит работа»: фон — замер на объекте */
#how {
  position: relative; isolation: isolate; color: #fff;
  background-image: url('../img/hero/how-bg.jpg');
  background-size: cover; background-position: center 38%;
}
@supports (background-image: image-set(url('../img/hero/how-bg.webp') type('image/webp'))) {
  #how { background-image: image-set(url('../img/hero/how-bg.webp') type('image/webp'), url('../img/hero/how-bg.jpg') type('image/jpeg')); }
}
#how::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(16,17,20,.88), rgba(16,17,20,.82));
}
#how .sec__head p { color: rgba(255,255,255,.75); }

/* Калькулятор: фото балкона на фоне под плотным затемнением */
#calc {
  position: relative; isolation: isolate;
  background-image: url('../img/hero/calc-bg.jpg');
  background-size: cover; background-position: center; background-attachment: fixed;
}
@supports (background-image: image-set(url('../img/hero/calc-bg.webp') type('image/webp'))) {
  #calc { background-image: image-set(url('../img/hero/calc-bg.webp') type('image/webp'), url('../img/hero/calc-bg.jpg') type('image/jpeg')); }
}
/* Кадр вечерний и сам по себе тёмный — затемнение лёгкое, чтобы не убить картинку */
#calc::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,18,20,.62), rgba(18,18,20,.72));
}
@media (max-width: 760px) { #calc { background-attachment: scroll; } }
.sec--dark .card { color: var(--ink); }

.sec__head { max-width: 66ch; margin: 0 auto clamp(28px, 3.4vw, 48px); text-align: center; }
.sec__head--left { margin-inline: 0; text-align: left; }
.sec__head p { margin: 14px 0 0; color: var(--ink-3); font-size: clamp(15px, 1.2vw, 17px); }
.sec--dark .sec__head p { color: rgba(255,255,255,.72); }
/* Подзаголовки услуг и работ — одной строкой; на узких экранах перенос возвращается */
#services .sec__head, #works .sec__head { max-width: none; }
@media (min-width: 1000px) {
  #services .sec__head p, #works .sec__head p { white-space: nowrap; }
}
.sec__foot { margin: 26px 0 0; text-align: center; color: var(--ink-3); font-size: 14.5px; }
.sec__cta { margin-top: clamp(28px, 3vw, 42px); text-align: center; }

/* ═══ Услуги ═════════════════════════════════════════════════════════════ */

/* 10 услуг — две строки по пять карточек */
.services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1180px) { .services { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px)  { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.srv {
  display: flex; flex-direction: column; gap: 11px; text-align: left; min-width: 0;
  padding: 20px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.srv:hover { border-color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* Главная услуга — выделена рамкой и бейджем */
.srv--hit { position: relative; border-color: var(--y); border-width: 2px; background: #FFFDF4; padding-top: 26px; }
.srv--hit:hover { border-color: var(--y-dark); }
.srv--hit .srv__ic { background: var(--y); }
.srv__badge {
  position: absolute; top: -11px; left: 16px;
  padding: 4px 11px; background: var(--y); border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .01em; white-space: nowrap;
}
.srv__ic {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--y-soft); border-radius: 12px; color: var(--ink);
}
.srv__ic .ic { width: 24px; height: 24px; }
.srv h3 { font-size: 16.5px; }
.srv__short { margin: 0; font-size: 13.5px; color: var(--ink-3); flex: 1; }
.srv__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.srv__price { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.srv__term { font-size: 12.5px; color: var(--ink-3); }
.srv__more { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.srv__more .ic { width: 16px; height: 16px; transition: transform .18s; }
.srv:hover .srv__more .ic { transform: translateX(4px); }

/* Содержимое модалки услуги */
.srvm__top { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.srvm__price { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0 18px; padding: 14px 18px; background: var(--y-soft); border-radius: var(--r-sm); }
.srvm__price b { font-size: 21px; letter-spacing: -.02em; }
.srvm__price span { font-size: 13.5px; color: var(--ink-2); align-self: center; }
.srvm p { color: var(--ink-2); font-size: 15px; }

.ticks { display: grid; gap: 10px; margin: 0 0 20px; }
.ticks li { position: relative; padding-left: 30px; font-size: 14.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px;
  background: var(--y); border-radius: 50%;
}
.ticks li::after {
  content: ""; position: absolute; left: 5.5px; top: 9px; width: 8px; height: 4px;
  border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg);
}
.sec--dark .ticks li::after { border-color: var(--ink); }

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

.calc__wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(26px, 4vw, 56px); align-items: center; }
.calc { padding: clamp(22px, 2.6vw, 34px); }
.calc__top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.calc__progress { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.calc__progress i { display: block; height: 100%; width: 20%; background: var(--y); border-radius: 999px; transition: width .3s ease; }
.calc__count { font-size: 12.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }

.calc h3 { margin-bottom: 18px; }
.calc__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 22px; }
.calc__opt {
  padding: 15px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: center;
  transition: border-color .16s, background .16s;
}
.calc__opt:hover { border-color: var(--ink); }
.calc__opt.is-on { border-color: var(--y-dark); background: var(--y-soft); }

.calc__nav { display: flex; gap: 10px; align-items: center; }
.calc__back { background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 10px 4px; }
.calc__back:hover { color: var(--ink); }

.calc__est { margin: 0 0 20px; padding: 16px 18px; background: var(--dark); color: #fff; border-radius: var(--r-sm); }
.calc__est b { display: block; font-size: clamp(23px, 2.4vw, 30px); letter-spacing: -.02em; color: var(--y); }
.calc__est span { font-size: 12.5px; color: rgba(255,255,255,.7); }
/* Вариант без цифры: заголовок мельче, текста больше */
.calc__est--text b { font-size: clamp(17px, 1.6vw, 20px); margin-bottom: 6px; }
.calc__est--text span { display: block; font-size: 13.5px; line-height: 1.55; }

.calc__sum { margin: 0 0 18px; font-size: 13.5px; color: var(--ink-3); }
.calc__sum b { color: var(--ink); font-weight: 600; }

.calc__ch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.calc__ch button {
  padding: 9px 16px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .16s, background .16s;
}
.calc__ch button.is-on { border-color: var(--y-dark); background: var(--y-soft); }

/* ═══ Портфолио ══════════════════════════════════════════════════════════ */

.filters { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: clamp(20px, 2.4vw, 32px); }
.filters button {
  padding: 10px 20px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .16s, background .16s;
}
.filters button:hover { border-color: var(--ink); }
.filters button.is-on { background: var(--y); border-color: var(--y); }

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: var(--gap); }
.work {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--bg-soft); border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 7;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work:hover img { transform: scale(1.05); }
.work figcaption {
  position: absolute; inset: auto 0 0 0; padding: 34px 16px 14px; text-align: left;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  color: #fff; font-size: 13.5px; font-weight: 600;
}
.works__more { margin-top: clamp(24px, 3vw, 36px); text-align: center; }
.works__more[hidden] { display: none; }

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

/* Девять пунктов — ровная сетка 3×3 */
.adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 900px) { .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adv__it { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.adv__ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--y); border-radius: 11px; }
.adv__ic .ic { width: 22px; height: 22px; }
.adv__it h3 { font-size: 16.5px; margin-bottom: 6px; }
.adv__it p { font-size: 14px; color: var(--ink-3); }

/* ═══ Этапы ══════════════════════════════════════════════════════════════ */

/* Этапы работы — карточки со «стеклянным» фоном и номером в круге */
.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--gap); position: relative; margin-top: 30px;
}
.step {
  position: relative; display: flex; flex-direction: column; padding: 40px 20px 24px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r); backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, transform .2s;
}
.step:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.28); transform: translateY(-3px); }

/* Номер шага — жёлтый круг, наполовину выступающий за верхний край карточки */
.step b {
  position: absolute; top: -21px; left: 20px;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--y); color: var(--ink); border-radius: 50%;
  font-size: 15px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.step h3 { font-size: 17px; margin-bottom: 8px; color: #fff; }
.step p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.78); margin-bottom: 14px; flex: 1; }

/* Короткая плашка снизу карточки: что человек получает на этом шаге */
.step__meta {
  align-self: flex-start; display: inline-block; padding: 5px 12px;
  background: rgba(255,219,43,.14); border: 1px solid rgba(255,219,43,.35);
  border-radius: 999px; color: var(--y);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}

@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px)  {
  .steps { grid-template-columns: 1fr; gap: 30px; }
}


/* ═══ Отзывы ═════════════════════════════════════════════════════════════ */

.ratings { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-bottom: clamp(26px, 3vw, 40px); }
.rating {
  display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 224px;
  padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
}
.rating__logo { height: 26px; width: auto; }
.rating__name { font-size: 15px; }
.rating__row { display: flex; align-items: center; gap: 10px; }
.rating__val { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.rating__stars { display: flex; gap: 2px; color: var(--y-dark); }
.rating__stars .ic { width: 14px; height: 14px; fill: var(--y); stroke: var(--y-dark); stroke-width: 1.2; }

.rev { position: relative; }
.rev__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr);
  gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px; scrollbar-width: thin;
}
.rev__track > * { scroll-snap-align: start; }
.rev__it { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--bg-soft); border-radius: var(--r); }
.rev__stars { display: flex; gap: 3px; }
.rev__stars .ic { width: 17px; height: 17px; fill: var(--y); stroke: var(--y-dark); stroke-width: 1.2; }
.rev__txt { margin: 0; font-size: 14.5px; color: var(--ink-2); flex: 1; }
.rev__who { display: flex; align-items: center; gap: 11px; }
.rev__ava { width: 46px; height: 46px; display: grid; place-items: center; background: var(--y); border-radius: 50%; font-weight: 800; font-size: 15px; flex: none; }
.rev__ava--img { object-fit: cover; display: block; }
.rev__who b { font-size: 14.5px; }

.rev__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--line); border-radius: 50%; cursor: pointer;
  box-shadow: var(--shadow-lg); transition: border-color .16s;
}
.rev__nav:hover { border-color: var(--ink); }
.rev__nav--prev { left: -14px; }
.rev__nav--prev .ic { transform: rotate(180deg); }
.rev__nav--next { right: -14px; }

/* ═══ О компании ═════════════════════════════════════════════════════════ */

/* ═══ О компании ═════════════════════════════════════════════════════════ */

.about { display: grid; grid-template-columns: 1.25fr .82fr; gap: clamp(26px, 4vw, 54px); align-items: stretch; }
.about h2 { margin-bottom: 20px; }
.about p { color: rgba(255,255,255,.78); font-size: clamp(15px, 1.2vw, 16.5px); }

/* Цитата — жёлтая полоса слева, крупнее основного текста */
.about__quote {
  margin: 24px 0 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--y);
  font-size: clamp(16px, 1.35vw, 18px); line-height: 1.55;
  color: #fff; font-style: italic;
}

/* Четыре факта карточками */
.about__facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-top: 28px;
}
.about__facts > div {
  padding: 16px 14px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13); border-radius: var(--r-sm);
}
.about__facts b { display: block; font-size: 22px; color: var(--y); letter-spacing: -.02em; margin-bottom: 3px; }
.about__facts span { font-size: 12.5px; line-height: 1.35; color: rgba(255,255,255,.66); display: block; }

/* География — чипы городов и кнопка */
.about__geo { margin-top: clamp(26px, 3vw, 36px); padding-top: clamp(22px, 2.6vw, 30px); border-top: 1px solid rgba(255,255,255,.14); }
.about__geo h3 { font-size: 17px; color: #fff; margin-bottom: 14px; }
.about__cities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.about__cities li {
  padding: 7px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  font-size: 13.5px; color: rgba(255,255,255,.85);
}
.about__cities li:last-child { border-style: dashed; color: rgba(255,255,255,.55); }

/* Портрет собственника — во всю высоту текстовой колонки */
.about__owner { margin: 0; position: relative; height: 100%; min-height: 420px; }
.about__owner picture, .about__owner img { height: 100%; }
.about__owner img {
  width: 100%; border-radius: var(--r);
  object-fit: cover; object-position: center 16%;
}
.about__owner figcaption {
  position: absolute; left: 16px; bottom: 16px;
  padding: 7px 14px; background: var(--y); color: var(--ink);
  border-radius: 999px; font-size: 13px; font-weight: 700;
}

/* ═══ FAQ ════════════════════════════════════════════════════════════════ */

/* Восемь вопросов в два столбца по четыре */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
.faq__it { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 20px 22px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: clamp(15.5px, 1.3vw, 17px); font-weight: 700; letter-spacing: -.01em;
}
.faq__q:hover { background: var(--bg-soft); }
.faq__sign { position: relative; width: 22px; height: 22px; flex: none; }
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform .22s;
}
.faq__sign::before { width: 14px; height: 2.5px; }
.faq__sign::after  { width: 2.5px; height: 14px; }
.faq__it.is-open .faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .26s ease; }
.faq__it.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 22px 22px; margin: 0; font-size: 14.5px; color: var(--ink-3); }


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

.ftr { background: var(--dark); color: rgba(255,255,255,.72); padding-block: clamp(40px, 5vw, 66px) 26px; font-size: 14px; }
.ftr__top { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.ftr h3 { font-size: 17px; color: #fff; margin-bottom: 14px; }
.ftr__about { margin: 18px 0 0; max-width: 36ch; font-size: 14px; line-height: 1.6; }

.ftr__info { display: grid; gap: 16px; }
.ftr__info li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.ftr__info .ic { width: 20px; height: 20px; color: var(--y); margin-top: 2px; }
.ftr__info b { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.ftr__info span { font-size: 13.5px; line-height: 1.5; }

.ftr__cta {
  padding: 24px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--r);
}
.ftr__cta p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.6; }

.ftr__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px;
  margin-top: clamp(30px, 4vw, 48px); padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px;
}
.ftr__bottom p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ftr__bottom .linkish { color: rgba(255,255,255,.72); text-decoration-color: rgba(255,255,255,.3); }
.ftr__bottom .linkish:hover { color: #fff; }

/* ═══ Док, модалки, лайтбокс, cookie ═════════════════════════════════════ */

.dock { display: none; }

.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: var(--pad); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(2px); border: 0; }
.modal__win {
  position: relative; width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: var(--r); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-lg);
}
.modal__x {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px;
  display: grid; place-items: center; background: var(--bg-soft); border: 0; border-radius: 50%; cursor: pointer;
}
.modal__x:hover { background: var(--y); }
.modal__body h2 { font-size: clamp(20px, 2vw, 26px); padding-right: 40px; }
.modal__body h3 { margin: 20px 0 10px; font-size: 16px; }
.legal { font-size: 14px; color: var(--ink-2); }
.legal p { margin-bottom: .9em; }
.legal ul { display: grid; gap: 7px; margin: 0 0 1em; }
.legal li { padding-left: 18px; position: relative; }
.legal li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }

.lbox { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; background: rgba(0,0,0,.92); padding: 56px 16px; }
.lbox[hidden] { display: none; }
.lbox__fig { margin: 0; display: grid; gap: 14px; justify-items: center; max-height: 100%; }
/* Исходники всего 500×700 — ограничиваем показ, чтобы фото не растягивалось и не мылило */
.lbox__fig img { max-height: 78vh; max-width: min(90vw, 640px); width: auto; border-radius: var(--r-sm); }
.lbox__fig figcaption { color: #fff; font-size: 14.5px; font-weight: 600; }
.lbox__x, .lbox__nav {
  position: absolute; width: 46px; height: 46px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 0; border-radius: 50%; color: #fff; cursor: pointer;
  transition: background .16s;
}
.lbox__x:hover, .lbox__nav:hover { background: var(--y); color: var(--ink); }
.lbox__x { top: 16px; right: 16px; }
.lbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lbox__nav--prev .ic { transform: rotate(180deg); }
.lbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

.cookie {
  position: fixed; z-index: 120; left: var(--pad); right: var(--pad); bottom: var(--pad);
  width: min(760px, calc(100% - var(--pad) * 2)); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 13px; color: var(--ink-3); flex: 1 1 320px; }

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

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; order: 5; }
  .hdr__bar { justify-content: space-between; }
  .hdr__meta { margin-left: auto; }

  .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 8px var(--pad) 18px; max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav.is-open a:last-child { border-bottom: 0; }
}

@media (max-width: 1024px) {
  .calc__wrap, .about { grid-template-columns: 1fr; }
  .about__owner, .about__owner picture, .about__owner img { height: auto; }
  .about__owner { max-width: 460px; min-height: 0; }
  .about__owner img { aspect-ratio: 3 / 4; }
  .about__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero::after { background-position: 76% center; }
  .hero__copy { max-width: 68%; }
  .hero::before {
    background: linear-gradient(90deg,
      rgba(255,255,255,.98) 0%, rgba(255,255,255,.95) 40%,
      rgba(255,255,255,.7) 58%, rgba(255,255,255,.15) 74%, rgba(255,255,255,0) 84%);
  }
  .mbar__inner { grid-template-columns: 1fr; }
  .calc__wrap { gap: 24px; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .rev__nav { display: none; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 74px; }
  .hdr__cta { display: none; }
  .hdr__hours { display: none; }
  .logo__img { height: 32px; }

  body { padding-bottom: 72px; }
  .dock {
    position: fixed; z-index: 110; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1.25fr; gap: 1px;
    background: var(--line); border-top: 1px solid var(--line);
  }
  .dock__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 15px 10px; background: #fff; border: 0; cursor: pointer;
    font-size: 14.5px; font-weight: 700;
  }
  .dock__btn--y { background: var(--y); }
  .cookie { bottom: 78px; }

  /* На мобильном фото уходит вниз отдельным кадром: текст поверх человека не читается */
  .hero {
    display: block; min-height: 0; padding-bottom: 0;
    background: linear-gradient(180deg, #fff, var(--bg-soft));
  }
  .hero::before, .hero::after { display: none; }
  .hero__copy { max-width: none; }
  .mbar__row { grid-template-columns: 1fr; }
  .mbar__btn { width: 100%; }

  .counters { gap: 22px; }
  .counters dt { font-size: 26px; }

  .services, .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv { grid-template-columns: 1fr; }
  .srv { padding: 18px 16px; }
  .srv--hit { padding-top: 26px; }           /* иначе бейдж наезжает на иконку */
  .srv h3 { font-size: 16px; }
  .srv__short { display: none; }
  .srv__foot { gap: 2px 8px; }
  .srv__price { font-size: 16px; }

  .mbr { display: inline; }

  /* Свёрнутые списки: видны только первые четыре карточки */
  .services.is-collapsed .srv:nth-child(n+5),
  .faq.is-collapsed .faq__it:nth-child(n+5) { display: none; }

  /* Кнопки и крупные элементы — во всю ширину, чтобы было удобно попадать пальцем */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .about__geo .btn, .sec__cta .btn, .ftr__cta .btn { width: 100%; }
  .usp { gap: 8px; }

  /* Первый экран: заголовок и лид плотнее */
  .hero h1 { font-size: clamp(26px, 7.4vw, 34px); }
  .hero__lead { font-size: 15.5px; margin-bottom: 22px; }
  .eyebrow { font-size: 11.5px; padding: 5px 12px; }

  /* Отзывы и рейтинги */
  .ratings { flex-direction: column; gap: 10px; }
  .rating { min-width: 0; width: 100%; flex-direction: row; justify-content: space-between; padding: 14px 16px; }
  .rating__logo { height: 22px; }
  .rev__track { grid-auto-columns: 86%; }
  .rev__it { padding: 20px; }

  /* О компании */
  .about__facts { gap: 10px; }
  .about__facts > div { padding: 14px 12px; }
  .about__facts b { font-size: 19px; }
  .about__quote { font-size: 16px; padding-left: 16px; }

  .ftr__top { grid-template-columns: 1fr; gap: 28px; }
  .ftr__cta { padding: 20px; }

  .lbox { padding: 60px 10px; }
  .modal__win { padding: 22px 18px; max-height: 92vh; }
  .modal__body h2 { font-size: 19px; }
  .calc { padding: 20px 16px; }
  .calc__opts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .calc__opt { padding: 13px 10px; font-size: 13.5px; }
  .step { padding: 34px 18px 22px; }

  /* Полоса заявки: заголовок и текст компактнее */
  .mbar__title { font-size: 20px; }
  .mbar__sub { font-size: 13.5px; }
  .mbar__inner { gap: 20px; }

  /* Города в блоке о компании — мельче, чтобы влезали в две-три строки */
  .about__cities { gap: 6px; }
  .about__cities li { font-size: 12.5px; padding: 6px 11px; }

  /* Фильтры работ прокручиваются вбок, а не переносятся кучей */
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { white-space: nowrap; flex: none; }

  /* Подвал и юридические ссылки */
  .ftr__bottom { flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
  .ftr__about { max-width: none; }

  /* Плашка cookie не должна занимать пол-экрана */
  .cookie { padding: 14px 16px; }
  .cookie p { font-size: 12.5px; }
}

@media (max-width: 420px) {
  .works { grid-template-columns: 1fr 1fr; gap: 10px; }
  .work figcaption { font-size: 12px; padding: 26px 10px 10px; }
  .usp li { font-size: 13.5px; padding: 11px 14px; }
  .calc__opts { grid-template-columns: 1fr; }
  .counters { gap: 16px; }
  .counters dt { font-size: 23px; }
  .counters dd { font-size: 12.5px; }
  .about__facts { grid-template-columns: 1fr; }
}

@media print {
  .hdr, .dock, .cookie, .modal, .lbox, .mbar__form, .rev__nav { display: none !important; }
}

/* ═══ Визуальный слой ════════════════════════════════════════════════════ */

/* Скруглённые тёмные секции — страница перестаёт быть стопкой прямоугольников */
@media (min-width: 761px) {
  .sec--dark, .mbar, #how { border-radius: var(--r-lg); }
}
#calc, #how, .mbar { overflow: hidden; }

/* Появление блоков при прокрутке */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Полоса прогресса чтения под шапкой */
.progress {
  position: absolute; left: 0; bottom: -1px; height: 3px; width: 0;
  background: var(--y); border-radius: 0 3px 3px 0;
  transition: width .1s linear; pointer-events: none;
}

/* Зум фотографий работ при наведении */
.work { overflow: hidden; }
.work img { transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.work:hover img, .work:focus-visible img { transform: scale(1.07); }

/* Медленное приближение фона первого экрана */
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }
