@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+FEFF;
}
@font-face {
  font-family: Unbounded;
  src: url("../fonts/unbounded.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Unbounded;
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+FEFF;
}

:root {
  --ink: #12100e;
  --ink-2: #1a1714;
  --ink-3: #26211c;
  --paper: #f5f0e8;
  --paper-2: #eae2d5;
  --cream: #fcf9f4;
  --red: #d92b22;
  --red-hot: #e23b2f;
  --red-dark: #9d1c16;
  --red-soft: #fbe3df;
  --red-light: #ff8a80;
  --steel: #1e3344;
  --soft: #5a544a;
  --soft-dark: #b9b0a2;
  --line: rgba(18, 16, 14, 0.12);
  --line-dark: rgba(252, 249, 244, 0.14);
  --r: 22px;
  --r-sm: 14px;
  --shadow: 0 30px 60px -30px rgba(18, 16, 14, 0.38);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header: 72px;
  --max: 1200px;
  --display: Unbounded, Manrope, "Segoe UI", sans-serif;
  --text: Manrope, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Только html: если закрыть прокрутку и у body, липкая шапка уезжает к началу страницы. */
html.is-locked { overflow: hidden; }
img, svg { max-width: 100%; }
picture { display: contents; }
picture > source { display: none; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--header) + 16px); }
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 100;
}
.skip:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--soft); }
.note { margin-top: 18px; font-size: 14.5px; }
.hp, .metrika-px { position: absolute; left: -9999px; }
.ico {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-dark);
  font-weight: 800;
}
.kicker::before { content: ""; flex: none; width: 28px; height: 2px; background: var(--red-hot); }
.hero .kicker, .page-head .kicker, .dark .kicker, .contact-band .kicker, .aside-card .kicker { color: var(--red-light); }

/* Кнопки */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 30px -16px rgba(217, 43, 34, 0.85);
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.65; cursor: progress; transform: none; }
.btn .ico { width: 20px; height: 20px; transition: transform 0.25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; border-radius: 12px; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.btn-dark { background: var(--ink); color: var(--cream); box-shadow: none; }
.btn-dark:hover { background: var(--steel); }

/* Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(18, 16, 14, 0.9);
  color: var(--cream);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.header.is-stuck {
  background: rgba(18, 16, 14, 0.96);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}
.header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
}
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--red-hot), var(--red-light));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.logo img { display: block; width: 46px; height: 46px; transition: transform 0.4s var(--ease); }
.logo:hover img { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a:not(.header-phone), .menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cream);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 10px 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav > a:not(.header-phone):hover, .menu-btn:hover { background: rgba(252, 249, 244, 0.09); }
.nav > a[aria-current="page"], .nav > a.is-active { color: var(--red-light); }
.caret { width: 14px; height: 14px; transform: rotate(90deg); transition: transform 0.25s var(--ease); }
.drop { position: relative; }
.drop.is-open .caret { transform: rotate(-90deg); }
.drop-panel {
  position: absolute;
  top: 100%;
  left: -8px;
  width: 340px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s, transform 0.22s var(--ease), visibility 0.22s;
}
.drop-list {
  display: grid;
  background: var(--cream);
  color: var(--ink);
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}
.drop-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.2s;
}
.drop-list a::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--red);
  transform: rotate(45deg);
  opacity: 0.3;
  transition: opacity 0.2s;
}
.drop-list a:hover { background: var(--paper-2); }
.drop-list a:hover::before, .drop-list a[aria-current="page"]::before { opacity: 1; }
.drop.is-open .drop-panel, .drop:hover .drop-panel, .drop:focus-within .drop-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.drop:hover .caret { transform: rotate(-90deg); }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 0 8px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 800;
  font-size: 15.5px;
  white-space: nowrap;
}
.header-phone .ico { width: 18px; height: 18px; color: var(--red-light); }
.burger {
  display: none;
  position: relative;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-dark);
  background: rgba(252, 249, 244, 0.06);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--cream);
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Первый экран */
.hero, .page-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}
.hero::before, .page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(252, 249, 244, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 249, 244, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 72% 30%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 75% at 72% 30%, #000 15%, transparent 78%);
}
.hero::after, .page-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 760px;
  height: 760px;
  right: -180px;
  top: -300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 59, 47, 0.38), transparent 62%);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-70px, 50px) scale(1.14); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
@keyframes ping-sm { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0 60px;
}
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.hero-copy > :nth-child(6) { animation-delay: 0.4s; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 18px 0 20px;
  overflow-wrap: break-word;
}
.hero h1 span {
  display: block;
  margin-top: 14px;
  font-size: 0.48em;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--soft-dark);
}
.lead { max-width: 46ch; font-size: 18px; color: #ddd5c8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; align-items: center; }
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.hero-phone .ico {
  width: 46px;
  height: 46px;
  padding: 12px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: rgba(252, 249, 244, 0.07);
  color: var(--red-light);
  transition: background 0.25s, color 0.25s;
}
.hero-phone:hover .ico { background: var(--red); color: #fff; }
.hero-points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 9px; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #d9d0c2; }
.hero-points .ico { width: 18px; height: 18px; color: var(--red-light); stroke-width: 2.4; }

.hero-art {
  --px: 0;
  --py: 0;
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 560 / 600;
  border-radius: 28px;
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(160deg, rgba(252, 249, 244, 0.08), rgba(252, 249, 244, 0.01) 48%),
    var(--ink-2);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(252, 249, 244, 0.08);
  animation: rise 1.1s var(--ease) 0.2s both;
}
.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art-back { transform: translate(calc(var(--px) * -12px), calc(var(--py) * -8px)); transition: transform 0.6s var(--ease); }
.art-front { transform: translate(calc(var(--px) * 9px), calc(var(--py) * 6px)); transition: transform 0.6s var(--ease); }
.win { fill: rgba(246, 241, 231, 0.05); stroke: rgba(246, 241, 231, 0.42); stroke-width: 1; }
.win.lit { fill: #f3c969; fill-opacity: 0.85; stroke: #f3c969; animation: twinkle 6s ease-in-out infinite; }
.win.d1 { animation-duration: 7.5s; animation-delay: -1.5s; }
.win.d2 { animation-duration: 5.5s; animation-delay: -3s; }
.win.d3 { animation-duration: 8.5s; animation-delay: -4.5s; }
@keyframes twinkle { 0%, 46%, 72%, 100% { fill-opacity: 0.85; } 56%, 62% { fill-opacity: 0.1; } }
.tag path { fill: none; stroke: rgba(246, 241, 231, 0.45); stroke-width: 1; stroke-dasharray: 2 3; }
.tag-dot { fill: var(--red-hot); }
.tag-ring { fill: none; stroke: var(--red-hot); stroke-width: 1.4; }
.tag text {
  font-family: var(--text);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: #d9d0c2;
}
.chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(38, 33, 28, 0.86);
  border: 1px solid rgba(252, 249, 244, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--cream);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  animation: float 6s ease-in-out infinite;
}
.chip .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--red); color: #fff; }
.chip-a { left: 22px; top: -18px; }
.chip-b { right: 22px; bottom: -18px; animation-delay: -3s; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 56px;
}
.fact {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  border-radius: var(--r);
  border: 1px solid var(--line-dark);
  background: linear-gradient(160deg, rgba(252, 249, 244, 0.08), rgba(252, 249, 244, 0.02));
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.fact:hover { transform: translateY(-4px); border-color: rgba(255, 138, 128, 0.5); }
.fact::before { content: ""; position: absolute; left: 22px; top: 0; width: 34px; height: 3px; background: var(--red-hot); }
.fact strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(19px, 2.1vw, 27px);
  line-height: 1.15;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.fact > span { display: block; color: var(--soft-dark); font-size: 14.5px; line-height: 1.4; }
.facts-band { background: var(--ink); color: var(--cream); }

.ticker {
  overflow: hidden;
  padding: 15px 0;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-track { display: flex; width: max-content; animation: ticker 44s linear infinite; }
.ticker span { display: inline-flex; align-items: center; white-space: nowrap; }
.ticker span::after {
  content: "";
  width: 8px;
  height: 8px;
  margin: 0 24px;
  background: #fff;
  opacity: 0.85;
  transform: rotate(45deg);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* Разделы */
.section { position: relative; padding: clamp(60px, 8vw, 104px) 0; }
.tint { background: var(--cream); }
.dark { background: var(--ink); color: var(--cream); }
.head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 46px); }
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 46px);
}
.head-row .head { margin-bottom: 0; }
.section h2 {
  font-family: var(--display);
  font-size: clamp(27px, 3.5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-top: 14px;
  overflow-wrap: break-word;
}
.prose h2 { margin-bottom: 20px; }
.prose p + p { margin-top: 14px; }
.prose a { color: var(--red-dark); }
.dark .prose p { color: #d9d0c2; }

.adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.adv-card {
  position: relative;
  overflow: hidden;
  padding: 28px 26px 30px;
  border-radius: var(--r);
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.adv-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.adv-card:hover::after { transform: scaleX(1); }
.adv-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--red-soft);
  color: var(--red-dark);
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.adv-ico .ico { width: 28px; height: 28px; }
.adv-card:hover .adv-ico { background: var(--red); color: #fff; transform: rotate(-6deg); }
.adv-card b { display: block; font-family: var(--display); font-size: 18px; line-height: 1.25; margin-bottom: 10px; padding-right: 44px; }
.adv-card p { color: var(--soft); }
.adv-num {
  position: absolute;
  right: 20px;
  top: 18px;
  font-family: var(--display);
  font-style: normal;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(18, 16, 14, 0.14);
}

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (min-width: 981px) {
  .cards > .svc:last-child:nth-child(3n + 1) { grid-column: 2; }
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.svc:hover .svc-media img { transform: scale(1.07); }
.svc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 14, 0.28), transparent 40%);
}
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.svc em {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(18, 16, 14, 0.74);
  color: #fff;
  font-family: var(--display);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.svc h3 { font-family: var(--display); font-size: 19px; line-height: 1.25; margin-bottom: 10px; overflow-wrap: break-word; }
.svc p { color: var(--soft); font-size: 15.5px; margin-bottom: 18px; }
.svc-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--red-dark);
}
.svc-more .ico { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.svc:hover .svc-more .ico { transform: translateX(6px); }
.related { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.svc-compact .svc-body { padding: 16px 16px 18px; }
.svc-compact h3 { font-size: 14.5px; margin-bottom: 12px; -webkit-hyphens: auto; hyphens: auto; }
.svc-compact em { left: 12px; top: 12px; }

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(56px, 7vw, 92px);
}
.collage { position: relative; aspect-ratio: 1 / 0.84; }
.collage img { position: absolute; object-fit: cover; border-radius: var(--r); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.9); }
.collage .ph1 { left: 0; top: 0; width: 74%; height: 72%; }
.collage .ph2 { right: 0; bottom: 0; width: 58%; height: 56%; border: 6px solid var(--ink); }
.seal {
  position: absolute;
  left: 4%;
  bottom: 0;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 6px var(--ink);
}
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal-text { font-family: var(--display); font-size: 13px; font-weight: 600; fill: var(--cream); }
.seal img { position: relative; width: 62px; height: 62px; box-shadow: none; border-radius: 0; }

.head-steps { margin-bottom: 38px; }
.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}
.steps::before, .steps::after { content: ""; position: absolute; left: 30px; right: calc((100% - 88px) / 5 - 30px); top: 29px; height: 2px; }
.steps::before { background: var(--line-dark); }
.steps::after {
  background: linear-gradient(90deg, var(--red-hot), var(--red-light));
  transform-origin: 0 50%;
  transition: transform 1.8s var(--ease) 0.15s;
}
.js .steps:not(.is-in)::after { transform: scaleX(0); }
.steps li { position: relative; padding-top: 82px; counter-increment: step; }
.step-ico {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ink-3);
  border: 1px solid rgba(252, 249, 244, 0.24);
  color: var(--cream);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.steps li:hover .step-ico { background: var(--red); transform: scale(1.07); }
.steps b { display: block; font-family: var(--display); font-size: 16.5px; line-height: 1.25; margin-bottom: 8px; overflow-wrap: break-word; }
.steps b::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--red-light);
}
.steps p { color: var(--soft-dark); font-size: 15px; }

.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 14px; }
.shot { position: relative; overflow: hidden; margin: 0; border-radius: var(--r); background: var(--steel); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.shot:hover img { transform: scale(1.06); }
.shot.wide { grid-column: span 2; }
.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 18px 16px;
  background: linear-gradient(transparent, rgba(18, 16, 14, 0.84));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  pointer-events: none;
}
.shot-zoom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: start end;
  padding: 14px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #fff;
  cursor: zoom-in;
}
.shot-zoom .ico {
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 50%;
  background: rgba(18, 16, 14, 0.62);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.shot:hover .shot-zoom .ico, .shot-zoom:focus-visible .ico { opacity: 1; transform: none; }
.shot-zoom:focus-visible { outline-offset: -4px; }

.car-nav { display: flex; gap: 10px; flex: none; }
.car-nav button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
}
.car-nav button:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.car-nav button:disabled { opacity: 0.35; cursor: default; }
.quotes {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  margin: 0 -4px;
  padding: 4px 4px 30px;
}
.quotes::-webkit-scrollbar { display: none; }
.quote {
  position: relative;
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 30px 28px 26px;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 40px -34px rgba(18, 16, 14, 0.5);
}
.quote-mark { height: 34px; font-family: var(--display); font-size: 68px; line-height: 0.95; color: var(--red); }
.quote blockquote { flex: 1; margin: 10px 0 22px; }
.quote p { font-size: 16px; line-height: 1.62; }
.who { display: flex; gap: 12px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); font-weight: 800; }
.who img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

.contact-band {
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(900px 520px at 0% 100%, rgba(226, 59, 47, 0.24), transparent 60%),
    linear-gradient(135deg, #15222e, var(--ink) 70%);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.contact-band h2 { color: #fff; margin-bottom: 16px; }
.contact-band .reveal > p, .contact-grid > div > p { color: #d9d0c2; max-width: 50ch; }
.contact-info { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; align-items: center; margin-top: 30px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: #e6dfd2; }
.contact-list .ico {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(252, 249, 244, 0.08);
  border: 1px solid var(--line-dark);
  color: var(--red-light);
}
.contact-list li > a, .contact-list li > span { padding-top: 8px; overflow-wrap: anywhere; }
.contact-list a { color: #fff; font-weight: 800; text-decoration: none; }
.contact-list a:hover { color: var(--red-light); }
.area { display: block; width: 240px; height: 240px; }
.area text { font-family: var(--text); font-size: 18px; font-weight: 800; fill: var(--cream); }
.area .area-far { font-size: 14.5px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--soft-dark); }
.area .area-pin { fill: var(--red-light); text-anchor: middle; }
.area-ring {
  fill: none;
  stroke: var(--red-hot);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 2.2s ease-out infinite;
}
.sweep { transform-origin: 160px 160px; animation: spin 7s linear infinite; }

/* Формы */
.form-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 28px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
}
.form { display: grid; gap: 12px; }
label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
input[type="text"], input[type="tel"] {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus, input[type="tel"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 43, 34, 0.14);
}
input.is-bad { border-color: var(--red); }
.check { grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 500; font-size: 13px; line-height: 1.45; color: var(--soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); }
.check a { color: var(--red-dark); }
.err { color: var(--red-dark); font-weight: 700; font-size: 13px; }
.err:empty { display: none; }
.quiz-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-nav .btn { flex: 1 1 auto; }

.quiz {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quiz-top { display: flex; align-items: center; gap: 16px; }
.quiz-top .kicker { flex: none; }
.quiz-bar { flex: 1; height: 6px; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.quiz-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), #ff7a6e);
  transform: scaleX(0.3333);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease);
}
.section .quiz h2 { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.quiz > p { color: var(--soft); }
[data-step] { display: grid; gap: 14px; }
[data-step][hidden] { display: none; }
.step-label { font-family: var(--display); font-size: 17px; font-weight: 600; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.choices label:hover { border-color: rgba(217, 43, 34, 0.5); }
.choices label.is-picked { border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 3px rgba(217, 43, 34, 0.12); }
.choices input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--red); }
.choices.pics label { flex-wrap: wrap; padding: 8px 8px 12px; }
.choices.pics label > span:last-child { flex: 1; min-width: 0; }
.choices.pics img, .choice-ph { order: -1; flex: 0 0 100%; width: 100%; height: 108px; object-fit: cover; border-radius: 10px; }
.choice-ph { display: grid; place-items: center; background: var(--paper-2); color: var(--soft); }
.choice-ph .ico { width: 40px; height: 40px; }
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.types figure { position: relative; overflow: hidden; margin: 0; border-radius: var(--r-sm); }
.types img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.types figure:hover img { transform: scale(1.06); }
.types figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 12px 10px;
  background: linear-gradient(transparent, rgba(18, 16, 14, 0.88));
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: anywhere;
}

/* Внутренние страницы */
.page-head { padding: 40px 0 56px; }
.page-head-slim { padding: 36px 0 44px; }
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(30px, 3.7vw, 50px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
  max-width: 20ch;
  overflow-wrap: break-word;
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; font-size: 13.5px; color: var(--soft-dark); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { color: var(--red-light); }
.crumbs i { font-style: normal; opacity: 0.4; }
.page-photo { position: relative; aspect-ratio: 4 / 3; animation: rise 1.1s var(--ease) 0.2s both; }
.page-photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1px solid rgba(252, 249, 244, 0.22);
  border-radius: 28px;
}
.page-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 28px; }
.page-num {
  position: absolute;
  left: 22px;
  bottom: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 84px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
}
.page-photo .chip-a { left: -16px; top: 26px; }
.page-photo .chip-b { right: -10px; bottom: 30px; }
.facts-band .facts { padding-bottom: 52px; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.big { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.6; }
.with-aside .prose h2 { margin-top: 40px; }
.when { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.when li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--cream);
  border: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.4;
}
.when .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--red); color: #fff; stroke-width: 2.6; }
.aside-card {
  position: sticky;
  top: calc(var(--header) + 20px);
  display: grid;
  gap: 14px;
  padding: 28px;
  border-radius: var(--r);
  background:
    radial-gradient(320px 220px at 100% 0%, rgba(226, 59, 47, 0.3), transparent 70%),
    var(--ink);
  color: var(--cream);
}
.aside-title { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.2; }
.aside-card > p:not(.kicker):not(.aside-title):not(.aside-note) { color: #d9d0c2; font-size: 15.5px; }
.aside-phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; text-decoration: none; white-space: nowrap; }
.aside-phone .ico { color: var(--red-light); }
.aside-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft-dark); }
.aside-note .ico { width: 18px; height: 18px; }

.roof-map {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  margin-bottom: 28px;
  padding: clamp(16px, 3vw, 36px);
  border-radius: 28px;
  color: var(--cream);
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(226, 59, 47, 0.24), transparent 70%),
    var(--ink);
}
.roof-art { display: block; width: 100%; height: auto; }
.spot { cursor: pointer; }
.spot-dot { fill: var(--red); stroke: #fff; stroke-width: 1.5; transition: fill 0.2s; }
.spot text { font-family: var(--display); font-size: 13px; font-weight: 700; fill: #fff; pointer-events: none; transition: fill 0.2s; }
.spot:hover .spot-dot, .spot:focus .spot-dot { fill: #fff; }
.spot:hover text, .spot:focus text { fill: var(--red-dark); }
.spot-ring {
  fill: none;
  stroke: var(--red-hot);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping-sm 2.4s ease-out infinite;
}
.spot:nth-of-type(2n) .spot-ring { animation-delay: -1.2s; }
.smoke { stroke-dasharray: 6 8; animation: smoke 3s linear infinite; }
@keyframes smoke { to { stroke-dashoffset: -56; } }
.lens { transform-box: fill-box; transform-origin: center; animation: lens 5s ease-in-out infinite; }
@keyframes lens { 50% { transform: translate(-16px, 10px); } }
.roof-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.roof-legend a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--cream);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  transition: background 0.2s;
}
.roof-legend a:hover { background: rgba(252, 249, 244, 0.09); }
.roof-legend span {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 12px;
}
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.job {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header) + 24px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.job:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.job-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.job-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.job:hover .job-media img { transform: scale(1.06); }
.job-num {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 13px;
}
.job-body { padding: 22px 24px 26px; }
.job h3 { font-family: var(--display); font-size: 19px; line-height: 1.25; margin-bottom: 10px; overflow-wrap: break-word; }
.job p { color: var(--soft); }
.job:target { border-color: var(--red); animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 55% { box-shadow: 0 0 0 6px rgba(217, 43, 34, 0.3); } 100% { box-shadow: 0 0 0 0 rgba(217, 43, 34, 0); } }
@media (min-width: 981px) {
  .job:first-child, .job:last-child { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .job:first-child .job-media, .job:last-child .job-media { aspect-ratio: auto; min-height: 260px; }
  .job:first-child .job-body, .job:last-child .job-body { align-self: center; }
}

.page-main { padding: 48px 0 88px; }
.page-main > h1 { font-family: var(--display); font-size: 28px; line-height: 1.2; margin-bottom: 14px; }
.narrow { max-width: 820px; }
.paper-card {
  margin-inline: auto;
  padding: clamp(22px, 4vw, 48px);
  border-radius: 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  overflow-wrap: break-word;
}
.paper-card h2 { font-family: var(--display); font-size: 21px; line-height: 1.25; margin: 30px 0 10px; }
.thanks { min-height: calc(100vh - var(--header)); display: grid; align-items: center; padding: 64px 0; text-align: center; }
.thanks .wrap { max-width: 840px; }
.thanks h1, .thanks .lead { margin-inline: auto; }
.thanks .lead { max-width: 64ch; }
.thanks .hero-actions { justify-content: center; }
.done { display: block; width: 96px; height: 96px; margin: 0 auto 26px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done circle { stroke: rgba(226, 59, 47, 0.45); stroke-width: 3; stroke-dasharray: 264; animation: draw 1s var(--ease) both; }
.done path { stroke: var(--red-hot); stroke-width: 6; stroke-dasharray: 60; animation: draw-check 0.6s var(--ease) 0.7s both; }
@keyframes draw { from { stroke-dashoffset: 264; } }
@keyframes draw-check { from { stroke-dashoffset: 60; } }

/* Подвал */
.footer { position: relative; overflow: hidden; background: var(--ink); color: #cfc6b8; padding: 56px 0 28px; border-top: 1px solid var(--line-dark); }
.footer a { color: #fff; text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--red-light); }
.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.foot-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(38px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: rgba(252, 249, 244, 0.08);
}
.foot-top .btn { flex: none; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid > div > p { margin-top: 16px; max-width: 34ch; }
.footer h2 { font-family: var(--display); font-size: 15px; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer li { overflow-wrap: anywhere; }
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
}

/* Окна и плавающие элементы */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  padding: 16px;
  overflow: auto;
  background: rgba(18, 16, 14, 0.68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.dialog {
  position: relative;
  width: min(480px, 100%);
  margin: auto;
  padding: 32px 28px 28px;
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9);
  transform: translateY(26px) scale(0.97);
  transition: transform 0.35s var(--ease);
}
.dialog::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  width: 56px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--red);
}
.modal.is-open .dialog { transform: none; }
.dialog h2 { font-family: var(--display); font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 8px; padding-right: 44px; }
.dialog > p { color: var(--soft); margin-bottom: 18px; }
.close-x {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.3s var(--ease);
}
.close-x:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 64px 16px;
  background: rgba(10, 9, 8, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { display: grid; gap: 14px; justify-items: center; margin: 0; max-width: min(1100px, 100%); }
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(var(--phone-h, 100vh) - 170px);
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}
.lightbox figcaption { color: #fff; font-weight: 700; text-align: center; }
.lightbox-count { position: absolute; left: 20px; top: 22px; margin: 0; color: var(--soft-dark); font-family: var(--display); font-size: 14px; }
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0 0 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox button:hover { background: var(--red); }
.lightbox-close { right: 16px; top: 10px; }
.lightbox-prev { left: 16px; top: calc(50% - 26px); }
.lightbox-next { right: 16px; top: calc(50% - 26px); }

.cookie {
  position: fixed;
  z-index: 50;
  left: 16px;
  bottom: 16px;
  width: min(580px, calc(100% - 32px));
  display: none;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line-dark);
  background: rgba(26, 23, 20, 0.97);
  color: var(--cream);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.cookie.is-on { display: flex; animation: rise 0.5s var(--ease); }
.cookie p { margin: 0; font-size: 14px; line-height: 1.45; }
.cookie a { color: #fff; }
.cookie .btn { flex: none; }
.dock { display: none; }
.to-top {
  position: fixed;
  z-index: 44;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background 0.2s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }

/* Появление при прокрутке: включается, только когда работает скрипт */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1240px) {
  .header-phone .ico { display: none; }
}
@media (max-width: 1100px) {
  .burger { display: block; }
  .header .wrap { position: static; }
  .nav { display: none; }
  html.nav-open { overflow: hidden; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(var(--phone-h, 100dvh) - var(--header));
    overflow: auto;
    padding: 8px 16px calc(20px + env(safe-area-inset-bottom));
    background: var(--ink);
    border-top: 1px solid var(--line-dark);
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.6);
    animation: nav-in 0.3s var(--ease);
  }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-10px); } }
  .nav > a:not(.header-phone), .menu-btn {
    width: 100%;
    justify-content: space-between;
    padding: 15px 6px;
    border-radius: 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 17px;
  }
  .drop-panel { position: static; width: auto; padding: 0; opacity: 1; visibility: visible; transform: none; display: none; transition: none; }
  .drop.is-open .drop-panel { display: block; }
  .drop-list { padding: 6px 0 10px; border: 0; border-radius: 0; background: transparent; color: var(--cream); box-shadow: none; }
  .drop-list a { padding: 11px 8px; font-size: 15.5px; }
  .drop-list a:hover { background: rgba(252, 249, 244, 0.08); }
  .drop:hover .caret { transform: rotate(90deg); }
  .drop.is-open .caret, .drop.is-open:hover .caret { transform: rotate(-90deg); }
  .header-phone { justify-content: center; margin: 18px 0 12px; font-size: 21px; }
  .header-phone .ico { display: block; width: 20px; height: 20px; }
  .nav .btn { width: 100%; min-height: 52px; font-size: 16px; }
  .related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .hero-grid, .about, .contact-grid, .page-hero, .split, .with-aside, .roof-map { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 52px; padding: 44px 0 56px; }
  .hero-art { justify-self: center; max-width: 460px; }
  .page-photo { max-width: 640px; }
  .page-photo .chip-a { left: 12px; top: -14px; }
  .page-photo .chip-b { right: 12px; bottom: -14px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adv, .cards, .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job:first-child { grid-column: span 2; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
  .quote { flex-basis: calc((100% - 20px) / 2); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .steps::before, .steps::after { left: 29px; right: auto; top: 30px; bottom: 30px; width: 2px; height: auto; }
  .steps::after { transform-origin: 50% 0; background: linear-gradient(var(--red-hot), var(--red-light)); }
  .js .steps:not(.is-in)::after { transform: scaleY(0); }
  .steps li { min-height: 60px; padding: 2px 0 0 84px; }
  .steps b::before { display: inline; margin: 0 10px 0 0; }
  .aside-card { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .to-top { display: none; }
  .dock {
    position: fixed;
    z-index: 45;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid var(--line-dark);
    background: rgba(18, 16, 14, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(160%);
    transition: transform 0.45s var(--ease);
  }
  .dock.is-on { transform: none; }
  .nav-open .dock, .is-locked .dock { transform: translateY(160%); }
  .dock a, .dock button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
  }
  .dock-call { background: rgba(252, 249, 244, 0.12); }
  .dock-lead { background: var(--red); }
  .dock .ico { width: 19px; height: 19px; }
  .cookie { left: 10px; bottom: 10px; width: calc(100% - 20px); }
  body.dock-on .cookie { bottom: calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .wrap, .header .wrap { width: min(var(--max), calc(100% - 28px)); }
  body { font-size: 16px; }
  .logo { gap: 8px; font-size: 16px; }
  .logo img { width: 38px; height: 38px; }
  .hero-grid { gap: 44px; padding: 30px 0 46px; }
  .hero h1 { font-size: clamp(25px, 8vw, 35px); margin: 14px 0 16px; }
  .hero h1 span { font-size: 0.64em; margin-top: 10px; }
  .page-head h1 { font-size: clamp(26px, 8vw, 36px); max-width: none; }
  .lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 24px; }
  .hero-actions .btn { width: 100%; }
  .hero-phone { font-size: 19px; }
  .hero-points { margin-top: 24px; }
  .hero-points li { align-items: flex-start; font-size: 14.5px; }
  .hero-points .ico { margin-top: 3px; }
  .tag text { font-size: 17px; letter-spacing: 0; }
  .chip { padding: 6px 12px 6px 6px; font-size: 12px; gap: 8px; }
  .chip .ico { width: 26px; height: 26px; padding: 5px; }
  .chip-a { left: 12px; top: -15px; }
  .chip-b { right: 12px; bottom: -15px; }
  .facts { gap: 10px; padding-bottom: 40px; }
  .fact { padding: 18px 14px 16px; border-radius: 18px; }
  .fact::before { left: 14px; }
  .fact strong { font-size: 17px; }
  .fact > span { font-size: 13px; }
  .ticker { padding: 12px 0; font-size: 12px; }
  .ticker span::after { margin: 0 16px; }
  .section h2 { font-size: clamp(24px, 7.4vw, 30px); }
  .adv, .cards, .jobs, .when { grid-template-columns: minmax(0, 1fr); }
  .job:first-child { grid-column: auto; }
  .adv-card { padding: 22px 20px 24px; }
  .svc-body, .job-body { padding: 18px 18px 22px; }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .related .svc:last-child:nth-child(odd) { grid-column: span 2; }
  .svc-compact .svc-body { padding: 12px 12px 14px; }
  .svc-compact h3 { font-size: 13px; overflow-wrap: anywhere; }
  .svc-compact .svc-more { font-size: 13px; }
  .collage { aspect-ratio: 1 / 0.92; }
  .seal { width: 112px; height: 112px; left: 2%; }
  .seal img { width: 46px; height: 46px; }
  .shots { grid-auto-rows: 150px; gap: 10px; }
  .shot { border-radius: 16px; }
  .shot figcaption { padding: 30px 12px 10px; font-size: 13px; }
  .shot-zoom { padding: 8px; }
  .shot-zoom .ico { width: 34px; height: 34px; padding: 8px; }
  .head-row { align-items: center; }
  .car-nav button { width: 46px; height: 46px; }
  .quote { flex-basis: 88%; padding: 24px 20px 22px; }
  .quotes { gap: 14px; }
  .contact-info { grid-template-columns: minmax(0, 1fr); }
  .area { margin-inline: auto; }
  .form-card, .quiz, .dialog, .paper-card, .roof-map { border-radius: 22px; }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .choices.pics { grid-template-columns: 1fr 1fr; }
  .choices.pics img, .choice-ph { height: 84px; }
  .choices.pics label { font-size: 13.5px; gap: 8px; }
  .types { gap: 8px; }
  .types figcaption { padding: 24px 8px 8px; font-size: 11.5px; }
  .page-head { padding: 26px 0 44px; }
  .page-photo::before { inset: 8px -8px -8px 8px; }
  .page-photo img, .page-photo::before { border-radius: 22px; }
  .page-num { font-size: 60px; left: 16px; }
  .facts-band .facts { padding-bottom: 40px; }
  .with-aside .prose h2 { margin-top: 30px; }
  .roof-legend a { padding: 8px 6px; font-size: 14.5px; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .dialog { padding: 28px 18px 20px; }
  .dialog::before { left: 18px; }
  .dialog h2 { font-size: 22px; }
  .cookie { flex-direction: column; align-items: stretch; }
  .lightbox { padding: 64px 10px 84px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; }
  .lightbox-prev { left: calc(50% - 62px); }
  .lightbox-next { right: calc(50% - 62px); }
  .page-main { padding: 30px 0 60px; }
  .thanks { padding: 44px 0; }
  .done { width: 76px; height: 76px; }
}
@media (hover: none) {
  .shot-zoom .ico { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .steps:not(.is-in)::after { transform: none; }
}
