:root {
  --paper: #f5f1e8;
  --paper-strong: #ece5d8;
  --surface: #fffdf8;
  --ink: #251f1b;
  --muted: #6d625b;
  --rule: #d8cfc2;
  --wine: #8d2638;
  --wine-dark: #651a28;
  --teal: #245b55;
  --telegram: #229ed9;
  --success: #2d6a4f;
  --danger: #a32135;
  --serif: "PT Serif", Georgia, serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(37, 31, 27, .12);
  --shell: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: rgba(141, 38, 56, .12); }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, blockquote, dl, dd { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: 88px; }

.shell { width: min(var(--shell), calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: clamp(88px, 9vw, 144px); }
.eyebrow {
  margin-bottom: 18px;
  color: var(--wine);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  transform: translateY(-180%);
  background: var(--surface);
  border: 1px solid var(--rule);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--telegram); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  padding-inline: max(32px, calc((100vw - var(--shell)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(245, 241, 232, .92);
  border-bottom: 1px solid rgba(216, 207, 194, .75);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); line-height: .96; }
.brand svg { width: 38px; height: 38px; fill: none; stroke: var(--wine); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand span { display: flex; flex-direction: column; }
.brand b { color: var(--wine); font-size: .71rem; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: .83rem; font-weight: 600; }
.site-nav > a:not(.nav-cta) { padding-block: 10px; border-bottom: 1px solid transparent; transition: border-color 180ms ease, color 180ms ease; }
.site-nav > a:not(.nav-cta):hover { color: var(--wine); border-color: var(--wine); }
.nav-cta { min-height: 42px; padding: 9px 16px; display: inline-flex; align-items: center; border: 1px solid var(--ink); transition: background-color 180ms ease, color 180ms ease; }
.nav-cta:hover { background: var(--ink); color: var(--surface); }
.menu-button { display: none; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; width: 25px; height: 1.5px; margin: 6px auto; background: var(--ink); transition: transform 180ms ease; }
.menu-button.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-button.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.button {
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.button-primary { background: var(--wine); color: #fff; }
.button-primary:hover { background: var(--wine-dark); box-shadow: 0 12px 30px rgba(101, 26, 40, .18); }
.button-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.button-outline:hover { background: var(--ink); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding-block: 8px; border-bottom: 1px solid currentColor; font-size: .86rem; font-weight: 600; transition: color 180ms ease; }
.text-link:hover { color: var(--wine); }
.icon-button { display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.hero { border-bottom: 1px solid var(--rule); }
.hero-media { position: relative; overflow: hidden; background: var(--paper-strong); }
.hero-media img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; object-position: center 42%; }
.hero-caption {
  position: absolute;
  left: max(32px, calc((100vw - var(--shell)) / 2));
  bottom: 24px;
  max-width: 310px;
  padding: 10px 12px;
  background: rgba(245, 241, 232, .92);
  color: var(--muted);
  font-size: .74rem;
}
.hero-copy {
  padding-block: clamp(48px, 5vw, 76px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
}
.hero-kicker { grid-column: 1 / span 4; }
.hero-kicker > span { display: block; margin-bottom: 12px; color: var(--wine); font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-kicker p { max-width: 260px; color: var(--muted); font-size: .9rem; }
.hero-message { grid-column: 6 / -1; }
.hero-message h1 { margin-bottom: 24px; font-size: clamp(3.2rem, 4.9vw, 5rem); line-height: .98; letter-spacing: -.04em; }
.hero-message h1 em { color: var(--wine); font-style: normal; }
.hero-message > p:not(.hero-fine) { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 1.35vw, 1.22rem); }
.hero-actions { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.hero-fine { margin: 18px 0 0; color: var(--muted); font-size: .74rem; }

.needs { background: var(--surface); }
.needs-layout, .delivery-layout, .faq-layout { display: grid; grid-template-columns: 4fr 7fr; gap: 8.333%; align-items: start; }
.section-intro h2, .contents-heading h2, .pricing-heading h2, .product-copy h2 { margin-bottom: 20px; font-size: clamp(2.45rem, 4.7vw, 5rem); line-height: 1.02; letter-spacing: -.035em; }
.section-intro > p:last-child, .contents-heading > p:last-child, .pricing-heading > p:last-child { color: var(--muted); }
.need-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.need-list li { padding-block: 28px; display: grid; grid-template-columns: 50px 1fr; gap: 18px; border-bottom: 1px solid var(--rule); }
.need-list > li > span, .product-copy li > span { color: var(--wine); font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.need-list h3 { margin-bottom: 8px; font-size: 1.55rem; }
.need-list p { max-width: 650px; margin-bottom: 0; color: var(--muted); }

.story { background: var(--paper); border-block: 1px solid var(--rule); }
.story-layout { display: grid; grid-template-columns: 5fr 6fr; gap: 8.333%; align-items: center; }
.story-video { max-width: 430px; margin-inline: auto; }
.story-video video { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #d9cdbf; }
.story-copy h2 { margin-bottom: 28px; font-size: clamp(2.7rem, 4.8vw, 5.2rem); line-height: 1.02; }
.story-copy blockquote { margin: 0 0 26px; padding-left: 24px; border-left: 2px solid var(--wine); color: var(--wine); font: 400 clamp(1.25rem, 2vw, 1.75rem)/1.45 var(--serif); }
.story-copy > p:not(.eyebrow) { max-width: 650px; color: var(--muted); }
.story-copy .text-link { margin-top: 14px; }

.contents { background: var(--surface); }
.contents-heading { max-width: 850px; margin-bottom: 56px; }
.chapter-list { border-top: 1px solid var(--ink); }
.chapter-list article { min-height: 108px; padding: 24px 0; display: grid; grid-template-columns: 64px 3fr 5fr 1fr; gap: 24px; align-items: center; border-bottom: 1px solid var(--rule); }
.chapter-list article > span { color: var(--wine); font-size: .72rem; font-weight: 700; }
.chapter-list h3 { margin: 0; font-size: 1.6rem; }
.chapter-list p { margin: 0; color: var(--muted); }
.chapter-list b { justify-self: end; font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }

.product { background: var(--paper); border-block: 1px solid var(--rule); }
.product-layout { display: grid; grid-template-columns: 6fr 5fr; gap: 8.333%; align-items: center; }
.product-media img { width: 100%; }
.product-copy > ul { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.product-copy li { padding-block: 20px; display: grid; grid-template-columns: 40px 1fr; gap: 14px; border-bottom: 1px solid var(--rule); }
.product-copy li p { margin: 0; color: var(--muted); }
.product-copy li strong { color: var(--ink); }

.pricing { background: var(--surface); }
.pricing-shell { max-width: 1080px; }
.pricing-heading { max-width: 850px; margin: 0 auto 54px; text-align: center; }
.pricing-heading > p:last-child { max-width: 680px; margin-inline: auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price-plan { position: relative; min-height: 630px; padding: clamp(28px, 4vw, 46px); display: flex; flex-direction: column; border: 1px solid var(--rule); background: var(--paper); }
.price-plan-featured { border: 2px solid var(--wine); }
.recommendation { position: absolute; top: -14px; left: 28px; padding: 5px 11px; background: var(--wine); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.price-plan header > span { color: var(--wine); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.price-plan h3 { margin: 8px 0 12px; font-size: 2.05rem; }
.price-plan header p { min-height: 52px; color: var(--muted); }
.plan-price { margin-block: 26px; padding-block: 22px; display: flex; align-items: baseline; gap: 10px; border-block: 1px solid var(--rule); }
.plan-price strong { font: 400 3.6rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-size: .78rem; }
.plan-plus { margin: -8px 0 18px; color: var(--wine); font-size: .75rem; font-weight: 700; }
.price-plan ul { margin: 0 0 34px; padding: 0; display: grid; gap: 14px; list-style: none; }
.price-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.price-plan li svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 1.8; }
.price-plan .button { width: 100%; margin-top: auto; }
.trust-row { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--rule); }
.trust-row > span { padding: 18px; display: grid; grid-template-columns: 28px 1fr; grid-template-areas: "icon title" "icon body"; gap: 1px 9px; color: var(--muted); font-size: .72rem; }
.trust-row > span + span { border-left: 1px solid var(--rule); }
.trust-row svg { grid-area: icon; width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.7; }
.trust-row b { grid-area: title; color: var(--ink); font-size: .76rem; }

.delivery { background: var(--ink); color: var(--surface); }
.delivery .eyebrow { color: #d9aeb6; }
.delivery-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.22); }
.delivery-steps li { padding-block: 24px; display: grid; grid-template-columns: 48px 1fr; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.22); }
.delivery-steps > li > span { color: #d9aeb6; font-size: .72rem; }
.delivery-steps h3 { margin-bottom: 6px; font-size: 1.4rem; }
.delivery-steps p { margin: 0; color: rgba(255,255,255,.66); }

.faq { background: var(--paper); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; cursor: pointer; font: 400 1.25rem/1.3 var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--wine); font: 400 1.5rem/1 var(--sans); transition: transform 180ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 680px; margin: -4px 44px 24px 0; color: var(--muted); }

.site-footer { padding-block: 60px 30px; background: var(--wine-dark); color: #fff; }
.footer-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 60px; }
.brand-inverse svg { stroke: #fff; }
.brand-inverse b { color: #fff; }
.footer-layout > p { align-self: end; justify-self: end; max-width: 430px; margin: 0; color: rgba(255,255,255,.68); text-align: right; }
.footer-layout nav { grid-column: 1 / -1; padding-block: 20px; display: flex; gap: 28px; border-block: 1px solid rgba(255,255,255,.2); font-size: .82rem; }
.footer-layout nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-layout small { grid-column: 1 / -1; color: rgba(255,255,255,.54); }

.payment-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); overflow: auto; overscroll-behavior: contain; }
.payment-dialog::backdrop { background: rgba(37,31,27,.68); backdrop-filter: blur(4px); }
.dialog-inner { position: relative; padding: clamp(28px, 5vw, 48px); }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; }
.payment-dialog h2 { margin-bottom: 24px; font-size: 2.7rem; }
.order-summary { margin-bottom: 24px; padding-block: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-block: 1px solid var(--rule); }
.order-summary > span { font-weight: 700; }
.order-summary strong, .order-summary strong span { color: var(--wine); font: 400 2rem/1 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .78rem; font-weight: 700; }
.field input { width: 100%; height: 52px; padding-inline: 14px; border: 1px solid var(--rule); border-radius: 0; background: #fff; color: var(--ink); }
.field:focus-within > span { color: var(--wine); }
.field input:focus-visible { outline: 3px solid rgba(34,158,217,.32); outline-offset: 1px; border-color: var(--telegram); }
.field-error { min-height: 20px; margin: 5px 0 0; color: var(--danger); font-size: .74rem; }
.consent { margin-top: 12px; display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .74rem; cursor: pointer; }
.consent input { flex: 0 0 auto; margin-top: 4px; accent-color: var(--wine); }
.dialog-submit { width: 100%; margin-top: 8px; }
.dialog-submit[disabled] { cursor: wait; opacity: .58; }
.form-status { min-height: 22px; margin: 12px 0 0; color: var(--danger); font-size: .78rem; text-align: center; }
.secure-note { margin: 20px 0 0; padding-top: 18px; display: flex; align-items: flex-start; gap: 9px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .73rem; }
.secure-note svg { flex: 0 0 18px; width: 18px; height: 18px; fill: var(--teal); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity 340ms ease, transform 340ms cubic-bezier(.22,1,.36,1); }
.js .reveal-media { transform: translateY(-12px); }

/* Success page; access actions adapt 21st.dev Download Card, component 8216. */
.success-page { min-height: 100vh; background: var(--paper); }
.success-header { position: relative; }
.success-header__secure { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-size: .75rem; font-weight: 700; }
.success-header__secure svg { width: 18px; height: 18px; fill: var(--teal); }
.success-main { min-height: calc(100vh - 72px); padding: 64px 24px; display: grid; place-items: center; }
.access-card { width: min(980px, 100%); padding: clamp(30px, 6vw, 72px); border: 1px solid var(--rule); background: var(--surface); }
.access-status { max-width: 680px; margin: auto; text-align: center; }
.access-status h1, [data-access-panel] > h1 { margin-bottom: 18px; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; }
.access-status > p:last-child, .access-lead { max-width: 650px; margin-inline: auto; color: var(--muted); }
.access-spinner { display: block; width: 50px; height: 50px; margin: 0 auto 22px; border: 3px solid var(--rule); border-top-color: var(--wine); border-radius: 50%; animation: spin 850ms linear infinite; }
.access-error-icon, .access-success-icon { width: 52px; height: 52px; margin: 0 auto 22px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-weight: 700; }
.access-error-icon { color: var(--danger); }
.access-success-icon { color: var(--success); }
.access-status--error .button { margin-top: 22px; }
[data-access-panel] { text-align: center; }
.access-receipt { max-width: 720px; margin: 36px auto; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--rule); }
.access-receipt > div { padding: 16px; }
.access-receipt > div + div { border-left: 1px solid var(--rule); }
.access-receipt dt { color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.access-receipt dd { margin: 4px 0 0; font-weight: 700; }
.access-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: left; }
.access-action { padding: 28px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--rule); }
.access-action__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule); }
.access-action__icon svg { width: 22px; height: 22px; fill: var(--wine); }
.access-action__icon--telegram svg { fill: var(--telegram); }
.access-action h2 { margin-bottom: 8px; font-size: 1.55rem; }
.access-action p { margin: 0; color: var(--muted); font-size: .84rem; }
.access-action .button { width: 100%; margin-top: auto; }
.access-warning { max-width: 720px; margin: 24px auto 0; padding: 16px 18px; border-left: 2px solid var(--wine); background: var(--paper); text-align: left; }
.access-warning p { margin: 3px 0 0; color: var(--muted); font-size: .76rem; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .shell { width: min(100% - 40px, var(--shell)); }
  .site-header { padding-inline: 20px; }
  .site-nav { gap: 20px; }
  .hero-media img { aspect-ratio: 16/8; }
  .hero-copy { grid-template-columns: 1fr; gap: 24px; }
  .hero-kicker, .hero-message { grid-column: 1; }
  .hero-kicker p { max-width: none; }
  .needs-layout, .delivery-layout, .faq-layout, .story-layout, .product-layout { grid-template-columns: 1fr; gap: 48px; }
  .story-video { width: min(420px, 100%); }
  .product-media { order: 2; }
  .chapter-list article { grid-template-columns: 48px 2fr 3fr auto; gap: 18px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-plan { min-height: auto; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row > span + span { border-left: 0; border-top: 1px solid var(--rule); }
}

@media (max-width: 680px) {
  .hero { display: flex; flex-direction: column; }
  .site-header { min-height: 64px; }
  .menu-button { display: block; }
  .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    min-height: calc(100dvh - 64px);
    padding: 38px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  .site-nav a { width: 100%; padding: 15px 0; font: 400 1.55rem/1.2 var(--serif); border-bottom: 1px solid var(--rule); }
  .nav-cta { border: 0; }
  .hero-media img { aspect-ratio: 4/5; object-position: 70% center; }
  .hero-caption { left: 18px; right: 18px; bottom: 16px; max-width: 280px; }
  .hero-copy { order: -1; padding-block: 44px 56px; }
  .hero-message h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .hero-actions .text-link { width: 100%; }
  .hero-actions .text-link { justify-content: center; }
  .section { padding-block: 72px; }
  .section-intro h2, .contents-heading h2, .pricing-heading h2, .product-copy h2, .story-copy h2 { font-size: clamp(2.25rem, 11vw, 3.25rem); }
  .chapter-list article { grid-template-columns: 36px 1fr; gap: 8px 12px; }
  .chapter-list article > p, .chapter-list article > b { grid-column: 2; }
  .chapter-list article > b { justify-self: start; }
  .product-copy li { grid-template-columns: 32px 1fr; }
  .price-plan { padding: 30px 22px; }
  .plan-price strong { font-size: 3rem; }
  .footer-layout { grid-template-columns: 1fr; }
  .footer-layout > p { justify-self: start; text-align: left; }
  .footer-layout nav, .footer-layout small { grid-column: 1; }
  .footer-layout nav { flex-direction: column; gap: 8px; }
  .dialog-inner { padding: 32px 20px; }
  .payment-dialog h2 { font-size: 2.25rem; }
  .success-header__secure { display: none; }
  .access-receipt, .access-actions { grid-template-columns: 1fr; }
  .access-receipt > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-media { opacity: 1; transform: none; }
  .access-spinner { animation: none; border-color: var(--wine); }
}
