@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/fonts/cormorant-500-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/static/fonts/cormorant-500-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
  --milk: #FBF7F3;
  --pudra: #F1E6DF;
  --marker: #EBCFC9;
  --line: #E2D4CB;
  --graphite: #2A2321;
  --text: #4A3F3B;
  --muted: #6E605B;
  --berry: #9B2F4A;
  --berry-hover: #86283F;
  --gift: #7A5E55;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--milk);
  background-image: radial-gradient(80% 26% at 50% 46%, #F1E6DF 0%, rgba(251, 247, 243, 0) 100%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, svg { display: block; }
button { font: inherit; }
a { color: var(--berry); }

:focus-visible { outline: 2px solid var(--berry); outline-offset: 2px; }

.only-desktop { display: none; }

/* ---------- страница ---------- */

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 20px 48px;
  max-width: 920px;
  margin: 0 auto;
}

.logo { height: 40px; width: auto; }
.head { display: flex; flex-direction: column; align-items: center; }
.tagline {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.h1 {
  margin: 26px 0 0;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--graphite);
  text-wrap: balance;
  max-width: 820px;
}
.mark {
  white-space: nowrap;
  padding: 0 4px;
  background: linear-gradient(180deg, transparent 52%, var(--marker) 52%, var(--marker) 92%, transparent 92%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--pudra);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}
.pill-play { width: 8px; height: 10px; fill: var(--berry); flex: none; }

.video {
  width: 100%;
  max-width: 800px;
  margin-top: 14px;
  padding: 6px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(122, 94, 85, 0.18);
}
.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(150deg, #EADDD4 0%, #DCC8BC 100%);
}
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border: 0; border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(122, 94, 85, 0.25);
  transition: transform .2s ease;
}
.video-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.video-play svg { width: 28px; height: 28px; fill: var(--berry); margin-left: 3px; }
.video-time {
  position: absolute;
  right: 10px; bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(42, 35, 33, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.lead {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  margin-top: 22px;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--berry);
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(155, 47, 74, 0.28);
  transition: background-color .15s ease;
}
.cta:hover { background: var(--berry-hover); }
.cta:disabled { opacity: .7; cursor: default; }
.cta:focus-visible { outline-offset: 3px; }

.bonus {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--pudra);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  color: var(--text);
}
.bonus b { color: var(--graphite); font-weight: 700; }
.bonus-icon {
  width: 22px; height: 22px; flex: none; margin-top: -1px;
  fill: none; stroke: var(--gift); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- окно записи ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(42, 35, 33, 0.45);
}
.overlay[hidden] { display: none; }

.sheet {
  position: relative;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 26px 20px calc(24px + env(safe-area-inset-bottom));
  background: #fff;
  border-radius: 24px 24px 0 0;
  animation: sheet-up .28s ease-out;
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .sheet { animation: none; }
  .video-play, .cta { transition: none; }
}

.sheet-handle {
  position: absolute;
  top: 8px; left: 50%;
  width: 40px; height: 4px;
  margin-left: -20px;
  border-radius: 2px;
  background: var(--line);
}
.sheet-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.sheet-close svg { width: 22px; height: 22px; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; fill: none; }

.sheet-title {
  margin: 4px 44px 0 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--graphite);
}
.sheet-title:focus { outline: none; }
.sheet-sub {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.field { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--graphite);
}
.field input[type="text"], .field input[type="tel"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--milk);
  color: var(--graphite);
  font-family: var(--font);
  font-size: 16px;
}
.field input:focus { outline: 2px solid var(--berry); outline-offset: 0; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--berry); }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg-item { position: relative; margin: 0 !important; }
.seg-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-item span {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--milk);
  color: var(--graphite);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.seg-item input:checked + span { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.seg-item input:focus-visible + span { outline: 2px solid var(--berry); outline-offset: 2px; }

.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 13px !important; color: var(--text) !important; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--berry); }

.err { margin: 6px 0 0; min-height: 0; font-size: 13px; color: var(--berry); text-align: left; }
.err:empty { display: none; }
.err-form { text-align: center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.cta-form { min-height: 56px; margin-top: 22px; box-shadow: 0 10px 22px rgba(155, 47, 74, 0.22); }
.tg-icon { width: 22px; height: 22px; fill: currentColor; flex: none; }

.fine {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

.step-done { text-align: center; padding-top: 6px; }
.step-done .sheet-title { margin-right: 0; }
.done-icon {
  width: 56px; height: 56px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: var(--pudra);
  display: grid; place-items: center;
}
.done-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--berry); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 380px) {
  .seg-item span { font-size: 13px; padding: 6px 2px; }
}

/* ---------- десктоп ---------- */

@media (min-width: 768px) {
  body { background-image: radial-gradient(42% 36% at 50% 54%, #F1E6DF 0%, rgba(251, 247, 243, 0) 100%); }
  .only-mobile { display: none; }
  .only-desktop { display: inline; }
  .page { padding: 40px 24px 72px; }
  .logo { height: 52px; }
  .tagline { font-size: 13px; }
  .h1 { margin-top: 32px; font-size: clamp(30px, 3.6vw, 50px); }
  .pill { margin-top: 28px; font-size: 14px; }
  .video { padding: 8px; border-radius: 24px; margin-top: 16px; }
  .video-box { border-radius: 18px; }
  .video-play { width: 88px; height: 88px; }
  .video-play svg { width: 38px; height: 38px; }
  .lead { max-width: 600px; margin-top: 26px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; }
  .cta { max-width: 440px; min-height: 66px; border-radius: 16px; font-size: 18px; margin-top: 26px; }
  .bonus { max-width: 600px; font-size: 14px; }

  .overlay { align-items: flex-start; padding: 8vh 16px 16px; }
  .sheet { max-width: 460px; border-radius: 24px; padding: 30px 28px 28px; max-height: 84vh; }
  .sheet-handle { display: none; }
  .sheet-title { font-size: 26px; }
  .cta-form { max-width: none; min-height: 56px; font-size: 17px; }
}
