@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); }
.name-field { display: block; margin-top: 18px; }
.name-field span { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.name-field input {
  width: 100%; padding: 14px 16px;
  font: 300 16px 'Museo', sans-serif; color: var(--ink);
  background: rgba(255,255,255,0.7); border: 1px solid var(--stroke); border-radius: 4px;
  outline: none; transition: border-color .2s;
}
.name-field input:focus { border-color: var(--ink-soft); }
.name-field.need input { border-color: var(--seal); }
.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; }
  .name-field { margin-top: 12px; }
  .name-field input { padding: 11px 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; }
  .name-field span { margin-bottom: 5px; font-size: 10px; }
  .screen-pay .meta { font-size: 10px; }
  .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; }
}

/* ===== Чистый разум: трёхэкранная версия ===== */
.screen-intro h1 .sub { font-weight: 100; color: var(--ink-soft); }
.screen-intro .lead { margin-top: 3vh; }
.screen-inside .kicker { margin-bottom: 1.6vh; }
.screen-inside .topics { margin-top: 0; }
.screen-inside .topic { padding: 1.3vh 0; gap: 2px 12px; }
.screen-inside .topic h2 { font-size: 16px; }
.screen-inside .topic p { font-size: 13.5px; line-height: 1.4; }
.screen-inside .topic .n { padding-top: 3px; }
.screen-inside .inner { padding-bottom: 6vh; }
.screen-pay .offer .btn { margin-top: 22px; }
.screen-pay .offer .agree { margin-top: 14px; font-size: 12px; line-height: 1.5; }
@media (max-height: 720px) {
  .screen-inside .topic { padding: 0.9vh 0; }
  .screen-inside .topic h2 { font-size: 15px; }
  .screen-inside .topic p { font-size: 12.5px; }
}
@media (max-height: 620px) {
  .screen-inside .topic p { font-size: 12px; line-height: 1.35; }
}

/* философская мысль */
.thought {
  margin-top: 4.2vh; padding-left: 18px;
  border-left: 1px solid var(--seal);
  font-weight: 100; font-size: clamp(19px, 5vw, 26px); line-height: 1.35; letter-spacing: -0.01em;
  max-width: 26em;
}
.thought span { display: block; margin-top: 0.5em; font-weight: 300; color: var(--seal); }
@media (max-height: 620px) { .thought { font-size: 17px; margin-top: 2.4vh; } }

@media (max-height: 720px) { .brain { width: 62vw; top: 1vh; } }
@media (min-width: 900px) { .brain { width: 520px; max-width: none; top: 7vh; right: 3vw; } }

/* ===== идеи для первого экрана ===== */
.decor { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .decor * { animation: none !important; transition: none !important; } }

/* 1 · шум -> линия */
.wave { position: absolute; left: 0; width: 100%; top: 6vh; height: 130px; }
@media (min-width: 900px) { .wave { top: 7vh; height: 150px; } }
.wave path { fill: none; stroke: rgba(28,26,23,0.34); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.wave .end { fill: var(--seal); opacity: 0; transition: opacity 1s ease 2.6s; }
.wave.on .end { opacity: .9; }

/* 3 · круги на воде */
.ripples { position: absolute; width: 150vw; height: 150vw; max-width: 900px; max-height: 900px; top: -40vw; right: -60vw; }
.ripples circle { fill: none; stroke: rgba(28,26,23,0.16); stroke-width: .6; transform-origin: 200px 200px; transform-box: view-box;
  animation: ripple 9s cubic-bezier(.2,.6,.3,1) infinite; opacity: 0; }
.ripples circle:nth-child(2) { animation-delay: 1.8s } .ripples circle:nth-child(3) { animation-delay: 3.6s }
.ripples circle:nth-child(4) { animation-delay: 5.4s } .ripples circle:nth-child(5) { animation-delay: 7.2s }
.ripples .still { animation: none; opacity: 1; stroke: rgba(28,26,23,0.10); }
.ripples .drop { fill: var(--seal); stroke: none; animation: none; opacity: .85; }
@keyframes ripple { 0% { transform: scale(.04); opacity: 0; } 8% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@media (min-width: 900px) { .ripples { width: 820px; height: 820px; top: -300px; right: -240px; } }

/* 4 · фокус */
.focus { position: absolute; width: 260px; height: 260px; top: -3vh; right: -80px; }
.focus .blob { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px;
  border: 1px solid rgba(28,26,23,0.28); border-radius: 50%; filter: blur(7px); opacity: .7;
  animation: converge 2.8s cubic-bezier(.5,0,.2,1) .3s forwards; }
.focus .b1 { transform: translate(-70px,-30px) scale(1.25); } .focus .b2 { transform: translate(55px,-55px) scale(.8); }
.focus .b3 { transform: translate(40px,60px) scale(1.1); } .focus .b4 { transform: translate(-50px,55px) scale(.9); }
@keyframes converge { to { transform: translate(0,0) scale(1); filter: blur(0); opacity: .3; } }
.focus .ring2 { position: absolute; left: 50%; top: 50%; width: 210px; height: 210px; margin: -105px 0 0 -105px; border: 1px solid rgba(28,26,23,0.10); border-radius: 50%; opacity: 0; animation: appear 1.4s ease 2.6s forwards; }
.focus .pt { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--seal); border-radius: 1px; transform: rotate(-8deg) scale(0); animation: pop .6s cubic-bezier(.3,1.6,.5,1) 2.9s forwards; }
.focus .cross { position: absolute; left: 50%; top: 50%; background: rgba(28,26,23,0.18); opacity: 0; animation: appear 1s ease 3.1s forwards; }
.focus .cx { width: 36px; height: 1px; margin-left: -18px; } .focus .cy { width: 1px; height: 36px; margin-top: -18px; }
@keyframes appear { to { opacity: 1; } } @keyframes pop { to { transform: rotate(-8deg) scale(1); } }
@media (min-width: 900px) { .focus { width: 420px; height: 420px; top: 8vh; right: 6vw; } .focus .blob { width: 220px; height: 220px; margin: -110px 0 0 -110px; } .focus .ring2 { width: 340px; height: 340px; margin: -170px 0 0 -170px; } }
@media (max-height: 720px) { .focus { transform: scale(.8); transform-origin: top right; } }

/* 1b · три линии */
.wave3 { top: 3vh; height: 170px; }
.wave3 .w:nth-of-type(1), .wave3 .w:nth-of-type(3) { stroke: rgba(28,26,23,0.22); }
@media (min-width: 900px) { .wave3 { top: 5vh; height: 190px; } }
