/* Казкофон: shared stylesheet. Fonts: self-hosted woff2 (SIL OFL, see fonts/OFL-*.txt). */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-garamond-italic-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: italic; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-garamond-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('/fonts/cormorant-garamond-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: 600 700; font-display: swap; src: url('/fonts/cormorant-garamond-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/nunito-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/nunito-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --night: #0F1B33;
  --midnight: #1B2A4A;
  --snow: #F5F1E8;
  --gold: #E9B45E;
  --gold-light: #F0C277;
  --gold-deep: #E0A447;
  --ember: #C9732E;
  --bishop: #8E2B35;
  --text-dark: #EDE6D8;
  --ink: #1B2A4A;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --col: 440px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text-dark);
  font: 400 16px/1.6 var(--sans);
  overflow-x: hidden;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 8%, rgba(245,241,232,.55), transparent),
    radial-gradient(1px 1px at 78% 14%, rgba(245,241,232,.45), transparent),
    radial-gradient(2px 2px at 32% 30%, rgba(245,241,232,.35), transparent),
    radial-gradient(1px 1px at 90% 42%, rgba(245,241,232,.4), transparent),
    radial-gradient(1.5px 1.5px at 8% 58%, rgba(245,241,232,.35), transparent),
    radial-gradient(1px 1px at 60% 72%, rgba(245,241,232,.4), transparent),
    radial-gradient(2px 2px at 42% 90%, rgba(245,241,232,.3), transparent);
  background-size: 360px 520px;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: 2.5rem; font-weight: 600; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.35rem; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold); }
p { margin: 0 0 1em; }
strong { font-weight: 800; }

.hairline { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--col); margin: 0 auto; padding: 14px var(--gutter);
}
.wordmark {
  font: 700 1.6rem/1 var(--serif); color: var(--gold); text-decoration: none; letter-spacing: .02em;
}

/* Buttons */
.btn-gold, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font: 800 1rem/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
}
.btn-gold {
  border: 0; color: #2A1A05;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-deep));
  box-shadow: 0 6px 24px rgba(233,180,94,.28);
}
.btn-gold:hover, .btn-gold:active { background: var(--ember); color: #fff; }
.btn-gold:active { transform: translateY(1px); }
.btn-outline {
  min-height: 40px; padding: 8px 18px; font-size: .95rem;
  background: transparent; color: var(--gold); border: 1.5px solid var(--gold);
}
.btn-outline:hover, .btn-outline:active { background: var(--gold); color: var(--night); border-color: var(--gold); }
.btn-gold:focus-visible, .btn-outline:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

/* Hero */
.hero { overflow-x: clip; max-width: var(--col); margin: 0 auto; padding: 12px var(--gutter) 48px; text-align: center; }
.hero p { color: var(--text-dark); opacity: .92; }
.phone {
  position: relative; width: min(100%, 250px); aspect-ratio: 9 / 16; margin: 28px auto 32px;
  border-radius: 34px; padding: 8px; background: #05080F;
  border: 1.5px solid rgba(233,180,94,.55);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.55);
  isolation: isolate;
}
.phone::before { /* candle glow behind the phone */
  content: ''; position: absolute; z-index: -1; inset: -22% -42%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(233,180,94,.38), rgba(201,115,46,.14) 55%, transparent 100%);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; background: var(--midnight); }
.call-overlay {
  position: absolute; inset: 8px; border-radius: 26px; display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; padding: 26px 12px 22px; text-align: center;
  background: linear-gradient(180deg, rgba(15,27,51,.62), transparent 35%, transparent 60%, rgba(15,27,51,.75));
  color: #fff; pointer-events: none;
}
.call-overlay strong { display: block; font: 600 1.25rem/1.2 var(--serif); }
.call-overlay small { font-size: .85rem; opacity: .85; }
.call-overlay .call-buttons { display: flex; gap: 44px; }
.call-overlay .call-buttons span { width: 48px; height: 48px; border-radius: 50%; background: #D8453F; }
.call-overlay .call-buttons span + span { background: #34B26A; }

/* Sections */
.section { max-width: var(--col); margin: 0 auto; padding: 48px var(--gutter); }
.section > h2 { text-align: center; }
.section-snow { background: var(--snow); color: var(--ink); max-width: none; }
.section.section-snow > * { max-width: calc(var(--col) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.section-snow a { color: var(--bishop); }
.section-snow h1, .section-snow h2, .section-snow h3 { color: var(--ink); }
.section-snow h2 em { color: var(--bishop); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding-left: 56px; min-height: 40px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font: 700 1.3rem/1 var(--serif);
  color: var(--gold); border: 1.5px solid var(--gold); background: rgba(233,180,94,.08);
}

.cards { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cards > * {
  background: var(--midnight); border: 1px solid rgba(233,180,94,.22); border-radius: 18px; padding: 18px 20px;
}
.cards h3 { color: var(--gold); margin-bottom: .25em; }
.cards p { margin: 0; }

.price-card {
  background: var(--snow); color: var(--ink); border-radius: 22px; padding: 28px 24px; text-align: center;
  border: 1px solid var(--gold); box-shadow: 0 0 0 5px rgba(233,180,94,.14), 0 18px 48px rgba(0,0,0,.4);
}
.price-card .price { font: 700 3.5rem/1 var(--serif); font-variant-numeric: lining-nums; color: var(--bishop); margin: 0 0 .2em; }
.price-card ul { text-align: left; padding-left: 1.2em; margin: 1em 0 1.4em; }
.price-card li { margin-bottom: .35em; }

.faq details { border-bottom: 1px solid rgba(27,42,74,.18); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative;
  font: 800 1rem/1.4 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 10px; font: 600 1.6rem/1 var(--serif); color: var(--bishop);
}
.faq details[open] summary::after { content: '\2212'; }
.faq details > :not(summary) { margin: 0 0 14px; }

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(15,27,51,.94); border-top: 1px solid rgba(233,180,94,.4);
  transform: translateY(110%); transition: transform .25s ease; visibility: hidden;
}
.sticky-cta.visible { transform: none; visibility: visible; }
.sticky-cta .btn-gold { display: flex; max-width: var(--col); margin: 0 auto; width: 100%; }

.footer {
  max-width: var(--col); margin: 0 auto; padding: 32px var(--gutter) 40px; font-size: .9rem; text-align: center;
  border-top: 1px solid rgba(233,180,94,.3); color: var(--text-dark); opacity: .9;
}
.footer p { margin: 0 0 .5em; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 12px; }

/* Long-text pages */
.legal { background: var(--snow); color: var(--ink); }
.legal > main, .legal-body { max-width: 640px; margin: 0 auto; padding: 36px var(--gutter) 56px; }
.legal h1 { font-size: 2.2rem; color: var(--ink); }
.legal h2 { font-size: 1.5rem; text-align: left; margin-top: 1.6em; }
.legal main a { color: var(--bishop); }
.legal p, .legal li { line-height: 1.7; }

/* Landing page */
p.micro { font-size: .9rem; opacity: .75; margin: 14px 0 0; }
.hero .phone { width: min(100%, 240px); margin: 20px auto 24px; }
.hero .btn-gold, .price-card .btn-gold, .final .btn-gold { width: 100%; max-width: 340px; }
.hero .btn-gold { position: relative; } /* paints above the phone's candle glow */
.call-overlay .call-buttons span { display: grid; place-items: center; }
.demo .caption { text-align: center; font-size: .9rem; opacity: .75; margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: '\2713'; position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font: 800 .8rem/1 var(--sans); color: var(--snow); background: var(--bishop);
}
.final { text-align: center; padding-bottom: 64px; }

@media (min-width: 720px) {
  h1 { font-size: 2.9rem; }
  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .phone::before { animation: candle 5s ease-in-out infinite alternate; }
  @keyframes candle { from { opacity: .8; transform: scale(.97); } to { opacity: 1; transform: scale(1.03); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-cta { transition: none; }
}
.band { background: var(--night); color: var(--text-dark); }
