/* Сайт Secret Beauty Club. Перш за все телефон: посилання відкривають з Instagram і сторіс, однією рукою.
   Вигляд - як у всього проєкту (docs/luxury-standard.md): слонова кістка й благородне золото її ванни, дидона в заголовках,
   звичайний гротеск у тексті. Золото - лише там, де воно щось означає: головна кнопка й ціна. Без орнаментів, рамок заради рамок
   і капітелі там, де можна без неї; групи розділяє порожнє місце. Один екран - одна головна кнопка, під великим пальцем. */

@font-face { font-family: "Playfair Display"; src: url("fonts/playfair.woff2") format("woff2"); font-weight: 400 900;
  font-style: normal; font-display: swap; }

:root {
  color-scheme: only light;
  --ivory: #fbf7ef;
  --ivory-hi: #fffdf8;
  --mist: #f3ece0;
  --ink: #241d17;
  --ink-on-gold: #2b2013;
  --grey: #6f665d;
  --gold: #aa8852;
  --gold-ink: #6b5229;
  --gold-metal: linear-gradient(135deg, #f2e4bf 0%, #d3b37d 34%, #a98a52 62%, #e7d5a8 100%);
  --hair: rgba(60, 40, 15, .12);
  --hair-2: rgba(60, 40, 15, .2);
  --error: #8f2b2b;
  --serif: "Playfair Display", Didot, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 22px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 16px/1.55 var(--sans); touch-action: manipulation;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-feature-settings: "lnum"; color: var(--ink); }
h1 { font-size: clamp(34px, 9.6vw, 56px); line-height: 1.1; letter-spacing: -.005em; }
h2 { font-size: clamp(27px, 7.4vw, 38px); line-height: 1.16; margin-bottom: 24px; }
h3 { font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
.nowrap { white-space: nowrap; }
.small { font-size: 13.5px; line-height: 1.5; }
.muted { color: var(--grey); }
.center { text-align: center; }

.brand { display: block; font: 400 13px/1 var(--serif); letter-spacing: .3em; text-decoration: none; color: var(--ink);
  text-align: center; padding-left: .3em; }

/* Головна кнопка: золото, як у грі. Висока й на всю ширину: велика ціль під великим пальцем */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; padding: 14px 22px; border: 0;
  border-radius: 999px; background: var(--gold-metal); color: var(--ink-on-gold); font: 500 18px/1.2 var(--serif);
  font-feature-settings: "lnum"; text-align: center; text-decoration: none; cursor: pointer; appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 1px rgba(140, 108, 55, .45), 0 10px 26px rgba(90, 64, 30, .18);
  transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 0 0 1px rgba(140, 108, 55, .45), 0 4px 12px rgba(90, 64, 30, .18); }
.btn[disabled] { opacity: .7; cursor: default; }

/* ─── Перший екран ─────────────────────────────────────────────────────── */
/* Як обкладинка журналу: знак дому - поверх кадру вгорі (там лише стіна), Дашу нічим не закриваємо */
.hero { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.hero-top { position: absolute; z-index: 1; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter) 30px;
  background: linear-gradient(180deg, rgba(251, 247, 239, .62) 0, rgba(251, 247, 239, 0) 100%); }
.hero-photo { position: relative; flex: 1 1 auto; min-height: 300px; overflow: hidden; background: #d9d4cb; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 26%; }
.hero-copy { flex: none; padding: 22px var(--gutter) calc(var(--safe-bottom) + 16px); }
.eyebrow { margin-bottom: 10px; color: var(--gold-ink); font-size: 13.5px; letter-spacing: .01em; }
.lead { margin: 12px 0 20px; font-size: 16.5px; line-height: 1.5; }
.note { margin: 12px 0 0; color: var(--grey); font-size: 13.5px; text-align: center; font-feature-settings: "lnum"; }

/* ─── Блоки ────────────────────────────────────────────────────────────── */
.block { padding: 52px var(--gutter) 0; }
.facts { display: grid; gap: 26px; }
.facts p { margin: 0; color: var(--grey); }
.quote { margin-top: 56px; padding: 44px var(--gutter); background: var(--mist); }
.quote blockquote { margin: 0 0 16px; font: 400 26px/1.3 var(--serif); }
.quote p { margin: 0; }
.quote .sign { margin-top: 14px; color: var(--gold-ink); font: italic 400 19px/1 var(--serif); }
.steps { counter-reset: step; display: grid; gap: 20px; }
.steps li { position: relative; padding-left: 40px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -3px; font: 400 26px/1.2 var(--serif);
  font-feature-settings: "lnum"; color: var(--gold-ink); }

/* Кнопка, що їде під пальцем, поки читають: зникає на цінах, бо далі кнопки вже там */
.with-sticky { position: relative; }
.sticky { position: sticky; bottom: 0; z-index: 5; margin-top: 40px; padding: 10px var(--gutter) calc(var(--safe-bottom) + 10px);
  background: rgba(251, 247, 239, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--hair); }
.sticky-in { display: flex; align-items: center; gap: 14px; }
.sticky .btn { flex: 1; min-height: 50px; font-size: 16.5px; padding: 10px 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 0 1px rgba(140, 108, 55, .45); }
.sticky-price { flex: none; color: var(--ink); font: 400 17px/1.15 var(--serif); font-feature-settings: "lnum"; text-align: right; max-width: 34%; }

.plans { display: grid; gap: 10px; margin-bottom: 18px; }
.plan { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; align-items: center; min-height: 76px; padding: 14px 18px;
  border: 1px solid var(--hair-2); border-radius: 16px; background: var(--ivory-hi); text-decoration: none;
  transition: transform .3s ease, border-color .3s ease; }
.plan:active { transform: scale(.99); border-color: var(--gold); }
.plan-name { font: 400 21px/1.2 var(--serif); font-feature-settings: "lnum"; }
.plan-sub { grid-column: 1; color: var(--grey); font-size: 13.5px; }
.plan-price { grid-row: 1 / span 2; grid-column: 2; font: 500 21px/1.1 var(--serif); font-feature-settings: "lnum"; white-space: nowrap; }

.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary { position: relative; padding: 17px 32px 17px 0; list-style: none; cursor: pointer; font-weight: 500; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 22px; width: 9px; height: 9px; border-right: 1.5px solid var(--gold-ink);
  border-bottom: 1.5px solid var(--gold-ink); transform: rotate(45deg); transition: transform .3s ease; }
.faq details[open] summary::after { transform: translateY(4px) rotate(225deg); }
.faq details > div { padding: 0 0 18px; color: var(--grey); }
.faq details > div p:last-child { margin-bottom: 0; }

.foot { margin-top: 56px; padding: 40px var(--gutter) calc(var(--safe-bottom) + 34px); background: var(--mist); color: var(--grey); font-size: 13.5px; }
.foot h2 { margin: 26px 0 10px; font: 500 13.5px/1.3 var(--sans); color: var(--ink); }
.foot h2:first-child { margin-top: 0; }
.doc-links { display: grid; gap: 2px; }
.doc-links a { display: inline-block; padding: 7px 0; color: var(--ink); }
.foot .marks { margin: 22px 0 0; font-feature-settings: "lnum"; }

/* ─── Оплата й після неї ───────────────────────────────────────────────── */
.narrow { max-width: 480px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gutter) calc(var(--safe-bottom) + 30px); }
.page-top { margin-bottom: 30px; }
.pay h1, .done h1 { font-size: clamp(30px, 8.4vw, 40px); margin-bottom: 20px; }
fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
legend, .field-label { display: block; padding: 0; margin-bottom: 9px; font-size: 14px; font-weight: 500; }
.pick { position: relative; display: flex; align-items: center; gap: 14px; min-height: 68px; margin-bottom: 8px; padding: 12px 16px;
  border: 1px solid var(--hair-2); border-radius: 16px; background: var(--ivory-hi); cursor: pointer; transition: border-color .3s ease, box-shadow .3s ease; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.pick:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.pick-body { flex: 1; min-width: 0; }
.pick-name { display: block; font: 400 19px/1.25 var(--serif); font-feature-settings: "lnum"; }
.pick-sub { display: block; color: var(--grey); font-size: 13px; }
.pick-price { flex: none; font: 500 19px/1.1 var(--serif); font-feature-settings: "lnum"; white-space: nowrap; }
.field { display: block; }
.field input { width: 100%; height: 58px; padding: 0 16px; border: 1px solid var(--hair-2); border-radius: 14px; background: var(--ivory-hi); color: var(--ink);
  font: 400 19px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .01em; outline: none; appearance: none; transition: border-color .3s ease, box-shadow .3s ease; }
.field input:focus { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.phone-note { display: flex; gap: 12px; margin: 12px 0 22px; padding: 14px 16px; border-radius: 14px; background: var(--mist); font-size: 14.5px; line-height: 1.45; }
.note-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--gold-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.form-error { margin: 0 0 20px; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(143, 43, 43, .35); color: var(--error); font-size: 14.5px; line-height: 1.45; }
.pay-form .btn { margin-bottom: 14px; }
.pay-form .small { margin-bottom: 8px; }
.center-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.center-page .page-top { margin-bottom: 19vh; }
.center-page .btn { margin-top: 8px; margin-bottom: 14px; }
.tips { margin-top: 30px; color: var(--grey); font-size: 14.5px; }
.tips h3 { margin: 18px 0 4px; font: 500 14.5px/1.3 var(--sans); color: var(--ink); }
.tips p { margin: 0; }
.tips p + p { margin-top: 6px; }

/* ─── Документи ────────────────────────────────────────────────────────── */
.doc main { max-width: 720px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 20px) var(--gutter) 64px; }
.doc .brand { margin-bottom: 34px; }
.doc h1 { font-size: clamp(28px, 7.6vw, 38px); line-height: 1.18; margin-bottom: 8px; }
.doc h2 { margin: 34px 0 10px; font: 500 15.5px/1.35 var(--sans); }
.doc .sub { color: var(--grey); font-size: 13.5px; margin-bottom: 24px; }
.doc li { margin: 4px 0; }
.doc ul, .doc ol { padding-left: 20px; list-style: revert; }
.doc table { border-collapse: collapse; width: 100%; }
.doc td { padding: 6px 0; border-bottom: 1px solid var(--hair); }
.doc td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.doc .todo { color: var(--error); }

/* ─── Великий екран ────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .hero { display: grid; grid-template-columns: 54% 46%; grid-template-rows: auto 1fr; min-height: min(100vh, 860px); }
  .hero-photo { grid-column: 1; grid-row: 1 / span 2; min-height: 620px; }
  .hero-top { position: static; grid-column: 2; grid-row: 1; padding-top: 36px; background: none; }
  .hero-copy { grid-column: 2; grid-row: 2; align-self: center; max-width: 560px; padding: 30px 56px 60px; }
  .btn { width: auto; min-width: 280px; }
  .note { text-align: left; }
  main { max-width: 1120px; margin: 0 auto; }
  .block { padding-top: 80px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
  .quote { margin-top: 80px; padding: 70px 40px; text-align: center; }
  .quote blockquote { max-width: 760px; margin: 0 auto 18px; font-size: 34px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .sticky { display: none; }
  .foot { margin-top: 80px; padding: 50px max(40px, calc((100vw - 1040px) / 2)); }
  .narrow .btn { width: 100%; }
  .plan:hover { border-color: var(--gold); }
}

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