/* Р-1 Бурение — индустриальный технический паспорт.
   Палитра задана заказчиком (семья РЕСУРС-1): тёмно-фиолетовая база, фиолетовые акценты. */

/* ---------- локальные шрифты (без внешних обращений к Google Fonts) ---------- */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #17172e;
  --bg-deep: #121223;
  --surface: #1e1e3a;
  --surface-2: #24244a;
  --fg: #f5f3fa;
  --muted: #a7a4c6;
  --border: #2e2e54;
  --accent: #bfaaff;
  --accent-deep: #7254d2;
  --accent-on: #17172e;

  --font-display: "Onest", "Helvetica Neue", sans-serif;
  --font-body: "Onest", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --radius: 28px;
  --radius-sm: 14px;
  --space-section: clamp(64px, 9vw, 120px);
  --shell: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: none;
}

::selection { background: var(--accent); color: var(--accent-on); }

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-on); }
.btn--primary:hover { background: #d3c2ff; }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ---------- шапка ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 18, 35, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 19px;
  white-space: nowrap;
}
.brand__mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-deep);
  box-shadow: inset 0 0 0 4px var(--bg);
  outline: 2px solid var(--accent-deep);
  flex: none;
}
.nav { display: none; gap: 26px; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.18s ease;
}
.nav a:hover { color: var(--fg); }
.topbar__phone {
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  color: var(--fg);
  padding: 8px 0;
  border-bottom: 1px solid var(--accent);
  white-space: nowrap;
}

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

.hero { padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 7vw, 96px); }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.hero__title {
  font-size: clamp(44px, 5.9vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 14px 0 20px;
}
.hero__lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
  max-width: 46ch;
}
.hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin: 28px 0 26px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero__price-num {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero__price-cap { color: var(--muted); font-size: 14px; max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.facts__item { background: var(--bg); padding: 14px 16px; }
.facts dt {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.facts dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }

.hero__media { margin: 0; position: relative; min-width: 0; }
.hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.hero__cap {
  margin-top: 12px;
}

/* ---------- секции ---------- */

.section { padding: var(--space-section) 0; }
.section--calc { background: var(--bg-deep); }
.section--lead { background: var(--bg-deep); }

/* Москва и усиление проёмов — отдельные блоки со своим тоном */
.section--msk {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}
.section--msk .section__title::after {
  content: "Москва";
  display: inline-block;
  margin-left: 16px;
  padding: 4px 12px;
  border: 1px solid var(--accent-deep);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: middle;
}
.section--reinforce { border-top: 1px solid var(--border); }
.regionswitch { display: flex; flex-wrap: wrap; gap: 8px; }
.regionswitch__btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.regionswitch__btn:hover { color: var(--fg); border-color: var(--muted); }
.regionswitch__btn.is-active {
  color: var(--accent-on);
  background: var(--accent);
  border-color: var(--accent);
}
.regionswitch--calc { margin-bottom: 10px; }

.section__head {
  display: grid;
  gap: 14px;
  max-width: 780px;
  margin-bottom: clamp(32px, 5vw, 60px);
}
.section__title { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.02; letter-spacing: -0.05em; }
.section__intro { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 58ch; }

/* ---------- каталог услуг ---------- */

.svc { border-top: 1px solid var(--border); }
.svc__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.svc__num { color: var(--accent); font-size: 13px; opacity: 0.85; }
.svc__row--lead .svc__num { color: var(--accent); }
.svc__name { font-size: clamp(21px, 2.4vw, 30px); line-height: 1.15; margin-bottom: 8px; }
.svc__text { color: var(--muted); max-width: 56ch; font-size: 16px; }
.svc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding-top: 4px;
}
.svc__meta div { min-width: 0; }
.svc__meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.svc__meta dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

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

.calc {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}
.calc__form {
  display: grid;
  gap: 26px;
  padding: clamp(20px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0;
}
.field__hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.seg__btn:hover { color: var(--fg); border-color: var(--muted); }
.seg__btn.is-active {
  color: var(--accent-on);
  background: var(--accent);
  border-color: var(--accent);
}

.dial { position: relative; padding-bottom: 4px; }
.dial input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  margin: 0;
  cursor: pointer;
}
.dial input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.dial input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.dial input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-deep);
}
.dial input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-deep);
}
.dial__scale {
  height: 26px;
  margin: -8px 0 0;
  background-image:
    repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, var(--accent-deep) 0 1px, transparent 1px 102px);
  background-size: 100% 8px, 100% 15px;
  background-repeat: repeat-x;
  background-position: 0 0, 0 0;
  opacity: 0.85;
}
.dial__out {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.dial__num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.dial__coef { font-size: 12px; }

input[type="number"], input[type="text"], input[type="tel"], textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 48px;
  transition: border-color 0.18s ease;
}
textarea { min-height: 110px; resize: vertical; }
select {
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent) 50%),
    linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; }
input::placeholder, textarea::placeholder { color: #6f6c92; }

.checks { display: grid; gap: 10px; }
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 22px;
  height: 22px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-deep);
  position: relative;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 12px;
  border: solid var(--accent-on);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check__text { font-size: 15px; }
.check__text .mono-label { margin-left: 6px; }

.calc__result {
  position: sticky;
  top: 92px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface-2);
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
}
.result__one { display: flex; flex-direction: column; gap: 2px; }
.result__num {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.result__cap { font-size: 13px; color: var(--muted); }
.result__total {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.result__total-num {
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.result__notes { display: grid; gap: 8px; }
.result__notes li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.result__notes li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--accent-deep);
}
.result__notes li.is-warn { color: #ffd9a8; }
.result__notes li.is-warn::before { background: #ffd9a8; }
.result__foot { font-size: 13px; color: var(--muted); }

/* ---------- цены ---------- */

.prices { display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.prices__main { display: grid; gap: 20px; align-content: start; }
.ptable {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ptable caption { text-align: left; }
.ptable th, .ptable td { padding: 14px 0; text-align: left; border-bottom: 1px solid var(--border); }
.ptable thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 400;
  border-bottom-color: var(--muted);
}
.ptable tbody th { font-weight: 600; font-size: 17px; }
.ptable tbody td { font-family: var(--font-mono); font-size: 17px; color: var(--fg); }
.ptable tbody td:last-child { color: var(--accent); }
.ticks { border-top: 1px solid var(--border); }
.ticks li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.ticks span { font-size: 16px; }
.ticks b {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ticks i {
  grid-column: 1 / -1;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}
.prices__side-title { font-size: 22px; margin-bottom: 16px; letter-spacing: -0.03em; }
.prices__note { margin-top: 16px; }

/* ---------- процесс и гарантии ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.steps li { background: var(--bg); padding: 24px 22px; }
.section--proof .steps li { background: var(--bg-deep); }
.steps h3 { font-size: 20px; margin: 10px 0 8px; }
.steps p { color: var(--muted); font-size: 15px; }
.steps .mono-label { color: var(--accent-deep); }

.guarantees {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 40px;
  border-top: 1px solid var(--border);
}
.guarantees li {
  padding: 16px 0 16px 26px;
  border-bottom: 1px solid var(--border);
  position: relative;
  color: var(--muted);
  font-size: 16px;
}
.guarantees li::before {
  content: "—";
  position: absolute;
  left: 0; top: 16px;
  color: var(--accent);
}

/* ---------- галерея ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.shot { margin: 0; }
.shot--write {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--accent-deep);
  background: var(--surface);
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.shot--write:hover { background: var(--surface-2); border-color: var(--accent); }
.shot--write__t {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--fg);
}
.shot img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface);
}
.shot--wide img { aspect-ratio: 4 / 5; }
.shot--kern img { aspect-ratio: 1 / 1; }
.shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  background:
    repeating-linear-gradient(135deg, rgba(114, 84, 210, 0.07) 0 12px, transparent 12px 24px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 16px;
}

/* ---------- заявка ---------- */

.lead { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.lead__form .section__intro { margin-bottom: 24px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 18px; }
.lead__flags {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(114, 84, 210, 0.08);
}
.lead__flags[hidden] { display: none; }
.lead__flag { font-size: 14.5px; line-height: 1.55; color: var(--fg); }
.lead__flag.is-warn { color: #ffcf8f; }
.form__status { font-size: 15px; min-height: 20px; }
.form__status.is-ok { color: var(--accent); }
.form__status.is-error { color: #ffb4a2; }
.consent-notice { font-size: 12.5px; color: var(--muted); }
.consent-notice a { color: var(--muted); text-underline-offset: 3px; }
.consent-notice a:hover { color: var(--accent); }

.lead__side {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
}
.lead__phone { margin: 10px 0 4px; }
.lead__phone a {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.lead__phone a:hover { color: var(--accent); }
.lead__wa { margin-bottom: 18px; }
.lead__wa a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-deep);
}
.lead__wa a:hover { color: #d3c2ff; }
.lead__note { color: var(--muted); font-size: 15px; margin-top: 14px; }

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

.footer {
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 72px) 0 28px;
  background: var(--bg-deep);
}
.footer__in {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.footer__brand { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.footer__text { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 42ch; }
.footer__text a { color: var(--fg); text-decoration: none; }
.footer__text a:hover { color: var(--accent); }
.footer__col .mono-label { margin-top: 14px; display: block; }
.footer__col:first-child .mono-label { margin-top: 0; }
.footer__resurs {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.45;
  padding-left: 18px;
  border-left: 2px solid var(--accent-deep);
  max-width: 44ch;
}
.footer__bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer__link { color: var(--muted); font-size: 13px; text-underline-offset: 3px; }
.footer__link:hover { color: var(--accent); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer__link--btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.footer__link--btn:hover { color: var(--accent); }
.footer__messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- адаптив ---------- */

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form__row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot--wide { grid-column: span 2; }
  .shot--wide img { aspect-ratio: 16 / 7; }
  .guarantees { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) and (max-width: 899px) {
  .hero__media img { aspect-ratio: 16 / 10; }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
  .svc__row {
    grid-template-columns: 60px minmax(0, 1fr) minmax(0, 300px);
    gap: 8px 32px;
    padding: 30px 0;
  }
  .svc__meta { flex-direction: column; gap: 10px; text-align: left; }
  .calc { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
  .prices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shot--wide { grid-column: span 2; grid-row: span 2; }
  .shot--wide img { aspect-ratio: 4 / 5; height: 100%; }
  .shot--kern { grid-column: span 2; }
  .shot--kern img { aspect-ratio: 16 / 9; }
  .shot--write { grid-column: span 2; }
  .lead { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .footer__in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__col--wide { grid-column: 1 / -1; }
}

@media (min-width: 1200px) {
  .svc__row { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 340px); }
}

/* ---------- правовые документы ---------- */

.legal { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.045em; line-height: 1.05; margin-bottom: 24px; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; }
.legal h3 { font-size: 16px; margin: 20px 0 8px; color: var(--fg); }
.legal p { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 12px; }
.legal li { color: var(--muted); font-size: 16px; margin-bottom: 6px; }
.legal li strong { color: var(--fg); font-weight: 600; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-bottom: 18px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal__back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 28px; color: var(--muted); text-decoration: none; }
.legal__back:hover { color: var(--accent); }
.legal__note {
  padding: 16px 18px;
  margin: 18px 0;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent-deep);
  border-radius: 0 14px 14px 0;
  background: var(--surface);
}
.legal__note p { margin-bottom: 8px; color: var(--fg); font-size: 15px; }
.legal__note p:last-child { margin-bottom: 0; }

/* ---------- согласие на обработку ПД в форме ---------- */

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(114, 84, 210, 0.08);
  cursor: pointer;
}
.consent-check .check__box { margin-top: 2px; }
.consent-check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.consent-check input:checked + .check__box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 12px;
  border: solid var(--accent-on);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.consent-check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent-check__text { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.consent-check__text a { color: var(--accent); text-underline-offset: 3px; }
.consent-check__text a:hover { color: #d3c2ff; }
.consent-check.is-invalid { border-color: #ffb4a2; }

/* ---------- cookie-баннер ---------- */

.cbanner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--surface-2);
  border-top: 1px solid var(--accent-deep);
  box-shadow: 0 -12px 40px rgba(9, 9, 18, 0.45);
}
.cbanner[hidden] { display: none; }
.cbanner__in {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 40px) 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.cbanner__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.cbanner__text { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 78ch; }
.cbanner__text a { color: var(--accent); text-underline-offset: 3px; }
.cbanner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cbanner__actions .btn { min-height: 46px; font-size: 15px; padding: 0 18px; }
body.has-banner { padding-bottom: 260px; }

/* ---------- модалка настроек cookie ---------- */

.cmodal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 9, 18, 0.78);
  backdrop-filter: blur(3px);
}
.cmodal[hidden] { display: none; }
.cmodal__box {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius);
}
.cmodal__title { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.035em; margin-bottom: 8px; }
.cmodal__lead { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.cmodal__cats { border-top: 1px solid var(--border); margin-bottom: 20px; }
.cat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cat .check__box { margin-top: 2px; }
.cat--on .check__box { background: var(--accent); border-color: var(--accent); }
.cat--on .check__box::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 12px;
  border: solid var(--accent-on);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.cat--on .check__box { position: relative; }
.cat__name { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.cat__desc { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.cat__tag {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.cmodal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cmodal__actions .btn { flex: 1 1 auto; min-width: 150px; }

@media (min-width: 900px) {
  .cbanner__in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
  .cbanner__actions { justify-content: flex-end; }
  body.has-banner { padding-bottom: 140px; }
}

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