@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/InterTight-Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/InterTight-Medium.ttf") format("truetype");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/InterTight-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/InterTight-Bold.ttf") format("truetype");
}

:root {
  --red: #bc2430;
  --red-dark: #8e1b24;
  --ink: #0f1110;
  --ink-2: #1a1c1b;
  --paper: #f2f1ed;
  --white: #fff;
  --muted: #5c5c5c;
  --line: #e4e2dc;
  --header: 112px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  --font: "Inter Tight", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  text-transform: uppercase;
}
h2 { font-size: clamp(32px, 4vw, 52px); }
h2 em, .accent { color: var(--red); font-style: normal; }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 76px 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--white); }
#services, #calc, #park, #how, #cases, #reviews, #contacts, #about, #director, #faq, #geo { scroll-margin-top: 124px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn--line {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: #f2f2f2; }
.btn:disabled { opacity: 0.55; cursor: wait; }

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 17, 16, 0.96);
  color: var(--white);
  backdrop-filter: blur(10px);
}
.header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.header__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  padding: 0 20px 12px;
}
.header__links a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header__links a:hover { color: #f2c3c7; }
.logo { text-decoration: none; display: flex; align-items: center; line-height: 1; margin-right: auto; }
.logo img { height: 40px; width: auto; display: block; }
.logo__name {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 22px;
}
.logo__name i {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-right: 8px;
  background: var(--red);
  transform: skewX(-18deg);
  vertical-align: -1px;
}
.logo__sub { margin-top: 4px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #cfcfcf; }
.header__city { font-size: 14px; color: #ddd; }
.header__phone { font-weight: 800; text-decoration: none; white-space: nowrap; }
.header__msgr { display: flex; gap: 6px; }
.header__msgr a, .header__msgr button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.header__msgr img { width: 28px; height: 28px; display: block; }
.burger {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.burger__icon {
  display: grid;
  gap: 5px;
  width: 22px;
}
.burger__icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.nav {
  display: none;
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav.is-open { display: block; }
.nav a { display: block; padding: 12px 20px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.06); }

.hero {
  position: relative;
  min-height: 640px;
  color: #fff;
  background: #111;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg, .final__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.45) 100%);
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; width: min(1180px, calc(100% - 40px)); margin: 0 auto 56px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: end; }
.hero__kicker {
  display: inline-block;
  background: var(--red);
  padding: 14px 18px 14px 16px;
  border-left: 4px solid #fff;
  font-weight: 700;
  max-width: 460px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 4.2vw, 52px); max-width: 16em; }
.hero__lead { margin-top: 16px; max-width: 52ch; color: #f0f0f0; font-size: 16px; line-height: 1.45; }
.bullets { display: flex; gap: 18px; margin: 22px 0 0; padding: 0; list-style: none; }
.bullets li { font-size: 14px; }
.bullets strong { display: block; font-size: 18px; }

.form {
  background: #fff;
  color: var(--ink);
  padding: 22px;
  box-shadow: var(--shadow);
}
.form h3 { font-size: 22px; text-transform: uppercase; letter-spacing: -0.03em; margin-bottom: 6px; }
.form__note { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select {
  min-height: 46px;
  border: 1px solid #ccc;
  padding: 10px 12px;
  background: #fff;
  width: 100%;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder {
  color: #9a9a9a;
  opacity: 1;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--red); border-color: transparent; }
.error { color: var(--red); font-size: 13px; font-weight: 600; }
.field .error:empty { display: none; }
.error[data-consent-error] {
  display: block;
  width: 100%;
  margin: 0 0 10px;
}
.error[data-consent-error]:empty {
  display: none;
}
.form__submit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.form__submit .btn {
  align-self: flex-start;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 8px 0 14px; }
.check input { margin-top: 3px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.velox-smartcaptcha {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.suggest { position: relative; }
.suggest__list {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
.suggest__list:empty {
  display: none;
}
.suggest__list button { width: 100%; text-align: left; background: #fff; border: 0; padding: 8px 12px; cursor: pointer; }
.suggest__list button:hover { background: #f6f6f6; }

.services__head, .split { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.split p, .lead { max-width: 42ch; color: var(--muted); }
.section--ink .lead { color: #cfcfcf; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
}
.svc__n {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: 13px;
}
.svc h3 { font-size: 20px; letter-spacing: -0.03em; text-transform: uppercase; }
.svc p { color: var(--muted); }
.svc__meta { margin-top: auto; display: flex; justify-content: space-between; font-size: 14px; }
.svc__meta b { color: var(--ink); }
.svc > .btn { margin-top: auto; }
.svc__meta + .btn { margin-top: 0; }

.quiz {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
}
.quiz__top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.quiz__bar { height: 4px; background: #ececec; margin-bottom: 18px; }
.quiz__bar span { display: block; height: 100%; background: var(--red); width: 20%; }
.choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.choice {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
}
.choice img { height: 92px; width: 100%; object-fit: cover; display: block; }
.choice b {
  display: block;
  padding: 10px 8px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.choice.is-on { border-color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.weights,
.dates,
.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.weights button, .dates button, .channels button {
  border: 1px solid var(--line);
  background: #fff;
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
}
.weights button.is-on, .dates button.is-on, .channels button.is-on { background: var(--red); color: #fff; border-color: var(--red); }
.quiz__nav { display: flex; gap: 10px; margin-top: 16px; }
.bonus { background: #111; color: #fff; padding: 14px 16px; margin-bottom: 12px; }
.bonus b { color: #ffb4b0; }

.park__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.park__card { background: #fff; }
.park__card img { height: 170px; width: 100%; object-fit: cover; }
.park__card div { padding: 14px; }
.park__card h3 { font-size: 18px; text-transform: uppercase; letter-spacing: -0.03em; }
.specs { margin: 8px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: center; }
.step-list { list-style: none; margin: 0; padding: 0; }
.step-list li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.step-list span { color: var(--red); }
.step-list em { font-style: normal; font-weight: 600; color: #cfcfcf; letter-spacing: 0; text-transform: none; font-size: 14px; }
.step-list__text {
  grid-column: 2 / -1;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 15px;
  line-height: 1.45;
  color: #e6e6e6;
}
.how__photo img { width: 100%; height: 360px; object-fit: cover; }

.why { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.why::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 58px;
  height: 2px;
  background: var(--red);
}
.why article { position: relative; padding-top: 8px; }
.why i {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-style: normal; font-weight: 800; font-size: 13px;
  position: relative; z-index: 1;
}
.why h3 { margin: 46px 0 6px; font-size: 22px; }
.why p { color: var(--muted); }

.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.industries article { background: #fff; }
.industries__photo { height: 150px; overflow: hidden; }
.industries__photo img { width: 100%; height: 210px; object-fit: cover; object-position: center top; }
.industries h3 { margin: 12px 14px 0; font-size: 16px; text-transform: uppercase; }
.industries p { margin: 4px 14px 14px; color: var(--muted); font-size: 14px; }
.industries article:nth-child(1) h3, .industries article:nth-child(3) h3, .industries article:nth-child(5) h3, .industries article:nth-child(7) h3 { color: var(--ink); }
.industries article:nth-child(even) h3 { color: var(--red); }

.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 28px; }
.logos span {
  min-height: 64px;
  border: 1px dashed #ccc;
  display: grid; place-items: center;
  color: #999; font-size: 12px; text-align: center; padding: 8px;
}
.logos img {
  width: 100%;
  min-height: 64px;
  max-height: 80px;
  object-fit: contain;
  border: 1px solid #e8e8e8;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
}

.case { display: grid; grid-template-columns: 0.9fr 1.2fr; background: var(--ink); color: #fff; margin-bottom: 12px; min-height: 280px; }
.case--flip { grid-template-columns: 1.2fr 0.9fr; }
.case--flip .case__text { order: 2; }
.case__text { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.case__text small { letter-spacing: 0.14em; text-transform: uppercase; color: #bbb; }
.case__text h3 { font-size: clamp(28px, 3vw, 42px); margin: 8px 0 16px; }
.case__text h3 em { color: var(--red); font-style: normal; }
.case__meta { display: flex; gap: 28px; }
.case__meta span { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #aaa; }
.case__photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.case:nth-child(odd) .case__photo { clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
.case--flip .case__photo { clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }

.reviews {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: start;
}
.frame {
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
  min-width: 0;
  max-width: 100%;
}
.frame__bar { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.shot {
  min-height: 160px;
  background: repeating-linear-gradient(-45deg, #fafafa, #fafafa 10px, #f3f3f3 10px, #f3f3f3 20px);
  display: grid; place-items: center; text-align: center; color: var(--muted); padding: 16px;
}
.shot--image {
  padding: 0;
  background: #f3f3f3;
  overflow: hidden;
  max-width: 100%;
}
.shot--image a,
.shot--image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 225px;
  object-fit: contain;
  object-position: center top;
}
.shot--image a { cursor: zoom-in; }
.letters {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.letter {
  min-height: 92px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center; color: var(--muted); text-align: center; padding: 12px;
}
a.letter {
  text-decoration: none;
  color: inherit;
}
.letter--image {
  display: block;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  width: 100%;
  max-width: 100%;
  height: 225px;
  max-height: 225px;
}
.letter--image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}

.routes { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.routes__row { display: grid; grid-template-columns: 1.4fr 1fr 0.7fr 0.7fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.routes__head { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.faq__title { margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--red);
  font-size: 22px;
  transition: transform 0.28s ease;
}
.faq details.is-open summary::after,
.faq details[open] summary::after { content: "–"; }
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq details.is-open .faq__panel {
  grid-template-rows: 1fr;
}
.faq__panel-inner {
  overflow: hidden;
  min-height: 0;
}
.faq details p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 70ch;
}

.final {
  position: relative;
  color: #fff;
  background: #111;
  overflow: hidden;
}
.final::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.72); z-index: 1; }
.final .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.final h2 { font-size: clamp(32px, 4vw, 54px); }
.manager { display: flex; gap: 18px; align-items: center; margin: 18px 0; }
.manager .avatar.avatar--photo {
  width: 220px;
  height: auto;
  background: #1a1a1a;
}
.manager .avatar--photo img {
  height: auto;
  object-fit: contain;
}
.avatar, .director__photo {
  background: #2a2a2a;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  position: relative;
}
.avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  font-size: 22px;
  overflow: hidden;
}
.avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar::after, .director__photo::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 6px; background: var(--red);
  z-index: 1;
}
.contacts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.contacts a { background: var(--red); color: #fff; text-decoration: none; min-height: 74px; min-width: 180px; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; }
.contacts small { opacity: .85; }

.director { background: #fff; border: 1px solid var(--line); }
.director summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.director summary::-webkit-details-marker { display: none; }
.director__who { display: flex; flex-direction: column; }
.director__who b { font-size: 18px; }
.director__who span, .director__teaser { color: var(--muted); }
.director[open] .director__teaser,
.director.is-open .director__teaser { display: none; }
.director__toggle { margin-left: auto; color: var(--red); font-weight: 800; font-size: 14px; }
.director__toggle::after { content: "Раскрыть"; }
.director[open] .director__toggle::after,
.director.is-open .director__toggle::after { content: "Свернуть"; }
.director__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.director.is-open .director__body {
  grid-template-rows: 1fr;
}
.director__body > .director__panel {
  overflow: hidden;
  min-height: 0;
}
/* Прячем панель только когда details уже закрыт (после анимации) */
.director:not([open]) .director__body {
  visibility: hidden;
}
.director__panel { display: grid; grid-template-columns: 280px 1fr; gap: 22px; padding: 0 18px 22px; }
.director__photo {
  min-height: 0;
  font-size: 64px;
  letter-spacing: 0.04em;
  overflow: hidden;
}
.director.is-open .director__photo {
  min-height: 320px;
}
.director__photo--image {
  padding: 0;
  background: #111;
}
.director__photo--image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.director.is-open .director__photo--image img {
  min-height: 320px;
}
.director__photo small {
  position: absolute; bottom: 14px; left: 22px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}
.quote { background: var(--red); color: #fff; padding: 28px 26px; margin: 0; }
.quote p { font-size: 22px; font-weight: 700; line-height: 1.35; }
.quote p + p { margin-top: 14px; font-size: 16px; font-weight: 500; }
.quote footer { margin-top: 18px; font-size: 14px; }
.director__foot { height: 14px; background: linear-gradient(90deg, var(--red) 0 46%, #fff 46% 48%, #111 48% 50%, #fff 50% 52%, #111 52% 56%, var(--red) 56% 100%); }

.footer { background: #0d0d0d; color: #ddd; padding: 36px 0 24px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.footer a { color: #fff; }
.footer__bottom { margin-top: 22px; display: flex; justify-content: space-between; gap: 12px; color: #999; }

.cookie, .dock { position: fixed; z-index: 40; left: 0; right: 0; }
.cookie {
  bottom: 0;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: 14px; max-width: 70ch; }
.cookie a { color: #fff; text-decoration: underline; }
.dock { display: none; bottom: 0; background: #fff; border-top: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
body.has-cookie .dock.is-on { bottom: 64px; }
.dock a,
.dock button {
  min-height: 52px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.dock > :last-child {
  border-right: 0;
  background: var(--red);
  color: #fff;
}

dialog { border: 0; padding: 0; max-width: min(640px, calc(100% - 24px)); width: 100%; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.62); }
#quiz-dialog { max-width: min(860px, calc(100% - 24px)); }
#quiz-dialog .quiz { border: 0; padding: 4px 2px 0; }
.dialog__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #111; color: #fff; }
.dialog__head button { background: transparent; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.dialog__body { padding: 16px; }
.sheet { display: grid; gap: 8px; }
.sheet a, .sheet button { min-height: 48px; display: flex; align-items: center; padding: 0 12px; background: var(--paper); text-decoration: none; border: 0; cursor: pointer; font-weight: 700; }

.doc { padding: 40px 0 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; }
.doc h2 { font-size: 28px; margin: 22px 0 8px; text-transform: none; letter-spacing: -0.03em; }
.doc p, .doc li { max-width: 70ch; }
.doc .banner { background: #fff4f3; border-left: 4px solid var(--red); padding: 12px 14px; margin: 16px 0 22px; }
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.thanks h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 12px; }
.thanks__actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.thanks__home { margin-top: 18px; }

.field--spaced { margin-top: 14px; }

.how__cta { margin-top: 18px; }
.how__photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 12px;
  display: block;
}

.geo-map { margin: 0 0 22px; }
.geo-map img { width: 100%; height: auto; display: block; }

.case__route { margin-top: 14px; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.case-card__photo {
  aspect-ratio: 16 / 10;
  background: #161816;
  overflow: hidden;
}
.case-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { padding: 16px 16px 18px; }
.case-card small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-card h3 {
  font-size: 22px;
  line-height: 1.15;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}
.case-card h3 em { color: var(--red); font-style: normal; }
.case-card .case__meta { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.case-card .case__route { margin-top: 12px; }
.about-quote {
  margin-top: 28px;
  max-width: 760px;
  padding: 4px 0 4px 18px;
  border-left: 6px solid var(--red);
}
.about-quote p { font-size: 22px; line-height: 1.4; }
.about-quote footer { margin-top: 14px; color: var(--muted); }

.why__title { margin-bottom: 28px; }

#director > .wrap > h2 { margin-bottom: 18px; }

.reviews .frame + .frame { margin-top: 12px; }
.frame--wide { grid-column: 1 / -1; }
.review-shots {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.review-shots .frame + .frame { margin-top: 0; }
.review-shots .shot--image { background: #fff; }
.review-shots .shot--image img { max-height: none; background: #fff; }

.missing {
  position: relative;
  min-height: calc(100vh - var(--header));
  display: grid;
  place-items: center;
  color: #fff;
  overflow: hidden;
  background: #111;
}
.missing::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 1;
}
.missing__inner { position: relative; z-index: 2; text-align: center; padding: 48px 20px; max-width: 720px; }
.missing h1 { font-size: clamp(88px, 16vw, 160px); line-height: 0.85; }
.missing p { margin-top: 16px; font-size: 18px; }
.missing__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

@media (max-width: 980px) {
  .hero__inner, .steps, .final .wrap, .reviews, .director__panel, .case, .case--flip { grid-template-columns: 1fr; }
  .case--flip .case__text { order: 0; }
  .case:nth-child(odd) .case__photo, .case--flip .case__photo { clip-path: none; }
  .grid-3, .park__grid, .why, .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why::before { display: none; }
  .why article { min-width: 0; }
  .choices { grid-template-columns: 1fr 1fr; }
  .footer__grid, .routes__row { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .header__city, .header .btn, .logo__sub, .header__links { display: none; }
  .burger { display: inline-flex; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .director.is-open .director__photo,
  .director.is-open .director__photo--image img {
    min-height: 0;
    aspect-ratio: 4 / 3;
    max-height: 240px;
  }
}

@media (max-width: 900px) {
  .services__head, .split {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .split p, .lead { max-width: none; }
}

@media (max-width: 760px) {
  :root { --header: 60px; }
  .wrap { width: min(1180px, calc(100% - 28px)); }
  .section { padding: 52px 0; }
  .why h3 { margin-top: 20px; }
  .burger { display: inline-flex; }
  .header__msgr, .header__phone span { display: none; }
  .header__phone { width: 42px; height: 42px; display: grid; place-items: center; }
  .header__phone::before { content: "☎"; }
  .hero { min-height: 0; }
  .hero__inner { margin: 12px auto 16px; gap: 12px; }
  .hero__kicker, .bullets, .form__note { display: none; }
  .hero__lead { font-size: 15px; }
  .case-grid { grid-template-columns: 1fr; }
  .about-quote p { font-size: 18px; }
  .hero h1 { font-size: 32px; }
  .form { padding: 14px; }
  .field { margin-bottom: 8px; }
  .grid-3, .why, .industries, .footer__grid, .routes__row, .review-shots { grid-template-columns: 1fr; }
  .manager .avatar.avatar--photo { width: 168px; }
  .park__grid {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    max-width: 100%;
  }
  .park__card { flex: 0 0 82%; min-width: 0; scroll-snap-align: start; }
  .choices { grid-template-columns: 1fr 1fr; }
  .cookie {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    bottom: 52px;
    max-height: none;
    overflow: visible;
    text-align: center;
  }
  .cookie p { max-width: none; }
  .cookie .btn {
    margin-top: 0;
  }
  body { padding-bottom: 64px; }
  body.has-cookie { padding-bottom: 180px; }
  body.has-cookie .dock.is-on { bottom: 0; }
  .dock.is-on { display: grid; }
}
