/* Лендинг «Альтер-Его» (index.html): мобільна в першу чергу; анімації - у go.js */
:root {
  --bg: #FBF8F4;        /* основний фон - світліший, ніж на index */
  --sand: #F1E8DD;      /* чергування секцій */
  --card: #FFFFFF;
  --accent: #A88468;
  --ink: #2B2420;
  --ink-2: #4A3F38;     /* основний текст - темніший за ink-soft, читається на сонці */
  --muted: #7A6C62;
  --line: rgba(43, 36, 32, .12);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink-2);
  font: 400 16px/1.55 var(--sans);
  padding-bottom: 76px; /* місце під липку панель */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b, strong { color: var(--ink); font-weight: 600; }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 20px; }

/* ---------- Кнопка ---------- */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 0 24px;
  background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 999px; font: 600 16px/1 var(--sans); letter-spacing: .02em;
  box-shadow: 0 8px 20px rgba(43, 36, 32, .18);
  transition: background .2s, transform .1s;
}
.btn:hover { background: #4A3A30; }
.btn:active { transform: scale(.98); }
.btn--sm { width: auto; min-height: 46px; padding: 0 22px; font-size: 15px; box-shadow: none; }

/* ---------- Перший екран ---------- */
.hero { padding-bottom: 28px; }
.hero__photo { position: relative; max-width: 560px; margin: 0 auto; }
.hero__photo img {
  width: 100%; height: 34vh; min-height: 230px; max-height: 360px;
  object-fit: cover; object-position: 55% 30%;
}
.hero__badge {
  position: absolute; left: 20px; bottom: 14px;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  font: 600 12px/1 var(--sans); letter-spacing: .04em;
  padding: 8px 12px; border-radius: 999px;
}
.hero__body { padding-top: 20px; }
.hero__h1 {
  font: 500 29px/1.12 var(--serif); color: var(--ink);
  letter-spacing: -.01em; margin-bottom: 12px;
}
.hero__lead { font-size: 16px; margin-bottom: 10px; }
.hero__meta { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }

.buy__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.buy__now { font: 500 30px/1 var(--serif); color: var(--ink); }
.buy__old { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.buy__tag {
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em;
}
.buy__price--big .buy__now { font-size: 46px; }
.buy__trust { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--ink); text-align: center; }
.buy__trust a { text-decoration: none; }
.legal { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--muted); text-align: center; }

/* ---------- Секції ---------- */
.sec { padding: 44px 0; }
.sec--sand { background: var(--sand); }
.h2 { font: 500 26px/1.15 var(--serif); color: var(--ink); margin-bottom: 18px; letter-spacing: -.01em; }
.eyebrow {
  font-size: 12px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px;
}

.pains { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.pains li {
  background: var(--card); border-radius: 14px; padding: 14px 16px 14px 44px;
  position: relative; color: var(--ink);
}
.pains li::before {
  content: "—"; position: absolute; left: 16px; top: 14px; color: var(--accent); font-weight: 700;
}
.note { font-size: 16px; }
.note em { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 18px; }

.mods { list-style: none; counter-reset: m; display: grid; gap: 12px; }
.mods li { counter-increment: m; position: relative; padding-left: 40px; }
.mods li::before {
  content: counter(m); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--sand); color: var(--ink);
  font: 600 14px/28px var(--sans); text-align: center;
}
.plus { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink); }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.shots img { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.shots figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Відео з Оксаною */
.inside { display: flex; flex-direction: column; }
.inside__media { order: -1; margin-bottom: 22px; } /* на телефоні відео - одразу під заголовком */
.video { position: relative; border-radius: 14px; overflow: hidden; background: #2B2420; aspect-ratio: 16 / 9; }
.video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; inset: 0; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(to top, rgba(43, 36, 32, .55), rgba(43, 36, 32, .05) 60%);
  color: #fff; font: 600 14px/1 var(--sans);
}
.video__icon {
  width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); position: relative; transition: transform .2s;
}
.video__icon::after {
  content: ""; position: absolute; left: 27px; top: 21px;
  border-left: 20px solid var(--ink); border-top: 13px solid transparent; border-bottom: 13px solid transparent;
}
.video__play:hover .video__icon { transform: scale(1.06); }
.video__label { background: rgba(43, 36, 32, .6); padding: 7px 12px; border-radius: 999px; }
.video.is-playing .video__play { display: none; }
.inside__media .shots { margin-top: 12px; }

.story { margin-bottom: 12px; }
.story--sum { font: italic 18px/1.4 var(--serif); color: var(--ink); margin-bottom: 0; }

.reviews {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 20px 6px; scrollbar-width: none;
  max-width: 560px; margin: 0 auto;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews figure { flex: 0 0 84%; scroll-snap-align: center; }
.reviews img { border-radius: 12px; border: 1px solid var(--line); width: 100%; }
.hint { margin-top: 10px; font-size: 13px; color: var(--muted); }

.about { display: grid; gap: 18px; }
.about__img { border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; width: 100%; }
.about p { margin-bottom: 12px; }
.link { font-weight: 600; color: var(--ink); }

.card {
  background: var(--card); border-radius: 20px; padding: 26px 20px;
  box-shadow: 0 10px 30px rgba(43, 36, 32, .08); border: 1px solid var(--line);
}
.card__sub { font: italic 16px/1.45 var(--serif); color: var(--ink-2); margin-bottom: 16px; }
.checks { list-style: none; display: grid; gap: 8px; margin-bottom: 20px; }
.checks li { position: relative; padding-left: 26px; color: var(--ink); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pay-logos { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.pay-logos { flex-wrap: wrap; row-gap: 8px; }
.pay-logos__pill { font: 600 12px/1 var(--sans); color: var(--ink); border: 1px solid var(--line); padding: 6px 8px; border-radius: 6px; }
.buy__pay { margin-top: 4px; font-size: 13px; color: var(--muted); text-align: center; }
.ask { text-align: center; margin-top: 18px; font-size: 15px; }
.ask a { font-weight: 600; color: var(--ink); }
.pay-logos__wfp { font: 700 13px/1 var(--sans); color: var(--ink); border: 1px solid var(--line); padding: 5px 8px; border-radius: 6px; }

.faq details { background: var(--card); border-radius: 14px; margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 44px 16px 16px; position: relative;
  font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 13px; font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 16px 16px; }

.footer { padding: 32px 0 24px; font-size: 13px; color: var(--muted); }
.footer p { margin-bottom: 8px; }
.footer a { color: var(--ink-2); }
.footer__links a { font-weight: 600; }

/* ---------- Анімації (керує GSAP у go.js) ---------- */
html.lenis { scroll-behavior: auto; } /* плавний скрол веде Lenis */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }
.hero__photo { overflow: hidden; }
.hero__photo img { will-change: transform; }

/* ---------- Липка панель ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(43, 36, 32, .08);
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky.is-on { transform: translateY(0); }
.sticky__price b { font: 500 22px/1 var(--serif); color: var(--ink); margin-right: 8px; }
.sticky__price s { font-size: 14px; color: var(--muted); }

/* ---------- Планшет ---------- */
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .sticky { display: none; }
  .wrap { max-width: 720px; padding: 0 32px; }
  .sec { padding: 72px 0; }
  .h2 { font-size: 36px; margin-bottom: 24px; }
  .hero__photo { max-width: 720px; }
  .hero__photo img { height: 46vh; max-height: 460px; }
  .hero__h1 { font-size: 40px; }
  .reviews { max-width: 720px; padding: 0 32px 6px; }
  .reviews figure { flex-basis: 60%; }
  .about { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 36px; }
}

/* ---------- Комп'ютер ---------- */
@media (min-width: 1024px) {
  .wrap { max-width: 1120px; padding: 0 48px; }
  .sec { padding: 96px 0; }
  .h2 { font-size: 44px; margin-bottom: 32px; }

  /* Перший екран: фото зліва на всю висоту, текст і оплата справа */
  .hero {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
    max-width: 1120px; margin: 0 auto; padding: 48px 48px 72px; min-height: min(100vh, 860px);
  }
  .hero__photo { max-width: none; border-radius: 24px; }
  .hero__photo img { height: min(78vh, 720px); max-height: none; object-position: 58% 30%; }
  .hero__badge { left: 24px; bottom: 24px; font-size: 13px; padding: 10px 14px; }
  .hero__body { padding: 0; max-width: 500px; }
  .hero__h1 { font-size: 54px; margin-bottom: 20px; }
  .hero__lead { font-size: 18px; margin-bottom: 14px; }
  .hero__meta { font-size: 14px; margin-bottom: 28px; }
  .buy__now { font-size: 38px; }
  .buy .btn { min-height: 62px; font-size: 17px; }
  .buy .buy__trust, .buy .buy__pay, .buy .legal { text-align: left; }

  /* Болі - три картки в ряд */
  .pains { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
  .pains li { padding: 24px 22px 24px 50px; font-size: 17px; }
  .pains li::before { left: 22px; top: 24px; }
  .note { max-width: 760px; font-size: 18px; }
  .note em { font-size: 21px; }

  /* Що всередині - модулі зліва, скриншоти справа */
  .inside { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .mods { gap: 18px; font-size: 17px; }
  .inside__media { order: 0; margin-bottom: 0; }
  .inside__media .shots { margin-top: 16px; gap: 16px; }

  /* Історія - вузька колонка, щоб легко читалось */
  .story { max-width: 720px; font-size: 18px; }
  .story--sum { font-size: 24px; }

  /* Відгуки - три на екрані */
  .reviews { max-width: 1120px; padding: 0 48px 6px; gap: 20px; }
  .reviews figure { flex-basis: calc((100% - 40px) / 3); }
  .hint { font-size: 14px; }

  .about { grid-template-columns: 420px 1fr; gap: 64px; }
  .about p { font-size: 18px; max-width: 560px; }

  /* Ціна - картка по центру */
  .card { max-width: 560px; margin: 0 auto; padding: 44px 44px 36px; }
  .buy__price--big .buy__now { font-size: 56px; }

  .faq { max-width: 760px; }
  .faq summary { font-size: 17px; padding: 20px 52px 20px 22px; }
  .faq details p { padding: 0 22px 20px; font-size: 16px; }
}
