:root {
  --bg: #dbe7f4;
  --bg-2: #c9daee;
  --ink: #12203a;
  --ink-2: #33415c;
  --red: #d8342a;
  --red-2: #b8222a;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18, 32, 58, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  color: var(--ink);
  font: 600 16px/1.5 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--red-2); }

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 16px 120px;
}
section { margin-bottom: 52px; }

h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 6.4vw, 34px); text-align: center; }
h2 { font-size: clamp(22px, 5.2vw, 28px); margin-bottom: 16px; }
h3 { font-size: 22px; }
.center { text-align: center; }

/* Первый экран */
.badge {
  width: 112px; height: 112px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.badge img { width: 88px; height: 88px; }
.hero h1 { margin-top: 18px; }
.lead { text-align: center; margin: 10px 0 22px; font-weight: 500; font-size: 17px; }

.ticks { list-style: none; padding: 0; margin: 0 0 26px; }
.ticks li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  font-weight: 700;
}
.ticks li::before {
  content: "";
  position: absolute; left: 2px; top: .38em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

.cta-text {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(19px, 4.8vw, 24px);
  font-weight: 800;
  line-height: 1.3;
}

.photo-main, .photo-wide, .track img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #b9cbe2;
}
.photo-main { aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% center; margin-bottom: 24px; }
.hero .cta-text { margin-bottom: 0; }
.photo-wide { margin-top: 12px; }
.track img { aspect-ratio: 3 / 4; object-fit: cover; }

/* Обращение */
.about h2 { margin-bottom: 12px; }
.about p { margin: 0 0 10px; color: var(--ink-2); }
.about p b { color: var(--ink); }

/* Слайдер */
.slider { position: relative; }
.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 12px) / 2);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.track::-webkit-scrollbar { display: none; }
.track img { scroll-snap-align: start; cursor: zoom-in; }
.nav {
  position: absolute; top: calc(50% - 30px);
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  font-size: 26px; line-height: 1; font-weight: 500;
  display: grid; place-items: center;
}
.nav.prev { left: -6px; }
.nav.next { right: -6px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink); }
.dots i.on { background: var(--ink); }

/* Оффер */
.offer p { margin: 0 0 8px; font-weight: 600; color: var(--ink-2); }
.offer .cta-text { margin-top: 20px; color: var(--ink); }
.promo {
  width: 100%;
  padding: 0; border: 0;
  display: grid; grid-template-columns: 1.15fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #e8452a 0%, #c3262a 100%);
  color: #fff; text-align: left;
}
.promo img { width: 100%; height: 100%; object-fit: cover; min-height: 230px; }
.promo-text { padding: 22px 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.promo-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.promo-title { font-size: clamp(24px, 6vw, 32px); font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.promo-list { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.promo-list span::before { content: "— "; }

/* Подвал */
.footer { text-align: center; padding-top: 8px; }
.company { margin: 0 0 6px; font-weight: 800; letter-spacing: .04em; }
.slogan { margin: 0 0 16px; font-weight: 700; }
.addr { list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.legal { font-size: 12px; font-weight: 500; color: var(--ink-2); margin: 0; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 34px;
  border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #e8452a 0%, #c3262a 100%);
  color: #fff; font-weight: 700; font-size: 17px;
  box-shadow: 0 8px 22px rgba(195, 38, 42, .35);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; justify-content: center;
  background: linear-gradient(180deg, rgba(201,218,238,0) 0%, rgba(201,218,238,.95) 45%);
  z-index: 20;
  pointer-events: none;
}
.sticky .btn { pointer-events: auto; width: min(100%, 320px); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(195, 38, 42, .35); }
  50% { box-shadow: 0 8px 22px rgba(195, 38, 42, .35), 0 0 0 8px rgba(216, 52, 42, .15); }
}

/* Модалка */
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(12, 22, 40, .55);
  backdrop-filter: blur(3px);
}
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-box {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: pop .2s ease-out;
}
@keyframes pop { from { transform: translateY(12px); } }
.modal-close {
  position: absolute; top: 8px; right: 10px;
  width: 36px; height: 36px; border: 0; background: none;
  font-size: 28px; line-height: 1; color: var(--ink-2);
}
.modal-head { display: flex; align-items: center; gap: 12px; padding-right: 24px; }
.modal-head img { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; object-position: 22% 30%; }
.modal-head h3 { font-size: 20px; }
.modal-sub { margin: 12px 0 18px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field { display: block; margin: 0 0 14px; padding: 0; border: 0; }
.field > span, .field legend { display: block; margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: 700; }
.field input[type=text], .field input[type=tel] {
  width: 100%; height: 50px; padding: 0 14px;
  border: 1.5px solid #c8d3e3; border-radius: 10px;
  font: 600 16px "Montserrat", system-ui, sans-serif; color: var(--ink);
  background: #f6f9fc;
}
.field input:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input.bad { border-color: var(--red); background: #fff5f4; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; }
.chips span {
  display: block; padding: 11px 8px; text-align: center;
  border: 1.5px solid #c8d3e3; border-radius: 10px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  background: #f6f9fc;
}
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.agree { display: flex; gap: 8px; margin: 4px 0 16px; font-size: 12px; font-weight: 500; color: var(--ink-2); line-height: 1.4; }
.agree input { margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: -6px 0 12px; color: var(--red-2); font-size: 14px; font-weight: 600; }
.done { text-align: center; padding: 10px 0 0; }
.done-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e7f6ec; color: #1f9d55; font-size: 32px; font-weight: 800;
}
.done p { margin: 8px 0 20px; font-weight: 500; color: var(--ink-2); }

/* Просмотр фото */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(8, 14, 26, .9);
  cursor: zoom-out;
}
.lightbox img { max-height: 90vh; border-radius: 12px; }

@media (max-width: 480px) {
  .track { grid-auto-columns: 82%; }
  .nav { display: none; }
  .badge { width: 84px; height: 84px; }
  .badge img { width: 66px; height: 66px; }
  .hero h1 { margin-top: 12px; }
  .promo { grid-template-columns: 1fr; }
  .promo img { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
