/* Лендинг oborot.unfaced.ru — стиль «книжный журнал», единый с Mini App. */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=PT+Sans:wght@400;700&display=swap');

:root {
  --paper: #F5EFE3; --paper-2: #FBF7EE; --paper-3: #FFFDF8; --paper-sunken: #EFE7D7;
  --ink: #2B2520; --ink-soft: #5A5046; --ink-muted: #9B8E7A; --ink-faint: #C5B9A4;
  --sepia: #A65A2E; --bordo: #8C3B2E; --gold: #B68A4E; --sage: #6E7A5A;
  --line: #E3D9C8; --line-strong: #D6C9B2;
  --shadow-card: 0 1px 2px rgba(80,60,30,.06), 0 8px 24px rgba(80,60,30,.07);
  --shadow-pop: 0 4px 14px rgba(80,60,30,.12), 0 18px 40px rgba(80,60,30,.14);
  --serif-display: 'Cormorant Garamond', Georgia, serif;
  --serif-text: 'Lora', Georgia, serif;
  --sans: 'PT Sans', system-ui, sans-serif;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--serif-text);
  background: var(--paper);
  background-image: radial-gradient(110% 60% at 50% -10%, #FBF6EC 0%, var(--paper) 55%, #EFE6D5 100%);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
main, .nav, .foot { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-card); }
.kicker { font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 10px; }
.center { text-align: center; }
.muted { color: var(--ink-muted); }
.section-title { font-family: var(--serif-display); font-weight: 600; font-size: clamp(28px, 5vw, 44px); line-height: 1.05; margin: 0 0 16px; }

/* кнопки */
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 16px; padding: 14px 26px; border-radius: 12px; transition: transform .08s ease, box-shadow .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper-3); box-shadow: var(--shadow-card); }
.btn-ghost { background: var(--paper-3); color: var(--ink); border: 1px solid var(--line-strong); }

/* навигация */
.nav { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--serif-display); font-weight: 600; font-size: 26px; letter-spacing: .5px; }
.nav-cta { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--bordo); }

/* hero */
.hero { max-width: 820px; margin: 0 auto; padding: 56px 24px 40px; text-align: center; }
.hero-title { font-family: var(--serif-display); font-weight: 600; font-size: clamp(40px, 8vw, 72px); line-height: 1.02; margin: 10px 0 18px; letter-spacing: .3px; }
.hero-sub { font-size: clamp(17px, 2.4vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 640px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-foot { font-family: var(--sans); font-size: 13px; color: var(--ink-muted); margin-top: 22px; letter-spacing: .02em; }

/* три слоя */
.layers { max-width: var(--maxw); margin: 30px auto; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.layer { padding: 28px 24px; }
.layer-ico { font-size: 30px; color: var(--sepia); display: block; margin-bottom: 14px; }
.layer h3 { font-family: var(--serif-display); font-weight: 600; font-size: 26px; margin: 0 0 8px; }
.layer p { margin: 0; color: var(--ink-soft); line-height: 1.55; font-size: 16px; }

/* как работает */
.how { max-width: 760px; margin: 70px auto; padding: 0 24px; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; align-items: flex-start; gap: 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-card); }
.step-n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif-display); font-weight: 600; font-size: 18px; color: var(--paper-3); background: linear-gradient(150deg, var(--sepia), var(--bordo)); }
.steps li div { font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); padding-top: 4px; }
.steps b { color: var(--ink); }

/* сокровищница */
.treasure { max-width: var(--maxw); margin: 70px auto; padding: 0 24px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.treasure-text p:last-child { color: var(--ink-soft); line-height: 1.6; font-size: 17px; }
.pull { position: relative; margin: 0; padding: 40px 36px; background: var(--paper-3); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-pop); font-family: var(--serif-display); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.3; }
.pull .q { position: absolute; top: -10px; left: 18px; font-size: 90px; color: rgba(166,90,46,.14); }
.pull cite { display: block; margin-top: 16px; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--ink-muted); }

/* цена */
.pricing { max-width: 720px; margin: 70px auto; padding: 0 24px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.plan { padding: 26px; text-align: center; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan-best { border-color: var(--gold); background: linear-gradient(180deg, #fffaf0, #fbf3e2); }
.plan-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-family: var(--sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #3a2c10; background: var(--gold); padding: 4px 12px; border-radius: 999px; }
.plan-name { font-family: var(--sans); font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.plan-price { font-family: var(--serif-display); font-weight: 600; font-size: 40px; }
.plan-note { font-family: var(--sans); font-size: 13px; color: var(--ink-muted); }

/* футер */
.foot { max-width: var(--maxw); margin: 60px auto 0; padding: 40px 24px 50px; border-top: 1px solid var(--line); text-align: center; }
.foot-brand { font-family: var(--serif-display); font-weight: 600; font-size: 24px; margin-bottom: 14px; }
.foot-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; font-family: var(--sans); font-size: 14px; margin-bottom: 18px; }
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--sepia); }
.foot-legal { font-size: 12.5px; max-width: 560px; margin: 0 auto; line-height: 1.5; }

@media (max-width: 720px) {
  .layers { grid-template-columns: 1fr; }
  .treasure { grid-template-columns: 1fr; }
}
