/* Paredes Direitas — сайт ремонтной компании.
   Идея: строительный уровень и лазерная линия. Штукатурный белый, бетонные серые поля, графитовый текст;
   красный лазер — только тонкие линии и мелкие метки. Всё прямоугольное и выровнено по сетке из четырёх колонок,
   линии сетки видны в промежутках между колонками. */
:root {
  --plaster: #F7F6F2;
  --field: #E7E5DF;
  --concrete: #C9C8C2;
  --ink: #23262A;
  --ink-2: #5B5E62;
  --laser: #E5261F;
  --laser-deep: #B31A14;
  --on-dark-2: #B9B9B4;
  --edge: #8E8F8B;
  --rule: #D9D7D0;
  --head: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Albert Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --pad: clamp(18px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plaster); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { min-width: 0; padding: 0; border: 0; }
legend { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--head); font-optical-sizing: auto; overflow-wrap: break-word; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.3vw, 4.6rem); font-weight: 800; font-stretch: 75%; line-height: .98; letter-spacing: -.012em; }
h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 700; font-stretch: 80%; line-height: 1.04; letter-spacing: -.008em; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 88%; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--plaster); }
.skip:focus { left: 12px; top: 12px; }

/* полоса «это демо» (общая для всех демо-сайтов студии) */
.demobar { background: #000; color: #fff; font: 500 .86rem/1.3 system-ui, sans-serif; }
.demobar__in { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding-block: 7px; }
.demobar a { color: #fff; }
.demobar__back:hover { text-decoration: underline; }
.demobar__txt { flex: 1 1 14em; opacity: .75; }
.demobar__cta { padding: 6px 14px; border-radius: 999px; background: #17D878; color: #000 !important; font-weight: 700; white-space: nowrap; }
.demobar :focus-visible { outline-color: #fff; }
html.embedded .demobar { display: none; }

/* кнопки и ссылки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--plaster); font: 600 1rem/1.2 var(--text); text-align: center; cursor: pointer; }
.btn:hover { background: transparent; color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--plaster); }
.btn--light { border-color: var(--plaster); background: var(--plaster); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--plaster); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.more { display: inline-flex; align-items: flex-end; min-height: 44px; padding-bottom: 4px; border-bottom: 2px solid currentColor; font-weight: 600; }
.more:hover { border-bottom-color: var(--laser); }

/* шапка */
.top { position: sticky; top: 0; z-index: 40; background: var(--plaster); border-bottom: 1px solid var(--concrete); }
.top__in { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 800 1.3125rem/1 var(--head); font-stretch: 78%; white-space: nowrap; }
.logo__mark { flex: none; }
.menu { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.menu a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: .9875rem; font-weight: 500; }
.menu a:hover::after, .menu a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 7px; height: 2px; background: var(--ink); }
.menu a[aria-current]::after { background: var(--laser); }
.menu .menu__cta { margin-left: 10px; padding: 0 18px; border: 2px solid var(--ink); background: var(--ink); color: var(--plaster); font-weight: 600; }
.menu a.menu__cta::after { content: none; }
.menu .menu__cta:hover { background: transparent; color: var(--ink); }
.menu .menu__cta[aria-current] { box-shadow: 0 4px 0 var(--plaster), 0 6px 0 var(--laser); }
.menu .menu__tel { display: none; }
.top__tel { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.top__tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.langs { display: flex; flex: none; border: 1px solid var(--concrete); }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ink-2); font-size: .875rem; font-weight: 600; }
.langs a:hover { color: var(--ink); }
.langs a[aria-current] { background: var(--ink); color: var(--plaster); }
.burger { display: none; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer; }

/* лазерная линия и пузырёк уровня */
.laser { position: relative; z-index: 2; height: 0; }
.laser__line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--laser); transform-origin: left center; }
.vial { display: block; }

/* первый экран */
.mast { position: relative; display: grid; grid-template-columns: minmax(var(--pad), 1fr) minmax(0, 560px) minmax(0, 560px) minmax(var(--pad), 1fr); grid-template-rows: 1fr 0 auto; min-height: 560px; }
.mast__plumb { grid-column: 2; grid-row: 1 / 4; justify-self: start; width: 1px; margin-left: -20px; background: var(--rule); }
.mast__photo { position: relative; grid-column: 3 / 5; grid-row: 1 / 4; min-height: 0; }
.mast__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mast__photo figcaption { position: absolute; left: 0; bottom: 0; max-width: calc(100% - 24px); padding: 9px 14px; background: var(--plaster); font-size: .8125rem; line-height: 1.4; }
.mast__photo figcaption a { border-bottom: 1px solid var(--ink); }
.mast__photo figcaption a:hover { border-bottom-color: var(--laser); }
.mast__top { position: relative; z-index: 3; grid-column: 2; grid-row: 1; align-self: end; padding: clamp(40px, 6vw, 76px) 40px 0 0; }
.mast__where { margin-bottom: 22px; color: var(--ink-2); font-size: 1rem; font-weight: 500; }
.mast h1, .phead h1 { margin-bottom: -.12em; }
@supports (text-box-trim: trim-end) {
  .mast h1, .phead h1 { margin-bottom: 0; text-box-trim: trim-end; text-box-edge: text alphabetic; }
}
.mast .laser { grid-column: 1 / -1; grid-row: 2; }
.mast .laser__line { animation: laser-draw 1.25s cubic-bezier(.3, .1, .1, 1) .2s both; }
.mast__vial { z-index: 4; grid-column: 3; grid-row: 2; justify-self: start; height: 0; }
.mast__vial .vial { margin-top: 1px; transform: translate(-50%, -50%); }
.mast__vial .vial__bubble { animation: bubble-settle 1.1s cubic-bezier(.3, 1.5, .5, 1) 1.15s both; }
.mast__bot { grid-column: 2; grid-row: 3; padding: 30px 40px clamp(40px, 6vw, 72px) 0; }
.mast__sub { max-width: 31em; font-size: 1.125rem; line-height: 1.55; }
.mast__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@keyframes laser-draw { from { transform: scaleX(0); } }
@keyframes bubble-settle { from { transform: translateX(-13px); } }
html.embedded .mast .laser__line, html.embedded .mast__vial .vial__bubble { animation: none; }

/* шапка внутренних страниц */
.phead { padding-top: clamp(40px, 6vw, 72px); }
.phead h1 { position: relative; z-index: 3; }
.laser__end { position: relative; z-index: 4; display: flex; justify-content: flex-end; height: 0; }
.laser__end .vial { margin-top: 1px; transform: translateY(-50%); }
.phead__p { max-width: 62ch; padding-block: 28px clamp(40px, 5vw, 64px); font-size: 1.125rem; line-height: 1.55; }

/* полосы и сетка из четырёх колонок */
.band { padding-block: clamp(56px, 7.5vw, 104px); }
.band--tight { padding-block: 0 clamp(48px, 6vw, 80px); }
.band--after-head { padding-top: 0; }
.band--field { --rule: #C9C8C2; background: var(--field); }
.band--field.band--after-head { padding-top: clamp(40px, 5vw, 64px); }
.band--concrete { --rule: #AEADA7; --ink-2: #3F4246; background: var(--concrete); }
.band--dark { --rule: #3F4349; --ink-2: var(--on-dark-2); background: var(--ink); color: var(--plaster); }
.band--dark :focus-visible { outline-color: var(--plaster); }
.band__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 36px; }
.q { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.q > * { position: relative; min-width: 0; }
.q > *::before { content: ""; position: absolute; left: -20px; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.s2 { grid-column: span 2; }
.s3 { grid-column: span 3; }
.lead p { margin-top: 16px; color: var(--ink-2); font-size: 1rem; }
.lead .more, .lead .btn { margin-top: 20px; }
.lead--wide p { max-width: 56ch; font-size: 1.0625rem; }
.lead__ph { margin-top: 26px; }
.endbtn { display: flex; align-items: flex-end; }

/* три обязательства */
.vows > * { padding-top: clamp(36px, 4.5vw, 56px); }
.vows__h { font-size: 1.375rem; font-stretch: 85%; line-height: 1.12; }
.vows h3 { margin-bottom: 10px; }
.vows p { color: var(--ink-2); font-size: 1rem; }

/* таблицы */
.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tbl th, .tbl td { padding: 14px 20px 14px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; font-weight: 400; }
.tbl thead th { padding-block: 0 10px; border-bottom: 2px solid var(--ink); color: var(--ink-2); font-size: .875rem; font-weight: 500; }
.tbl tbody th { font: 700 1.125rem/1.25 var(--head); font-stretch: 88%; }
.tbl .num { padding-right: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl td.num { font-weight: 600; }
.tbl a { border-bottom: 1px solid currentColor; }
.tbl a:hover { border-bottom-color: var(--laser); }
.tbl--svc tbody th { width: 24%; }
.tbl--pay tbody th { width: 14%; }
.tbl--people th { width: 24%; }
.tbl--people td:nth-child(2) { width: 26%; font-weight: 600; }
.tbl--people tr:first-child th, .tbl--people tr:first-child td { border-top: 2px solid var(--ink); }

/* график работ */
.cal__head { align-items: end; }
.cal__head > *::before { display: none; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--plaster); }
.seg__btn { display: flex; flex-direction: column; gap: 3px; min-height: 64px; padding: 11px 14px; border: 0; border-left: 1px solid var(--plaster); border-radius: 0; background: transparent; color: var(--plaster); text-align: left; cursor: pointer; }
.seg__btn:first-child { border-left: 0; }
.seg__btn b { font: 700 1.0625rem/1.1 var(--head); font-stretch: 85%; }
.seg__btn span { color: var(--on-dark-2); font-size: .875rem; line-height: 1.2; }
.seg__btn:hover { background: #2F3338; }
.seg__btn[aria-pressed="true"] { background: var(--plaster); color: var(--ink); }
.seg__btn[aria-pressed="true"] span { color: #5B5E62; }
.seg__btn:focus-visible { outline-offset: -5px; }
.seg__btn[aria-pressed="true"]:focus-visible { outline-color: var(--ink); }
.cal { margin-top: 40px; }
.gantt__sum { max-width: 72ch; margin-bottom: 22px; color: var(--on-dark-2); }
.gantt__scroll { max-width: 100%; overflow-x: auto; border-top: 2px solid var(--plaster); }
.gantt__in { --name: 250px; --uw: 34px; position: relative; min-width: calc(var(--name) + var(--u) * var(--uw)); }
.gantt__in::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: var(--laser); }
.gantt__row { display: grid; grid-template-columns: var(--name) minmax(0, 1fr); min-height: 52px; border-bottom: 1px solid var(--rule); }
.gantt__name { position: sticky; left: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 7px 14px 7px 0; background: var(--ink); }
.gantt__name b { font-size: .9375rem; font-weight: 600; line-height: 1.25; }
.gantt__name small { color: var(--on-dark-2); font-size: .8125rem; line-height: 1.3; }
.gantt__track { display: grid; grid-template-columns: repeat(var(--u), minmax(0, 1fr)); align-items: center; background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px), linear-gradient(to right, #2D3035 1px, transparent 1px); background-size: calc(100% / var(--w)) 100%, calc(100% / var(--u)) 100%; }
.gantt__bar { grid-row: 1; height: 20px; background: var(--plaster); transform-origin: left center; }
.gantt__bar--wait { background: repeating-linear-gradient(135deg, #8E908E 0 1.5px, transparent 1.5px 6px); box-shadow: inset 0 0 0 1px #8E908E; }
.gantt__tick { grid-row: 1; justify-self: end; width: 8px; height: 8px; margin-right: 7px; background: var(--plaster); }
.gantt__row--head { min-height: 38px; }
.gantt__row--head .gantt__name, .gantt__weeks span { color: var(--on-dark-2); font-size: .8125rem; }
.gantt__row--head .gantt__track { background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px); background-size: calc(100% / var(--w)) 100%; }
.gantt__weeks span { padding-left: 8px; white-space: nowrap; }
.gantt__row--check { border-bottom: 0; }
.gantt.is-drawing .gantt__bar, .gantt.is-drawing .gantt__tick { animation: bar-grow .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes bar-grow { from { transform: scaleX(0); } }
.cal__legend { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 22px; color: var(--on-dark-2); font-size: .875rem; }
.cal__legend li { display: flex; align-items: center; gap: 10px; }
.key { flex: none; width: 28px; height: 12px; }
.key--work { background: var(--plaster); }
.key--wait { background: repeating-linear-gradient(135deg, #8E908E 0 1.5px, transparent 1.5px 6px); box-shadow: inset 0 0 0 1px #8E908E; }
.key--end { width: 2px; height: 18px; margin-inline: 13px; background: var(--laser); }
.cal__note { margin-top: 12px; color: var(--on-dark-2); font-size: .875rem; }

/* проекты на главной */
.work__ph { display: block; height: 380px; }
.work__ph img { width: 100%; height: 100%; object-fit: cover; }
.work h3 { margin: 16px 0 12px; }
.work h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.facts > div { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--rule); font-size: .9375rem; }
.facts dt { color: var(--ink-2); }
.facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }

/* оплата по этапам */
.paybar { display: flex; height: 46px; margin-bottom: 30px; border: 2px solid var(--ink); }
.paybar span { display: flex; flex: 0 0 0; align-items: center; min-width: 0; padding-left: 9px; border-left: 2px solid var(--ink); overflow: hidden; white-space: nowrap; }
.paybar span:first-child { border-left: 0; }
.paybar span:nth-child(odd) { background: var(--plaster); }
.paybar b { font: 700 .9375rem/1 var(--head); font-stretch: 88%; }

/* гарантия */
.war__item + .war__item { margin-top: 30px; }
.war__item h3 { margin-bottom: 8px; font-size: 1.125rem; }
.war__item p { color: var(--ink-2); font-size: 1rem; }
.war__ph img { width: 100%; }

/* контактные данные списком */
.info > div { padding: 11px 0; border-top: 1px solid var(--rule); }
.info > div:first-child { border-top: 2px solid var(--ink); }
.info dt { color: var(--ink-2); font-size: .875rem; }
.info dd { font-weight: 600; overflow-wrap: anywhere; }
.info dd.info__small { font-size: .9375rem; font-weight: 400; line-height: 1.5; }
.info a { border-bottom: 1px solid currentColor; }
.info a:hover { border-bottom-color: var(--laser); }

/* листы услуг */
.sheet { padding-block: clamp(40px, 5vw, 68px); border-bottom: 1px solid var(--concrete); }
.sheet__id p { margin-top: 12px; color: var(--ink-2); font-size: 1rem; }
.sheet__ph { margin-top: 22px; }
.sheet__ph img { width: 100%; }
.sheet h3 { margin-bottom: 14px; font: 700 1rem/1.3 var(--text); }
.ticks li { position: relative; padding-left: 20px; font-size: .9375rem; line-height: 1.45; }
.ticks li + li { margin-top: 9px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; background: var(--ink); }
.ticks--no li { color: var(--ink-2); }
.ticks--no li::before { top: .68em; width: 9px; height: 2px; background: var(--ink-2); }
.lead .ticks { margin-top: 20px; }
.sheet__num .more { margin-top: 8px; }

/* страница проектов */
.filter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.filter__set { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 500 .9375rem/1.2 var(--text); cursor: pointer; }
.chip span { margin-left: 4px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--field); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--plaster); }
.chip[aria-pressed="true"] span { color: var(--on-dark-2); }
.filter__count { color: var(--ink-2); font-size: .9375rem; }
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 40px; }
.case { min-width: 0; scroll-margin-top: 96px; }
.case.is-in { animation: case-in .28s ease-out both; }
@keyframes case-in { from { opacity: 0; } }
.case__ph img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.case__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 40px; margin-top: 20px; }
.case h2 { margin-bottom: 14px; font-size: 1.5rem; }
.case__note h3 { margin-bottom: 8px; font: 700 1rem/1.3 var(--text); }
.case__note p { color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }

/* калькулятор */
.est { align-items: start; }
.est__set + .est__set { margin-top: 36px; }
.est__set legend, .est__legend { display: block; margin-bottom: 14px; font: 700 1.25rem/1.15 var(--head); font-stretch: 88%; }
.picks { display: grid; gap: 10px; }
.picks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.picks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick__box { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 76px; padding: 14px 16px; border: 1px solid var(--edge); background: #fff; }
.pick__box b { font-weight: 600; line-height: 1.25; }
.pick__box small { color: var(--ink-2); font-size: .875rem; line-height: 1.35; }
.pick:hover .pick__box { border-color: var(--ink); }
.pick input:checked + .pick__box { border-color: var(--ink); background: var(--ink); color: var(--plaster); }
.pick input:checked + .pick__box small { color: var(--concrete); }
.pick input:focus-visible + .pick__box { outline: 2px solid var(--ink); outline-offset: 3px; }
.area { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; }
.area__num { display: flex; align-items: center; padding-right: 14px; border: 1px solid var(--edge); background: #fff; font-weight: 600; }
.area__num input { width: 4.4em; min-height: 52px; padding: 6px 6px 6px 14px; border: 0; border-radius: 0; background: transparent; font: 700 1.5rem/1 var(--head); font-stretch: 88%; }
.area input[type="range"] { width: 100%; min-height: 44px; margin: 0; accent-color: var(--ink); }
.hint { margin-top: 8px; color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
.err { margin-top: 7px; padding-left: 10px; border-left: 2px solid var(--laser); color: var(--laser-deep); font-size: .875rem; font-weight: 600; line-height: 1.4; }
.checks { border-top: 1px solid var(--concrete); }
.check { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 60px; padding: 10px 0; border-bottom: 1px solid var(--concrete); cursor: pointer; }
.check input { position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin: -12px 0 0; opacity: 0; cursor: pointer; }
.check__box { position: relative; width: 24px; height: 24px; border: 1.5px solid var(--ink); background: #fff; }
.check input:checked + .check__box { background: var(--ink); }
.check input:checked + .check__box::after { content: ""; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid var(--plaster); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.check input:focus-visible + .check__box { outline: 2px solid var(--ink); outline-offset: 3px; }
.check__txt b { display: block; font-weight: 600; line-height: 1.3; }
.check__txt small { color: var(--ink-2); font-size: .875rem; line-height: 1.35; }
.check__amt { font-size: .9375rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.check.is-off { cursor: default; }
.check.is-off .check__txt, .check.is-off .check__box { opacity: .45; }
.check.is-off .check__amt { color: var(--ink-2); font-weight: 400; }
.est__bar { display: none; }
.est__side { position: sticky; top: 88px; }
.est__out { padding: clamp(22px, 3vw, 36px); background: var(--ink); color: var(--plaster); }
.est__out :focus-visible { outline-color: var(--plaster); }
.est__label { color: var(--on-dark-2); font: 500 1rem/1.3 var(--text); letter-spacing: 0; }
.est__range { margin-top: 6px; padding-bottom: 14px; border-bottom: 2px solid var(--laser); font: 800 clamp(2rem, 3.5vw, 2.9rem)/1.05 var(--head); font-stretch: 75%; }
.est__weeks { margin-top: 16px; font: 700 1.375rem/1.2 var(--head); font-stretch: 88%; }
.est__per { margin-top: 4px; color: var(--on-dark-2); font-size: .9375rem; }
.est__sub { margin: 28px 0 10px; font: 600 .9375rem/1.3 var(--text); }
.cmp__row { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 0; color: var(--on-dark-2); font-size: .875rem; }
.cmp__track { position: relative; height: 12px; background: linear-gradient(#3F4349, #3F4349) center / 100% 1px no-repeat; }
.cmp__bar { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: #7C7F82; transition: left .25s ease-out, width .25s ease-out; }
.cmp__val { min-width: 9.6em; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cmp__row.is-on { color: var(--plaster); font-weight: 600; }
.cmp__row.is-on .cmp__bar { background: var(--plaster); }
.est__lines li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid #3F4349; font-size: .9375rem; }
.est__lines li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est__lines li.is-total { border-top-color: var(--plaster); font-weight: 700; }
.est__lines li.is-note { color: var(--on-dark-2); font-size: .875rem; }
.est__disc { margin: 20px 0 22px; color: var(--on-dark-2); font-size: .875rem; line-height: 1.5; }

/* формы */
.form { display: grid; align-content: start; gap: 20px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.field label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid var(--edge); border-radius: 0; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--text); }
.field textarea { min-height: 120px; line-height: 1.5; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--laser); box-shadow: inset 0 -2px 0 var(--laser); }
.form__sum { padding: 14px 18px; border-left: 2px solid var(--ink); background: var(--plaster); }
.form__sum h3 { color: var(--ink-2); font: 600 .875rem/1.3 var(--text); }
.form__sum p { margin-top: 4px; font-size: .9375rem; line-height: 1.5; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form__end .hint { flex: 1 1 16em; margin: 0; }
.next__h { margin-bottom: 12px; font: 700 1rem/1.3 var(--text); }
.steps { counter-reset: step; }
.steps li { position: relative; padding: 12px 0 12px 38px; border-top: 1px solid var(--rule); counter-increment: step; }
.steps li:first-child { border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 10px; font: 800 1.375rem/1.2 var(--head); font-stretch: 75%; }
.steps h3 { font-size: 1.0625rem; }
.steps p { margin-top: 2px; color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }

/* карта */
.map { display: block; width: 100%; height: clamp(320px, 42vw, 460px); border: 1px solid var(--concrete); filter: grayscale(1) contrast(1.05); }
.map__addr { margin-top: 10px; color: var(--ink-2); font-size: .9375rem; }

/* подвал */
.foot { --rule: #3F4349; padding-top: clamp(48px, 6vw, 80px); background: var(--ink); color: var(--plaster); font-size: .9375rem; }
.foot :focus-visible { outline-color: var(--plaster); }
.foot__about { max-width: 30ch; margin-top: 14px; color: var(--on-dark-2); }
.foot__h { margin-bottom: 12px; color: var(--on-dark-2); font: 600 .9375rem/1.3 var(--text); letter-spacing: 0; }
.foot__list li + li { margin-top: 8px; }
.foot__list a:hover, .foot__legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #3F4349; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot__demo { max-width: 84ch; padding: 16px 0 28px; color: #A2A39F; font-size: .8125rem; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1120px) {
  .top__tel { display: none; }
}
@media (max-width: 1100px) {
  .q { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s2, .s3, .q > .lead, .q > .next, .q > .aside, .q > .war__ph, .q > .endbtn { grid-column: 1 / -1; }
  .q > .s2::before, .q > .s3::before, .q > .lead::before, .q > .next::before, .q > .aside::before, .q > .war__ph::before, .q > .endbtn::before { display: none; }
  .lead p { max-width: 60ch; }
  .vows { padding-top: 44px; }
  .vows > * { padding-top: 0; }
  .lead__ph { display: none; }
  .war__ph img { aspect-ratio: 16 / 9; object-fit: cover; }
  .est__side { position: static; }
  .est__bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; margin-top: 28px; padding: 12px 16px; border-top: 2px solid var(--laser); background: var(--ink); color: var(--plaster); }
  .est__bar b { font: 800 1.375rem/1.2 var(--head); font-stretch: 78%; }
  .est__bar span { color: var(--on-dark-2); font-size: .875rem; }
  .work__ph { height: auto; }
  .work__ph img { aspect-ratio: 3 / 2; }
  .work.s2 .work__ph img { aspect-ratio: 16 / 9; }
  .sheet__ph { max-width: 420px; }
}
@media (max-width: 1020px) {
  .demobar__txt { display: none; }
  .demobar__cta { margin-left: auto; }
}
@media (max-width: 980px) {
  .burger { display: inline-flex; }
  .langs { margin-left: auto; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 6px var(--pad) 22px; border-bottom: 2px solid var(--ink); background: var(--plaster); }
  .menu.is-open { display: flex; }
  .menu a { min-height: 54px; padding: 0; border-bottom: 1px solid var(--concrete); font-size: 1.0625rem; }
  .menu a:hover::after, .menu a[aria-current]::after { left: 0; right: auto; bottom: 10px; width: 28px; }
  .menu .menu__cta { justify-content: center; margin: 18px 0 0; padding: 0 18px; border: 2px solid var(--ink); }
  .menu .menu__tel { display: inline-flex; border-bottom: 0; font-weight: 600; }
  .mast { grid-template-columns: var(--pad) minmax(0, 1fr) var(--pad); grid-template-rows: auto 0 auto auto; min-height: 0; }
  .mast__plumb { display: none; }
  .mast__top { padding-right: 0; }
  .mast__bot { padding: 28px 0 40px; }
  .mast__photo { grid-column: 1 / -1; grid-row: 4; height: min(70vw, 480px); }
  .mast__vial { grid-column: 2; justify-self: end; }
  .mast__vial .vial { transform: translateY(-50%); }
  .cases { grid-template-columns: minmax(0, 1fr); gap: 56px; }
}
@media (max-width: 700px) {
  .q { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .q > *::before { display: none; }
  .band__head { margin-bottom: 28px; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tbl, .tbl tbody { display: block; }
  .tbl tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .tbl tbody tr:first-child { border-top: 2px solid currentColor; }
  .tbl th, .tbl td { display: block; width: auto; padding: 0; border: 0; }
  .tbl td { display: grid; grid-template-columns: 8.6em minmax(0, 1fr); gap: 12px; margin-top: 6px; font-size: .9375rem; }
  .tbl td::before { content: attr(data-l); color: var(--ink-2); font-weight: 400; }
  .tbl .num { text-align: left; white-space: normal; }
  .tbl--svc tbody th, .tbl--pay tbody th, .tbl--people th, .tbl--people td:nth-child(2) { width: auto; }
  .tbl--people td { display: block; }
  .tbl--people td::before { content: none; }
  .tbl--people tr:first-child th, .tbl--people tr:first-child td { border-top: 0; }
  .paybar b { display: none; }
  .gantt__in { --name: 136px; --uw: 30px; }
  .gantt__name { padding-right: 10px; }
  .gantt__name b { font-size: .875rem; }
  .gantt__name small { font-size: .75rem; }
  .seg__btn { padding: 10px; }
  .seg__btn b { font-size: 1rem; }
  .picks--3 { grid-template-columns: minmax(0, 1fr); }
  .pick__box { min-height: 60px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .foot__list li + li { margin-top: 0; }
  .foot__list a, .foot__legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot__list li { padding-block: 4px; }
  .foot__list li:has(a) { padding-block: 0; }
}
@media (max-width: 520px) {
  .top__in { gap: 10px; min-height: 60px; }
  .logo { gap: 8px; font-size: 1.125rem; }
  .logo__mark { width: 29px; height: 24px; }
  .mast__cta .btn, .btns .btn, .form__end .btn, .endbtn .btn, .est__out .btn { width: 100%; }
  .case__body { grid-template-columns: minmax(0, 1fr); }
  .cmp__row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .cmp__track { grid-column: 1 / -1; grid-row: 2; }
  .cmp__val { min-width: 0; }
  .area { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .area__num { justify-self: start; }
}
@media (max-width: 359px) {
  .logo__mark { display: none; }
  .langs a { min-width: 40px; }
}

/* ---- узкие телефоны: длинное слово переносится, а не вылезает из блока ---- */
h1, h2, h3, h4, p, li, dt, dd, td, th, label, b, strong, small, a { overflow-wrap: break-word; }

@media (max-width: 380px) {
  .picks--2, .picks--3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---- телефоны: по ссылкам и кнопкам легче попасть пальцем ---- */
@media (max-width: 700px) {
  .demobar__back, .demobar__cta { display: inline-flex; align-items: center; min-height: 40px; }
  footer a:not([class*="btn"]):not([class*="logo"]):not([class*="brand"]):not([class*="marca"]) { display: inline-block; padding-block: 7px; }
  .link, .tl, .more, .tlink, .lnk, .band__link { display: inline-block; padding-block: 9px; }
}
