/* ==========================================================================
   ПОД КЛЮЧ — редакционный редизайн
   Cormorant Garamond + Onest + JetBrains Mono · бумага, графит, терракота
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  color-scheme: light;

  --display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono-font: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --paper: #f2ede4;
  --paper-2: #eae3d6;
  --paper-3: #e2d8c8;
  --ink: #121110;
  --ink-2: #2a2724;
  --muted: #746d62;
  --line: #d7cdbd;
  --line-strong: #b9ac99;

  --accent: #a64b2a;
  --accent-ink: #8a3a1e;
  --accent-soft: #f3ded1;
  --accent-bright: #e7a184;
  --on-accent: #fff7f1;

  --dark: #121110;
  --dark-2: #1a1815;
  --on-dark: #f2ede4;
  --on-dark-muted: #a79d8f;
  --line-dark: rgba(242, 237, 228, .14);

  --danger: #b42318;
  --success: #1c6b4a;

  --header-h: 76px;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --paper: #0d0d0f;
  --paper-2: #141416;
  --paper-3: #1b1b1e;
  --ink: #f2ede4;
  --ink-2: #d8d1c5;
  --muted: #9c9488;
  --line: #2a2a2e;
  --line-strong: #3d3d42;

  --accent: #e58a63;
  --accent-ink: #f0a17e;
  --accent-soft: #3b2118;
  --accent-bright: #f2b295;
  --on-accent: #1c0e08;

  --dark: #08080a;
  --dark-2: #101012;
  --on-dark: #f2ede4;
  --on-dark-muted: #a79d8f;
  --line-dark: rgba(242, 237, 228, .12);

  --danger: #ff8a80;
  --success: #59c08a;
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open,
body.nav-open { overflow: hidden; }

img,
svg { display: block; max-width: 100%; }

button,
input,
textarea { font: inherit; color: inherit; }

button {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

ul,
ol { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

p { text-wrap: pretty; }

[hidden] { display: none !important; }

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.process :focus-visible { outline-color: var(--paper); }
.calc-band :focus-visible,
.cta :focus-visible { outline-color: var(--accent-bright); }
.site-footer :focus-visible { outline-color: var(--accent-bright); }

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mono {
  font-family: var(--mono-font);
  font-size: .625rem;
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform .2s;
}

.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

#main { scroll-margin-top: calc(var(--header-h) + 20px); }
#main:focus,
main section:focus { outline: none; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background-image: url("../img/grain.png");
  background-size: 80px 80px;
  opacity: .5;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}

.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform .3s var(--ease);
}

.btn:hover .icon { transform: translateX(3px); }

.btn:active { transform: scale(.985); }

.btn:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; }

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 12px;
}

.btn--block { width: 100%; }

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--accent:hover { background: var(--accent-ink); }

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover { background: var(--accent); }

.btn--paper {
  background: var(--on-dark);
  color: var(--dark);
}

.btn--paper:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--outline {
  border-color: rgba(242, 237, 228, .3);
  color: var(--on-dark);
}

.btn--outline:hover {
  border-color: var(--on-dark);
  background: var(--on-dark);
  color: var(--dark);
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Хедер ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: .035em;
  line-height: 1;
  white-space: nowrap;
}

.logo--small { font-size: 1.25rem; }

.logo__dot {
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 500;
}

.nav {
  justify-self: center;
  min-width: 0;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.nav__item {
  position: static;
  display: flex;
  align-items: center;
  height: var(--header-h);
}

.nav__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 0;
  color: var(--ink);
  font-family: var(--mono-font);
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s;
}

.nav__num {
  color: var(--muted);
  font-size: .5rem;
  letter-spacing: .02em;
  transition: color .2s;
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav__link:hover { color: var(--accent); }
.nav__link:hover .nav__num { color: var(--accent); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__toggle { display: none; }

.header__meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-family: var(--mono-font);
  font-size: .625rem;
  letter-spacing: .06em;
  white-space: nowrap;
  transition: color .2s;
}

.header__phone .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.header__phone:hover { color: var(--accent); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}

.theme-toggle:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.theme-toggle .icon { width: 16px; height: 16px; }
.theme-toggle .icon--sun { display: none; }

html[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon--moon { display: none; }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color .2s, border-color .2s;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}

.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.header__progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  pointer-events: none;
}

.header__progress span {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  background: var(--accent);
  transition: width .12s linear;
}

.site-header.is-scrolled { box-shadow: 0 12px 30px -28px rgba(18, 17, 16, .55); }

/* ---------- Панель меню ---------- */
.nav__panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 95;
  padding: clamp(32px, 4vw, 56px) 0;
  border-top: 1px solid var(--line-dark);
  background: var(--dark);
  color: var(--on-dark);
  box-shadow: 0 40px 70px -50px rgba(0, 0, 0, .8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .24s, transform .3s var(--ease), visibility .24s;
}

.nav__panel::before {
  content: "";
  position: absolute;
  top: -32px;
  right: 0;
  left: 0;
  height: 32px;
}

.nav__item:hover > .nav__panel,
.nav__item:focus-within > .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav.is-suppressed .nav__panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
}

.nav__panel-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 240px;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.nav__panel-intro .mono { color: var(--on-dark-muted); }

.nav__panel-title {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}

.nav__panel-count {
  display: block;
  margin-top: 14px;
  color: var(--on-dark-muted);
}

.nav__panel-list {
  columns: 2;
  column-gap: clamp(20px, 3vw, 48px);
}

.nav__panel-list li { break-inside: avoid; }

.nav__panel-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(242, 237, 228, .7);
  font-size: 13px;
  line-height: 1.35;
  transition: color .2s, padding-left .2s;
}

.nav__panel-list a .icon {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .2s, transform .2s;
}

.nav__panel-list a:hover {
  padding-left: 4px;
  color: var(--on-dark);
}

.nav__panel-list a:hover .icon {
  opacity: 1;
  transform: none;
  color: var(--accent-bright);
}

.nav__panel :focus-visible { outline-color: var(--accent-bright); }

.nav__panel-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-left: 28px;
  border-left: 1px solid var(--line-dark);
}

.nav__panel-aside p {
  color: var(--on-dark-muted);
  font-size: 13px;
  line-height: 1.5;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent-bright);
  color: var(--on-dark);
  font-family: var(--mono-font);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s, border-color .2s;
}

.text-link .icon { width: 12px; height: 12px; }
.text-link:hover { color: var(--accent-bright); border-color: var(--on-dark); }

.nav__panel-phone {
  color: var(--on-dark-muted);
  font-family: var(--mono-font);
  font-size: 11px;
  letter-spacing: .04em;
}

.nav__panel-phone:hover { color: var(--on-dark); }

.nav__mobile-head,
.nav__mobile-foot { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(20px, 3vw, 40px);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(100svh - var(--header-h) - 40px);
  padding-bottom: clamp(32px, 5vw, 64px);
}

.hero__content {
  padding-block: clamp(24px, 4vw, 48px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
}

.eyebrow__line {
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: .45;
}

.hero h1 {
  max-width: 16ch;
  margin-top: 6px;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7.1vw, 7.4rem);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: .9;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
  overflow: clip;
  overflow-clip-margin: .2em;
}

.hero h1 .line > span {
  display: block;
  transform: translateY(120%);
  animation: line-up 1.1s var(--ease) forwards;
}

.hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .16s; }

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero__lead {
  max-width: 38ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(.9375rem, .9rem + .3vw, 1.0625rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 560px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero__meta dt {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
}

.hero__meta dd {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 8.5px;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 44px);
  color: var(--muted);
}

.hero__scroll-line {
  width: 56px;
  height: 1px;
  background: var(--line-strong);
}

.hero__figure {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 520px;
  align-self: end;
}

.hero__figure::before {
  content: "";
  position: absolute;
  inset: -12px -12px 0;
  border: 1px solid var(--accent);
  border-radius: 999px 999px 0 0;
  opacity: .38;
  pointer-events: none;
}

.hero__arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0 0;
  background: var(--paper-2);
  overflow: hidden;
}

.hero__arch img {
  position: absolute;
  inset: -10% 0 auto;
  width: 100%;
  height: 120%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) sepia(.1);
  transform: translateY(var(--py, 0));
  transition: filter .6s;
}

html[data-theme="dark"] .hero__arch img,
html[data-theme="dark"] .formats__media img {
  filter: grayscale(1) contrast(1.05) brightness(.72);
}

.hero__arch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 17, 16, .22), transparent 45%);
  pointer-events: none;
}

.hero__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.seal {
  position: absolute;
  bottom: 46px;
  left: -30px;
  width: 118px;
  height: 118px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 18px 40px -24px rgba(18, 17, 16, .5);
}

.seal svg {
  width: 100%;
  height: 100%;
  animation: spin 28s linear infinite;
}

.seal text {
  fill: currentColor;
  font-family: var(--mono-font);
  font-size: 7.6px;
  letter-spacing: 2.1px;
}

.seal__star {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
}

/* ---------- Бегущая строка ---------- */
.marquee {
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  background: var(--dark);
  color: var(--on-dark);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  width: max-content;
  animation: marquee 58s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track span {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
}

.marquee__star {
  width: 13px;
  height: 13px;
  color: var(--accent-bright);
}

/* ---------- Преимущества-строка ---------- */
.features {
  padding-block: clamp(36px, 5vw, 60px);
}

.features ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.features li {
  padding: 18px 24px 0 0;
  border-right: 1px solid var(--line);
}

.features li + li { padding-left: 24px; }
.features li:last-child { border-right: 0; padding-right: 0; }

.features .mono { color: var(--accent); }

.features p {
  margin-top: 14px;
  max-width: 23ch;
  color: var(--ink-2);
  font-size: .875rem;
  line-height: 1.45;
}

/* ---------- Секции ---------- */
.section {
  padding-block: clamp(72px, 10vw, 132px);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(40px, 5vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.section-head h2 {
  max-width: 22ch;
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1;
}

.section-head__lead {
  justify-self: end;
  max-width: 36ch;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.55;
}

.section-head--light { border-color: var(--line-dark); }
.section-head--light h2 { color: var(--on-dark); }
.section-head--light .eyebrow,
.section-head--light .section-head__lead { color: var(--on-dark-muted); }

.calc-band .section-head {
  border-color: var(--line-dark);
}

.calc-band .section-head h2 { color: var(--on-dark); }
.calc-band .section-head .eyebrow,
.calc-band .section-head__lead { color: var(--on-dark-muted); }

.process .section-head {
  border-color: color-mix(in srgb, var(--on-accent) 34%, transparent);
}

.process .section-head h2,
.process .section-head .eyebrow,
.process .section-head__lead { color: var(--on-accent); }

.process .section-head__lead { opacity: .95; }

/* ---------- Форматы ---------- */
.formats__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}

.formats__list { border-top: 1px solid var(--ink); }

.format { border-bottom: 1px solid var(--line); }

.format__heading {
  font: inherit;
  line-height: 1;
}

.format__button {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 24px 0;
  text-align: left;
}

.format__index {
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: .5625rem;
  letter-spacing: .1em;
}

.format__name {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.05;
  transition: color .25s;
}

.format__button:hover .format__name { color: var(--accent); }
.format__button:hover .format__index { color: var(--accent); }

.format__price {
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: .5625rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.format__price small { font-size: .5625rem; }

.format__toggle {
  position: relative;
  width: 24px;
  height: 24px;
  transition: transform .35s var(--ease);
}

.format__toggle::before,
.format__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: background-color .25s;
}

.format__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

.format__button.is-open .format__toggle { transform: rotate(45deg); }
.format__button.is-open .format__toggle::before,
.format__button.is-open .format__toggle::after { background: var(--accent); }

.format__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}

.format__panel.is-open { grid-template-rows: 1fr; }

.format__panel-inner { overflow: hidden; }

.format__works {
  columns: 2;
  column-gap: 40px;
  padding: 4px 0 22px;
}

.format__works li {
  position: relative;
  padding: 6px 0 6px 16px;
  break-inside: avoid;
  color: var(--muted);
  font-size: .84375rem;
  line-height: 1.45;
}

.format__works li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--accent);
}

.formats__preview {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.formats__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
}

.formats__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0;
  transform: scale(1.045);
  transition: opacity .7s, transform 1.1s var(--ease);
}

.formats__media img.is-active {
  opacity: 1;
  transform: none;
}

.formats__caption {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- Калькулятор ---------- */
.calc-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--dark);
  color: var(--on-dark);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.calc-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(242, 237, 228, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 237, 228, .055) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 10%, transparent 75%);
  pointer-events: none;
}

.calc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 88px);
}

.calc__group {
  min-width: 0;
  padding: 0;
  border: 0;
}

.calc__group + .calc__group { margin-top: 34px; }

.calc__group legend {
  margin-bottom: 14px;
  padding: 0;
  color: var(--on-dark-muted);
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.seg__btn {
  position: relative;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: rgba(242, 237, 228, .55);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.4;
  transition: color .2s, border-color .2s;
}

.seg__btn:hover { color: var(--on-dark); }

.seg__btn.is-active {
  border-color: var(--accent-bright);
  color: var(--on-dark);
}

.area {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.area__input {
  width: 130px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  background: transparent;
  color: var(--on-dark);
  font-family: var(--display);
  font-size: clamp(2.75rem, 4.4vw, 4rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1;
  transition: border-color .2s;
}

.area__input:focus {
  border-color: var(--accent-bright);
  outline: none;
}

.area span { color: var(--on-dark-muted); }

.range {
  width: 100%;
  height: 2px;
  margin-top: 24px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent-bright) 0 var(--fill, 5.56%), rgba(242, 237, 228, .18) var(--fill, 5.56%) 100%);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 4px solid var(--accent-bright);
  border-radius: 50%;
  background: var(--on-dark);
  box-shadow: 0 0 0 1px rgba(18, 17, 16, .3);
}

.range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 4px solid var(--accent-bright);
  border-radius: 50%;
  background: var(--on-dark);
}

.range::-moz-range-track {
  height: 2px;
  background: rgba(242, 237, 228, .18);
}

.range::-moz-range-progress {
  height: 2px;
  background: var(--accent-bright);
}

.calc__hint {
  margin-top: 10px;
  color: rgba(242, 237, 228, .55);
}

.calc__result {
  padding-left: clamp(24px, 4vw, 52px);
  border-left: 1px solid var(--line-dark);
}

.calc__label { color: var(--on-dark-muted); }

.calc__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 6px;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: .82;
  font-variant-numeric: tabular-nums;
}

.calc__currency {
  color: var(--accent-bright);
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
}

.calc__rate {
  color: var(--on-dark-muted);
  font-family: var(--mono-font);
  font-size: .625rem;
  letter-spacing: .06em;
}

.calc__note {
  margin-top: 4px;
  color: rgba(242, 237, 228, .55);
  font-size: .6875rem;
}

.calc__result .btn {
  width: 100%;
  max-width: 340px;
  margin-top: 28px;
}

.calc__small {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 340px;
  margin-top: 14px;
  color: rgba(242, 237, 228, .55);
  letter-spacing: .04em;
  text-transform: none;
}

.calc__small .icon {
  width: 14px;
  height: 14px;
  color: var(--accent-bright);
}

/* ---------- Таблицы ---------- */
.table-block + .table-block { margin-top: clamp(52px, 7vw, 88px); }

.table-block__head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
}

.table-block__head .mono { color: var(--muted); }

.table-block__head h3 {
  max-width: 24ch;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1;
}

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--line-strong) transparent;
}

.table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.table caption { text-align: left; }

.table thead th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: .5625rem;
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.table thead th:first-child { text-align: left; }

.table tbody th {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-family: var(--mono-font);
  font-size: .6875rem;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.table tbody tr:hover th,
.table tbody tr:hover td { background: var(--paper-2); }

.table th:first-child,
.table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--paper);
}

.table tbody tr:hover th:first-child { color: var(--accent-ink); }

.table th:first-child { border-right: 1px solid var(--line); }
.table td:first-child { border-right: 1px solid var(--line); }

.table-hint {
  display: none;
  margin-top: 10px;
  color: var(--muted);
  letter-spacing: .08em;
}

/* ---------- Прайс ---------- */
.price-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}

.price-rail {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border-top: 1px solid var(--ink);
}

.price-tab {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  padding: 15px 0 15px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  transition: color .2s, border-color .2s, padding-left .2s;
}

.price-tab:hover { color: var(--ink); }

.price-tab__num {
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: .5rem;
  letter-spacing: .06em;
  transition: color .2s;
}

.price-tab.is-active {
  border-left-color: var(--accent);
  color: var(--ink);
}

.price-tab.is-active .price-tab__num { color: var(--accent); }

.price-panel { display: none; }
.price-panel.is-active { display: block; animation: panel-in .4s var(--ease); }

.services { border-top: 1px solid var(--ink); }

.service { border-bottom: 1px solid var(--line); }

.service__heading { font: inherit; line-height: 1; }

.service__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px 0;
  text-align: left;
}

.service__name {
  font-size: clamp(.9375rem, 1.2vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.35;
  transition: color .2s;
}

.service__trigger:hover .service__name { color: var(--accent); }

.service__icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}

.service__icon::before,
.service__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease), background-color .2s;
}

.service__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.service.is-open .service__icon { transform: rotate(45deg); }
.service.is-open .service__icon::before,
.service.is-open .service__icon::after { background: var(--accent); }

.service__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}

.service.is-open .service__body { grid-template-rows: 1fr; }

.service__body-inner { overflow: hidden; }

.price-list {
  columns: 2;
  column-gap: 52px;
  padding: 2px 0 24px;
}

.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
  break-inside: avoid;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.45;
}

.price-list__name { min-width: 0; }

.price-list__value {
  flex: none;
  color: var(--ink);
  font-family: var(--mono-font);
  font-size: .6875rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* ---------- Этапы ---------- */
.process {
  padding-block: clamp(72px, 9vw, 120px);
  background: var(--accent);
  color: var(--on-accent);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid color-mix(in srgb, var(--on-accent) 32%, transparent);
}

.step { padding: 24px 26px 0 0; }

.step + .step {
  padding-left: 26px;
  border-left: 1px solid color-mix(in srgb, var(--on-accent) 24%, transparent);
}

.step__num {
  display: block;
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: .8;
  opacity: .38;
}

.step h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.005em;
  line-height: 1.3;
}

.step h3 a { transition: opacity .2s; }
.step h3 a:hover { opacity: .65; }

.step p {
  margin-top: 10px;
  color: color-mix(in srgb, var(--on-accent) 92%, transparent);
  font-size: .8125rem;
  line-height: 1.55;
}

/* ---------- Бенто ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.bento__item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: translate .35s var(--ease), border-color .3s;
}

.bento__item:hover {
  translate: 0 -3px;
  border-color: var(--line-strong);
}

.bento__item--a {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
  min-height: 480px;
  border-color: var(--line-dark);
  background: var(--dark);
  color: var(--on-dark);
}

.bento__item--b { grid-column: 8 / 13; grid-row: 1 / 2; }
.bento__item--c { grid-column: 8 / 13; grid-row: 2 / 3; }

.bento__item--d {
  grid-column: 1 / 13;
  grid-row: 3 / 4;
  min-height: 200px;
  border-color: transparent;
  background: var(--accent);
  color: var(--on-accent);
}

.bento__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.bento__top .mono { color: var(--muted); }

.bento__top .icon {
  width: 26px;
  height: 26px;
  stroke-width: 1.2;
  color: var(--ink);
}

.bento__item--a .bento__top .mono { color: var(--on-dark-muted); }
.bento__item--a .bento__top .icon { color: var(--accent-bright); }
.bento__item--d .bento__top .mono { color: var(--on-accent); }
.bento__item--d .bento__top .icon { color: var(--on-accent); }

.bento__bottom h3 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.3;
}

.bento__item--a .bento__bottom h3 {
  max-width: 14ch;
  font-family: var(--display);
  font-size: clamp(2.1rem, 3.2vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1;
}

.bento__item--d .bento__bottom h3 {
  max-width: 18ch;
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  font-weight: 400;
  line-height: .98;
}

.bento__item p {
  max-width: 38ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: .84375rem;
  line-height: 1.5;
}

.bento__item--a p { color: var(--on-dark-muted); max-width: 30ch; }
.bento__item--d p { color: color-mix(in srgb, var(--on-accent) 92%, transparent); max-width: 48ch; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 11vw, 150px);
  background: var(--dark);
  color: var(--on-dark);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.cta__word {
  position: absolute;
  right: -3%;
  bottom: -12%;
  font-family: var(--display);
  font-size: 26vw;
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .7;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 228, .08);
  pointer-events: none;
  user-select: none;
}

.cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
}

.cta h2 {
  max-width: 12ch;
  font-family: var(--display);
  font-size: clamp(3rem, 6.4vw, 6.4rem);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: .98;
}

.cta__text > p:not(.eyebrow) {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--on-dark-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.cta .eyebrow { color: var(--on-dark-muted); }

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.circle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono-font);
  font-size: 9px;
  letter-spacing: .12em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
  transition: background-color .25s, color .25s, transform .3s var(--ease);
}

.circle-btn .icon {
  width: 20px;
  height: 20px;
  transition: transform .3s var(--ease);
}

.circle-btn:hover {
  background: var(--on-dark);
  color: var(--dark);
}

.circle-btn:hover .icon { transform: translate(3px, -3px); }

.cta__phone {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-family: var(--mono-font);
  font-size: .625rem;
  letter-spacing: .06em;
  transition: color .2s, border-color .2s;
}

.cta__phone:hover {
  color: var(--on-dark);
  border-color: var(--on-dark);
}

/* ---------- Футер ---------- */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 80px);
  background: #0a0a0b;
  color: var(--on-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.15fr .9fr 1fr;
  gap: 40px 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}

.footer h3 {
  margin-bottom: 18px;
  color: rgba(242, 237, 228, .58);
  font-family: var(--mono-font);
  font-size: .5625rem;
  font-weight: 400;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer__phone {
  display: block;
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1;
  transition: color .2s;
}

.footer__phone:hover { color: var(--accent-bright); }

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  color: rgba(242, 237, 228, .65);
  font-size: .8125rem;
  line-height: 1.5;
}

.footer__contacts .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--accent-bright);
}

.footer__contacts a { transition: color .2s; }
.footer__contacts a:hover { color: var(--on-dark); }

.footer__links li { padding: 5px 0; }

.footer__links a {
  color: rgba(242, 237, 228, .68);
  font-size: .875rem;
  transition: color .2s;
}

.footer__links a:hover { color: var(--accent-bright); }

.footer__cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 20px;
}

.footer__cities li {
  padding: 4px 0;
  color: rgba(242, 237, 228, .55);
  font-family: var(--mono-font);
  font-size: .5625rem;
  letter-spacing: .06em;
  line-height: 1.5;
}

.footer__col .btn { margin-top: 20px; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  color: rgba(242, 237, 228, .55);
  font-family: var(--mono-font);
  font-size: .625rem;
  letter-spacing: .04em;
  line-height: 1.6;
}

.footer__bottom a {
  color: rgba(242, 237, 228, .55);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom a:hover { color: var(--on-dark); }

.footer__wordmark {
  margin-top: 22px;
  margin-bottom: -.06em;
  color: rgba(242, 237, 228, .07);
  font-family: var(--display);
  font-size: clamp(4rem, 17vw, 15rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .72;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(242, 237, 228, .16);
  user-select: none;
}

.footer__wordmark span { color: var(--accent-bright); }

/* ---------- Диалог ---------- */
.lead {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.lead::backdrop {
  background: rgba(10, 10, 10, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lead__inner {
  position: relative;
  max-height: calc(100dvh - 32px);
  padding: clamp(28px, 4vw, 44px);
  border-top: 3px solid var(--accent);
  background: var(--paper);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .6);
  overflow-y: auto;
}

.lead[open] { animation: modal-in .4s var(--ease); }

.lead__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}

.lead__close:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.lead__close .icon { width: 16px; height: 16px; }

.lead__eyebrow {
  color: var(--accent);
  letter-spacing: .14em;
}

.lead__title {
  margin-top: 10px;
  padding-right: 34px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}

.lead__desc {
  max-width: 40ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

.form { margin-top: 26px; }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: .53125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  height: 44px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .2s;
}

.field input::placeholder { color: var(--muted); opacity: .65; }

.field input:focus {
  border-color: var(--accent);
  outline: none;
}

.field input[aria-invalid="true"] { border-color: var(--danger); }

.field__error {
  margin-top: 6px;
  color: var(--danger);
  font-size: .6875rem;
  line-height: 1.4;
}

.form__context {
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.6;
  letter-spacing: .06em;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
  cursor: pointer;
}

.checkbox input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__submit {
  position: relative;
  margin-top: 18px;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(247, 244, 238, .35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.form__submit.is-loading .spinner { display: block; }
.form__submit.is-loading > span:first-child { opacity: .7; }

.lead__success {
  padding: 8px 0;
  text-align: center;
}

.lead__success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.lead__success-mark .icon { width: 24px; height: 24px; stroke-width: 2; }

.lead__success h3 {
  font-family: var(--display);
  font-size: 1.875rem;
  font-weight: 400;
}

.lead__success p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: .875rem;
}

/* ---------- Плавающая кнопка ---------- */
.float-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: none;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 14px 30px -14px rgba(166, 75, 42, .45);
  visibility: hidden;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease), visibility .3s;
}

.float-cta .icon { width: 20px; height: 20px; }

.float-cta.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

body.modal-open .float-cta,
body.nav-open .float-cta {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Появление ---------- */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Анимации ---------- */
@keyframes line-up {
  to { transform: none; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.99); }
  to { opacity: 1; transform: none; }
}

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .35s; }

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: block;
    padding: 18px var(--gutter) 40px;
    background: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform .5s var(--ease), visibility .5s;
  }

  .nav.is-open {
    visibility: visible;
    transform: none;
  }

  .nav__mobile-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav__close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .nav__close .icon { width: 17px; height: 17px; }

  .nav__list {
    display: block;
    margin-top: 24px;
  }

  .nav__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    height: auto;
    border-bottom: 1px solid var(--line);
  }

  .nav__item:not(.has-panel) { grid-template-columns: 1fr; }

  .nav__link {
    align-items: flex-start;
    gap: 10px;
    padding: 16px 0;
    font-family: var(--display);
    font-size: clamp(1.75rem, 6.2vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -.01em;
    line-height: .95;
    text-transform: none;
  }

  .nav__link::after { display: none; }

  .nav__num {
    margin-top: 7px;
    font-family: var(--mono-font);
    font-size: .5rem;
    letter-spacing: .04em;
  }

  .nav__toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: background-color .2s, border-color .2s;
  }

  .nav__toggle span {
    display: block;
    width: 12px;
    height: 1px;
    background: var(--ink);
    transition: transform .3s var(--ease);
  }

  .nav__toggle span + span { margin-top: 5px; }

  .nav__item.is-open .nav__toggle {
    border-color: var(--accent);
    background: var(--accent-soft);
  }

  .nav__item.is-open .nav__toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav__item.is-open .nav__toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .nav__panel {
    position: static;
    display: none;
    grid-column: 1 / -1;
    padding: 0 0 18px;
    border: 0;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__item.is-open > .nav__panel { display: block; }

  .nav__panel::before { display: none; }

  .nav__panel-grid { display: block; padding-inline: 0; }

  .nav__panel-intro,
  .nav__panel-aside { display: none; }

  .nav__panel-list { columns: 1; }

  .nav__panel-list a {
    padding: 8px 4px;
    border-color: var(--line);
    color: var(--muted);
    font-size: .8125rem;
  }

  .nav__panel-list a:hover { padding-left: 8px; color: var(--ink); }
  .nav__panel-list a .icon { display: none; }

  .nav__mobile-foot {
    display: grid;
    gap: 12px;
    margin-top: 28px;
  }

  .nav__mobile-phone {
    padding: 8px 0;
    color: var(--ink);
    font-family: var(--mono-font);
    font-size: .75rem;
    letter-spacing: .06em;
    text-align: center;
  }

  .header__inner {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .menu-btn { display: flex; }
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 32px;
    padding-top: 16px;
  }

  .hero h1 { max-width: 16ch; }

  .hero__figure {
    justify-self: start;
    width: min(100%, 440px);
    max-width: 440px;
  }

  .hero__content { padding-block: 16px 8px; }

  .formats__grid { grid-template-columns: 1fr; }
  .formats__preview { display: none; }

  .calc { grid-template-columns: 1fr; }

  .calc__result {
    padding-top: 32px;
    padding-left: 0;
    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .step:nth-child(3),
  .step:nth-child(4) { margin-top: 28px; }

  .step:nth-child(3) { padding-left: 0; border-left: 0; }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento__item--a,
  .bento__item--b,
  .bento__item--c,
  .bento__item--d {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
  }

  .bento__item--a { grid-column: 1 / -1; min-height: 340px; }
  .bento__item--d { grid-column: 1 / -1; }

  .cta__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta__actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-head__lead {
    justify-self: start;
    max-width: 46ch;
  }

  .price-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .price-rail {
    position: sticky;
    top: var(--header-h);
    z-index: 20;
    display: flex;
    border-top: 0;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .price-rail::-webkit-scrollbar { display: none; }

  .price-tab {
    flex: none;
    width: auto;
    padding: 12px 18px 12px 0;
    border: 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
  }

  .price-tab.is-active {
    border-bottom-color: var(--accent);
    border-left: 0;
  }

  .table-hint { display: block; }

  .steps { grid-template-columns: 1fr; }

  .step,
  .step + .step {
    padding: 20px 0 0 20px;
    margin-top: 0;
    border-left: 1px solid color-mix(in srgb, var(--on-accent) 24%, transparent);
  }

  .step:first-child { padding-left: 20px; }

  .steps { border-top: 0; margin-left: 1px; }

  .step__num { font-size: 2.75rem; margin-bottom: 14px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__col:first-child { grid-column: auto; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .header__phone span { display: none; }
  .header__phone .icon { width: 18px; height: 18px; }
  .header__meta { gap: 8px; }

  .logo { font-size: 1.25rem; }

  .hero__meta { gap: 12px; }
  .hero__meta dt { font-size: 1.25rem; }
  .hero__meta dd { font-size: 8px; letter-spacing: .06em; }

  .hero__figure { width: 100%; max-width: 100%; }
  .hero__figure::before { inset: -8px -8px 0; }
  .seal { width: 92px; height: 92px; left: -8px; bottom: 30px; padding: 8px; }

  .features ul { grid-template-columns: 1fr 1fr; }
  .features li { padding: 16px 16px 0 0; }
  .features li + li { padding-left: 16px; }
  .features li:nth-child(2) { border-right: 0; padding-right: 0; }
  .features li:nth-child(3),
  .features li:nth-child(4) { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
  .features li:nth-child(3) { padding-left: 0; }

  .format__button {
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    gap: 10px;
    padding: 20px 0;
  }

  .format__price {
    grid-column: 2;
    margin-top: 6px;
  }

  .format__toggle { grid-column: 3; grid-row: 1 / span 2; }

  .format__works { columns: 1; }

  .calc__price { font-size: clamp(3.5rem, 14vw, 5rem); }
  .calc__result .btn { max-width: none; }

  .table-block__head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table { min-width: 820px; }

  .price-list { columns: 1; }

  .cta__actions { flex-direction: column; align-items: flex-start; }
  .circle-btn { width: 132px; height: 132px; }

  .footer__cities { grid-template-columns: 1fr 1fr; }
  .footer__bottom { display: block; }
  .footer__bottom p + p { margin-top: 8px; }

  .float-cta { display: grid; }

  .lead__inner { padding: 24px 20px 28px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.7rem, 12vw, 3.5rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta div:last-child { display: none; }
  .hero__scroll { display: none; }

  .features p { font-size: .8125rem; }

  .bento { grid-template-columns: 1fr; }
  .bento__item--a,
  .bento__item--b,
  .bento__item--c,
  .bento__item--d { grid-column: auto; min-height: 220px; }
  .bento__item--a { min-height: 300px; }

  .cta h2 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .cta__word { font-size: 34vw; bottom: -4%; }

  .footer__wordmark { font-size: 22vw; }

  .circle-btn { width: 118px; height: 118px; font-size: 8px; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }

  .hero h1 { font-size: 2.55rem; }
  .hero__lead { font-size: .875rem; }

  .header__meta { gap: 6px; }
  .theme-toggle,
  .menu-btn { width: 38px; height: 38px; }

  .nav__link { font-size: 1.6rem; }

  .format__name { font-size: 1.3rem; }

  .step__num { font-size: 2.25rem; }

  .calc__price { font-size: 3.25rem; }
}

/* ---------- Уменьшенная анимация ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .hero h1 .line > span { transform: none; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Без JS ---------- */
html:not(.js) .price-rail { display: none; }
html:not(.js) .price-layout { grid-template-columns: 1fr; }
html:not(.js) .price-panel { display: block; }
html:not(.js) .price-panel + .price-panel { margin-top: 32px; }
html:not(.js) .service__body { grid-template-rows: 1fr; }
html:not(.js) .service__trigger { pointer-events: none; }
html:not(.js) .format__panel { grid-template-rows: 1fr; }
html:not(.js) .format__button { pointer-events: none; }
html:not(.js) .menu-btn { display: none; }

@media (max-width: 1240px) {
  html:not(.js) .nav {
    position: static;
    padding: 0;
    visibility: visible;
    transform: none;
    overflow: visible;
  }

  html:not(.js) .nav__mobile-head { display: none; }
  html:not(.js) .nav__mobile-foot { display: none; }
  html:not(.js) .nav__toggle { display: none; }

  html:not(.js) .nav__item { grid-template-columns: 1fr; }

  html:not(.js) .nav__panel {
    display: block;
    padding-bottom: 12px;
  }

  html:not(.js) .header__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  html:not(.js) .nav {
    flex-basis: 100%;
    order: 3;
  }
}

/* ---------- Уведомление об отправке ---------- */
.lead-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(242, 237, 228, .18);
  border-left: 3px solid var(--accent-bright);
  border-radius: 12px;
  background: var(--dark);
  color: var(--on-dark);
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .55);
  transform: translateX(-50%);
}

.lead-toast[hidden] { display: none; }

.lead-toast strong { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 500; }
.lead-toast span { display: block; margin-top: 3px; color: var(--on-dark-muted); font-size: .75rem; line-height: 1.4; }
.lead-toast button { margin-left: auto; color: var(--on-dark); font-size: 1.15rem; line-height: 1; flex: none; }

@media (max-width: 760px) {
  .lead-toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- FAQ ---------- */
.faq { max-width: 920px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { content: ""; }
.faq__plus {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
}
.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item p { max-width: 72ch; padding: 0 0 22px; color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.faq__cta { margin-top: 20px; color: var(--muted); font-size: .8125rem; }
.faq__cta button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .5625rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Мобильная панель действий ---------- */
.mobile-bar { display: none; }

@media (max-width: 760px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 -12px 30px -24px rgba(0, 0, 0, .45);
  }
  .mobile-bar__call,
  .mobile-bar__measure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    font-family: var(--mono);
    font-size: .5625rem;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .mobile-bar__call { border: 1px solid var(--line-strong); color: var(--ink); }
  .mobile-bar__call .icon { width: 16px; height: 16px; }
  .mobile-bar__measure { border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); }
  .float-cta { display: none !important; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.nav-open .mobile-bar,
  body.modal-open .mobile-bar { display: none; }
}
