@font-face { font-family: 'Museo'; src: url('fonts/MuseoSansCyrl-100.ttf'); font-weight: 100; font-display: swap; }
@font-face { font-family: 'Museo'; src: url('fonts/MuseoSansCyrl-300.ttf'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Museo'; src: url('fonts/MuseoSansCyrl-500.ttf'); font-weight: 500; font-display: swap; }

:root {
  --bg: #f6f1e6;
  --ink: #1c1a17;
  --ink-soft: #6f6558;
  --seal: #a8321f;
  --stroke: rgba(28,26,23,0.10);
  --card: rgba(255,255,255,0.45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--bg); overflow-x: hidden; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Museo', -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.55;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  opacity: 0.045;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.enso-wrap {
  position: absolute; top: 0; left: 0; right: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
}
.enso {
  position: absolute;
  width: min(62vh, 520px); height: min(62vh, 520px);
  top: -14vh; right: -18vh;
  pointer-events: none;
}
.enso circle { fill: none; stroke: var(--stroke); stroke-width: 1.2; stroke-linecap: round; }

.wrap {
  position: relative; z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 18vh 24px 8vh;
}

.kicker {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

h1 {
  font-weight: 100;
  font-size: clamp(40px, 9vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.accent { color: var(--seal); font-weight: 300; }
.seal {
  display: inline-block;
  width: 0.16em; height: 0.16em; min-width: 9px; min-height: 9px;
  background: var(--seal); border-radius: 1px;
  transform: rotate(-8deg); vertical-align: middle; margin-left: 0.2em; opacity: 0.9;
}

.lead {
  margin-top: 28px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-soft);
  max-width: 34em;
}

.topics { margin-top: 64px; border-top: 1px solid var(--stroke); }
.topic {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--stroke);
}
.topic .n { font-size: 12px; letter-spacing: 0.1em; color: var(--seal); padding-top: 5px; font-variant-numeric: tabular-nums; }
.topic h2 { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.topic p { grid-column: 2; color: var(--ink-soft); font-size: 15px; }

.offer {
  margin-top: 56px;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 6px;
}
.offer .meta { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.offer .price {
  margin-top: 10px;
  font-weight: 100; font-size: clamp(44px, 10vw, 64px); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.offer .price span { font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif; font-weight: 200; font-size: 0.5em; color: var(--ink-soft); margin-left: 4px; }
.offer .for { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.offer .for b { color: var(--ink); font-weight: 500; }

.btn {
  display: block; width: 100%;
  margin-top: 26px;
  padding: 18px 20px;
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 4px;
  font: 500 16px 'Museo', sans-serif; letter-spacing: 0.02em;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background .2s;
}
.btn:hover { background: var(--seal); }
.btn[aria-disabled="true"] { opacity: 0.35; }
.btn[aria-disabled="true"]:hover { background: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--seal); flex: none; }
.consent.need span { color: var(--seal); }
.offer .after { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.offer .agree { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }

.note { margin-top: 40px; font-size: 13px; color: var(--ink-soft); max-width: 36em; }

a { color: var(--ink); text-decoration-color: var(--stroke); text-underline-offset: 3px; }
a:hover { color: var(--seal); }

footer {
  margin-top: 72px; padding-top: 22px;
  border-top: 1px solid var(--stroke);
  font-size: 12px; line-height: 1.8; color: var(--ink-soft);
}
footer a { color: var(--ink-soft); }

/* документы */
.doc h1 { font-size: clamp(32px, 7vw, 48px); }
.doc .rev { margin-top: 10px; font-size: 13px; color: var(--ink-soft); }
.doc h2 { font-weight: 500; font-size: 17px; margin: 36px 0 10px; }
.doc p, .doc li { font-size: 15px; color: #3d3831; margin-top: 8px; }
.doc ul { padding-left: 1.2em; }
.back { display: inline-block; margin-bottom: 36px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); text-decoration: none; }

@media (min-width: 900px) {
  .wrap { padding-top: 22vh; }
  .offer { padding: 40px 44px; }
}

/* ===== двухэкранный режим главной (свайп как в WebDeck) ===== */
body.snap { min-height: 0; }
.deck {
  height: 100vh; height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
}
.screen {
  position: relative;
  height: 100vh; height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.screen .inner { position: relative; z-index: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 0 24px; }
.screen .enso-wrap { height: 100%; }

.screen-intro .inner { padding-top: 2vh; padding-bottom: 7vh; }
.screen-intro h1 { font-size: clamp(34px, 9.4vw, 72px); }
.screen-intro .kicker { margin-bottom: 2.4vh; }
.screen-intro .lead { margin-top: 2.2vh; font-size: clamp(15px, 4vw, 19px); line-height: 1.5; }
.screen-intro .topics { margin-top: 3.4vh; }
.screen-intro .topic { padding: 1.5vh 0; gap: 2px 12px; }
.screen-intro .topic h2 { font-size: 16px; }
.screen-intro .topic p { font-size: 14px; line-height: 1.4; }
.screen-intro .topic .n { padding-top: 3px; }

.screen-pay .offer { margin-top: 0; }
.screen-pay .note { margin-top: 3vh; font-size: 12px; }
.screen-pay footer { margin-top: 3vh; padding-top: 14px; font-size: 11px; line-height: 1.7; }

.swipe-hint {
  position: absolute; left: 0; right: 0; bottom: max(2.6vh, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; z-index: 2;
  animation: hintFade 3.5s ease-in-out infinite;
}
.swipe-hint svg { width: 18px; height: 18px; stroke: currentColor; animation: hintBounce 1.8s ease-in-out infinite; }
@keyframes hintBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes hintFade { 0%,100% { opacity: 0.8; } 50% { opacity: 0.35; } }

@media (max-height: 720px) {
  .screen-intro h1 { font-size: 32px; }
  .screen-intro .lead { font-size: 14px; }
  .screen-intro .topic p { font-size: 13px; }
  .screen-pay .offer { padding: 24px 22px; }
  .screen-pay .btn { margin-top: 18px; padding: 16px; }
  .screen-pay .consent { margin-top: 14px; }
}
@media (max-height: 620px) {
  .screen-intro h1 { font-size: 28px; }
  .screen-intro .lead { font-size: 13px; margin-top: 1.6vh; }
  .screen-intro .topics { margin-top: 2vh; }
  .screen-intro .topic { padding: 1.1vh 0; }
  .screen-intro .topic h2 { font-size: 15px; }
  .screen-intro .inner { padding-bottom: 8vh; }
  .swipe-hint { font-size: 10px; }
  .screen-pay .offer { padding: 18px 20px; }
  .screen-pay .price { font-size: 40px; margin-top: 4px; }
  .screen-pay .for { margin-top: 2px; }
  .screen-pay .after { margin-top: 12px; font-size: 13px; }
  .screen-pay .agree { margin-top: 6px; }
  .screen-pay .note { margin-top: 12px; font-size: 11px; line-height: 1.45; }
  .screen-pay footer { margin-top: 12px; padding-top: 10px; font-size: 10px; }
}
@media (min-width: 900px) {
  .screen-intro .inner { padding-top: 0; }
  .screen-pay .offer { padding: 40px 44px; }
}
