/* brtex.ru — клуб «Ольга. Доступ к опыту». Мир клуба: дымчато-белая бумага, глубокий синий,
   золото номеров; Montserrat. Композиция «Выпуски»: каждый пакет — пронумерованная обложка. */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-vf.woff2") format("woff2-variations"), url("../fonts/montserrat-vf.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --paper: #f2f5f9;
  --paper-2: #e6ecf3;
  --card: #ffffff;
  --ink: #16263f;
  --ink-2: #44546c;
  --line: #d7dfea;
  --navy: #1d3557;
  --navy-2: #2d4c76;
  --navy-3: #3b5d8c;
  --deep: #122440;
  --on-navy: #f4f7fb;
  --on-navy-2: #c2cee0;
  --gold-a: #f6da8e;
  --gold-b: #e0ab48;
  --gold-on-navy: #f0bc55;
  --gold-on-paper: #8a5c08;
  --gold-display: #a8740f;
  --gold-ink: #2a1d06;
  --err: #a32019;
  --r: 18px;
  --wrap: 1180px;
  --gut: clamp(16px, 4.5vw, 40px);
  --sec: clamp(72px, 11vw, 136px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font: 400 16px/1.6 "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums lining-nums;
  overflow-x: clip;
}
::selection { background: var(--gold-a); color: var(--gold-ink); }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--gold-b); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* видимость по состоянию входа */
body:not(.is-auth) .when-auth,
body.is-auth .when-guest,
body:not(.is-member) .when-member,
body.is-member .when-nonmember { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

/* ───────── гигантские обрезанные слова ───────── */
.mega {
  margin: 0; font-weight: 900; line-height: .78; letter-spacing: -0.04em; white-space: nowrap;
  color: var(--navy); user-select: none; pointer-events: none;
}

.mega-section { font-size: clamp(84px, 21vw, 300px); color: var(--navy); margin: 0 0 0 -0.05em; padding: var(--sec) 0 0; }

/* ───────── кнопки ───────── */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 28px; border: 0; border-radius: 16px; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-a), var(--gold-b)); color: var(--gold-ink);
  font: 700 17px/1.2 "Montserrat", sans-serif; text-decoration: none; letter-spacing: -0.01em;
  box-shadow: 0 14px 26px -14px rgba(122, 82, 8, .65), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .2s;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 32px -16px rgba(122, 82, 8, .7), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-gold:active { transform: translateY(0) scale(.985); }
.btn-gold:focus-visible { outline-color: var(--navy); }
.btn-gold:disabled { cursor: not-allowed; background: var(--paper-2); color: #6a7890; box-shadow: none; transform: none; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px;
  border-radius: 14px; border: 1.5px solid rgba(244, 247, 251, .5); color: var(--on-navy); text-decoration: none; font-weight: 600;
  transition: background .25s, border-color .25s;
}
.btn-line:hover { background: rgba(244, 247, 251, .08); border-color: var(--on-navy); }
.text-link {
  background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--navy);
  font: 600 15px/1.3 "Montserrat", sans-serif; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
}
.text-link:hover { color: var(--navy-3); }
.text-link:disabled { color: #7b889c; text-decoration: none; cursor: default; }

/* ───────── шапка ───────── */
.bar {
  position: absolute; z-index: 5; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) var(--gut) 0; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto;
}
.brand { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { font-weight: 400; }
.bar-link {
  font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: none;
  padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .72); border: 1px solid var(--line);
  max-width: 50vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bar-link:hover { background: #fff; }

/* ───────── обложки (общая анатомия) ───────── */
.cover {
  --w: 152px;
  position: relative; flex: none; width: var(--w); aspect-ratio: 3 / 4.3;
  display: flex; flex-direction: column; padding: 14px 14px 12px; border-radius: 14px;
  background: var(--navy); color: var(--on-navy); text-decoration: none; text-align: left;
  border: 0; font: inherit; cursor: default; overflow: hidden;
  box-shadow: 0 22px 34px -22px rgba(18, 36, 64, .85), 0 2px 6px -2px rgba(18, 36, 64, .3);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
}
.cover::after {         /* корешок выпуска */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: rgba(255, 255, 255, .12);
}
.tile-n { font-weight: 900; font-size: 50px; line-height: .9; letter-spacing: -0.04em; color: var(--gold-on-navy); }
.tile-t { margin-top: auto; font-weight: 800; font-size: 16px; line-height: 1.12; letter-spacing: -0.01em; hyphens: manual; overflow-wrap: normal; }
.tile-chip {
  margin-top: 10px; align-self: flex-start; padding: 4px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.2; background: rgba(244, 247, 251, .14); color: var(--on-navy);
}
.tile-fill {
  margin-top: 6px; align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--gold-ink); background: var(--gold-a); border-radius: 999px; padding: 3px 8px;
}
.tile-future {
  background: transparent; color: var(--ink-2); box-shadow: none;
  border: 2px dashed #a9b6c8;
}
.tile-future::after { display: none; }
.tile-future .tile-n { color: #687890; }
.tile-future .tile-chip { background: var(--paper-2); color: var(--ink-2); }

/* ───────── первый экран ───────── */
.hero { position: relative; padding: 0 0 clamp(36px, 6vw, 80px); overflow: hidden; }
.mega-hero {
  font-size: clamp(136px, 36vw, 400px); margin: clamp(70px, 6vw, 76px) 0 0 calc(var(--gut) * -0.35);
  color: var(--navy);
}
.hero-grid {
  position: relative; max-width: var(--wrap); margin: clamp(12px, 1.6vw, 22px) auto 0; padding: 0 var(--gut);
  display: grid; gap: 16px clamp(28px, 4vw, 56px);
  grid-template-areas: "title" "lead" "shelf" "act";
}
.hero-title {
  grid-area: title; margin: 0; font-weight: 800; font-size: clamp(34px, 8.8vw, 84px); line-height: 1.02; letter-spacing: -0.035em; max-width: 12ch;
}
.hero-title em { font-style: normal; color: var(--gold-display); }
.lead { margin: 0; font-size: clamp(16px, 2.1vw, 19px); color: var(--ink-2); max-width: 36em; }
.hero-lead { grid-area: lead; font-weight: 600; color: var(--ink); }
.hero-act-wrap { grid-area: act; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); max-width: 34em; }

.shelf { position: relative; }
.shelf-hero { grid-area: shelf; display: flex; gap: 10px; align-items: flex-end; margin: 0 calc(var(--gut) * -1) -24px; padding: 6px var(--gut) 42px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf-hero::-webkit-scrollbar { display: none; }
.shelf-hero > * { scroll-snap-align: start; }
.shelf-issues { display: flex; gap: 10px; align-items: flex-end; }
.shelf-hero .cover { --w: 146px; }
.shelf-hero .tile-n { font-size: 46px; }
.cover-olga { padding: 0; background: linear-gradient(170deg, var(--navy-2), var(--navy) 55%, var(--deep)); margin: 0; }
.cover-olga img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }
.cover-olga::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: 1;
  background: linear-gradient(180deg, rgba(18, 36, 64, 0), rgba(18, 36, 64, .92) 70%);
}
.cover-olga figcaption { position: relative; z-index: 2; margin-top: auto; padding: 0 12px 12px; }
.cover-olga figcaption b { display: block; font-size: 15px; font-weight: 800; line-height: 1.1; }
.cover-olga figcaption span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.25; color: var(--gold-on-navy); font-weight: 600; hyphens: manual; }
.cover-issue { cursor: pointer; }
.cover-issue:hover { transform: translateY(-8px); }

/* выход обложек на полку — один раз, по очереди */
@media (prefers-reduced-motion: no-preference) {
  .is-ready .shelf-hero .cover { animation: shelf-in .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  @keyframes shelf-in { from { transform: translateX(46px); opacity: 0; } }
}

/* ───────── Ольга: типографский разворот (без второго фото) ───────── */
.olga { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; padding: 0 0 var(--sec); }
.olga .mega-olga {
  font-size: clamp(110px, 30vw, 420px); color: var(--gold-b); margin: 0 0 0 -0.05em; padding-top: clamp(28px, 5vw, 64px);
}
.olga-grid {
  max-width: var(--wrap); margin: clamp(20px, 3vw, 40px) auto 0; padding: 0 var(--gut);
  display: grid; gap: 28px clamp(32px, 6vw, 96px); align-items: start;
}
.olga h2 { margin: 0; font-weight: 800; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.03em; color: var(--on-navy); }
.olga-sign { margin: 22px 0 0; font-weight: 700; color: var(--gold-on-navy); font-size: 17px; max-width: 20em; }
.olga-sign span { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--on-navy-2); }
.olga-quote {
  margin: 0; font-size: clamp(22px, 3vw, 36px); line-height: 1.3; font-weight: 700; letter-spacing: -0.015em; color: var(--on-navy);
}
.olga-body { color: var(--on-navy-2); max-width: 36em; margin: 22px 0 0; font-size: clamp(16px, 1.4vw, 18px); }
@media (min-width: 900px) {
  .olga-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}

/* ───────── в номере: оглавление выпуска ───────── */
.toc { padding: 0 0 var(--sec); overflow: hidden; }
.toc-grid { display: grid; gap: 28px 64px; margin-top: clamp(18px, 2vw, 28px); }
.toc h2, .how h2, .club h2, .faq h2 {
  margin: 0; font-weight: 800; font-size: clamp(30px, 5.6vw, 54px); line-height: 1.04; letter-spacing: -0.03em;
}
.toc-head p { margin: 16px 0 0; color: var(--ink-2); max-width: 30em; }
.toc-cap { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.toc-cap b { font-weight: 900; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; color: var(--navy); }
.toc-cap span { font-size: 14px; color: var(--ink-2); }
.toc-list { list-style: none; margin: 0 0 22px; padding: 0; border-top: 2px solid var(--ink); }
.toc-list li { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.toc-w { font-weight: 800; font-size: clamp(17px, 2.2vw, 21px); line-height: 1.25; }
.toc-list i { flex: 1; min-width: 16px; border-bottom: 2px dotted #a9b6c8; transform: translateY(-5px); }
.toc-v { color: var(--gold-on-paper); font-weight: 700; text-align: right; white-space: nowrap; }
.toc-soon .toc-w, .toc-soon .toc-v { color: var(--ink-2); font-weight: 600; }
.toc-more p { margin: 0 0 14px; max-width: 40em; color: var(--ink-2); }
.toc-more b { color: var(--ink); }
.toc-not { font-size: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ───────── как устроена подписка ───────── */
.how { padding: 0 0 var(--sec); }
.rules { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.rules li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rules li > div { color: var(--ink-2); max-width: 46em; }
.rules b { color: var(--ink); }
.mini {
  position: relative; width: 52px; height: 72px; border-radius: 7px; background: var(--navy); color: var(--gold-on-navy);
  display: flex; align-items: flex-start; padding: 7px 6px; font-weight: 900; font-size: 15px; letter-spacing: -0.03em; line-height: 1;
  box-shadow: 0 12px 18px -12px rgba(18, 36, 64, .8);
}
.mini-gold { background: linear-gradient(160deg, var(--gold-a), var(--gold-b)); color: var(--gold-ink); }
.mini-stack { box-shadow: 5px -5px 0 -1px var(--navy-3), 10px -10px 0 -2px #4f71a0, 0 12px 18px -12px rgba(18, 36, 64, .8); font-size: 13px; }
.mini-paper { background: var(--card); color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; font-size: 13px; }
.mini-dash { background: transparent; border: 2px dashed #a9b6c8; color: #5f6e84; box-shadow: none; }
.how-alt { margin: 26px 0 0; font-weight: 600; color: var(--ink); max-width: 40em; }

/* ───────── калькулятор ───────── */
.club { padding: 0 0 var(--sec); background: var(--paper-2); overflow: hidden; }
.club > .wrap { margin-top: clamp(18px, 2vw, 28px); }
.club-lead { margin: 16px 0 0; color: var(--ink-2); max-width: 38em; }
.auth { margin-top: 26px; }
.pay-login { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pay-login-note { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 30em; }
.btn-tg { margin-top: 0; text-decoration: none; }
.tg-wait { margin: 0; font-size: 14px; font-weight: 600; color: var(--navy); }
.tg-alt { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.btn-tg svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .nudge .btn-tg { animation: nudge .7s var(--ease); }
  @keyframes nudge { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
}
.auth-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.auth-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.auth-in p { margin: 0; }
.auth-owned { color: var(--ink-2); font-size: 14px; }
.auth-owned:empty { display: none; }

.calc { margin-top: 26px; background: var(--card); border-radius: 24px; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line);
  box-shadow: 0 30px 50px -40px rgba(18, 36, 64, .55); }
.calc-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.seg button {
  border: 0; background: none; padding: 11px 16px; border-radius: 10px; cursor: pointer;
  font: 600 15px/1.2 "Montserrat", sans-serif; color: var(--ink-2); transition: background .25s, color .25s, box-shadow .25s;
}
.seg button[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); box-shadow: 0 8px 14px -10px rgba(18, 36, 64, .9); }
.switch { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.switch input { appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: #c3cddb; position: relative; cursor: pointer; transition: background .25s; margin: 0; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch input:checked { background: var(--navy); }
.switch input:checked::after { transform: translateX(20px); }
.switch b { display: block; }
.switch small { display: block; color: var(--ink-2); font-size: 13px; }

.shelf-calc { margin: 22px calc(clamp(18px, 3vw, 32px) * -1) 0; }
.rail {
  display: flex; gap: 12px; align-items: flex-end; overflow-x: auto; padding: 18px clamp(18px, 3vw, 32px) 22px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b5c1d1 transparent;
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: #b5c1d1; border-radius: 3px; }
.rail .cover { --w: 136px; scroll-snap-align: start; cursor: pointer; }
.rail .tile-n { font-size: 44px; }
.rail .tile-t { font-size: 15px; }
.rail .cover[data-state="off"] { background: var(--navy-2); }
.rail .cover[data-state="off"] .tile-n { color: rgba(240, 188, 85, .7); }
.rail .cover[data-state="off"]:hover { transform: translateY(-6px); }
.rail .cover[data-state="on"] { background: var(--navy); transform: translateY(-14px); box-shadow: 0 0 0 3px var(--gold-b), 0 28px 34px -18px rgba(18, 36, 64, .9); }
.rail .cover[data-state="on"] .tile-chip { background: var(--gold-a); color: var(--gold-ink); }
.rail .cover[data-state="sub"] { background: linear-gradient(160deg, var(--gold-a), var(--gold-b)); color: var(--gold-ink); transform: translateY(-14px); cursor: default; }
.rail .cover[data-state="sub"] .tile-n { color: var(--gold-ink); }
.rail .cover[data-state="sub"] .tile-chip { background: rgba(42, 29, 6, .12); color: var(--gold-ink); }
.rail .cover[data-state="mine"] { background: var(--card); color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; cursor: default; }
.rail .cover[data-state="mine"]::after { background: var(--paper-2); }
.rail .cover[data-state="mine"] .tile-n { color: var(--navy-3); }
.rail .cover[data-state="mine"] .tile-chip { background: var(--paper-2); color: var(--navy); }
.rail .cover:disabled { opacity: 1; }
.rail .cover:focus-visible { outline-offset: 4px; }
.rail .tile-future { cursor: default; }

.ladder { margin-top: 8px; }
.ladder label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 600; }
.ladder output { font-weight: 900; font-size: 34px; letter-spacing: -0.03em; color: var(--navy); }
.ladder input[type="range"] {
  --fill: 0%; appearance: none; width: 100%; height: 34px; margin: 6px 0 0; background: transparent; cursor: pointer;
}
.ladder input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--gold-b) var(--fill), var(--paper-2) var(--fill));
}
.ladder input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--paper-2); }
.ladder input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--gold-b); }
.ladder input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--gold-b);
  box-shadow: 0 6px 12px -4px rgba(18, 36, 64, .5);
}
.ladder input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--gold-b); }
.ladder input[type="range"]:disabled { cursor: default; opacity: .5; }
.ladder-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: var(--ink-2); font-size: 14px; }

.receipt { margin-top: 22px; background: var(--navy); color: var(--on-navy); border-radius: 20px; padding: 20px 22px; position: relative; overflow: hidden; }
.receipt::after {      /* золотые дуги в углу — как в макете Ольги */
  content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%;
  border: 1px solid rgba(240, 188, 85, .32); box-shadow: 0 0 0 16px rgba(240, 188, 85, .06), 0 0 0 32px rgba(240, 188, 85, .035);
  pointer-events: none;
}
.r-empty { margin: 0; color: var(--on-navy-2); }
.r-line { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed rgba(194, 206, 224, .3); }
.r-price { white-space: nowrap; font-weight: 600; }
.r-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 14px; }
.r-total span { color: var(--on-navy-2); font-weight: 600; }
.r-total b { font-weight: 900; font-size: clamp(32px, 6vw, 44px); letter-spacing: -0.03em; color: var(--gold-on-navy); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .r-total b.flip { animation: flip .42s var(--ease); }
  @keyframes flip { from { transform: translateY(-55%) rotateX(70deg); opacity: 0; } }
}
.r-opens { margin: 8px 0 0; font-weight: 600; }
.r-hint, .r-est { margin: 6px 0 0; font-size: 14px; color: var(--on-navy-2); }
.r-opens:empty, .r-hint:empty { display: none; }

.field { display: block; margin-top: 18px; }
.field span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  font: 500 16px "Montserrat", sans-serif; color: var(--ink); caret-color: var(--gold-b);
}
.field input:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(224, 171, 72, .3); }
.field input::placeholder { color: #6d7b90; }
.calc-error { margin: 14px 0 0; color: var(--err); font-weight: 600; }
.btn-pay { width: 100%; margin-top: 18px; min-height: 62px; font-size: 18px; }
.pay-terms { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); text-align: center; }
.pay-demo { margin: 8px 0 0; font-size: 13px; color: var(--gold-on-paper); text-align: center; font-weight: 600; }

/* возврат с оплаты */
.paid { margin-top: 26px; background: var(--navy); color: var(--on-navy); border-radius: 24px; padding: clamp(22px, 4vw, 36px); box-shadow: 0 30px 50px -36px rgba(18, 36, 64, .9); }
.paid-title { margin: 0; font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -0.02em; color: var(--gold-on-navy); }
.paid p { color: var(--on-navy-2); margin: 10px 0 0; }
.paid-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.paid [class^="st-"], .paid [class*=" st-"] { display: none; }
.paid[data-state="wait"] .st-wait, .paid[data-state="ok"] .st-ok, .paid[data-state="fail"] .st-fail { display: revert; }
.paid[data-state="ok"] .paid-act.st-ok { display: flex; }

/* ───────── вопросы ───────── */
.faq { padding: var(--sec) 0; }
.faq-grid { display: grid; gap: 28px 64px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(45deg); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq summary:hover { color: var(--navy-3); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 44em; }

/* ───────── финал и подвал ───────── */
.close { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; padding: 0 0 var(--sec); }
.close .mega-close { font-size: clamp(110px, 30vw, 400px); color: var(--navy-2); margin: 0 0 0 -0.04em; padding-top: .08em; max-width: none; }
.close-in { margin-top: clamp(-70px, -6vw, -24px); position: relative; }
.close h2 { margin: 0; font-weight: 800; font-size: clamp(34px, 7vw, 72px); letter-spacing: -0.035em; line-height: 1.02; color: var(--on-navy); }
.close p { margin: 16px 0 28px; color: var(--on-navy-2); font-size: clamp(16px, 2.2vw, 19px); max-width: 30em; }

.foot { background: var(--deep); color: var(--on-navy-2); font-size: 14px; }
.foot-in { display: grid; gap: 18px; padding-top: 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.foot p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot b { color: var(--on-navy); font-weight: 600; }
.foot a { color: var(--on-navy); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ───────── шире телефона ───────── */
@media (min-width: 760px) {
  .tile-n { font-size: 58px; }
  .rules { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .toc-grid { grid-template-columns: 5fr 7fr; }
  .toc-more { grid-column: 2; }
  .faq-grid { grid-template-columns: 4fr 8fr; }
}
@media (min-width: 1080px) {
  /* огромные слова разделов стоят от колонки текста, а не от края широкого монитора */
  .mega-section, .olga .mega-olga, .close .mega-close {
    max-width: calc(var(--wrap) + 2 * var(--gut)); margin-left: auto; margin-right: auto;
    padding-left: var(--gut); padding-right: var(--gut); text-indent: -0.05em;
  }
  .mega-section { font-size: min(21vw, 300px); }
  .olga .mega-olga { font-size: min(30vw, 420px); }
  .close .mega-close { font-size: min(30vw, 400px); }
  /* Слово ОПЫТ стоит в той же колонке, что и заголовок, и не растёт выше 420px: на широких мониторах
     (2560+) 30vw раздували его на весь экран и наезжали на шапку. Вправо оно по-прежнему уходит за край. */
  .mega-hero {
    font-size: min(30vw, 420px); margin: 64px auto 0; padding: 0 var(--gut);
    max-width: calc(var(--wrap) + 2 * var(--gut)); text-indent: -0.05em;
  }
  .hero-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-areas: "title title" "lead shelf" "act shelf"; align-items: start; row-gap: 18px; }
  .hero-title { max-width: none; font-size: clamp(56px, 5.6vw, 84px); }
  .hero-lead { align-self: end; }
  .shelf-hero { margin: 0; padding: 0 0 6px; overflow: visible; justify-content: flex-start; align-self: end; }
  .shelf-hero .cover { --w: 166px; }
  .shelf-hero .tile-n { font-size: 54px; }
  .shelf-issues .cover:nth-child(n+4) { display: none; }
}
@media (max-width: 420px) {
  .hero-act .btn-gold { width: 100%; }
  .seg { width: 100%; }
  .toc-list li { flex-wrap: wrap; }
  .toc-list i { display: none; }
  .toc-v { text-align: left; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* ───────── огромные слова — целиком в колонке текста, без обрезки краем экрана ─────────
   Точный размер подгоняет club.js (fitMega) по реальной ширине слова; здесь — запасной без JS. */
.hero .mega-hero, section .mega-section, .olga .mega-olga, .close .mega-close {
  max-width: calc(var(--wrap) + 2 * var(--gut)); margin-left: auto; margin-right: auto;
  padding-left: var(--gut); padding-right: var(--gut); text-indent: -0.04em; overflow: visible;
}
.hero .mega-hero { font-size: min(calc((100vw - 2 * var(--gut)) / 3.35), 380px); }
.olga .mega-olga { font-size: min(calc((100vw - 2 * var(--gut)) / 4.7), 260px); }
section .mega-section { font-size: min(calc((100vw - 2 * var(--gut)) / 6.9), 260px); }
.close .mega-close { font-size: min(calc((100vw - 2 * var(--gut)) / 5.2), 260px); }
