:root {
  --primary: #1466f0;
  --primary-dark: #0d4fc4;
  --navy: #0a2540;
  --ink: #12213a;
  --muted: #5b6b83;
  --line: #e3eaf4;
  --bg: #ffffff;
  --tint: #f3f7fd;
  --accent: #ffb020;
  --accent-dark: #f59e00;
  --success: #1fa971;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(10, 37, 64, .07);
  --shadow-md: 0 14px 40px rgba(10, 37, 64, .12);
  --shadow-lg: 0 24px 70px rgba(10, 37, 64, .18);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select { font-family: inherit; font-size: 15px; }

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

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

h1, h2, h3 { line-height: 1.18; letter-spacing: -.02em; }

h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }

h1 em, h2 span { color: var(--primary); font-style: normal; }
.section--dark h2 span { color: #7fb3ff; }

.muted { color: var(--muted); }
.price { color: var(--primary-dark); font-weight: 800; font-size: 20px; }
.price--lg { font-size: 26px; }

.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(20, 102, 240, .09);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .01em;
}

.badge--light {
  background: rgba(255, 255, 255, .12);
  color: #cfe1ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: linear-gradient(135deg, #1d78ff, var(--primary));
  color: #fff;
  box-shadow: 0 10px 26px rgba(20, 102, 240, .35);
}
.btn--primary:hover { box-shadow: 0 14px 34px rgba(20, 102, 240, .45); transform: translateY(-2px); }

.btn--accent {
  background: linear-gradient(135deg, #ffc23d, var(--accent));
  color: #3d2800;
  box-shadow: 0 10px 26px rgba(255, 176, 32, .38);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 176, 32, .5); }

.btn--outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn--outline:hover { background: rgba(20, 102, 240, .07); transform: translateY(-2px); }

.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 17px 34px; font-size: 16.5px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  transition: gap .18s ease;
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

.topbar {
  background: var(--navy);
  color: #dbe7f7;
  font-size: 14px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
}
.topbar__phone { font-weight: 800; font-size: 15px; color: #fff; }
.topbar .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.topbar .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; color: #fff; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 500;
  color: var(--muted);
}
.logo b { color: var(--ink); font-weight: 800; }
.logo--light { color: #b9cade; }
.logo--light b { color: #fff; }

.nav {
  display: flex;
  gap: 22px;
  font-weight: 600;
  font-size: 14.5px;
}
.nav a { position: relative; padding: 4px 0; color: #33465f; transition: color .18s ease; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 800; white-space: nowrap; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  position: relative;
}
.burger span, .burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: all .22s ease;
}
.burger::before { top: 13px; }
.burger span { top: 20px; }
.burger::after { top: 27px; }
.burger.open::before { top: 20px; transform: translateX(-50%) rotate(45deg); }
.burger.open span { opacity: 0; }
.burger.open::after { top: 20px; transform: translateX(-50%) rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 110px;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero__content h1 { margin: 20px 0 22px; }
.hero__list {
  display: grid;
  gap: 11px;
  margin-bottom: 30px;
}
.hero__list li {
  position: relative;
  padding-left: 34px;
  font-size: 16.5px;
  color: #2c3f5c;
}
.hero__list li b { color: var(--ink); }
.hero__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.hero__rating { display: flex; align-items: center; gap: 14px; }
.stars { color: #ffb020; letter-spacing: 2px; font-size: 18px; }
.hero__rating p { max-width: 380px; font-size: 14px; color: var(--muted); }

.hero__card {
  background: #fff;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
  padding: 34px 32px 28px;
  border: 1px solid rgba(255, 255, 255, .6);
}

.hero__window {
  position: absolute;
  right: -70px;
  top: 20px;
  bottom: auto;
  width: min(520px, 42vw);
  z-index: 0;
  filter: drop-shadow(0 30px 60px rgba(10, 37, 64, .16));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.stats { background: var(--navy); color: #fff; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 0;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  color: #ffd88a;
  line-height: 1.1;
}
.stat span { font-size: 14.5px; color: #b9cade; }

.section { padding: 92px 0; }
.section--tint { background: var(--tint); }

.section__head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section__head p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}
.section__head--row p { margin-top: 8px; }

.cards { display: grid; gap: 26px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.service-card { display: flex; flex-direction: column; gap: 10px; }
.service-card .price { margin-top: auto; }
.service-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(20, 102, 240, .09);
  margin-bottom: 6px;
}
.service-card__icon svg { width: 30px; height: 30px; }

.factory { background: radial-gradient(1200px 600px at 80% 0%, #123f7c, var(--navy)); color: #eaf2ff; overflow: hidden; }
.factory__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.factory__text > * + * { margin-top: 18px; }
.factory__text p { color: #b9cade; }
.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb020' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center no-repeat;
}
.check-list--light li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd88a' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

.factory__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  min-height: 420px;
}
.factory__tile {
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, .14);
}
.t1 { background: linear-gradient(135deg, #2b62b0, #16345f); grid-row: span 2; }
.t2 { background: linear-gradient(135deg, #3f79cf, #24549c); }
.t3 { background: linear-gradient(135deg, #57a0ff, #2b62b0); }
.t4 { grid-column: span 2; height: 120px; background:
  repeating-linear-gradient(45deg, rgba(255,216,138,.16) 0 14px, transparent 14px 28px),
  linear-gradient(135deg, #1c4791, #12305c);
}
.factory__chip {
  position: absolute;
  right: -14px;
  top: -20px;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 14px 22px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: floaty 6s ease-in-out infinite;
}
.factory__chip b { display: block; font-size: 22px; color: var(--primary-dark); }
.factory__chip span { font-size: 13px; color: var(--muted); }

.profile-card { position: relative; display: flex; flex-direction: column; }
.profile-card--hit { border: 2px solid var(--primary); box-shadow: var(--shadow-md); }
.profile-card .tag {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--tint);
  color: var(--muted);
  margin-bottom: 14px;
}
.tag--accent { background: #ffe8bd; color: #8a5b00; }
.profile-card__sub { color: var(--muted); font-size: 14.5px; margin: 6px 0 16px; }

.spec { display: grid; gap: 8px; margin-bottom: 18px; }
.spec li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: #33465f;
}
.spec li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--primary);
}

.rating-row { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; margin-bottom: 20px; }
.rating-row span { font-size: 13.5px; color: var(--muted); }
.dots {
  justify-self: end;
  width: 140px;
  height: 7px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, var(--accent) 0 var(--fill, 140px), transparent var(--fill, 140px)),
    repeating-linear-gradient(90deg, var(--line) 0 24px, transparent 24px 29px);
}
.d3 { --fill: 82px; }
.d4 { --fill: 111px; }
.d5 { --fill: 140px; }
.profile-card .price { margin-bottom: 16px; }
.profile-card .btn { margin-top: auto; }

.adv { text-align: center; padding: 34px 26px; }
.adv__icon {
  font-size: 34px;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #eaf2ff, #dcebff);
}
.adv h3 { font-size: 17.5px; margin-bottom: 8px; }
.adv p { color: var(--muted); font-size: 14.5px; }

.repair { background: linear-gradient(180deg, var(--tint), #fff); }
.repair__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.repair__info h2 { margin-bottom: 14px; }
.repair__info > p { color: var(--muted); font-size: 17px; margin-bottom: 22px; }
.repair__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.repair__badges span {
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: #33465f;
}

.price-table h3 { margin-bottom: 18px; }
.price-table ul { display: grid; gap: 0; }
.price-table li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.price-table li b { white-space: nowrap; color: var(--primary-dark); }
.price-table .btn--block { margin-top: 18px; }
.price-table__extra { margin-top: 4px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d78ff, var(--primary));
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

.calc-section { background: radial-gradient(900px 500px at 10% 10%, #eaf2ff, var(--tint)); }
.calc {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 40px;
  padding: 36px;
}
.opt-group { border: none; margin-bottom: 26px; }
.opt-group legend { font-weight: 800; margin-bottom: 14px; font-size: 16.5px; }

.opt-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opt-card {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.opt-card:hover { transform: translateY(-2px); }
.opt-card input { display: none; }
.opt-card b { display: block; font-size: 15.5px; }
.opt-card span { font-size: 13px; color: var(--muted); }
.opt-card:has(input:checked) {
  border-color: var(--primary);
  background: rgba(20, 102, 240, .06);
  box-shadow: 0 6px 18px rgba(20, 102, 240, .14);
}

.dims { display: flex; gap: 18px; flex-wrap: wrap; }
.dims label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.dims input {
  width: 96px;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s ease;
}
.dims input:focus { border-color: var(--primary); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { cursor: pointer; }
.chip input { display: none; }
.chip span {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: #33465f;
  transition: all .18s ease;
}
.chip input:checked + span {
  border-color: var(--primary);
  background: rgba(20, 102, 240, .08);
  color: var(--primary-dark);
}

.calc__result {
  background: linear-gradient(160deg, #10315e, var(--navy));
  border-radius: calc(var(--radius) + 4px);
  color: #fff;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}
.calc__visual {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 22px;
  min-height: 130px;
  display: grid;
  place-items: center;
}
.cv-window {
  width: 100%;
  max-width: 190px;
  aspect-ratio: var(--ar, 2.2);
  border: 6px solid #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, #bfe0ff, #eaf6ff 55%, #9fd0ff);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, .5);
  position: relative;
  transition: aspect-ratio .3s ease;
}
.cv-window::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 100%;
  background: #fff;
}
.calc__label { color: #b9cade; font-size: 14px; }
.calc__total { font-size: clamp(30px, 3vw, 42px); font-weight: 800; margin: 4px 0 10px; }
.calc__hint { color: #b9cade; font-size: 13px; margin-bottom: 22px; }
.calc__result .btn { margin-top: auto; }

.reviews { background: #fff; }
.slider-nav { display: flex; gap: 10px; }
.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--line);
  font-size: 20px;
  color: var(--ink);
  background: #fff;
  transition: all .18s ease;
}
.slider-btn:hover { border-color: var(--primary); color: var(--primary); }

.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 52px) / 3);
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.reviews__track::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.review__top { display: flex; align-items: center; justify-content: space-between; }
.review p { color: #33465f; font-size: 15px; flex: 1; }
.review__meta { font-size: 13px; color: var(--muted); }

.faq-section { background: var(--tint); }
.faq { display: grid; gap: 14px; }
.faq__item {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.faq__item[open] { box-shadow: var(--shadow-sm); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  font-size: 16.5px;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(20, 102, 240, .09);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "–"; }
.faq__body { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

.cta-band { background: radial-gradient(1000px 500px at 85% 20%, #1c4791, var(--navy)); color: #fff; padding: 72px 0; }
.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}
.cta-band h2 span { color: #ffd88a; }
.cta-band .check-list { margin-top: 18px; color: #cfe1ff; }

.lead-form { display: grid; gap: 14px; }
.lead-form h3 { font-size: 22px; }
.lead-form > p { color: var(--muted); font-size: 14.5px; margin-top: -6px; }

.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field select {
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  background: #fff;
  color: var(--ink);
}
.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 102, 240, .12);
}
.field input.invalid { border-color: #e23c3c; }
.lead-form small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }

.form-success {
  display: grid;
  place-items: center;
  gap: 10px;
  text-align: center;
  padding: 30px 10px;
  color: var(--success);
  font-weight: 800;
  font-size: 18px;
}
.form-success small { color: var(--muted); font-weight: 500; font-size: 13.5px; }

.contacts { padding-top: 40px; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: stretch; }
.contacts h2 { margin-bottom: 28px; }
.contact-item { display: grid; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-item span { font-size: 13px; color: var(--muted); }
.contact-item a, .contact-item b { font-size: 17px; font-weight: 700; }
.contact-item a:hover { color: var(--primary); }
.contacts .btn { margin-top: 24px; }

.map-wrap {
  min-height: 360px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(20, 102, 240, .04), rgba(20, 102, 240, .04)),
    repeating-linear-gradient(0deg, transparent 0 39px, #dfe9f6 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, #dfe9f6 39px 40px),
    linear-gradient(135deg, #eef4fb, #e2ecf8);
  border: 1px solid var(--line);
  position: relative;
  display: grid;
  place-items: center;
}
.map-pin {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  animation: bounce 2.2s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.footer { background: var(--navy); color: #b9cade; padding: 44px 0; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 18px 60px; align-items: center; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 14.5px; }
.footer__nav a:hover { color: #fff; }
.footer__copy { grid-column: 1 / -1; font-size: 13px; color: #7e93ad; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; }

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 12px 30px rgba(20, 102, 240, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .25s ease;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary-dark); }

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 37, 64, .55); backdrop-filter: blur(4px); }
.modal__box {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 34px 32px 28px;
  width: min(430px, 100%);
  box-shadow: var(--shadow-lg);
  animation: popIn .28s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.92) translateY(14px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tint);
  font-size: 22px;
  color: var(--muted);
  transition: all .18s ease;
}
.modal__close:hover { background: #ffe1e1; color: #e23c3c; }

body.locked { overflow: hidden; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__window { display: none; }
  .factory__chip { right: 8px; }
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    padding: 90px 28px 30px;
    background: #fff;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-105%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav a { font-size: 17px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: block; z-index: 101; }

  .header__phone { display: none; }
  .topbar__note { display: none; }

  .hero { padding: 56px 0 70px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }

  .cards--3 { grid-template-columns: 1fr 1fr; }
  .factory__inner, .repair__inner, .cta-band__inner, .contacts__grid { grid-template-columns: 1fr; gap: 40px; }
  .calc { grid-template-columns: 1fr; }
  .reviews__track { grid-auto-columns: calc((100% - 26px) / 2); }
  .section { padding: 68px 0; }
}

@media (max-width: 620px) {
  .container, .container--narrow { width: min(1180px, 100% - 32px); }
  .topbar__inner { justify-content: space-between; }
  .topbar .btn { padding: 7px 12px; font-size: 13px; }
  .header__actions .btn { display: none; }
  .burger { display: block; }
  .header__actions { gap: 10px; }

  .hero__cta .btn { width: 100%; }
  .cards--4, .cards--3, .opt-cards, .steps { grid-template-columns: 1fr; }
  .dims { gap: 12px; }
  .dims input { width: 100%; flex: 1; }
  .dims label { flex: 1 1 45%; }
  .calc { padding: 22px; }
  .reviews__track { grid-auto-columns: 100%; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .cta-band__inner { gap: 32px; }
  .to-top { right: 16px; bottom: 16px; }
}
