:root {
  --brand: #d90023;
  --brand-hover: #b8001d;
  --text: #111111;
  --muted: #666666;
  --black: #000;
  --white: #fff;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-tint: #f2f2f2;
  --bg-soft: #f6f6f6;
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);
  --radius: 6px;
  --radius-lg: 12px;
  --container: 1120px;
  --section-y: 84px;
  --header-offset: 94px;
  --font: "Manrope", "Museo Sans Cyrl", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--header-offset);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

section[id] {
  scroll-margin-top: calc(var(--header-offset) + 8px);
}

/* Skip paint work for off-screen sections */
.equipment,
.quiz,
.guarantee,
.system,
.steps,
.geo,
.cases,
.reviews,
.history,
.meet,
.production,
.faq,
.contacts {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}


.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

main > section:nth-child(even) {
  background: var(--bg-tint);
}

main > section:nth-child(odd):not(.hero) {
  background: var(--white);
}

.equipment,
.profit,
.catalog,
.quiz-section,
.guarantee,
.calc,
.system,
.steps,
.geo,
.cases,
.reviews,
.history,
.meet,
.production,
.faq {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.geo > .geo__map {
  width: 100%;
}

h1,
h2 {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.22;
  color: var(--text);
  letter-spacing: -0.025em;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-lead {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 720px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--brand);
  color: var(--white);
  padding: 12px 22px;
  box-shadow: 0 8px 20px rgba(217, 0, 35, 0.25);
}

.btn--dark:hover {
  background: var(--brand-hover);
}

.btn--ghost,
.btn--outline {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
}

.btn--ghost {
  padding: 6px 12px;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.btn--ghost:hover,
.btn--outline:hover {
  background: var(--brand);
  color: var(--white);
}

.btn--outline {
  padding: 12px 24px;
  min-width: 160px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.btn--sm {
  height: 34px;
  padding: 0 12px;
}

.btn--wide {
  width: 100%;
}

.btn--card {
  margin-top: auto;
  align-self: flex-start;
}

.icon-box {
  width: 42px;
  height: 42px;
  background: rgba(217, 0, 35, 0.08);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--brand);
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.icon-box svg path,
.icon-box svg circle,
.icon-box svg rect {
  stroke: var(--brand);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--brand);
  color: var(--brand);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
}

/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  /* Leaving dark: text darkens faster than the bar lightens. */
  transition:
    background 0.25s cubic-bezier(0.7, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.7, 0, 0.2, 1),
    color 0.125s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .header__phone,
.header .nav__link,
.header .nav__toggle,
.header .btn--ghost,
.header .header__call,
.header .header__call img {
  transition:
    color 0.125s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.125s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.125s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.125s cubic-bezier(0.4, 0, 0.2, 1);
}

.header .burger span {
  transition:
    background 0.125s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.22s ease,
    opacity 0.22s ease;
}

body:has(.hero--home),
body:has(.hero--robot),
body:has(.hero--self-service) {
  padding-top: 0;
}

.header--over-hero {
  background: rgba(0, 0, 0, 0.5);
  box-shadow: none;
  color: var(--white);
  /* Entering dark: keep text in sync with the bar. */
  transition:
    background 0.25s cubic-bezier(0.7, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.7, 0, 0.2, 1),
    color 0.25s cubic-bezier(0.7, 0, 0.2, 1);
}

.header--over-hero .header__phone,
.header--over-hero .nav__link,
.header--over-hero .nav__toggle,
.header--over-hero .btn--ghost,
.header--over-hero .header__call,
.header--over-hero .header__call img {
  transition:
    color 0.25s cubic-bezier(0.7, 0, 0.2, 1),
    background 0.25s cubic-bezier(0.7, 0, 0.2, 1),
    border-color 0.25s cubic-bezier(0.7, 0, 0.2, 1),
    filter 0.25s cubic-bezier(0.7, 0, 0.2, 1);
}

.header--over-hero .burger span {
  transition:
    background 0.25s cubic-bezier(0.7, 0, 0.2, 1),
    transform 0.22s ease,
    opacity 0.22s ease;
}

.header--over-hero .header__phone,
.header--over-hero .nav__link,
.header--over-hero .nav__toggle {
  color: var(--white);
}

.header--over-hero .header__phone:hover,
.header--over-hero .header__phone.is-copied {
  color: var(--brand);
}

.header--over-hero .btn--ghost {
  border-color: var(--white);
  color: var(--white);
}

.header--over-hero .btn--ghost:hover {
  background: var(--white);
  color: var(--text);
  border-color: var(--white);
}

.header--over-hero .nav {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.header--over-hero .nav__dropdown {
  color: var(--text);
}

.header--over-hero .header__call {
  color: var(--white);
}

.header--over-hero .header__call img,
.header--over-hero .header__call:hover img {
  filter: brightness(0) invert(1);
}

.header--over-hero .burger span {
  background: var(--white);
}

.header__inner {
  padding-top: 8px;
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
}

.logo img {
  display: block;
  height: 30px;
  width: auto;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__phone {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--brand);
}

.header__phone.is-copied {
  color: var(--brand);
}

.header__tools {
  display: none;
}

.header__call {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  flex-shrink: 0;
}

.header__call img {
  display: block;
  width: 22px;
  height: 22px;
}

.header__call:hover {
  color: var(--brand);
}

.header__call:hover img {
  filter: invert(14%) sepia(90%) saturate(6400%) hue-rotate(343deg) brightness(90%) contrast(115%);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  touch-action: manipulation;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background-color: var(--brand);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav__link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav__item--drop {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav__chevron {
  display: inline-flex;
  width: 12px;
  height: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav__list {
  display: contents;
}

.nav__cta {
  display: none;
}

.nav__chevron svg {
  display: block;
}

.nav__item--drop:hover .nav__chevron,
.nav__item--drop:focus-within .nav__chevron {
  transform: rotate(180deg);
}

.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 0;
  box-shadow: var(--shadow);
  z-index: 5;
}

.nav__dropdown a {
  display: block;
  padding: 10px 16px;
  white-space: normal;
}

.nav__dropdown a:hover {
  color: var(--brand);
  background: rgba(217, 0, 35, 0.04);
}

.nav__item--drop:hover .nav__dropdown,
.nav__item--drop:focus-within .nav__dropdown {
  display: block;
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-offset));
  min-height: calc(100dvh - var(--header-offset));
  display: flex;
  align-items: center;
  padding: var(--section-y) 0;
  color: var(--white);
  overflow: hidden;
}

.hero--home,
.hero--robot,
.hero--self-service {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-offset) + var(--section-y));
}

.hero__background {
  position: absolute;
  inset: 0;
  background:
    url("../images/hero-car-wash-bg.webp")
    center / cover no-repeat;
}

.hero--self-service .hero__background {
  background-image: url("../images/hero-self-service-bg.webp");
  background-position: center;
}

.hero--home .hero__background {
  background-image: url("../images/hero-home-bg.webp");
  background-position: center;
}

.hero--robot .hero__background {
  background-image: url("../images/hero-robot-bg.webp");
  background-position: center;
}

.hero--home .hero__overlay,
.hero--self-service .hero__overlay,
.hero--robot .hero__overlay {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0));
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 32px;
}

.hero__crumbs {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.58);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero__crumbs a {
  color: rgba(255, 255, 255, 0.78);
}

.hero__crumbs a:hover {
  color: var(--white);
}

.hero h1 {
  max-width: 780px;
  color: var(--white);
  font-size: 44px;
  font-weight: 200;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 0, 0, 0.28);
}

.hero--home h1 {
  font-size: 40px;
}

.hero h1 .hero__mark,
.hero .hero__lead .hero__mark {
  font-weight: 800;
  text-shadow: inherit;
}

.meet__timer .hero__mark {
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-size: 100% 1em;
  background-position: 0 50%;
  text-shadow: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__price {
  display: inline-flex;
  align-items: center;
  margin-left: 0.15em;
  padding: 0.12em 0.55em;
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  vertical-align: middle;
  text-shadow: none;
  white-space: nowrap;
}

.hero__lead {
  margin-top: 14px;
  font-size: 17px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 0, 0, 0.28);
}

.hero__note {
  margin: 16px 0 0;
  max-width: 440px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 0, 0, 0.28);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 40px;
}

.hero__cta .hero__note {
  order: 1;
  margin-top: 0;
}

.hero__cta .btn {
  order: 2;
  margin-top: 1.5em;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-indent: 0.08em;
  padding: 16px 32px;
}

.hero__stat {
  width: 240px;
  height: 240px;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.hero__stat-num {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--white);
}

.hero__stat-cap {
  margin-top: 8px;
  font-size: 20px;
  max-width: 168px;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 1201px) and (max-height: 860px) {
  .hero {
    align-items: flex-start;
  }

  .hero--home,
  .hero--robot,
  .hero--self-service {
    padding-top: calc(var(--header-offset) + 36px);
    padding-bottom: 36px;
  }

  .hero__cta {
    margin-top: 28px;
  }

  .hero__cta .btn {
    margin-top: 1.1em;
  }
}

/* Benefits */

.benefits {
  padding: var(--section-y) 0;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.benefit {
  padding: 8px 8px 0 0;
}

.benefit h3 {
  margin: 12px 0 6px;
  font-size: 17px;
}

.benefit p {
  max-width: 332px;
  color: var(--muted);
  font-size: 1rem;
}

/* Equipment */

.equipment {
  padding: var(--section-y) 0;
}

.equipment h2 {
  max-width: none;
}

.equipment .section-lead {
  color: var(--text);
  margin-top: 16px;
}

.equipment__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 36px;
}

.eq-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eq-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.eq-card__media {
  display: block;
  width: 100%;
  height: 260px;
  flex: 0 0 260px;
  object-fit: cover;
  object-position: center;
  background: #ddd center / cover no-repeat;
  margin: 0;
}

.eq-card__media--project {
  background-image: url("../images/project-carwash.webp");
}

.eq-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  padding: 26px 28px 28px;
}

.eq-card h3 {
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.eq-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.eq-card .btn {
  margin-top: auto;
}

/* Profit */

.profit {
  padding: var(--section-y) 0;
}

.profit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: 48px 56px;
  align-items: stretch;
}

.profit__copy h2 {
  margin-bottom: 40px;
}

.profit__copy h2 strong {
  color: var(--brand);
  font-weight: inherit;
}

.profit__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-bottom: 40px;
}

.profit__stats dt {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.profit__stats dd {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.profit__points {
  list-style: none;
  display: grid;
  gap: 16px;
}

.profit__points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.profit__points svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.profit__points svg path,
.profit__points svg circle,
.profit__points svg rect {
  stroke: var(--text);
}

.profit__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

/* Catalog */

.catalog {
  padding: var(--section-y) 0;
}

.catalog h2 {
  max-width: none;
  white-space: nowrap;
}

.catalog__brand {
  margin: 48px 0 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.catalog h2 + .catalog__brand {
  margin-top: 40px;
}

.catalog__brand + .catalog__grid {
  margin-top: 24px;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
  margin-top: 40px;
  align-items: stretch;
}

.catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;
}

.catalog-card__media {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  background: #ddd;
  border-radius: 12px;
  margin-bottom: 20px;
}

.catalog-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.28;
}

.catalog-card p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.catalog-card p.catalog-card__price {
  margin-top: auto;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.catalog-card p.catalog-card__price strong {
  color: var(--brand);
  font-weight: inherit;
}

.catalog-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  align-items: start;
}

.catalog-card .btn {
  width: 100%;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.catalog__grid--plans {
  gap: 20px;
  align-items: stretch;
}

.catalog-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 28px 24px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.catalog-plan--featured {
  border: 2px solid var(--brand);
  box-shadow: 0 20px 48px rgba(217, 0, 35, 0.16);
  padding: 36px 24px 28px;
  transform: scale(1.04);
  transform-origin: center center;
  z-index: 1;
}

.catalog-plan--featured .catalog-plan__name {
  font-size: 24px;
}

.catalog-plan--featured .catalog-plan__price {
  font-size: 32px;
}

.catalog-plan__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.catalog-plan__name {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.catalog-plan__price {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.catalog-plan__price strong {
  color: var(--brand);
  font-weight: inherit;
}

.catalog-plan__lead {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.catalog-plan__list-wrap {
  position: relative;
  flex: 1 1 auto;
  margin: 0 0 20px;
}

.catalog-plan__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.catalog-plan__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}

.catalog-plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.catalog-plan__list li.catalog-plan__also {
  padding: 10px 12px;
  margin-bottom: 4px;
  padding-left: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand);
  background: rgba(217, 0, 35, 0.08);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
}

.catalog-plan__list li.catalog-plan__also::before {
  content: none;
}

.catalog-plan__list strong {
  font-weight: 700;
}

.catalog-plan__qty {
  margin-left: 0.35em;
  font-size: inherit;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.catalog-plan > .btn {
  margin-top: auto;
}

.catalog--dark {
  background:
    radial-gradient(
      ellipse 62% 54% at 50% 56%,
      rgba(255, 40, 70, 0.38) 0%,
      rgba(217, 0, 35, 0.28) 28%,
      rgba(217, 0, 35, 0.1) 55%,
      transparent 78%
    ),
    #000;
}

main > section.catalog--dark:nth-child(odd),
main > section.catalog--dark:nth-child(even) {
  background:
    radial-gradient(
      ellipse 62% 54% at 50% 56%,
      rgba(255, 40, 70, 0.38) 0%,
      rgba(217, 0, 35, 0.28) 28%,
      rgba(217, 0, 35, 0.1) 55%,
      transparent 78%
    ),
    #000;
}

.catalog--dark h2 {
  color: var(--white);
}

/* Quiz */

.quiz-section {
  padding: var(--section-y) 0;
}

.quiz-section__title {
  text-align: left;
  max-width: 820px;
  margin: 0 0 28px;
}

.quiz {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 28px;
  background: var(--white);
  padding: 24px 28px 32px;
  min-height: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.quiz__progress {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.quiz__progress b {
  color: var(--brand);
}

.quiz__bar {
  margin-top: 12px;
  width: min(100%, 622px);
  height: 8px;
  background: #ececec;
  border-radius: 20px;
  overflow: hidden;
}

.quiz__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: 20px;
  transition: width 0.3s ease;
}

.quiz__form h3 {
  margin: 18px 0 16px;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

.quiz-options {
  display: grid;
  gap: 12px;
}

.quiz-options--two {
  grid-template-columns: 1fr 1fr;
  max-width: 560px;
  column-gap: 20px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.quiz-option:hover {
  border-color: var(--brand);
}

.quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-option__box {
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  background: var(--white);
}

.quiz-option input:checked + .quiz-option__box {
  border-color: var(--brand);
}

.quiz-option input:checked + .quiz-option__box::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--brand);
}

.quiz-option:has(input:checked) {
  border-color: var(--brand);
  background: rgba(217, 0, 35, 0.04);
}

.quiz__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.quiz__nav[hidden] {
  display: none;
}

.quiz__nav .btn {
  min-width: 120px;
}

@media (max-width: 860px) {
  .quiz__nav {
    flex-direction: column;
  }

  .quiz__nav #quiz-next {
    order: -1;
  }

  .quiz__nav .btn {
    width: 100%;
  }
}

.quiz-done-text {
  max-width: 480px;
  margin-bottom: 20px;
  color: var(--muted);
}

.quiz-done-form {
  max-width: 380px;
}

.quiz-done-form .btn {
  margin-top: 4px;
}

.quiz-done-form .check {
  margin-top: 12px;
}

.quiz__aside {
  border-left: 1px solid var(--line);
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz__photo-frame {
  width: 140px;
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background:
    url("../images/office-bg.webp")
    center / cover no-repeat;
}

.quiz__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.quiz__person strong {
  display: block;
  font-weight: 700;
  font-size: 18px;
}

.quiz__person span {
  display: block;
  margin: 6px 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.quiz__person p {
  font-size: 15px;
  color: #333;
}

/* Guarantee */

.guarantee {
  padding: var(--section-y) 0;
  min-height: calc(80vh * 2 / 3);
}

.guarantee__head {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 40px;
  align-items: start;
}

.guarantee__head h2 {
  max-width: 608px;
}

.guarantee__head h2 strong {
  color: var(--brand);
  font-weight: inherit;
}

.guarantee__doc {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.guarantee__doc img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.guarantee__doc figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.guarantee__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.guarantee__grid article {
  min-width: 0;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
}

.guarantee__photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

main > section.guarantee:nth-child(even) .guarantee__grid article {
  background: var(--white);
}

.guarantee__grid h3 {
  margin: 16px 0 8px;
  font-size: 17px;
}

.guarantee__grid p {
  max-width: 332px;
  color: var(--muted);
}

/* Payback calculator */

.calc {
  padding: var(--section-y) 0;
  min-height: calc(80vh * 2 / 3);
}

.calc__card {
  --calc-pad: 40px;
  padding: var(--calc-pad);
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: var(--calc-pad);
  align-items: stretch;
}

.calc__main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.calc__main h2 {
  max-width: 18em;
}

.calc__lead {
  margin: 12px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 15px;
}

.calc-controls {
  display: grid;
  gap: 20px;
}

.calc-control__label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.calc-slider {
  position: relative;
  padding-bottom: 36px;
}

.calc-slider__hit {
  display: none;
}

.calc-slider__input {
  --pct: 20%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: linear-gradient(to right, var(--brand) 0 var(--pct), #ddd var(--pct) 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 4px;
  outline: none;
  cursor: pointer;
  touch-action: none;
}

.calc-slider__input::-webkit-slider-runnable-track {
  height: 22px;
  border-radius: 0;
  background: transparent;
}

.calc-slider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: 0;
  border: 3px solid var(--brand);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(217, 0, 35, 0.25);
  cursor: pointer;
}

.calc-slider__input::-moz-range-track {
  height: 22px;
  border: 0;
  background: transparent;
}

.calc-slider__input::-moz-range-progress {
  height: 4px;
  background: transparent;
}

.calc-slider__input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid var(--brand);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(217, 0, 35, 0.25);
  cursor: pointer;
}

.calc-slider__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.calc-slider__value {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  pointer-events: none;
}

.calc-toggle {
  display: flex;
  gap: 10px;
  max-width: 360px;
}

.calc-toggle__item {
  flex: 1;
  cursor: pointer;
}

.calc-toggle__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-toggle__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(217, 0, 35, 0.14);
  border-radius: 999px;
  background: transparent;
  color: var(--brand);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-toggle__item:hover span {
  border-color: rgba(217, 0, 35, 0.14);
  color: var(--brand);
}

.calc-toggle__item input:checked + span {
  background: rgba(217, 0, 35, 0.07);
  border-color: rgba(217, 0, 35, 0.14);
  color: var(--brand);
  box-shadow: var(--shadow);
}

.calc-toggle__item input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.calc-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
  padding: 22px 24px;
  background: rgba(217, 0, 35, 0.07);
  border: 1px solid rgba(217, 0, 35, 0.14);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.calc-result span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

.calc-result b {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.calc-form {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  background: var(--bg-alt);
  border-radius: 10px;
}

.calc-form h3 {
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.calc-form__list {
  margin-bottom: 22px;
  gap: 14px;
}

.calc-form__list li {
  max-width: none;
  font-size: 14px;
  color: var(--text);
}

.calc-form .btn {
  margin-bottom: 4px;
}

.calc-form .check {
  margin-top: 10px;
}

.calc-form .check a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* System */

.system {
  padding: var(--section-y) 0;
  min-height: calc(80vh - var(--header-offset));
}

.system h2 {
  color: var(--text);
}

.system__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.15fr);
  gap: 24px 8px;
  align-items: center;
}

.system__content {
  container-type: inline-size;
}

@media (min-width: 1201px) {
  .system__content h2 {
    position: relative;
    padding-block: 16px;
  }

  .system__content h2::before,
  .system__content h2::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
      to right,
      color-mix(in srgb, var(--text) 50%, transparent) 0%,
      transparent 100%
    );
    pointer-events: none;
  }

  .system__content h2::before {
    top: 0;
  }

  .system__content h2::after {
    bottom: 0;
  }
}

.system__content .btn {
  margin-top: 24px;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.feature-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}

.feature-list__n {
  color: var(--brand);
  font-weight: 700;
  font-size: 18px;
  padding-top: 4px;
}

.feature-list h3 {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--text);
}

@media (min-width: 1201px) {
  .feature-list {
    margin-top: 40px;
  }

  .system__content .btn {
    margin-top: 40px;
  }

  .feature-list li {
    grid-template-columns: auto 1fr;
    gap: 18px 16px;
    align-items: start;
  }

  .feature-list__n {
    display: flex;
    align-items: center;
    padding-top: 0;
    font-size: 17px;
    line-height: 24px;
    height: 24px;
    letter-spacing: -0.01em;
  }

  .feature-list h3 {
    line-height: 24px;
  }
}

.feature-list p {
  max-width: 80%;
  max-width: 80cqi;
  color: var(--muted);
}

.system__content h2 strong,
.feature-list p strong {
  color: var(--brand);
  font-weight: inherit;
}

.system__visual {
  --phone-w: 180px;
  --phone-half: calc(var(--phone-w) / 2);
  --phone-overhang: 28px;
  position: relative;
  padding: var(--phone-overhang) var(--phone-half);
}

.system__photo {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.system__phones {
  position: absolute;
  inset: var(--phone-overhang) var(--phone-half);
  z-index: 2;
  pointer-events: none;
}

.phone-mock {
  width: var(--phone-w);
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top center;
  background: #fff;
  border-radius: 28px;
  position: absolute;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border: 6px solid #1a1a1a;
  display: block;
  pointer-events: auto;
}

.phone-mock--app {
  left: 0;
  bottom: calc(-1 * var(--phone-overhang));
  transform: translateX(-50%);
  z-index: 3;
}

.phone-mock--stats {
  right: 0;
  top: calc(-1 * var(--phone-overhang));
  transform: translateX(50%);
  z-index: 2;
}

@media (min-width: 1201px) {
  .system__grid {
    align-items: stretch;
  }

  .system__visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .system__phones {
    inset: 0 var(--phone-half);
  }

  .phone-mock--app {
    bottom: 0;
  }

  .phone-mock--stats {
    top: 0;
  }
}

/* Steps */

.steps {
  padding: var(--section-y) 0;
  overflow-x: auto;
}

.steps h2 {
  max-width: none;
  margin-bottom: 44px;
  white-space: nowrap;
}

.timeline {
  min-width: 900px;
}

.timeline__row {
  display: grid;
  gap: 24px;
}

.timeline__row--top {
  grid-template-columns: 1.15fr 1.15fr 1fr 1fr;
  padding-bottom: 28px;
}

.timeline__row--bottom {
  grid-template-columns: 0.55fr 1.15fr 1.15fr 1.15fr;
  padding-top: 28px;
}

.timeline__row--bottom .timeline__item:first-child {
  grid-column: 2;
}

.timeline__line {
  height: 1px;
  background: var(--text);
  position: relative;
}

.timeline__item {
  position: relative;
}

.timeline__n {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.timeline__item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.timeline__item p {
  max-width: 334px;
  color: var(--muted);
  font-size: 15px;
}

.timeline__dot {
  display: block;
  position: absolute;
  left: 14px;
  width: 1px;
  background: var(--text);
  transform: translateX(-50%);
  pointer-events: none;
}

.timeline__row--top .timeline__dot {
  top: 100%;
  height: 28px;
}

.timeline__row--bottom .timeline__dot {
  bottom: 100%;
  height: 28px;
}

.timeline__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
  transform: translate(-50%, -50%);
}

.timeline__row--top .timeline__dot::after {
  top: 100%;
}

.timeline__row--bottom .timeline__dot::after {
  top: 0;
}

@media (min-width: 1201px) {
  .steps {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .steps__pin {
    position: sticky;
    top: var(--header-offset);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: var(--section-y) 0;
    overflow: hidden;
    background: inherit;
  }

  .timeline {
    --timeline-cols: 7;
    --timeline-gap: 88px;
    display: grid;
    grid-template-columns: repeat(var(--timeline-cols), minmax(0, 1fr));
    column-gap: var(--timeline-gap);
    row-gap: 28px;
    width: 2640px;
    min-width: 2640px;
    padding-top: 52px;
    will-change: transform;
    align-items: stretch;
  }

  .timeline__row {
    display: contents;
    gap: 0;
  }

  .timeline__line {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-inline: calc(
      (100% - (var(--timeline-cols) - 1) * var(--timeline-gap))
      / var(--timeline-cols)
      / 2
    );
  }

  .timeline__row--top .timeline__item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .timeline__row--top .timeline__item:nth-child(2) { grid-column: 3; grid-row: 1; }
  .timeline__row--top .timeline__item:nth-child(3) { grid-column: 5; grid-row: 1; }
  .timeline__row--top .timeline__item:nth-child(4) { grid-column: 7; grid-row: 1; }

  .timeline__row--bottom .timeline__item:nth-child(1) { grid-column: 2; grid-row: 3; }
  .timeline__row--bottom .timeline__item:nth-child(2) { grid-column: 4; grid-row: 3; }
  .timeline__row--bottom .timeline__item:nth-child(3) { grid-column: 6; grid-row: 3; }

  .timeline__row--top .timeline__item,
  .timeline__row--bottom .timeline__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .timeline__row--top .timeline__item h3,
  .timeline__row--bottom .timeline__item h3 {
    margin-bottom: 0;
  }

  .timeline__row--top .timeline__n {
    order: 1;
    margin-top: auto;
    margin-bottom: 0;
  }

  .timeline__row--bottom .timeline__n {
    margin-bottom: 0;
  }

  .timeline__item p {
    margin-inline: auto;
  }

  .timeline__dot {
    left: 50%;
  }

  .timeline__row--top .timeline__item .pill {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    margin: 0 0 10px;
    white-space: nowrap;
  }
}

@media (min-width: 1201px) {
  .cases {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: #000;
  }

  main > section.cases:nth-child(odd),
  main > section.cases:nth-child(even) {
    background: #000;
  }

  .cases__pin {
    position: sticky;
    top: var(--header-offset);
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    padding: var(--section-y) 0;
    overflow: hidden;
    background: #000;
  }

  .video-reviews {
    width: max-content;
    min-width: 100%;
    will-change: transform;
  }

  .cases [data-pin-spacer],
  .steps [data-pin-spacer] {
    width: 100%;
    pointer-events: none;
    visibility: hidden;
  }
}

@media (min-width: 1201px) and (prefers-reduced-motion: reduce) {
  .steps,
  .cases {
    overflow-x: auto;
    padding: var(--section-y) 0;
  }

  .steps__pin,
  .cases__pin {
    position: static;
    height: auto;
    overflow: visible;
    padding: 0;
    display: block;
  }
}

/* Geo */

.geo {
  padding: var(--section-y) 0;
}

.geo h2 {
  max-width: 811px;
  margin-bottom: 24px;
}

.geo__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 28px;
}

.geo__num {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.04em;
}

.geo__label {
  font-size: 16px;
  font-weight: 600;
  margin-top: 2px;
}

.geo__stats p {
  margin-top: 12px;
  max-width: 419px;
  color: var(--muted);
}

.geo__map {
  min-height: 0;
  padding: 8px 0 0;
  width: 100%;
}

.geo__ymap {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.geo__map-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 56vh;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: #e3e3e3;
  box-shadow: var(--shadow-lg);
}

.map-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.geo__map-frame.is-map-ready > .map-preview,
.contacts__map.is-map-ready > .map-preview {
  display: none;
}

.geo__map-frame.is-map-error .geo__ymap,
.contacts__map.is-map-error .contacts__ymap {
  visibility: hidden;
  pointer-events: none;
}

.geo__map-error,
.map-fallback {
  margin: 0;
  padding: 24px 28px;
  max-width: 22em;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #555;
}

.geo__ymap .map-fallback,
.contacts__map .map-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  max-width: none;
  pointer-events: none;
}

.geo__ymap.is-map-ready .map-fallback,
.contacts__map.is-map-ready .map-fallback,
.geo__map-frame.is-map-ready .map-fallback {
  display: none;
}

.geo-balloon {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  color: #111;
}

.geo-balloon strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.geo-balloon p {
  margin: 0 0 4px;
  color: #444;
}

/* Cases */

.cases {
  width: 100%;
  padding: var(--section-y) 0;
  min-height: 80vh;
  background: #000;
  color: var(--white);
  scroll-margin-top: 0;
}

@media (min-width: 1201px) {
  .cases {
    padding: 0;
    min-height: 0;
    background: #000;
  }

  main > section.cases:nth-child(odd),
  main > section.cases:nth-child(even) {
    background: #000;
  }
}

main > section.cases:nth-child(odd),
main > section.cases:nth-child(even) {
  background: #000;
}

.cases h2 {
  margin-bottom: 20px;
  color: var(--white);
}

.carousel {
  position: relative;
}

.case-slide {
  display: none;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  background: var(--bg-soft);
  padding: 20px;
  align-items: start;
  border-radius: var(--radius-lg);
}

.case-slide.is-active {
  display: grid;
}

.case-slide__media {
  height: 260px;
  background: #ccc center / cover no-repeat;
  position: relative;
  border-radius: var(--radius);
  background-image: url("../images/case-slide-1.webp");
}

.case-slide__media--2 {
  background-image: url("../images/case-slide-2.webp");
}

.case-slide__media--3 {
  background-image: url("../images/case-slide-3.webp");
}

.play {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(217, 0, 35, 0.4);
}

.play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 19px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--white);
}

.case-slide__body h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin-bottom: 28px;
}

.case-metrics span {
  display: block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-metrics b {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.case-slide__body p {
  max-width: 685px;
  margin-bottom: 16px;
  color: var(--muted);
}

.case-slide__body cite {
  font-style: normal;
  font-size: 18px;
  font-weight: 600;
}

.carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.circle-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.circle-btn:hover {
  background: var(--brand);
}

.circle-btn::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

.circle-btn--next::after {
  left: 15px;
  transform: rotate(-135deg);
}

/* Reviews */

.reviews {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow: hidden;
  padding: var(--section-y) 0;
  min-height: 0;
  --review-photo-max: calc(461px * 2 / 3);
}

.reviews h2 {
  max-width: 900px;
  margin-bottom: 20px;
}

.video-reviews {
  display: flex;
  gap: 24px;
  align-items: start;
}

.video-review {
  display: block;
  flex: 0 0 268px;
  width: 268px;
  margin: 0;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.video-review__frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.video-review__fs {
  position: absolute;
  right: 8px;
  bottom: 22px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.video-review__fs:hover {
  background: rgba(217, 0, 35, 0.9);
}

.video-review__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 18px;
  cursor: pointer;
  touch-action: none;
}

.video-review__bar::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.video-review__bar-fill {
  position: absolute;
  left: 8px;
  bottom: 7px;
  z-index: 1;
  height: 4px;
  width: 0;
  max-width: calc(100% - 16px);
  border-radius: 999px;
  background: var(--brand);
  pointer-events: none;
}

.video-review__bar-fill::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--brand);
  transform: translateY(-50%);
}

.video-review__player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #111;
  border-radius: 8px;
}

.video-review__player::-webkit-media-controls,
.video-review__player::-webkit-media-controls-enclosure {
  display: none !important;
}

.video-review__frame:fullscreen,
.video-review__frame:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-review__frame:fullscreen .video-review__player,
.video-review__frame:-webkit-full-screen .video-review__player {
  width: auto;
  height: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}

.video-review__frame:fullscreen .video-review__bar,
.video-review__frame:-webkit-full-screen .video-review__bar {
  height: 28px;
}

.video-review__frame:fullscreen .video-review__fs,
.video-review__frame:-webkit-full-screen .video-review__fs {
  bottom: 36px;
}

.video-review figcaption {
  margin-top: 10px;
  padding: 0 4px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: #f0f0f0;
  text-align: center;
}

.video-reviews__swipe-hint {
  display: none;
}

.reviews-wrap {
  width: 100%;
  overflow-x: hidden;
  padding: 40px 0 52px;
  /* Keep shadow room without growing the section seam past section-y. */
  margin-bottom: -52px;
}

.reviews-list {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: max-content;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.review-card {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  max-width: min(80vw, 640px);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 8px 12px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.review-card img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: var(--review-photo-max);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* History */

.history {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--section-y) 0;
  min-height: 0;
}

.history__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}

.history__grid h2 {
  margin-bottom: 32px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 18px;
}

.check-list li {
  position: relative;
  padding-left: 36px;
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='9' fill='%23d90023'/%3E%3Cpath d='M8 12.2l2.4 2.4L16 9' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat;
}

.history .check-list strong {
  color: var(--brand);
  font-weight: inherit;
}

.history__more {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.history__opt {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 600;
}

.history__photo {
  display: block;
  width: 100%;
  height: 0;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* Meet */

.meet {
  padding: var(--section-y) 0;
  background: #000;
  color: var(--white);
}

main > section.meet:nth-child(odd),
main > section.meet:nth-child(even) {
  background: #000;
}

main > section {
  position: relative;
}

/* Always-on veil: fades in over neighbors without changing the section itself. */
main > section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.7, 0, 0.2, 1);
}

main > section.is-dark-adjacent::after,
main > section.is-tone-adjacent::after {
  opacity: 1;
  pointer-events: auto;
}

main > section.is-tone-adjacent::after {
  background: var(--focus-tone, var(--bg-tint));
}

@media (max-width: 1200px) {
  /* Steps tone-wash is desktop-only; neutralize if a class leaks through. */
  main > section.is-tone-adjacent::after {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  main > section::after {
    transition: none;
  }
}

.meet__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1.15fr);
  gap: 40px 48px;
  align-items: stretch;
}

.meet__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meet__kicker {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--brand);
  font-weight: 700;
}

.meet__info h2 {
  max-width: 18em;
  margin-bottom: 0;
  color: var(--white);
}

.meet__info p {
  max-width: 38em;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.meet__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.meet__copy .check-list li {
  max-width: none;
  color: rgba(255, 255, 255, 0.88);
}

.meet__copy p:last-of-type {
  margin-bottom: 0;
}

.meet__timer {
  display: none;
}

.meet__card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  background: var(--white);
  color: var(--text);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.meet__person {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.meet__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background:
    url("../images/office-bg.webp")
    center / cover no-repeat;
}

.meet__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.meet__role {
  font-size: 14px;
  color: var(--muted);
}

.meet__person strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0;
}

.meet__person p:last-child {
  color: var(--muted);
}

.meet__form {
  overflow: hidden;
  padding: 0 28px 28px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.meet__form h3 {
  font-size: 17px;
  margin-bottom: 14px;
  font-weight: 600;
}

.meet__form-banner {
  margin: 0 -28px 24px;
  padding: 10px 20px;
  background: rgba(217, 0, 35, 0.08);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.meet__form-banner strong {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.field input {
  width: 100%;
  height: 46px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--white);
  color: #323232;
}

.field input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.messenger {
  margin: 0 0 16px;
  border: 0;
  padding: 0;
  min-inline-size: 0;
}

.messenger__label {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.messenger__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.messenger__option {
  flex: 1 1 0;
  min-width: 96px;
  cursor: pointer;
}

.messenger__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.messenger__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.messenger__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.messenger__option input:checked + span .messenger__icon {
  filter: invert(1);
}

.messenger__option:hover span {
  border-color: var(--brand);
  color: var(--brand);
}

.messenger__option input:checked + span {
  background: var(--text);
  border-color: var(--text);
  color: var(--white);
}

.messenger__option input:focus-visible + span {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 14px;
  cursor: pointer;
  color: var(--muted);
}

.check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 260px;
  padding: 36px 24px;
  margin: 0;
  text-align: center;
}

.form-success__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

.form-success__text {
  margin: 0;
  max-width: 28em;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.is-sent > .form-success {
  display: flex;
}

form.is-sent > :not(.form-success),
.quiz.is-sent > :not(.form-success),
.modal__box.is-sent > :not(.form-success):not(.modal__close) {
  display: none !important;
}

form.is-sent,
.quiz.is-sent {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz.is-sent {
  min-height: 420px;
}

.modal__box.is-sent {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: 360px;
}

.modal__box.is-sent .form-success {
  flex: 1;
}

/* Production */

.production {
  padding: var(--section-y) 0;
  min-height: 40vh;
}

.production__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.production__head h2 {
  max-width: 420px;
}

.production__stat .geo__label {
  display: inline;
  margin-top: 0;
}

.production__stat p {
  display: inline;
  margin: 0;
  color: var(--muted);
}

.production .carousel__track {
  display: grid;
  grid-template-columns: 1.25fr 0.74fr 1fr;
  gap: 16px;
}

.production .carousel__nav {
  display: none;
}

.prod-shot {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  background: #ddd;
  border-radius: var(--radius-lg);
}

/* FAQ */

.faq {
  padding: var(--section-y) 0;
}

.faq h2 {
  margin-bottom: 20px;
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq details {
  background: var(--white);
  padding: 0 20px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary span {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--brand);
  display: block;
  transition: transform 0.35s ease;
}

.faq details[open] summary span,
.faq details.is-open summary span {
  transform: rotate(45deg);
}

.faq__answer {
  overflow: hidden;
}

.faq:not(.js-faq) details[open] .faq__answer {
  height: auto;
}

.faq.js-faq .faq__answer {
  height: 0;
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq details p {
  padding: 0 0 24px;
  max-width: 960px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s ease, transform 0.35s ease;
}

.faq details[open] p,
.faq details.is-open p {
  opacity: 1;
  transform: none;
}

.faq.js-faq details[open]:not(.is-open) p {
  opacity: 0;
  transform: translateY(-8px);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary span,
  .faq.js-faq .faq__answer,
  .faq details p {
    transition: none;
  }

  .video-reviews.is-swipe-hint .video-reviews__swipe-hint {
    animation: none;
  }

  .video-reviews-shell.is-swipe-hint .video-reviews__swipe-hint {
    animation: none;
  }
}

@keyframes cases-swipe-hint {
  0%,
  100% {
    transform: translateX(0);
  }

  40%,
  55% {
    transform: translateX(-22px);
  }
}

/* Contacts */

.contacts {
  padding: var(--section-y) 0;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}

.contacts h2 {
  margin-bottom: 32px;
}

.contacts h1 {
  margin-bottom: 32px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.contacts__block h2 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-contacts .contacts--page {
  min-height: calc(100vh - var(--header-offset) - 220px);
  min-height: calc(100dvh - var(--header-offset) - 220px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacts__block {
  margin-bottom: 22px;
}

.contacts__block h3 {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contacts__block p,
.contacts__block a {
  font-size: 16px;
}

.contacts__block a:hover {
  color: var(--brand);
}

.contacts__map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  background: #e3e3e3;
  box-shadow: var(--shadow);
}

.contacts__ymap {
  width: 100%;
  height: 280px;
}

.contacts__map.is-map-error .contacts__ymap {
  display: none;
}

/* Thanks page */

.thanks {
  min-height: calc(100vh - var(--header-offset) - 220px);
  min-height: calc(100dvh - var(--header-offset) - 220px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-y) 0;
  background: var(--bg-soft);
}

.thanks__inner {
  text-align: left;
}

.thanks h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.thanks__text {
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 28px;
}

.thanks .btn {
  display: inline-flex;
}

/* Footer */

.footer {
  padding: 40px 0 32px;
  background: #111;
  color: #ddd;
}

.footer .logo img {
  height: 48px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 32px 40px;
}

.footer__brand p {
  margin-top: 36px;
  font-size: 15px;
  max-width: 280px;
  color: #999;
  line-height: 1.6;
}

.footer h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}

.footer nav {
  display: grid;
  gap: 10px;
}

.footer nav a:hover {
  color: var(--white);
}

.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer__phone {
  font-size: 22px;
  line-height: 1.2;
  text-align: right;
  font-weight: 700;
  color: var(--white);
}

.footer .btn--ghost {
  border-color: var(--white);
  color: var(--white);
}

.footer .btn--ghost:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 36px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #888;
}

.footer__bottom a:hover {
  color: var(--white);
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 24px 16px;
  overflow-y: auto;
  border: 0;
  background: transparent;
  color: inherit;
}

.modal[open] {
  display: flex !important;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.modal__box {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  background: var(--white);
  padding: 40px 32px 32px;
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.modal h2 {
  margin-bottom: 12px;
}

.modal p {
  margin-bottom: 20px;
  color: var(--muted);
}

.modal__form .btn,
.modal .btn {
  width: auto;
  justify-self: start;
}

.modal--kp .modal__box {
  width: min(92vw, 520px);
  padding: 48px 40px 36px;
  text-align: left;
}

.modal--kp h2 {
  max-width: 16em;
  margin: 0 0 12px;
}

.modal--kp p.modal--kp__lead {
  max-width: 28em;
  margin: 0 0 28px;
  text-align: left;
}

.modal--kp .field {
  margin-bottom: 12px;
}

.modal--kp .btn--wide {
  width: 100%;
}

.modal--kp .check {
  text-align: left;
}

.modal--kp .form-success {
  min-height: 300px;
  padding: 48px 24px;
}

.modal--callback .modal__box {
  width: min(92vw, 440px);
}

.modal--callback h2 {
  max-width: none;
}

.modal--callback p.modal--kp__lead {
  max-width: 18em;
}

.modal--quiz .modal__box {
  width: min(calc(100vw - 40px), var(--container));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 40px 0 28px;
  overflow: auto;
  text-align: left;
}

.modal--quiz h2 {
  max-width: 820px;
  margin: 0 0 28px;
  padding: 0 28px;
  font-size: 36px;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.modal--quiz .quiz-popup__mount .quiz {
  width: 100%;
}

/* Keep the page scrollbar visible while a dialog is open so the layout
   does not jump sideways when overflow would otherwise be locked. */
html.is-modal-open,
body.is-modal-open {
  overflow: auto;
  overscroll-behavior: none;
}

@media (max-width: 1200px) {
  h1,
  h2 {
    font-size: 30px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero--home h1 {
    font-size: 30px;
  }

  .hero {
    min-height: calc(100vh - var(--header-offset));
    min-height: calc(100dvh - var(--header-offset));
    align-items: stretch;
  }

  .hero--home,
  .hero--robot,
  .hero--self-service {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero__grid {
    gap: 60px;
  }

  .hero h1 {
    max-width: none;
    line-height: 1.22;
  }

  .hero__lead,
  .hero__note {
    max-width: none;
    line-height: 1.55;
  }

  .hero__cta {
    align-items: flex-start;
  }

  .hero__stat {
    order: 3;
    width: auto;
    height: auto;
    margin: 0;
    padding: 16px 0 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: none;
    backdrop-filter: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px 12px;
    text-align: left;
  }

  .hero__stat-num {
    font-size: 28px;
    line-height: 1.15;
  }

  .hero__stat-cap {
    margin-top: 0;
    font-size: 16px;
    max-width: none;
    line-height: 1.4;
  }

  .calc__grid {
    grid-template-columns: 1fr;
  }

  .hero__grid,
  .system__grid,
  .guarantee__head,
  .history__grid,
  .contacts__grid,
  .case-slide.is-active,
  .footer__grid,
  .profit__grid,
  .catalog__grid {
    grid-template-columns: 1fr;
  }

  .history__photo {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .catalog__grid {
    gap: 48px;
  }

  .catalog__grid--plans {
    gap: 28px;
    align-items: stretch;
  }

  .catalog-card + .catalog-card {
    position: relative;
  }

  .catalog-card + .catalog-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -24px;
    height: 1px;
    background: var(--line);
  }

  .catalog-plan--featured {
    order: -1;
    transform: none;
    padding: 36px 24px 24px;
  }

  .catalog-plan--featured .catalog-plan__name {
    font-size: 22px;
  }

  .catalog-plan--featured .catalog-plan__price {
    font-size: 28px;
  }

  .catalog h2 {
    white-space: normal;
  }

  .modal {
    align-items: flex-start;
    padding: 16px;
  }

  .modal__box {
    margin: 0 auto;
  }

  .modal--kp .modal__box {
    padding: 28px 20px 24px;
  }

  .modal--quiz .modal__box {
    width: min(calc(100vw - 48px), var(--container));
    padding: 28px 0 24px;
  }

  .profit__photo {
    min-height: 280px;
    height: 280px;
  }

  .feature-list p {
    max-width: none;
  }

  .benefits__grid,
  .geo__stats {
    grid-template-columns: 1fr 1fr;
  }

  .quiz {
    grid-template-columns: 1fr;
  }

  .quiz__aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
    flex-direction: row;
    align-items: center;
  }

  .system__visual {
    max-width: 560px;
  }

  .meet__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    background: transparent;
  }

  .meet__card {
    display: contents;
  }

  .meet {
    background: #000;
  }

  .meet__info {
    display: contents;
  }

  .meet__intro {
    order: 1;
  }

  .meet__copy {
    order: 2;
    flex: none;
    display: block;
  }

  .meet__person {
    order: 3;
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 0;
    border-right: 0;
    background: transparent;
    box-shadow: none;
    color: var(--white);
  }

  .meet__person .meet__role,
  .meet__person p:last-child {
    color: rgba(255, 255, 255, 0.7);
  }

  .meet__photo {
    width: 100%;
    max-height: none;
    aspect-ratio: 4 / 5;
    margin-bottom: 0;
    border-radius: 12px;
  }

  .meet__person strong {
    font-size: 17px;
    margin: 2px 0 6px;
    color: var(--white);
  }

  .meet__info h2,
  .meet__info p {
    max-width: none;
  }

  .meet__info h2 {
    margin-bottom: 0;
  }

  .meet__copy p {
    margin-bottom: 10px;
  }

  .meet__copy p:last-of-type {
    margin-bottom: 0;
  }

  .meet__timer {
    display: none;
  }

  .meet__form {
    order: 4;
    overflow: hidden;
    padding: 0 20px 20px;
    background: var(--white);
    color: var(--text);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
  }

  .meet__form-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 -20px 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
  }

  .meet__form-banner strong {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
  }

  .steps {
    overflow-x: visible;
    min-height: 0;
    justify-content: flex-start;
  }

  .geo {
    min-height: 0;
    justify-content: flex-start;
  }

  .reviews,
  .history {
    min-height: 0;
    justify-content: flex-start;
  }

  .steps h2 {
    white-space: normal;
  }

  .steps__pin,
  .cases__pin {
    display: contents;
  }

  .video-reviews {
    position: relative;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .video-reviews::-webkit-scrollbar {
    display: none;
  }

  .video-reviews-shell {
    position: relative;
  }

  .video-reviews__swipe-hint {
    position: absolute;
    top: 34%;
    right: 12px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    box-shadow:
      0 0 0 6px rgba(217, 0, 35, 0.28),
      0 10px 28px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.25s ease;
  }

  .video-reviews-shell.is-swipe-hint .video-reviews__swipe-hint {
    opacity: 1;
    animation: cases-swipe-hint 1.15s ease-in-out infinite;
  }

  .video-reviews__swipe-hint svg {
    display: block;
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  }

  .timeline {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
  }

  .timeline__row {
    display: contents;
  }

  .timeline__line {
    display: none;
  }

  .timeline__row--top .timeline__item:nth-child(1) { order: 1; }
  .timeline__row--bottom .timeline__item:nth-child(1) { order: 2; }
  .timeline__row--top .timeline__item:nth-child(2) { order: 3; }
  .timeline__row--bottom .timeline__item:nth-child(2) { order: 4; }
  .timeline__row--top .timeline__item:nth-child(3) { order: 5; }
  .timeline__row--bottom .timeline__item:nth-child(3) { order: 6; }
  .timeline__row--top .timeline__item:nth-child(4) { order: 7; }

  .timeline__row--bottom .timeline__item:first-child {
    grid-column: auto;
  }

  .timeline__item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-column: auto;
    grid-row: auto;
    column-gap: 16px;
    row-gap: 6px;
    align-content: start;
    padding: 0 0 56px;
  }

  .timeline__item--last {
    padding-bottom: 0;
  }

  .timeline__n {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
  }

  .timeline__item h3,
  .timeline__item p,
  .timeline__item .pill {
    grid-column: 2;
  }

  .timeline__item h3 {
    grid-row: 1;
    align-self: center;
    margin-bottom: 0;
    font-size: 17px;
  }

  .timeline__item p {
    max-width: none;
  }

  .timeline__dot {
    display: none;
  }

  .timeline__item:not(.timeline__item--last)::before {
    content: "";
    position: absolute;
    left: 13.5px;
    top: 28px;
    bottom: 0;
    width: 1px;
    background: var(--text);
  }

  .footer__right {
    align-items: flex-start;
  }

  .footer__phone {
    font-size: 22px;
    text-align: left;
  }

  .case-slide__media {
    min-height: 180px;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .production .carousel__track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  main {
    overflow-x: clip;
  }

  :root {
    --header-offset: 64px;
  }

  .hero--home .hero__background {
    background-image: url("../images/hero-home-bg-mobile.webp");
    background-position: center;
  }

  .hero--self-service .hero__background {
    background-image: url("../images/hero-self-service-bg-mobile.webp");
    background-position: center;
  }

  .hero--robot .hero__background {
    background-image: url("../images/hero-robot-bg-mobile.webp");
    background-position: center;
  }

  .hero--home .hero__overlay,
  .hero--self-service .hero__overlay,
  .hero--robot .hero__overlay {
    background: radial-gradient(
      ellipse at right center,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.96) 50%
    );
  }

  .header {
    --header-bar: 64px;
  }

  .header__inner {
    padding-top: 0;
  }

  .header__top {
    height: var(--header-bar);
    padding-bottom: 0;
    gap: 12px;
  }

  .logo img {
    height: 40px;
  }

  .header__contacts {
    display: none;
  }

  .header__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .burger {
    display: flex;
  }

  .header.is-open .burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .header.is-open .burger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .header.is-open .burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    top: var(--header-bar);
    left: 0;
    right: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    height: calc(100vh - var(--header-bar));
    height: calc(100dvh - var(--header-bar));
    padding: 8px 0 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, visibility 0.28s ease;
  }

  .header.is-open .nav {
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .header--over-hero .nav {
    background: #000;
    border-top-color: rgba(255, 255, 255, 0.12);
    color: var(--white);
  }

  .header--over-hero .nav .nav__link,
  .header--over-hero .nav .nav__toggle,
  .header--over-hero .nav .header__phone,
  .header--over-hero .nav .nav__dropdown a {
    color: var(--white);
  }

  .header--over-hero .nav .nav__link,
  .header--over-hero .nav .nav__item--drop,
  .header--over-hero .nav .nav__dropdown {
    border-color: rgba(255, 255, 255, 0.12);
  }

  .header--over-hero .nav .nav__link:active {
    background: rgba(255, 255, 255, 0.06);
  }

  .header--over-hero .nav .nav__dropdown {
    background: #111;
  }

  .header--over-hero .nav .nav__cta {
    background: #000;
  }

  .nav__list {
    display: block;
  }

  .nav__link {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    font-size: 17px;
    white-space: normal;
    border-bottom: 1px solid var(--line);
  }

  .nav__link:active {
    background: rgba(217, 0, 35, 0.04);
  }

  .nav__link::after {
    display: none;
  }

  .nav__item--drop {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav__item--drop > .nav__link {
    flex: 1;
    width: auto;
    border-bottom: 0;
    pointer-events: none;
  }

  .nav__toggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    z-index: 1;
    justify-content: flex-end;
    padding-right: 20px;
  }

  .nav__item--drop:hover .nav__chevron,
  .nav__item--drop:focus-within .nav__chevron {
    transform: none;
  }

  .nav__item--drop.is-expanded .nav__chevron {
    transform: rotate(180deg);
  }

  .nav__dropdown {
    display: none;
    position: static;
    width: 100%;
    min-width: 0;
    border: 0;
    border-top: 1px solid var(--line);
    box-shadow: none;
    padding: 4px 0 8px;
    background: var(--bg-soft);
  }

  .nav__item--drop:hover .nav__dropdown,
  .nav__item--drop:focus-within .nav__dropdown {
    display: none;
  }

  .nav__item--drop.is-expanded .nav__dropdown {
    display: block;
  }

  .nav__dropdown a {
    padding: 12px 20px 12px 32px;
    min-height: 44px;
  }

  .nav__cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 20px;
    background: var(--white);
  }

  .nav__cta .header__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    color: var(--brand);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
  }

  .nav__cta .header__phone:hover {
    background: var(--brand);
    color: var(--white);
  }

  .nav__cta .btn {
    width: 100%;
  }

  body.is-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .nav,
  .burger span,
  .nav__chevron {
    transition: none;
  }
}

@media (max-width: 860px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .container {
    width: min(100% - 48px, var(--container));
  }

  body {
    font-size: 16px;
    line-height: 1.7;
  }

  h1,
  h2 {
    line-height: 1.35;
    white-space: normal;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.22;
  }

  .hero--home h1 {
    font-size: 28px;
  }

  /* Long profit headlines on self-service / robot pages only. */
  .profit__copy h2 {
    font-size: clamp(18px, calc((100vw - 48px) * 5 / (135 * 0.52)), 24px);
    margin-bottom: 28px;
  }

  .section-lead {
    margin-top: 18px;
    line-height: 1.7;
  }

  .equipment,
  .profit,
  .catalog,
  .quiz-section,
  .guarantee,
  .system,
  .steps,
  .geo,
  .reviews,
  .history,
  .meet,
  .production,
  .faq {
    min-height: 0;
  }

  .cases {
    min-height: 0;
  }

  .benefits__grid,
  .equipment__grid {
    gap: 32px;
  }

  .catalog__grid {
    gap: 56px;
  }

  .catalog-card + .catalog-card::before {
    top: -28px;
  }

  .equipment__grid {
    margin-top: 40px;
  }

  .profit__stats {
    gap: 22px 20px;
    margin-bottom: 28px;
  }

  .profit__stats dd {
    font-size: 20px;
  }

  .eq-card__body {
    gap: 16px;
    padding: 28px 24px;
  }

  .eq-card h3 {
    font-size: 22px;
  }

  .benefit h3 {
    margin: 16px 0 10px;
  }

  .benefit p {
    max-width: none;
    line-height: 1.7;
  }

  .feature-list {
    margin-top: 32px;
    gap: 28px;
  }

  .feature-list h3 {
    margin-bottom: 8px;
  }

  .feature-list p,
  .guarantee__grid p,
  .calc__lead,
  .meet__copy p,
  .check-list li {
    line-height: 1.7;
  }

  .system__content .btn {
    margin-top: 36px;
  }

  .guarantee__grid {
    gap: 24px;
    margin-top: 36px;
  }

  .guarantee__grid article {
    padding: 28px 24px;
  }

  .quiz-section__title {
    margin-bottom: 36px;
  }

  .quiz__form h3 {
    margin: 24px 0 20px;
  }

  .check-list {
    gap: 22px;
  }

  .quiz-options {
    gap: 16px;
  }

  .faq h2,
  .cases h2 {
    margin-bottom: 28px;
  }

  .faq details {
    padding: 0 22px;
  }

  .faq__list {
    gap: 14px;
  }

  .meet__grid {
    gap: 28px;
  }

  .meet__copy p {
    margin-bottom: 16px;
  }

  .meet__form {
    padding: 0 24px 28px;
  }

  .meet__form-banner {
    margin: 0 -24px 24px;
    padding: 10px 16px;
  }

  .meet__person {
    gap: 18px;
  }

  .timeline__item {
    padding-bottom: 72px;
    row-gap: 10px;
  }

  .timeline__item--last {
    padding-bottom: 0;
  }

  .history__grid {
    gap: 28px;
  }

  .history__grid h2 {
    margin-bottom: 28px;
  }

  .contacts__block {
    margin-bottom: 28px;
  }

  .geo h2 {
    margin-bottom: 28px;
  }

  .production__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 28px;
  }

  .production__head h2 {
    max-width: none;
    width: 100%;
  }

  .production__stat {
    width: 100%;
  }

  .calc-controls {
    gap: 28px;
  }

  .cases {
    overflow: visible;
    align-items: stretch;
  }

  .nav__link {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav__toggle {
    padding-right: 24px;
  }

  .nav__dropdown a {
    padding-left: 36px;
    padding-right: 24px;
  }

  .nav__cta {
    padding-left: 24px;
    padding-right: 24px;
  }

  .reviews {
    --review-photo-max: calc(280px * 2 / 3);
  }

  .video-reviews {
    gap: 32px;
    width: calc(100% + 48px);
    max-width: none;
    margin-left: -24px;
    padding: 24px 24px 44px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .video-reviews::-webkit-scrollbar {
    display: none;
  }

  .benefits__grid,
  .equipment__grid,
  .guarantee__grid,
  .geo__stats,
  .quiz-options--two,
  .case-metrics,
  .footer__cols {
    grid-template-columns: 1fr;
  }

  .calc-result {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }

  .calc-result b {
    font-size: 24px;
  }

  .calc-slider__value {
    top: 22px;
    bottom: 0;
    display: flex;
    align-items: center;
  }

  .calc-slider__hit {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: -11px;
    height: 44px;
    z-index: 3;
    touch-action: none;
  }

  .calc {
    min-height: 0;
    justify-content: flex-start;
    padding: var(--section-y) 0;
  }

  .calc .container {
    width: min(100% - 48px, var(--container));
  }

  .calc__card {
    --calc-pad: 36px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .calc__main {
    gap: 32px;
    justify-content: flex-start;
  }

  .calc-form {
    padding: 28px 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .hero {
    padding: var(--section-y) 0;
  }

  .hero--home,
  .hero--robot,
  .hero--self-service {
    padding-top: calc(var(--header-offset) + var(--section-y));
  }

  .hero__lead {
    font-size: 17px;
    line-height: 1.55;
  }

  .geo__num {
    font-size: 40px;
  }

  .geo__map-frame {
    height: 48vh;
    min-height: 320px;
  }

  .faq summary {
    font-size: 17px;
    padding: 22px 0;
    line-height: 1.45;
  }

  .system__visual {
    --phone-w: 128px;
    max-width: 100%;
  }

  .system__photo {
    height: 280px;
  }

  .quiz {
    padding: 32px 24px 36px;
  }

  .footer__bottom {
    font-size: 13px;
  }

  .btn--dark,
  .btn--outline {
    width: 100%;
  }

  .eq-card .btn,
  .hero .btn {
    width: auto;
  }
}
