:root {
  --bg: #F6F1EB;
  --surface: #FFFFFF;
  --blush: #EFE2D8;
  --ink: #2B2420;
  --ink-2: #6E625B;
  --accent: #B8664A;
  --accent-soft: #F3DED3;
  --line: #E4D9CF;
  --radius: 24px;
  --band: #FDFBF8;
  --font: "Onest";
  --w-heavy: 600;
  --w-bold: 600;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font), system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; }
h2 { font-size: 28px; line-height: 1.2; font-weight: var(--w-heavy); letter-spacing: -0.02em; margin-bottom: 24px; }
.eyebrow { font-size: 14px; font-weight: var(--w-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }


/* Кнопки */
.ctas { display: grid; gap: 12px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 20px; border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none; font-weight: var(--w-bold); font-size: 18px; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); background: #1d1815; }
.btn .ico { width: 24px; height: 24px; display: grid; place-items: center; flex: none; }
.btn .ico img, .btn .ico svg { width: 100%; height: 100%; }
.btn-tg { background: #2AABEE; }
.btn-tg:hover { background: #1E98D8; }
.btn-max { background: linear-gradient(135deg, #3E7BFA, #8B45F5); }
.btn-max:hover { background: linear-gradient(135deg, #336CE8, #7C38E6); }
.cta-note { font-size: 15px; color: var(--ink-2); text-align: center; margin-top: 4px; }
.cta-label { font-size: 15px; color: var(--ink-2); margin-bottom: 4px; }

/* Первый экран */
.hero { padding: 20px 0 40px; }
.hero-grid { display: grid; gap: 20px; }
.hero-photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2.1; background: var(--blush); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-photo .tag { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: var(--w-bold); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-photo { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.chips-top, .hero-photo .tag { display: none; }
.chip { background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 400; white-space: nowrap; }
.chip b { color: var(--accent); font-weight: 400; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1 { font-size: 28px; line-height: 1.15; font-weight: var(--w-heavy); letter-spacing: -0.02em; margin: 0 0 10px; text-wrap: balance; }
.hero .sub { font-size: 17px; line-height: 1.45; color: var(--ink-2); margin-bottom: 18px; max-width: 36ch; }

/* Подарок */
.gift { display: grid; gap: 24px; align-items: center; background: var(--surface); border-radius: 32px; padding: 24px; }
.phone { position: relative; width: 210px; margin: 0 auto; aspect-ratio: 9 / 17; border-radius: 30px; overflow: hidden; border: 6px solid var(--ink); background: #000; }
.phone img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.phone .play { position: absolute; inset: 0; display: grid; place-items: center; }
.phone .play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; }
.phone .pin { position: absolute; top: 12px; left: 12px; right: 12px; background: rgba(255,255,255,.92); border-radius: 12px; padding: 7px 10px; font-size: 12px; font-weight: var(--w-bold); display: flex; gap: 6px; align-items: center; }
.phone .dur { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: var(--w-bold); border-radius: 8px; padding: 3px 8px; }
.gift h2 { margin-bottom: 10px; }
.gift p { color: var(--ink-2); }
.steps { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.steps span { background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }

/* Что в канале */
.feats { background: var(--surface); border-radius: 24px; padding: 4px 20px; }
.feat { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; }
.feat + .feat { border-top: 1px solid var(--line); }
.feat .fi { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.feat .fi svg { width: 22px; height: 22px; }
.feat h3 { font-size: 20px; line-height: 1.2; font-weight: var(--w-heavy); letter-spacing: -0.01em; margin-bottom: 4px; }
.feat p { font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.nots { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.nots span { display: inline-flex; align-items: center; gap: 7px; background: var(--accent-soft); border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 600; }
.nots span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.side-photo { display: none; }

/* Карусели */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 12px; margin: 0 -20px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

.post { position: relative; width: 260px; aspect-ratio: 518 / 690; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(43,36,32,.06); color: var(--ink); cursor: pointer; }
.post img { width: 100%; height: auto; }
.band { background: var(--band); }
.band + section { padding-top: 56px; }
.post::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(to bottom, rgba(253,251,248,0) 0%, rgba(253,251,248,.9) 50%, var(--band) 100%); }
.post .more { position: absolute; z-index: 1; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap; border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; font-weight: var(--w-bold); cursor: pointer; transition: opacity .2s ease; }
.post.open .more { opacity: 0; pointer-events: none; }

/* Выбор мессенджера прямо на карточке поста */
.pick { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 10px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 12px 32px rgba(43,36,32,.18); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; cursor: default; }
.post.open .pick { opacity: 1; transform: none; pointer-events: auto; }
.pick-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 15px; font-weight: var(--w-bold); }
.pick-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink-2); font-size: 18px; line-height: 1; cursor: pointer; }
.pick .ctas { gap: 8px; }
.pick .btn { min-height: 48px; font-size: 16px; border-radius: 14px; gap: 10px; padding: 0 14px; }
.pick .btn .ico { width: 22px; height: 22px; }

/* До/после: два фото рядом */
.ba { width: 86vw; max-width: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; border: 0; background: var(--surface); border-radius: 22px; box-shadow: 0 1px 0 var(--line); cursor: zoom-in; font: inherit; color: inherit; }
.ba figure { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--blush); border-radius: 16px 6px 6px 16px; }
.ba figure + figure { border-radius: 6px 16px 16px 6px; }
.ba img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ba .lbl, .lb-pair .lbl { position: absolute; left: 8px; bottom: 8px; font-size: 13px; font-weight: var(--w-bold); background: rgba(255,255,255,.92); border-radius: 999px; padding: 4px 10px; }
.ba .lbl.acc, .lb-pair .lbl.acc { background: var(--accent); color: #fff; }
.fine { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

.reviews { align-items: flex-start; }
.shot { width: 86vw; max-width: 380px; border: 0; padding: 8px; background: var(--surface); border-radius: 20px; cursor: zoom-in; box-shadow: 0 1px 0 var(--line); }
.shot img { width: 100%; border-radius: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(43,36,32,.85); display: none; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-width: min(100%, 900px); max-height: 90vh; border-radius: 16px; background: #fff; }
.lb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(100%, 900px); }
.lb-pair figure { position: relative; }
.lb-pair img { width: 100%; max-height: 85vh; object-fit: cover; }
.lb-pair .lbl { left: 12px; bottom: 12px; font-size: 15px; padding: 6px 14px; }

/* Финал */
.final { background: var(--ink); color: #fff; border-radius: 32px; padding: 32px 24px; text-align: center; }
.final .ava { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; border: 3px solid rgba(255,255,255,.2); }
.final .ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.final h2 { color: #fff; margin-bottom: 8px; }
.final p { color: rgba(255,255,255,.7); margin-bottom: 24px; }
.final .cta-note { color: rgba(255,255,255,.6); }
.final .ctas { max-width: 560px; margin: 0 auto; }
.btn { white-space: nowrap; }

footer { padding: 32px 0 120px; font-size: 13px; color: var(--ink-2); }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.footer-logo { width: 220px; margin-bottom: 18px; }
@media (max-width: 899px) { .footer-logo { width: 170px; margin: 0 auto 18px; } }

/* Липкая панель (мобильная) */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(246,241,235,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; transform: translateY(110%); transition: transform .25s ease; }
.sticky.show { transform: none; }
.sticky .btn { min-height: 52px; font-size: 16px; padding: 0 12px; gap: 8px; border-radius: 14px; }
.sticky .btn .ico { width: 22px; height: 22px; }

@media (min-width: 900px) {
  body { font-size: 19px; }
  section { padding: 88px 0; }
  h2 { font-size: 40px; }
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
  .hero-text { order: -1; }
  .hero-photo { aspect-ratio: 4 / 4.6; }
  .chips-photo { display: none; }
  .hero-photo .tag { display: block; }
  .chips-top { display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 22px; }
  .chips-top .chip { background: var(--surface); border: 1px solid var(--line); font-size: 12px; padding: 7px 13px; }
  .hero h1 { font-size: 40px; margin: 0 0 16px; }
  .hero .sub { font-size: 20px; }
  .ctas.duo { grid-template-columns: 1fr 1fr; }
  .gift { grid-template-columns: 280px 1fr; padding: 48px 56px; gap: 56px; }
  .phone { width: 250px; }
  .with-photo { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: stretch; }
  .side-photo { display: block; border-radius: var(--radius); overflow: hidden; }
  .side-photo img { width: 100%; height: 100%; object-fit: cover; }
  .feats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: none; padding: 0; }
  .feat { flex-direction: column; gap: 18px; padding: 28px; background: var(--surface); border-radius: 22px; }
  .feat + .feat { border-top: 0; }
  .feat h3 { font-size: 24px; margin-bottom: 6px; }
  .feat p { font-size: 18px; }
  .nots { margin: -8px 0 32px; }
  .nots span { font-size: 16px; padding: 10px 16px; }
  .rail { margin: 0; padding: 4px 0 12px; }
  .band + section { padding-top: 88px; }
  .post { width: calc((100% - 28px) / 3); }
  .ba { width: calc((100% - 28px) / 3); padding: 5px; }
  .shot { width: 420px; max-width: none; }
  .final { padding: 64px; }
  .sticky { display: none; }
  footer { padding-bottom: 40px; }
}

/* Кнопка в момент перехода в мессенджер */
.btn.is-loading { opacity: .7; pointer-events: none; }

/* Плашка cookie */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: 0 12px 32px rgba(43,36,32,.18); font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.cookie[hidden] { display: none; }
.cookie p { flex: 1; }
.cookie-actions { display: flex; gap: 6px; flex: none; }
.cookie button { border: 0; border-radius: 12px; padding: 9px 14px; font: inherit; font-weight: var(--w-bold); cursor: pointer; background: var(--bg); color: var(--ink); }
.cookie button.dark { background: var(--ink); color: #fff; }
/* на телефоне плашка стоит над липкой панелью кнопок (на компьютере панели нет — плашка не двигается) */
@media (max-width: 899px) { .sticky.show ~ .cookie { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* Предпросмотр из админки */
.preview-bar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50; background: rgba(43,36,32,.88); color: #fff; font-size: 13px; font-weight: var(--w-bold); padding: 6px 14px; border-radius: 999px; pointer-events: none; }

/* Юридические документы */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; font-size: 16px; }
.doc h1 { font-size: 30px; line-height: 1.2; font-weight: var(--w-heavy); letter-spacing: -0.02em; margin: 16px 0 8px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc ul { margin: 0 0 10px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--accent); }
.doc-back { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.doc-date { color: var(--ink-2); font-size: 14px; }
