/* ТатЛес — дизайн-система.
   Палитра: хвоя, песок, янтарь. Плотно по данным, но свободно по воздуху. */

:root {
  --pine-900: #0f2a20;
  --pine-800: #14342a;
  --pine-700: #1c4636;
  --pine-600: #255843;
  --pine-100: #e6efe9;
  --sand-50: #fbf8f2;
  --sand-100: #f6f0e4;
  --sand-200: #ece2cf;
  --sand-300: #ddcdb0;
  --amber-600: #b06f1f;
  --amber-500: #c9822f;
  --amber-100: #fbeed9;
  --ink: #1b1a17;
  --ink-2: #4a463e;
  --ink-3: #777164;
  --line: #e4dccb;
  --white: #fff;
  --red: #b42318;
  --green: #067647;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 26, .06), 0 2px 8px rgba(20, 32, 26, .04);
  --shadow: 0 2px 6px rgba(20, 32, 26, .07), 0 12px 32px rgba(20, 32, 26, .07);
  --shadow-lg: 0 24px 64px rgba(20, 32, 26, .16);
  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand-50);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body > main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
a { color: var(--pine-700); text-decoration: none; }
a:hover { color: var(--amber-600); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
small { font-size: .82rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: clamp(40px, 6vw, 76px) 0; }
.section--tight { padding: clamp(28px, 4vw, 44px) 0; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  --bg: var(--pine-800); --fg: #fff; --bd: var(--pine-800);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 12px 20px; border: 1.5px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 600;
  font-size: .95rem; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-align: center; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn--amber { --bg: var(--amber-500); --bd: var(--amber-500); }
.btn--ghost { --bg: transparent; --fg: var(--pine-800); --bd: var(--sand-300); }
.btn--ghost:hover { --bg: var(--sand-100); color: var(--pine-800); }
.btn--light { --bg: #fff; --fg: var(--pine-800); --bd: #fff; }
.btn--block { width: 100%; white-space: normal; overflow-wrap: anywhere; }
.btn--sm { padding: 8px 14px; font-size: .86rem; }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,242,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 16px; min-height: 82px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--pine-800); }
.logo__img { width: 46px; height: 46px; object-fit: contain; flex: 0 0 auto; }

.logo__text b { display: block; font-size: 1.12rem; line-height: 1.1; letter-spacing: -.02em; }
.logo__text span { font-size: .72rem; color: var(--ink-3); letter-spacing: .02em; }

.header .logo__text b { font-size: 1.4rem; letter-spacing: -.045em; }
.header .logo__text span {
  display: block; margin-top: 3px; color: #555e52; font-size: .73rem; line-height: 1.35;
  letter-spacing: 0; text-wrap: balance;
}
.city-trigger {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0; min-height: 40px;
  padding: 2px 6px; border: 0; background: transparent; color: var(--pine-700);
  font: 600 .89rem/1.3 var(--font); cursor: pointer;
}
.city-trigger svg, .city-search svg { flex: none; }
.city-trigger span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-trigger:hover span { text-decoration: underline; text-underline-offset: 4px; }
.city-dialog {
  position: fixed; inset: 0; width: min(540px, calc(100% - 32px)); max-height: 85dvh;
  margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 22px;
  background: var(--sand-50); color: var(--ink); box-shadow: 0 26px 90px rgba(8,31,22,.24);
  overscroll-behavior: contain;
}
.city-dialog::backdrop { background: rgba(11,30,22,.47); backdrop-filter: blur(4px); }
html:has(.city-dialog[open]) { overflow: hidden; }
.city-dialog__body { padding: clamp(20px, 5vw, 36px); }
.city-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.city-dialog__heading h2 {
  margin: 0; color: var(--pine-800); font: 500 clamp(1.85rem, 5vw, 2.4rem)/1.12 Georgia, serif;
  letter-spacing: -.045em; outline: 0;
}
.city-close {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); color: var(--pine-700); cursor: pointer;
}
.city-close:hover { background: var(--sand-100); }
.city-search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; margin: 24px 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-3);
}
.city-search:focus-within { border-color: var(--pine-600); box-shadow: 0 0 0 2px var(--pine-100); }
.city-search input {
  width: 100%; min-width: 0; min-height: 46px; border: 0; outline: 0; background: transparent;
  color: var(--ink); font: inherit;
}
.city-options {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.city-options a {
  display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  color: var(--pine-800); overflow-wrap: anywhere;
}
.city-options a:hover, .city-options a:focus-visible, .city-options a[aria-current] {
  background: var(--pine-100); border-color: #b7cabe;
}
.city-options strong, .city-options small { display: block; }
.city-options strong { font-weight: 650; }
.city-options small { margin-top: 2px; color: var(--ink-3); font-size: .79rem; }
.city-options__mark { flex: none; font-size: 1.1rem; color: var(--pine-600); }
.city-empty { margin: 16px 0 0; color: var(--ink-2); }
@media (max-width: 480px) {
  .city-options { grid-template-columns: 1fr; }
  .header .logo { gap: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  .city-dialog[open] { animation: city-open .16s ease-out; }
  @keyframes city-open { from { opacity: 0; transform: translateY(6px); } }
}

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { padding: 9px 13px; border-radius: 9px; color: var(--ink-2); font-weight: 550; font-size: .93rem; }
.nav a:hover, .nav a.is-active { background: var(--sand-100); color: var(--pine-800); }
.header-contacts {
  display: grid; flex: none; grid-template-columns: auto auto; justify-items: start;
  align-items: center; gap: 3px 8px; padding: 8px 12px;
  border: 1px solid #d6e0d4; border-radius: 12px; background: #f0f4ed;
}
.header-contacts a { display: inline-flex; align-items: center; gap: 9px; line-height: 1.35; }
.header-contacts a img { flex: none; opacity: .66; }
.header-contacts__phone {
  grid-column: 1; grid-row: 1; color: var(--pine-900); font-size: 1.06rem;
  font-weight: 720; letter-spacing: -.025em; white-space: nowrap;
}
.header-contacts__email {
  grid-column: 1 / -1; grid-row: 2; padding-left: 1px; color: var(--pine-600); font-size: .85rem;
}
.header-contacts__hours {
  grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px; border-radius: 1em; background: #dceadd; color: #264f37;
  font-size: .68rem; line-height: 1.35; font-weight: 700;
}
.header-contacts__hours::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #388457; }
.header-contacts a:hover { color: var(--pine-800); text-decoration: underline; text-underline-offset: 3px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 1.3rem; cursor: pointer; }

/* ---------- Сетки карточек ---------- */
.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.contacts-grid .card { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .contacts-grid { grid-template-columns: minmax(0, 1fr); }
}

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card__img { aspect-ratio: 4 / 3; background: var(--sand-100); object-fit: cover; width: 100%; }
.card__img--on-white { height: auto; background: transparent; }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.card__meta { font-size: .82rem; color: var(--ink-3); }
.card__price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.card__price b { font-size: 1.22rem; color: var(--pine-800); }
.card__price span { font-size: .8rem; color: var(--ink-3); }
.card__old { text-decoration: line-through; color: var(--ink-3); font-size: .86rem; }

a.card { color: inherit; transition: box-shadow .15s, transform .15s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- Бейджи ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 650; padding: 4px 9px; border-radius: 999px; background: var(--sand-100); color: var(--ink-2); white-space: nowrap; }
.badge--green { background: #e6f4ec; color: var(--green); }
.badge--amber { background: var(--amber-100); color: var(--amber-600); }
.badge--red { background: #fbe9e7; color: var(--red); }
.badge--pine { background: var(--pine-100); color: var(--pine-700); }

/* ---------- Секции с заголовком ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 6px 0 0; color: var(--ink-3); max-width: 46em; }
.sec-head a { font-weight: 600; font-size: .92rem; }

/* ---------- Ходовые размеры ---------- */
.popular-sizes__groups { align-items: start; }
.popular-sizes__group h3 { font-size: 1.05rem; padding: 14px 16px; margin: 0; }
.popular-sizes__group ul { padding: 0; margin: 0; list-style: none; }
.popular-sizes__group li { border-top: 1px solid var(--line); }
.popular-sizes__row { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 16px; }
.popular-sizes__row:hover { background: var(--sand-100); }
.popular-sizes__row:focus-visible { outline: 2px solid var(--pine-600); outline-offset: -2px; }
.popular-sizes__row b { display: block; white-space: nowrap; font-size: .9rem; }
.popular-sizes__row small { display: block; font-size: .8rem; }
.popular-sizes__price { text-align: right; }

/* ---------- Роли ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role { display: block; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: inherit; transition: .15s; }
.role:hover { border-color: var(--pine-600); box-shadow: var(--shadow); transform: translateY(-2px); }
.role__icon { width: 42px; height: 42px; border-radius: 11px; background: var(--pine-100); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 12px; }
.role b { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.role span { font-size: .87rem; color: var(--ink-3); line-height: 1.45; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--sand-100); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 650; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #fdfbf6; }

/* ---------- Формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.input, .select, textarea.input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .12s, box-shadow .12s;
}
.select { text-overflow: ellipsis; }
@media (max-width: 980px), (pointer: coarse) {
  .input, .select, textarea.input { font-size: 1rem; }
}
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--pine-600); box-shadow: 0 0 0 3px rgba(37,88,67,.12); }
.input.is-invalid { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: .78rem; color: var(--ink-3); }
.counter { display: flex; align-items: stretch; }
.counter .input { border-radius: 0; text-align: center; }
.counter button { width: 44px; border: 1.5px solid var(--line); background: var(--sand-50); font-size: 1.1rem; cursor: pointer; color: var(--ink-2); }
.counter button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.counter button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; }

/* ---------- Блок экономии ---------- */
.saving { background: linear-gradient(150deg, var(--pine-800), var(--pine-600)); color: #eaf4ee; border-radius: var(--radius); padding: 26px; }
.saving h3 { color: #fff; }
.saving__rows { display: grid; gap: 6px; margin: 14px 0; font-size: .92rem; }
.saving__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.16); }
.saving__row--total { border-bottom: 0; font-weight: 700; font-size: 1.05rem; color: #fff; }
.saving__win { background: rgba(201,130,47,.2); border: 1px solid rgba(231,174,99,.4); border-radius: 10px; padding: 12px 14px; margin-top: 12px; }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.6fr .9fr; gap: 22px; align-items: start; }
.calc__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; }
.calc__row .field { margin: 0; }
.calc__row .field label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.calc__material { display: block; position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.calc__material-name {
  display: block; padding: 12px 36px 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  font: 400 1rem/1.55 var(--font); letter-spacing: normal; text-transform: none; overflow-wrap: anywhere;
}
.calc__material::after {
  content: ""; position: absolute; top: 50%; right: 16px; width: 6px; height: 6px;
  border: solid var(--ink-2); border-width: 0 1.5px 1.5px 0;
  transform: translateY(-75%) rotate(45deg); pointer-events: none;
}
.calc__material .select {
  position: absolute; inset: 0; min-width: 0; max-width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.calc__material:focus-within { box-shadow: 0 0 0 3px rgba(37,88,67,.12); }
.calc__material:focus-within .calc__material-name { border-color: var(--pine-600); }
.calc__results {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.calc__metrics { display: flex; flex-wrap: wrap; gap: 6px 20px; min-width: 0; margin: 0; }
.calc__metrics div { min-width: 0; }
.calc__metrics dt { color: var(--ink-3); font-size: .76rem; }
.calc__metrics dd {
  margin: 0; color: var(--pine-800); font-size: .95rem; font-weight: 700;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.calc__del { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-3); font-size: 1.1rem; }
.calc__del:hover { color: var(--red); border-color: #eebcb6; }
.summary { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.summary__line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: .92rem; }
.summary__line--big { font-size: 1.3rem; font-weight: 750; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line); }
.summary__line--big b { color: var(--pine-800); }

/* ---------- Уведомления ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
  background: var(--pine-900);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-width: 92vw;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.toast.is-open { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast--error { background: var(--red); }

/* ---------- Футер ---------- */
.footer { background: var(--pine-900); color: #b7ccbf; padding: 52px 0 28px; margin-top: 60px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer a { color: #b7ccbf; font-size: .9rem; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: #8ba797; }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: .82rem; color: var(--ink-3); padding: 16px 0 0; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--pine-700); }
.crumbs span { margin: 0 6px; color: var(--sand-300); }

/* ---------- Страница товара ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; padding: 24px 0 0; }
.product__img { width: 100%; height: auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.product__price { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 18px; }
.product__price b { font-size: 2rem; letter-spacing: -.02em; }
.product__spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin: 22px 0; }
.product__spec div { background: #fff; padding: 12px 14px; }
.product__spec:has(div:nth-child(odd):last-child)::after { content: ""; background: #fff; }
.product__spec dt { font-size: .74rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.product__spec dd { margin: 2px 0 0; font-weight: 650; }

/* ---------- Страница города ---------- */

/* ---------- Прочее ---------- */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; font-size: .95rem; }
.checklist li::before { content: "✓"; color: var(--green); font-weight: 800; flex: 0 0 auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step__n { width: 30px; height: 30px; border-radius: 50%; background: var(--pine-800); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; margin-bottom: 12px; }
.cta-band { background: var(--amber-100); border: 1px solid #f2d9b4; border-radius: var(--radius); padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .roles { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .summary { position: static; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 721px) and (max-width: 1140px) {
  .header .logo__text { max-width: 12rem; }
  .header .city-trigger { flex-shrink: 0; max-width: 9rem; }
}
@media (max-width: 1080px) {
  .header__in { gap: 10px; }
  .city-trigger { margin-left: auto; }
  .burger { flex: 0 0 44px; margin-left: 0; }
  .nav { display: none; }
  .burger { display: block; }
  .nav.is-open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 14px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    margin: 0; align-items: stretch;
  }
  .nav.is-open a { padding: 12px; }
}
@media (max-width: 720px) {
  .header__in {
    display: grid; grid-template-columns: minmax(0, 1fr) auto 40px;
    grid-template-areas: "brand brand menu" "city contacts contacts";
    gap: 5px 8px; padding: 8px 14px;
  }
  .header .logo { grid-area: brand; justify-self: start; gap: 8px; }
  .header .logo__img { width: 38px; height: 42px; }
  .header .logo__text span { font-size: .7rem; }
  .header .burger { grid-area: menu; width: 40px; height: 40px; }
  .header .city-trigger { grid-area: city; justify-self: start; max-width: 100%; margin: 0; padding: 0; }
  .header .city-trigger span { white-space: normal; text-align: left; }
  .header-contacts { grid-area: contacts; justify-self: end; padding: 5px 9px; gap: 1px 5px; border-radius: 9px; }
  .header-contacts a { gap: 5px; }
  .header-contacts__phone { grid-column: 1 / -1; font-size: .93rem; }
  .header-contacts__email { grid-column: 1; font-size: .8rem; }
  .header-contacts__hours { grid-row: 2; justify-self: end; }
}
@media (max-width: 760px) {


  .grid--4, .grid--3, .roles { grid-template-columns: 1fr; }
  .calc__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .product__spec { grid-template-columns: 1fr; }
}
