/* Detail Club — «малярный скотч в чистом боксе». Светлая тема всегда, шрифты локальные (OFL). */

@font-face { font-family: "Golos Text"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/golos-text-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/golos-text-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/golos-text-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/golos-text-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geologica"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/geologica-cyrillic-600.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/geologica-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geologica"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/geologica-cyrillic-800.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/geologica-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: #F3F5F6; --surface: #FFFFFF; --surface-2: #E9EDEF;
  --ink: #15191C; --ink-2: #3A434A; --muted: #5B6670;
  --line: #D5DBDF; --line-strong: #AEB7BE;
  --tape: #F2C21B; --tape-ink: #6B5200;
  --club: #17432F; --club-tint: #E6EFEA; --club-line: #C9DCD1; --on-club: #FFFFFF;
  --ok: #1E6B45; --ok-tint: #E5F2EA; --warn: #8A5A00; --warn-tint: #FBF1D9;
  --danger: #B42318; --danger-tint: #FDECEA;
  --focus: 0 0 0 3px #FFFFFF, 0 0 0 5px #15191C;
  --r-s: 6px; --r-m: 12px; --r-l: 18px; --r-pill: 999px;
  --sh-card: 0 1px 0 #D5DBDF, 0 8px 24px -16px rgba(21, 25, 28, .18);
  --pad: 20px;
  --f-head: "Geologica", "Manrope", system-ui, sans-serif;
  --f-text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tape-clip: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--f-text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  /* материалы нельзя выделить и скопировать */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
input, select, textarea { -webkit-user-select: text; user-select: text; }
img, svg { max-width: 100%; }
img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-s); }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.app {
  max-width: 560px; margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) var(--pad) calc(32px + env(safe-area-inset-bottom));
  min-height: 100vh;
}
.screen { animation: enter .22s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* --- типографика --- */
.display { font: 800 34px/1.05 var(--f-head); letter-spacing: -.025em; font-variant-numeric: tabular-nums; margin: 0; }
h1, .h1 { font: 800 28px/1.12 var(--f-head); letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2, .h2 { font: 600 22px/1.22 var(--f-head); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h3, .h3 { font: 600 18px/1.3 var(--f-text); margin: 0; }
.small { font-size: 14px; line-height: 1.45; }
.micro { font-size: 13px; line-height: 1.35; font-weight: 600; }
.muted { color: var(--muted); }
.eyebrow { font-size: 14px; color: var(--muted); margin: 0 0 6px; }

/* --- скотч --- */
.tape { display: inline-block; background: var(--tape); color: var(--ink); clip-path: var(--tape-clip);
  font: 600 13px/1 var(--f-text); padding: 6px 12px; }
.tape--loader { width: 64px; height: 8px; padding: 0; animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }
.loading { display: grid; place-items: center; min-height: 60vh; }

/* --- шапка экрана --- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 24px; }
.brand { font: 800 22px/1 var(--f-head); letter-spacing: -.02em; margin: 0; }
.brand b { display: inline-block; width: 22px; height: 8px; margin-left: 6px; background: var(--tape); clip-path: var(--tape-clip); vertical-align: middle; }
.lede { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 10px 8px 10px 0;
  min-height: 44px; font-weight: 600; color: var(--ink-2); }
.back svg { width: 20px; height: 20px; }
.tg .back { display: none; }  /* в Telegram — системная кнопка «назад» */
.demo-chip { font: 600 13px/1 var(--f-text); color: var(--warn); background: var(--warn-tint); padding: 6px 10px; border-radius: var(--r-pill); }

/* --- иконки --- */
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* --- карточки главного экрана --- */
.cards { display: grid; gap: 12px; }
.card { display: block; width: 100%; text-align: left; text-decoration: none; border: 0; padding: 0;
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-card); overflow: hidden;
  transition: transform .16s var(--ease); }
.card:active { transform: scale(.98); }
.card__cover { position: relative; aspect-ratio: 2 / 1; background: var(--surface-2); }
.card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 14px 16px 16px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.card__title { font: 600 20px/1.2 var(--f-head); letter-spacing: -.01em; margin: 0; }
.card__text { grid-column: 1 / -1; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.card__meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.card__chev { color: var(--muted); }
.card--compact .card__body { grid-template-columns: auto 1fr auto; padding: 16px; }
.card--compact .card__icon { width: 44px; height: 44px; border-radius: var(--r-m); background: var(--surface-2); display: grid; place-items: center; }

.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--f-text); padding: 6px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.badge .ico { width: 14px; height: 14px; stroke-width: 2; }
.badge--ok { background: var(--ok-tint); color: var(--ok); }
.badge--club { background: var(--club); color: var(--on-club); }
.badge--club-soft { background: var(--club-tint); color: var(--club); }
.badge--lock { background: var(--surface-2); color: var(--ink-2); }

/* полоса прогресса из сегментов-скотча */
.segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 8px; }
.segs i { background: var(--line); clip-path: var(--tape-clip); }
.segs i.on { background: var(--tape); }
.segs--mini { height: 6px; width: 120px; }

/* --- оглавление --- */
.progress-head { margin: 0 0 20px; }
.progress-head .h2 { margin: 2px 0 14px; }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-card); overflow: hidden; }
.row { position: relative; display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: center;
  width: 100%; min-height: 64px; padding: 12px 16px; border: 0; background: none; text-align: left; text-decoration: none; }
.list li + li .row { border-top: 1px solid var(--line); }
.row:active { background: var(--bg); }
.row--current::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; background: var(--tape); }
.row__n { width: 36px; height: 36px; border-radius: var(--r-s); background: var(--surface-2); display: grid; place-items: center;
  font: 600 17px/1 var(--f-head); font-variant-numeric: tabular-nums; }
.row--read .row__n { background: var(--ink); color: #fff; }
.row__title { font-weight: 600; line-height: 1.3; display: block; }
.row__sub { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.row__state { font: 600 13px/1 var(--f-text); color: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
.row__state .ico { width: 18px; height: 18px; stroke-width: 2; }
.row__state--next { color: var(--ink); }
.row__state--next::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tape); }
.row__icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--ink-2); }

.offer-link { margin-top: 12px; }

/* --- читалка --- */
.readbar { position: fixed; z-index: 10; left: 0; right: 0; top: 0; height: calc(3px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top); background: var(--bg); }
.readbar span { display: block; height: 3px; width: 100%; background: var(--tape); transform-origin: 0 50%; transform: scaleX(0); }
.chapter-head { margin: 8px 0 24px; }
.chapter-head .eyebrow { display: flex; gap: 8px; align-items: center; }
.prose { font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 36em; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 14px; }
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 24px; }
.prose h2 + *, .prose h3 + * { margin-top: 10px; }
.prose ul:not([class]), .prose ol { padding-left: 22px; }
.prose ul:not([class]) li + li, .prose ol li + li { margin-top: 6px; }
.prose ul:not([class]) li::marker { color: var(--muted); }
.prose strong { font-weight: 600; }
.prose blockquote { margin-left: 0; padding: 12px 16px; background: var(--surface); border-left: 3px solid var(--tape); border-radius: 0 var(--r-m) var(--r-m) 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 28px 0; }
.prose code { font: 600 15px/1 var(--f-text); background: var(--surface-2); padding: 2px 6px; border-radius: var(--r-s); }
.prose pre { white-space: pre-wrap; background: var(--surface-2); padding: 12px; border-radius: var(--r-m); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border-radius: var(--r-m); border: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.4; }
.prose th { background: var(--surface-2); font-weight: 600; text-align: left; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; }

.schema { background: var(--surface); border-radius: var(--r-l); padding: 16px; box-shadow: var(--sh-card); }
.prose .schema { margin-top: 20px; }
.schema img { display: block; width: 100%; height: auto; }
.schema figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.schema figcaption b { color: var(--ink); font-weight: 600; }

/* чек-лист */
.checklist { list-style: none; padding: 4px 16px; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-card); }
.prose .checklist { margin-top: 20px; }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist label { position: relative; display: flex; gap: 14px; align-items: flex-start; min-height: 48px; padding: 13px 0; cursor: pointer; }
.checklist input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.checklist span { flex: 1; font-size: 16px; line-height: 1.45; transition: color .16s; }
.checklist label::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 0; border-radius: var(--r-s);
  border: 1.5px solid var(--line-strong); background: #fff; transition: background .16s, border-color .16s, transform .16s; }
.checklist label:has(input:checked)::before {
  background: var(--tape) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315191C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  border-color: var(--ink); }
.checklist label:active::before { transform: scale(.9); }
.checklist label:has(input:checked) span { color: var(--ink-2); }
.checklist label:has(input:focus-visible)::before { box-shadow: var(--focus); }
.checklist-count { display: flex; justify-content: space-between; align-items: center; margin: 0 0 -6px; font-size: 14px; color: var(--muted); }

/* замок */
.lock--closed { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; background: var(--club-tint); border: 1px solid var(--club-line);
  border-radius: var(--r-l); padding: 20px; }
.prose .lock--closed { margin-top: 20px; }
.lock--closed::before { content: ""; grid-row: span 2; width: 24px; height: 24px; background: var(--club);
  -webkit-mask: var(--i-lock) center / 24px no-repeat; mask: var(--i-lock) center / 24px no-repeat; }
.lock__text { margin: 0 !important; font: 600 16px/1.35 var(--f-text); color: var(--club); }
.lock__text small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.lock__btn { grid-column: 2; justify-self: start; margin-top: 12px; }
.lock--open { border-top: 1px solid var(--line); padding-top: 12px; }
.lock--open::before { content: "Открыто по подписке клуба"; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ok); margin-bottom: 10px;
  padding-left: 22px; background: var(--i-unlock-ok) left center / 16px no-repeat; }
.lock--open > * + * { margin-top: 14px; }
:root {
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 8 0v2.5'/%3E%3C/svg%3E");
  --i-unlock-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6B45' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='9.5' rx='2'/%3E%3Cpath d='M8 10.5V8a4 4 0 0 1 7.7-1.5'/%3E%3C/svg%3E");
}

/* В клубе разбираем глубже */
.club-more { border-left: 3px solid var(--club); padding: 2px 0 2px 16px; }
.prose .club-more { margin-top: 32px; }
.club-more__title { margin: 0 !important; font: 600 18px/1.3 var(--f-head); color: var(--club); }
.club-more > * { margin: 0; }
.club-more > * + * { margin-top: 8px; }
.club-more p:not(.club-more__title) { color: var(--ink-2); }
.club-more__link { display: inline-block; margin-top: 10px; padding: 6px 0; border: 0; background: none; font-weight: 600; color: var(--club);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* товар */
.product { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-card); padding: 16px; }
.prose .product { margin-top: 20px; }
.product > * + * { margin-top: 12px; }
.product__name { margin: 0; font: 600 18px/1.3 var(--f-text); }
.product__look { background: var(--surface-2); border-radius: var(--r-m); padding: 12px; }
.product__look p { margin: 0; font-weight: 600; font-size: 14px; }
.product__look ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; line-height: 1.45; }
.product__look li { position: relative; padding-left: 16px; }
.product__look li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.product__levels { display: grid; gap: 8px; }
.level { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 2px 12px; padding: 14px 12px 12px; border: 1px solid var(--line);
  border-radius: var(--r-m); overflow: hidden; }
.level::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line-strong); }
.level--mid::before { background: var(--ink-2); }
.level--best::before { background: var(--tape); }
.level > * { margin: 0 !important; }
.level__label { grid-row: span 2; font: 600 13px/1.35 var(--f-text); color: var(--muted); padding-top: 2px; }
.level__brand { font-weight: 600; font-size: 16px; line-height: 1.3; }
.level__origin { font-size: 14px; color: var(--muted); }
.level__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; margin-top: 6px !important; }
.level__links a { display: inline-block; padding: 10px 0; font-size: 14px; font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ad-mark { font: 600 13px/1 var(--f-text); color: var(--muted); border: 1px solid var(--line-strong); border-radius: var(--r-s); padding: 3px 6px; }
.lock--closed .product, .lock--open .product { box-shadow: none; border: 1px solid var(--line); }

/* калькулятор */
.calc { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-card); padding: 16px; }
.prose .calc { margin-top: 20px; }
.calc__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.calc__title { margin: 0 !important; font: 600 18px/1.3 var(--f-text); }
.field { display: block; margin-top: 14px; }
.calc--screen > .field:first-child, .calc--screen > .grid2:first-child .field { margin-top: 0; }
.field__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field__hint { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.input { position: relative; display: block; }
.input input, .input select { width: 100%; height: 52px; border: 1px solid var(--line-strong); border-radius: var(--r-m); background: #fff;
  padding: 0 44px 0 14px; font-size: 16px; appearance: none; -webkit-appearance: none; }
.input select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A434A' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") right 12px center / 20px no-repeat; text-overflow: ellipsis; }
.input input:focus, .input select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.input__suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 .field { margin-top: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r-m); }
.seg button { flex: 1 1 auto; border: 0; background: none; min-height: 44px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0 6px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(21,25,28,.12); }
.result { position: relative; margin-top: 16px; padding: 14px 16px 14px 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.result::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--tape); }
.result__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.result__row + .result__row { margin-top: 10px; }
.result__label { font-size: 14px; color: var(--ink-2); }
.result__value { font: 800 30px/1.05 var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result__value small { font: 400 14px/1 var(--f-text); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.result__value--s { font-size: 20px; }
.result__total { border-top: 1.5px solid var(--ink); padding-top: 10px; margin-top: 12px !important; }
.result__meta { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.result__error { margin: 0; color: var(--danger); font-size: 14px; }
.note { display: flex; gap: 10px; margin-top: 12px; padding: 12px; background: var(--warn-tint); color: var(--warn); border-radius: var(--r-m); font-size: 14px; line-height: 1.45; }
.note .ico { width: 20px; height: 20px; margin-top: 1px; }
.item-row { border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px; margin-top: 12px; }
.item-row__head { display: flex; justify-content: space-between; align-items: center; }
.item-row .field { margin-top: 10px; }
.link-btn { border: 0; background: none; padding: 10px 0; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-btn--muted { color: var(--muted); font-size: 14px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: var(--r-m);
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 600 16px/1.2 var(--f-text); text-decoration: none; text-align: center;
  transition: transform .16s var(--ease); }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 2px 0 #000; }
.btn--club { background: var(--club); border-color: var(--club); color: var(--on-club); box-shadow: 0 2px 0 #0C2A1D; min-height: 56px; }
.btn--outline-club { border-color: var(--club); color: var(--club); background: transparent; min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { border-color: transparent; background: none; color: var(--ink-2); }
.btn .ico { width: 20px; height: 20px; }

.pager { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 40px; }
.pager .btn { min-height: 56px; padding: 8px 14px; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; }
.pager .btn span { font-size: 13px; font-weight: 400; opacity: .75; }
.pager .btn b { font-weight: 600; font-size: 15px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.grid2 { align-items: end; }
.grid2 .field__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager .btn--primary { align-items: flex-start; }
.pager .btn:only-child { grid-column: 1 / -1; }
.done-mark { margin-top: 28px; display: flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 600; font-size: 15px; }

/* оффер клуба */
.offer { padding-top: 8px; }
.offer .tape { margin-bottom: 18px; }
.offer h1 { margin-bottom: 10px; }
.offer__lede { margin: 0 0 22px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.perks { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.perks li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.perks .ico-box { width: 36px; height: 36px; border-radius: var(--r-m); background: var(--club-tint); color: var(--club); display: grid; place-items: center; }
.perks .ico { width: 20px; height: 20px; }
.perks b { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
.perks span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.price-box { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-card); padding: 18px 18px 16px; margin-bottom: 16px; position: relative; overflow: hidden; }
.price-box::after { content: ""; position: absolute; right: -10px; top: 18px; width: 70px; height: 10px; background: var(--tape); clip-path: var(--tape-clip); }
.price-box .display { color: var(--club); }
.price-box__for { margin: 6px 0 0; font-weight: 600; }
.price-box__then { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.price-box__seats { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.stub { display: inline-block; background: var(--warn-tint); color: var(--warn); font-weight: 600; font-size: 13px; padding: 2px 6px; border-radius: var(--r-s); }
.buy-stub { margin: 10px 0 0; text-align: center; }

/* нет доступа */
.denied { min-height: 72vh; display: grid; align-content: center; justify-items: center; text-align: center; gap: 12px; padding: 0 8px; }
.denied__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--ink); margin-bottom: 8px; }
.denied__icon .ico { width: 36px; height: 36px; }
.denied h2 { max-width: 15em; }
.denied p { margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 22em; }
.denied .btn { min-width: 240px; }

/* библиотека */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 20px; padding: 2px var(--pad) 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.group + .group { margin-top: 28px; }
.group__title { margin: 0 0 10px; }
.kind { font: 600 13px/1 var(--f-text); color: var(--muted); }

.section-title { margin: 32px 0 12px; }
.member-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 12px 14px;
  background: var(--club-tint); border-radius: var(--r-m); color: var(--club); font-size: 14px; }
.member-strip b { font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-m); font-size: 14px; max-width: calc(100% - 40px); }
.empty { display: grid; justify-items: start; gap: 10px; padding: 20px; background: var(--surface); border-radius: var(--r-l); box-shadow: var(--sh-card); color: var(--ink-2); }
.empty p { margin: 0; font-size: 15px; line-height: 1.5; }
.error-box { margin-top: 20px; padding: 16px; background: var(--danger-tint); color: var(--danger); border-radius: var(--r-m); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
