/* Buenos Padel · landing UI primitives (Redesign v3 «Dark Court» · Task 37 · 2026-07)
 *
 * Design language (source: Claude Design project «Buenos Padel», 3 screens):
 * - Dark navy court:  page #050D18, cards #0A1626, hairlines #16273D
 * - Accent lime #93D032 — CTAs, prices, eyebrows, hover states
 * - Display: Unbounded 700–900, sentence case (hero h1 uppercase), lh 0.98–1.05
 * - Body:    Manrope 400–800, lh 1.5–1.6
 * - Eyebrows: «01 · Сеть» — Manrope 800 13px, ls .2em, uppercase, lime
 * - Pill buttons (r 999), cards r 16–20, bands r 24–28
 * - Motion: [data-reveal] fade-up 0.7s, [data-count] eased counters (nav.js)
 *
 * Source-of-truth tokens live in brand.css. This file defines layout / components.
 * Class names are kept from v2 for page compatibility; values are v3.
 */

html { scroll-behavior: smooth; }

body.bp-landing {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* :where() so component classes (.bp-btn, .bp-nav__cta) override naturally */
:where(body.bp-landing a) {
  color: inherit;
  text-decoration: none;
}
:where(body.bp-landing a):hover { opacity: 0.85; }
:where(body.bp-landing img) {
  max-width: 100%;
  display: block;
}

/* === Mobile horizontal-scroll safety net === */
:where(html, body.bp-landing) {
  overflow-x: clip;
  max-width: 100vw;
}
:where(body.bp-landing iframe),
:where(body.bp-landing video),
:where(body.bp-landing svg) {
  max-width: 100%;
}

/* === Container === */
.bp-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .bp-container { padding: 0 20px; }
}

/* Grid children must be allowed to shrink below content width. */
.bp-split > *,
.bp-split--feature > *,
.bp-split--asym > *,
.bp-split--court > *,
.bp-grid-2 > *,
.bp-grid-3 > *,
.bp-grid-4 > *,
.bp-grid-5 > *,
.bp-hero__layout > *,
.bp-meta-grid .cell,
.bp-meta-row > * {
  min-width: 0;
}

@media (max-width: 480px) {
  .bp-split--feature .bp-display {
    font-size: clamp(56px, 22vw, 120px) !important;
    overflow-wrap: break-word;
  }
}

/* =================================================================
 * TYPOGRAPHY
 * ================================================================= */

.bp-display {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.02;
  color: var(--text);
  margin: 0;
}

.bp-display--xxl { font-size: clamp(52px, calc(var(--bp-avail, 100vw) * 0.08), 148px); line-height: 0.98; font-weight: 900; }
.bp-display--xl  { font-size: clamp(40px, calc(var(--bp-avail, 100vw) * 0.055), 96px);    line-height: 0.98; font-weight: 900; }
.bp-display--lg  { font-size: clamp(36px, calc(var(--bp-avail, 100vw) * 0.043), 68px);  line-height: 1.02; }
.bp-display--md  { font-size: clamp(22px, 2.6vw, 34px);  line-height: 1.08; }

.bp-lead {
  font-family: var(--ff-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0;
  text-wrap: pretty;
}

.bp-body  { font-family: var(--ff-body); font-size: 15px; line-height: 1.55; color: var(--text-soft); }
.bp-small { font-family: var(--ff-body); font-size: 13px; line-height: 1.5; color: var(--muted); }

.bp-mono {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.bp-eyebrow {
  display: block;
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 14px;
}

/* Light variants — on dark ground everything is already light; keep hooks. */
.bp-display.is-light,
.bp-display--xxl.is-light,
.bp-display--xl.is-light,
.bp-display--lg.is-light,
.bp-display--md.is-light { color: var(--text); }
.bp-lead.is-light  { color: var(--text-soft); }
.bp-body.is-light  { color: var(--text-soft); }
.bp-small.is-light { color: var(--muted); }
.bp-mono.is-light  { color: var(--muted); }
.bp-eyebrow.is-light { color: var(--accent); }

/* Accent-band context (.bp-section--offer): dark type on lime. */
.bp-section--offer .bp-display,
.bp-section--offer .bp-lead,
.bp-section--offer .bp-eyebrow,
.bp-section--offer .bp-mono { color: var(--accent-ink); }

/* Backwards-compat: pages still using .bp-title */
.bp-title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 68px);
  letter-spacing: -0.01em;
  line-height: 1.02;
  color: var(--text);
  margin: 0 0 32px;
}
.bp-title.is-light { color: var(--text); }
.bp-title.is-center { text-align: center; }

:where(body.bp-landing) :is(.display, .section-title, .bp-title, .hero h1, .hero h2, .bp-section h2) {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Stroked (outline) display text — «СООБЩЕСТВО.» / footer wordmark */
.bp-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
  paint-order: stroke fill;
}
.bp-outline--dim { -webkit-text-stroke-color: var(--outline-ink); }
.bp-accent-text { color: var(--accent); }

/* =================================================================
 * SCAFFOLDING — rules, sections, section heads
 * ================================================================= */

.bp-rule          { height: 1px; background: var(--line); border: 0; margin: 0; }
.bp-rule--2       { height: 2px; background: var(--line-2); border: 0; margin: 0; }
.bp-rule--dashed  { border-top: 1px dashed var(--line-2); height: 0; margin: 0; }
.bp-rule.is-light          { background: var(--line); }
.bp-rule--dashed.is-light  { border-top-color: var(--line-2); }

.bp-section {
  padding: 110px 0 0;
  position: relative;
}
.bp-section:last-of-type,
.bp-section.has-pb { padding-bottom: 110px; }

/* Surface modifiers — all dark now; banded sections get their own paddings. */
.bp-section.is-paper   { background: var(--bg); }
.bp-section.is-paper-2 { background: var(--bg-2); padding-bottom: 110px; }
.bp-section.is-white   { background: var(--bg); }
.bp-section.is-blue {
  background: linear-gradient(160deg, var(--grad-blue-2) 0%, var(--bg) 72%);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  padding: 100px 0;
  margin-top: 110px;
}
.bp-section.is-ink {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: 100px 0;
  margin-top: 110px;
}
.bp-section.is-blue h2,
.bp-section.is-blue p,
.bp-section.is-ink h2,
.bp-section.is-ink p { color: inherit; }

/* Accent band — «−50% на первую тренировку» */
.bp-section--offer {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 80px 0;
  margin-top: 110px;
}
.bp-section--offer h2,
.bp-section--offer p { color: inherit; }

/* Section header: number + title (left) | meta (right) */
.bp-section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
}
.bp-section__num {
  display: block;
  font-family: var(--ff-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.bp-section--offer .bp-section__num { color: var(--accent-ink); }

.bp-section__meta {
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  white-space: nowrap;
}
.bp-section--offer .bp-section__meta { color: var(--accent-ink); opacity: 0.7; }

@media (max-width: 640px) {
  .bp-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .bp-section__meta { font-size: 14px; white-space: normal; }
}

/* =================================================================
 * BUTTONS — pills
 * ================================================================= */

.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  padding: 16px 32px;
  border: 1.5px solid var(--accent);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}
.bp-btn:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent-ink);
  opacity: 1;
}

.bp-btn--primary,
.bp-btn--accent,
.bp-btn--green {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.bp-btn--primary:hover,
.bp-btn--accent:hover,
.bp-btn--green:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--accent-ink);
}

/* Outlined on dark */
.bp-btn--secondary,
.bp-btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.bp-btn--secondary:hover,
.bp-btn--ghost:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.bp-btn--ghost-light {
  background: transparent;
  color: var(--text);
  border-color: rgba(242, 246, 251, 0.35);
}
.bp-btn--ghost-light:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

/* On accent band: dark pill */
.bp-btn--on-accent {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: var(--accent);
}
.bp-btn--on-accent:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #ffffff;
}

.bp-btn[disabled],
.bp-btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* =================================================================
 * BADGES — pills
 * ================================================================= */

.bp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(147, 208, 50, 0.4);
  border-radius: var(--r-pill);
  padding: 8px 18px;
  background: transparent;
  color: var(--accent);
}
.bp-badge--solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bp-badge--blue  { background: rgba(242, 246, 251, 0.1); color: var(--text); border-color: transparent; }
.bp-badge--green { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bp-badge--white { background: #ffffff; color: var(--accent-ink); border-color: #ffffff; }
.bp-badge--ghost-light {
  background: rgba(242, 246, 251, 0.1);
  color: var(--text);
  border-color: transparent;
}

/* =================================================================
 * META ROWS / META GRID — hero stats strip
 * ================================================================= */

.bp-meta-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.bp-meta-row:last-child { border-bottom: 1px solid var(--line); }
.bp-meta-row .k {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bp-meta-row .v {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  line-height: 1.1;
}
.bp-meta-row.is-light { border-top-color: var(--line); }
.bp-meta-row.is-light:last-child { border-bottom-color: var(--line); }
.bp-meta-row.is-light .k { color: var(--muted); }
.bp-meta-row.is-light .v { color: var(--text); }

/* Hero stats strip — bordered cells, big Unbounded numbers */
.bp-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 0;
  padding: 0;
}
.bp-meta-grid .cell {
  padding: 24px 20px 8px;
  border-right: 1px solid var(--line-2);
  border-left: 0;
}
.bp-meta-grid .cell:last-child { border-right: 0; }
.bp-meta-grid .cell:first-child { padding-left: 0; }
.bp-meta-grid .cell .k {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.bp-meta-grid .cell .v {
  overflow-wrap: break-word;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  margin-top: 0;
  color: var(--text);
  line-height: 1.05;
}
.bp-meta-grid .cell.is-accent .v,
.bp-meta-grid .cell.is-accent .k { color: var(--accent); }
.bp-meta-grid.is-light { border-top-color: var(--line-2); border-bottom-color: var(--line-2); }
.bp-meta-grid.is-light .cell { border-right-color: var(--line-2); }
.bp-meta-grid.is-light .cell .k { color: var(--muted); }
.bp-meta-grid.is-light .cell .v { color: var(--text); }
@media (max-width: 640px) {
  .bp-meta-grid { grid-template-columns: 1fr 1fr; }
  .bp-meta-grid .cell { padding: 16px 12px 8px; }
  .bp-meta-grid .cell:nth-child(even) { border-right: 0; }
  .bp-meta-grid .cell:first-child { padding-left: 12px; }
  .bp-meta-grid .cell .v { font-size: 22px; }
}

/* =================================================================
 * CARDS
 * ================================================================= */

.bp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.bp-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.bp-section.is-paper .bp-card,
.bp-section.is-paper-2 .bp-card,
.bp-section.is-white .bp-card { background: var(--surface); }
.bp-section.is-blue .bp-card,
.bp-section.is-ink .bp-card {
  background: rgba(5, 13, 24, 0.45);
  color: var(--text);
  border-color: var(--line-2);
}
/* Cards on the accent band: translucent dark outline, dark text */
.bp-section--offer .bp-card {
  background: rgba(5, 13, 24, 0.08);
  border: 1.5px solid rgba(5, 13, 24, 0.25);
  border-radius: var(--r-tile);
  color: var(--accent-ink);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.bp-section--offer .bp-card:hover {
  background: var(--accent-ink);
  color: var(--accent);
  border-color: var(--accent-ink);
}
.bp-section--offer .bp-card h3,
.bp-section--offer .bp-card p,
.bp-section--offer .bp-card .bp-card__num,
.bp-section--offer .bp-card .bp-card__price { color: inherit; }

.bp-card .bp-card__num {
  font-family: var(--ff-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.bp-section--offer .bp-card .bp-card__num { opacity: 0.65; }

.bp-card h3 {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(19px, 1.8vw, 24px);
  letter-spacing: -0.005em;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
}

.bp-card .bp-card__price {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0;
  margin: 0;
}
.bp-card .bp-card__price s,
.bp-card .bp-card__price .old {
  font-size: 16px;
  opacity: 0.45;
}

.bp-card p {
  font-family: var(--ff-body);
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.bp-section.is-blue .bp-card p,
.bp-section.is-ink .bp-card p { color: var(--muted); }

.bp-card .bp-card__sub {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 14px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.bp-section--offer .bp-card .bp-card__sub { border-top-color: rgba(5, 13, 24, 0.25); color: inherit; }

/* Bullet lists on the accent band: dark ink instead of light text */
.bp-section--offer .bp-bullet-list li { border-bottom-color: rgba(5, 13, 24, 0.25); }
.bp-section--offer .bp-bullet-list .n,
.bp-section--offer .bp-bullet-list li > span:not(.n) { color: var(--accent-ink); }

/* === Train card variant — num column + body === */
.bp-train-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  overflow: hidden;
  padding: 0;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.bp-train-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.bp-train-card.is-done {
  background: var(--bg-2);
  color: var(--text);
}
.bp-train-card .num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--accent);
  border-right: 1px solid var(--line);
  padding: 16px 0;
}
.bp-train-card.is-done .num { color: var(--accent); }
.bp-train-card .body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-train-card .tag {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bp-train-card .ttl {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  color: var(--text);
}
.bp-train-card .price {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--accent);
}
.bp-train-card.is-done .price { color: var(--accent); }
.bp-train-card .sub {
  font-family: var(--ff-body);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* === Grid presets === */
.bp-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.bp-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.bp-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.bp-grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* =================================================================
 * PRICE ROWS — «Тренировки» (design: grid 1fr 2fr 1fr, hairlines)
 * ================================================================= */

.bp-price-list { border-top: 1px solid var(--line); }
.bp-price-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease;
}
.bp-price-row:hover { background: rgba(147, 208, 50, 0.04); }
.bp-price-row__name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--text);
}
.bp-price-row__desc {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}
.bp-price-row__price {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(18px, 1.9vw, 24px);
  text-align: right;
  color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 700px) {
  .bp-price-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }
  .bp-price-row__price { text-align: left; }
}

/* =================================================================
 * CLUB CARDS — photo-backed tiles with status badge
 * ================================================================= */

.bp-club-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  border-radius: var(--r-card);
  overflow: hidden;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  padding: 28px;
  color: var(--text);
  transition: transform 0.18s ease;
}
.bp-club-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 13, 24, 0.1), rgba(5, 13, 24, 0.88));
  z-index: 0;
}
.bp-club-card > * { position: relative; z-index: 1; }
.bp-club-card:hover { transform: translateY(-3px); opacity: 1; color: var(--text); }
.bp-club-card--wide { grid-column: span 2; min-height: 380px; }
.bp-club-card--next { border: 1px solid rgba(147, 208, 50, 0.35); }
.bp-club-card--soon {
  border: 1.5px dashed #24384f;
  background-image: none !important;
  justify-content: flex-end;
}
.bp-club-card--soon::before { display: none; }
.bp-club-card__badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 1;
}
.bp-club-card__badge {
  display: inline-flex;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.bp-club-card__badge--white { background: #ffffff; }
.bp-club-card h3 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--text);
}
.bp-club-card--wide h3 { font-size: clamp(24px, 2.6vw, 30px); }
.bp-club-card--soon h3 { color: var(--text-soft); }
.bp-club-card p {
  margin: 10px 0 0;
  max-width: 520px;
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 15px;
}
.bp-club-card--soon p { color: var(--muted); }
.bp-club-card--soon p a { color: var(--accent); }
@media (max-width: 900px) {
  .bp-club-card--wide { grid-column: auto; }
  .bp-club-card,
  .bp-club-card--wide { min-height: 300px; }
}

/* =================================================================
 * MARQUEE — cities ribbon
 * ================================================================= */

.bp-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg-2);
}
.bp-marquee__track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: bp-marquee 26s linear infinite;
  will-change: transform;
}
.bp-marquee__group {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}
.bp-marquee__item {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bp-marquee__item.is-accent { color: var(--accent); }
.bp-marquee__dot { color: var(--accent); font-size: 20px; }
@keyframes bp-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .bp-marquee__track { animation: none; }
}

/* =================================================================
 * P1 LEAGUE RIBBON
 * ================================================================= */

.bp-p1-ribbon {
  background: linear-gradient(160deg, #0d1f36, var(--surface));
  color: var(--text);
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.bp-p1-ribbon .bp-p1-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.bp-p1-ribbon .bp-eyebrow {
  color: var(--accent);
  margin: 0;
  font-weight: 800;
}
.bp-p1-ribbon p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-soft);
  text-align: left;
}
.bp-p1-ribbon p strong { font-weight: 800; color: var(--text); }
@media (max-width: 768px) {
  .bp-p1-ribbon .bp-p1-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }
}

/* =================================================================
 * FAQ — hairline rows (design: no boxes)
 * ================================================================= */

.bp-faq {
  max-width: 880px;
  border-top: 1px solid var(--line);
}
.bp-faq details {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0;
  margin: 0;
}
.bp-faq summary {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 18px);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
  padding: 24px 0;
}
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary::after {
  content: '+';
  font-size: 24px;
  font-family: var(--ff-body);
  color: var(--accent);
  font-weight: 400;
  flex: 0 0 auto;
  line-height: 1;
}
.bp-faq details[open] summary::after { content: '−'; }
.bp-faq details > *:not(summary) {
  padding: 0 0 24px;
  font-family: var(--ff-body);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 800px;
}

/* =================================================================
 * CLUBS STRIP — editorial photo cards («Атмосфера»)
 * ================================================================= */

.bp-clubs-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bp-clubs-strip__item {
  border: 0;
  background: transparent;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.bp-clubs-strip__item img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border-bottom: 0;
}
.bp-clubs-strip__item figcaption {
  padding: 14px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-clubs-strip__item figcaption .bp-display--md { margin: 0; font-size: 17px; font-weight: 700; }
.bp-clubs-strip__item figcaption p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14.5px; }
@media (max-width: 768px) {
  .bp-clubs-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bp-clubs-strip__item img { aspect-ratio: 16 / 10; }
}

/* =================================================================
 * SLOGAN BAND — centered display quote
 * ================================================================= */

.bp-slogan-band {
  background: var(--bg);
  padding: 100px 0;
  border-top: 0;
  border-bottom: 0;
}
.bp-slogan-band .bp-slogan-text {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-soft);
}

/* =================================================================
 * COACH GRID + RAIL
 * ================================================================= */

.bp-coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
/* Horizontal scroll rail variant (main page) — add .bp-coaches-rail on wrapper */
.bp-coaches-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.bp-coaches-rail .bp-coach { flex: 0 0 280px; }

.bp-coach {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.bp-coach:hover { border-color: var(--accent); transform: translateY(-2px); }
.bp-section.is-paper .bp-coach,
.bp-section.is-paper-2 .bp-coach { background: var(--surface); }
.bp-coach img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-2);
  border-bottom: 0;
}
.bp-coach__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.bp-coach__tag {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bp-coach h3 {
  font-family: var(--ff-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  color: var(--text);
  margin: 2px 0 0;
}
.bp-coach .bp-coach__level {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2px;
  white-space: nowrap;
}
.bp-coach p {
  font-family: var(--ff-body);
  font-size: 13.5px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.5;
}

/* =================================================================
 * STAMP — legacy round seal, restyled to lime ring
 * ================================================================= */

.bp-stamp {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--ff-display);
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  font-size: 15px;
  letter-spacing: 0.02em;
  transform: rotate(-8deg);
  padding: 18px;
  background: transparent;
  flex-shrink: 0;
}
.bp-stamp.is-on-image {
  background: rgba(5, 13, 24, 0.72);
  backdrop-filter: blur(4px);
}
.bp-stamp--sm {
  width: 100px;
  height: 100px;
  font-size: 11px;
  padding: 12px;
}

/* =================================================================
 * BULLET LIST
 * ================================================================= */

.bp-bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bp-bullet-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: baseline;
}
.bp-bullet-list li:last-child { border-bottom: 0; }
.bp-bullet-list .n {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
}
.bp-bullet-list li > span:not(.n) {
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* =================================================================
 * TAB PILLS
 * ================================================================= */

.bp-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bp-tab-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-body);
  font-weight: 800;
  text-transform: none;
  font-size: 14px;
  letter-spacing: 0;
  padding: 10px 18px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.bp-tab-pill:hover { border-color: var(--accent); color: var(--accent); }
.bp-tab-pill.is-on,
.bp-tab-pill[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* =================================================================
 * HERO — photo background, full-height, stats strip below
 * ================================================================= */

.bp-hero {
  background: var(--bg);
  padding: 72px 0;
  text-align: left;
  position: relative;
  border-bottom: 0;
}

.bp-hero__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 36px;
}
.bp-hero--image .bp-hero__topbar {
  color: var(--text-soft);
  border-bottom-color: var(--line-2);
}

.bp-hero__layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding-bottom: 28px;
}
@media (max-width: 768px) {
  .bp-hero__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.bp-hero__title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(34px, calc(var(--bp-avail, 100vw) * 0.075), 148px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}
.bp-hero__title .bp-outline { -webkit-text-stroke-width: 2px; }

.bp-hero .bp-lead {
  margin: 28px 0 0;
  max-width: 560px;
}

.bp-hero__h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.3;
  letter-spacing: 0;
  margin: 18px 0 0;
  max-width: 640px;
  color: var(--text-soft);
  text-wrap: balance;
  text-transform: none;
}
.bp-hero--image .bp-hero__h2 { color: var(--text-soft); }

.bp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 36px 0 0;
}
.bp-hero__badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* === Image-backed variant — deep navy overlay fading into page bg === */
.bp-hero--image {
  padding: 72px 0 40px;
  background-color: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text);
  border-bottom: 0;
}
.bp-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 38, 76, 0.5) 0%,
    rgba(5, 13, 24, 0.74) 55%,
    var(--bg) 100%
  );
  z-index: 0;
}
.bp-hero--image > * { position: relative; z-index: 1; }
.bp-hero--image .bp-hero__title { color: var(--text); }
.bp-hero--image .bp-lead        { color: var(--text-soft); }

/* .bp-hero--tall: исторически full-viewport; по фидбеку герой везде
 * контентной высоты — модификатор оставлен как no-op для совместимости */
.bp-hero--tall > .bp-container:first-child { padding-top: 48px; }

/* =================================================================
 * MOTION
 * ================================================================= */

/* Scroll reveal — nav.js observes [data-reveal] and adds .is-in.
 * The hidden initial state applies ONLY under html.js (set by a 1-line
 * inline bootstrap in each page head) — with JS blocked/broken the content
 * stays visible instead of opacity:0 forever. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes bp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(147, 208, 50, 0.55); }
  70%  { box-shadow: 0 0 0 16px rgba(147, 208, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(147, 208, 50, 0); }
}
@keyframes bp-stamp-in {
  0%   { transform: scale(2) rotate(-25deg); opacity: 0; }
  60%  { transform: scale(0.92) rotate(-10deg); opacity: 1; }
  100% { transform: scale(1) rotate(-8deg); opacity: 1; }
}
@keyframes bp-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bp-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.bp-anim-stamp-in { animation: bp-stamp-in 1.2s ease-out both; }
.bp-anim-fade-up  { animation: bp-fade-up 0.4s ease-out both; }
.bp-anim-slide-up { animation: bp-slide-up 0.35s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .bp-anim-stamp-in,
  .bp-anim-fade-up,
  .bp-anim-slide-up { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* =================================================================
 * RESPONSIVE
 * ================================================================= */

@media (max-width: 768px) {
  .bp-section { padding: 72px 0 0; }
  .bp-section.is-blue,
  .bp-section.is-ink { padding: 64px 0; margin-top: 72px; }
  .bp-section--offer { padding: 56px 0; margin-top: 72px; }
  .bp-section.is-paper-2 { padding-bottom: 72px; }
  .bp-section:last-of-type,
  .bp-section.has-pb { padding-bottom: 72px; }
  .bp-section__head { margin-bottom: 28px; }
  .bp-card { padding: 24px; }
  .bp-train-card { grid-template-columns: 60px 1fr; }
  .bp-train-card .num { font-size: 28px; }
  .bp-train-card .body { padding: 14px 18px; }
  .bp-stamp { width: 110px; height: 110px; font-size: 12px; padding: 14px; }
}

/* Mobile text-fit safety: Unbounded is wide; long RU words must wrap or
 * shrink instead of being clipped by overflow-x: clip. */
@media (max-width: 700px) {
  .bp-hero__title { font-size: clamp(26px, 8vw, 64px); overflow-wrap: break-word; hyphens: auto; }
  .bp-display--xl { font-size: clamp(30px, 8vw, 96px); overflow-wrap: break-word; }
  .bp-display--lg { font-size: clamp(26px, 7vw, 68px); overflow-wrap: break-word; }
  .bp-meta-grid .cell .v,
  .bp-meta-grid .cell .k,
  .bp-meta-row .v,
  .bp-meta-row .k { overflow-wrap: break-word; }
  .bp-btn { white-space: normal; max-width: 100%; text-align: center; }
}

/* === Utility helpers === */
.bp-text-center { text-align: center; }
.bp-text-left { text-align: left; }
.bp-mt-32 { margin-top: 32px; }
.bp-mt-40 { margin-top: 40px; }
.bp-mt-56 { margin-top: 56px; }

/* =================================================================
 * LEAD FORM — universal contact form (auto-bound by /assets/leads.js)
 * ================================================================= */

.bp-lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: 30px;
}
.bp-lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.bp-lead-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.bp-lead-form__field > span {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bp-lead-form input,
.bp-lead-form textarea,
.bp-lead-form select {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  /* 16px is the iOS Safari zoom threshold — keep ≥16px on touch inputs. */
  font-size: 16px;
  line-height: 1.4;
  box-sizing: border-box;
}
.bp-lead-form input::placeholder,
.bp-lead-form textarea::placeholder { color: var(--muted); }
.bp-lead-form input:focus,
.bp-lead-form textarea:focus,
.bp-lead-form select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.bp-lead-form textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--ff-body);
}
.bp-lead-form select { appearance: none; }
.bp-lead-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 6px;
}
.bp-lead-form__result {
  margin: 0;
  min-height: 18px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bp-lead-form__result[data-state="ok"]      { color: var(--accent); }
.bp-lead-form__result[data-state="error"]   { color: #fda4af; }
.bp-lead-form__result[data-state="pending"] { color: var(--muted); }

/* On-blue variant — placement inside .bp-section.is-blue gradient band */
.bp-lead-form--on-blue {
  background: rgba(5, 13, 24, 0.45);
  border-color: var(--line-2);
}
.bp-lead-form--on-blue .bp-lead-form__field > span { color: var(--muted); }
.bp-lead-form--on-blue input,
.bp-lead-form--on-blue textarea,
.bp-lead-form--on-blue select {
  background: rgba(5, 13, 24, 0.6);
  color: var(--text);
  border-color: var(--line-2);
}
.bp-lead-form--on-blue input::placeholder,
.bp-lead-form--on-blue textarea::placeholder { color: var(--muted); }
.bp-lead-form--on-blue input:focus,
.bp-lead-form--on-blue textarea:focus,
.bp-lead-form--on-blue select:focus { outline-color: var(--accent); }
.bp-lead-form--on-blue .bp-lead-form__result { color: var(--muted); }
.bp-lead-form--on-blue .bp-lead-form__result[data-state="ok"]    { color: var(--accent); }
.bp-lead-form--on-blue .bp-lead-form__result[data-state="error"] { color: #fda4af; }

@media (max-width: 640px) {
  .bp-lead-form__row { grid-template-columns: 1fr; }
  .bp-lead-form { padding: 22px; }
}

/* =================================================================
 * RESPONSIVE LAYOUT UTILITIES
 * ================================================================= */

.bp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.bp-split--feature {
  grid-template-columns: minmax(0, auto) 1fr;
  align-items: center;
  gap: 56px;
}
.bp-split--asym {
  grid-template-columns: 1.2fr 1fr;
}
.bp-split--court {
  grid-template-columns: 280px 1fr;
  gap: 56px;
}
.bp-split--centered {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

@media (max-width: 768px) {
  .bp-split,
  .bp-split--feature,
  .bp-split--asym,
  .bp-split--court {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }
}

.bp-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0;
}
.bp-gallery-strip--3 { grid-template-columns: repeat(3, 1fr); }
.bp-gallery-strip img { border-radius: var(--r-tile); }
@media (max-width: 768px) {
  .bp-gallery-strip,
  .bp-gallery-strip--3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .bp-gallery-strip,
  .bp-gallery-strip--3 { grid-template-columns: 1fr; }
}

/* Bento gallery — first tile spans 2×2 (club «Атмосфера») */
.bp-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.bp-bento figure { margin: 0; }
.bp-bento figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.bp-bento img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}
.bp-bento figure:first-child img { min-height: 420px; }
.bp-bento figcaption {
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .bp-bento { grid-template-columns: repeat(2, 1fr); }
  .bp-bento figure:first-child { grid-column: span 2; grid-row: auto; }
  .bp-bento figure:first-child img { min-height: 280px; }
}
@media (max-width: 480px) {
  .bp-bento { grid-template-columns: 1fr; }
  .bp-bento figure:first-child { grid-column: auto; }
}

@media (max-width: 480px) {
  .bp-meta-row { grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; }
}

/* =================================================================
 * REVIEWS — guest quotes (club pages)
 * ================================================================= */

.bp-review {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.bp-review__stars { color: var(--star); letter-spacing: 3px; font-size: 14px; }
.bp-review p {
  margin: 16px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 15px;
  flex: 1;
}
.bp-review__name { margin-top: 16px; font-weight: 800; color: var(--text); }
.bp-review__date { color: var(--muted); font-size: 13px; margin-top: 2px; }
.bp-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--accent);
  border-radius: var(--r-pill);
  padding: 14px 26px;
  font-weight: 800;
  color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}
.bp-rating-pill:hover { background: var(--accent); color: var(--accent-ink); opacity: 1; }
.bp-rating-pill .star { color: var(--star); }

/* =================================================================
 * CONTACT CARDS + INFO TILES
 * ================================================================= */

.bp-contact-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  background: var(--surface);
}
.bp-contact-card__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.bp-contact-card h3 {
  margin: 12px 0 0;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}
.bp-contact-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}
.bp-contact-card a { color: var(--accent); }
.bp-contact-card a:hover { color: #ffffff; opacity: 1; }

.bp-info-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface);
}
.bp-info-tile .t { font-weight: 800; color: var(--text); }
.bp-info-tile .s { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* =================================================================
 * BANDS — app promo, investor CTA (rounded gradient wells)
 * ================================================================= */

.bp-band {
  background: linear-gradient(160deg, var(--grad-blue-2) 0%, var(--surface) 75%);
  border: 1px solid rgba(147, 208, 50, 0.25);
  border-radius: var(--r-band);
  padding: 70px 40px;
  text-align: center;
}
.bp-band--accent {
  background: var(--accent);
  border: 0;
  color: var(--accent-ink);
  padding: 80px 40px;
}
.bp-band--accent h2,
.bp-band--accent p { color: inherit; }
.bp-band__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .bp-band,
  .bp-band--accent { padding: 48px 22px; border-radius: 22px; }
}

/* Store badges (App Store / Google Play) */
.bp-store-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1.5px solid rgba(242, 246, 251, 0.35);
  border-radius: 14px;
  padding: 11px 24px;
  color: var(--text);
  transition: border-color 0.15s ease;
}
.bp-store-badge:hover { border-color: var(--accent); color: var(--text); opacity: 1; }
.bp-store-badge .pre {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.bp-store-badge .name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 16px;
}

/* =================================================================
 * LEGAL PAGES — long-form text content
 * ================================================================= */

.bp-legal-content {
  max-width: 820px;
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-soft);
}
.bp-legal-content h1,
.bp-legal-content h2 {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.1;
  text-transform: none;
  color: var(--text);
  margin: 56px 0 20px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: clamp(21px, 2.6vw, 28px);
}
.bp-legal-content h1:first-child,
.bp-legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.bp-legal-content h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  color: var(--accent);
  margin: 32px 0 12px;
  font-size: 17px;
}
.bp-legal-content h4 {
  font-family: var(--ff-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted);
  margin: 24px 0 8px;
}
.bp-legal-content p {
  margin: 0 0 16px;
  text-align: left;
}
.bp-legal-content strong { font-weight: 700; color: var(--text); }
.bp-legal-content ul,
.bp-legal-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.bp-legal-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.bp-legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(147, 208, 50, 0.4);
}
.bp-legal-content a:hover {
  text-decoration-color: var(--accent);
  color: #ffffff;
}
/* Buttons inside legal copy: undo the content-link colouring (its
 * a-selector otherwise outspecifies .bp-btn → lime-on-lime invisibility) */
.bp-legal-content a.bp-btn {
  color: var(--accent-ink);
  text-decoration: none;
}
.bp-legal-content a.bp-btn:hover { color: var(--accent-ink); }
.bp-legal-content a.bp-btn--ghost,
.bp-legal-content a.bp-btn--secondary { color: var(--accent); }
.bp-legal-content a.bp-btn--ghost:hover,
.bp-legal-content a.bp-btn--secondary:hover { color: var(--accent-ink); }
.bp-legal-content a.bp-btn--ghost-light { color: var(--text); }
.bp-legal-content a.bp-btn--ghost-light:hover { color: var(--accent); }
.bp-legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
@media (max-width: 640px) {
  .bp-legal-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.bp-legal-content table th,
.bp-legal-content table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
}
.bp-legal-content table th {
  font-family: var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--muted);
  font-weight: 800;
  background: var(--surface);
}

/* Edition stamp line on offer/pravila pages («Редакция от …») */
.bp-legal-rev {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 24px;
}

/* Legal page hero */
.bp-legal-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 56px;
}
.bp-legal-hero .bp-hero__topbar { margin-bottom: 28px; }
.bp-legal-hero h1 {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: none;
  font-size: clamp(30px, 4.6vw, 52px);
  color: var(--text);
  margin: 0;
}
.bp-legal-hero .bp-lead { margin: 16px 0 0; }

/* =================================================================
 * RELATED — cross-link block injected via data-nav-include="related"
 * ================================================================= */

.bp-section--related {
  border-top: 1px solid var(--line);
}
.bp-related__title {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.05;
  text-transform: none;
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--text);
  margin: 0;
}
.bp-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.bp-related-card {
  text-decoration: none;
  color: inherit;
  position: relative;
  min-height: 220px;
}
.bp-related-card:hover { color: inherit; }
.bp-related-card .bp-card__price {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--ff-body);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bp-related-card__cta {
  margin-top: auto;
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.bp-related-card:hover .bp-related-card__cta { color: #ffffff; }
@media (max-width: 640px) {
  .bp-related-grid { gap: 12px; }
  .bp-related-card { min-height: 0; }
}

/* =================================================================
 * RELATED POSTS — static blog cross-link block on commercial landings
 * ================================================================= */

.bp-section--posts {
  border-top: 1px solid var(--line);
}
.bp-related-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.bp-related-posts__index {
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.bp-related-posts__index:hover { color: #ffffff; }
.bp-related-post {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: border-color 0.18s ease;
}
.bp-related-post:hover { color: inherit; border-color: var(--accent); opacity: 1; }
.bp-related-post:hover .bp-related-post__cta { color: #ffffff; }
.bp-related-post__cat {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.bp-related-post__title {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--text);
  margin: 0;
}
.bp-related-post__lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.bp-related-post__cta {
  margin-top: auto;
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
@media (max-width: 640px) {
  .bp-related-posts { gap: 12px; }
  .bp-related-post { padding: 18px 18px 14px; }
}

/* =================================================================
 * BLOG — listing, post template, CTA partial
 * ================================================================= */

/* --- Listing categories --- */
.bp-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.bp-cat-list li { display: inline-flex; }
.bp-cat-list a {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.bp-cat-list a:hover { border-color: var(--accent); color: var(--accent); background: transparent; opacity: 1; }

/* --- Post listing grid --- */
.bp-post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.bp-post-list__placeholder {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-tile);
  padding: 28px;
  font-family: var(--ff-body);
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}
.bp-post-list__placeholder a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.bp-post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  min-height: 320px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.bp-post-card:hover { color: inherit; opacity: 1; border-color: var(--accent); transform: translateY(-2px); }
.bp-post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.bp-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bp-post-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.bp-post-card__cat {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.bp-post-card__title {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--text);
  margin: 4px 0 0;
}
.bp-post-card__lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}
.bp-post-card__meta {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Single post layout --- */
.bp-post {
  display: block;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.bp-post__head {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.bp-post__crumbs {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.bp-post__crumbs a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.bp-post__crumbs a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.bp-post__cat {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(147, 208, 50, 0.4);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  margin-bottom: 18px;
}
.bp-post__title {
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.05;
  text-transform: none;
  color: var(--text);
  margin: 0 0 18px;
  text-wrap: balance;
}
.bp-post__lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--text-soft);
}
.bp-post__meta {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bp-post__meta a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.bp-post__meta a:hover { color: var(--accent); }

.bp-post__hero {
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.bp-post__hero img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

.bp-post__body {
  padding: 48px 0 64px;
}
.bp-post__body .bp-container { max-width: 820px; }
.bp-post__intro {
  font-family: var(--ff-body);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 0 0 32px;
}
.bp-post__body h2 {
  font-family: var(--ff-display);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.1;
  text-transform: none;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--text);
  margin: 40px 0 14px;
}
.bp-post__body h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  font-size: 17px;
  color: var(--accent);
  margin: 28px 0 10px;
}
.bp-post__body p { margin: 0 0 16px; line-height: 1.7; font-size: 16px; color: var(--text-soft); }
.bp-post__body ul,
.bp-post__body ol {
  margin: 0 0 20px;
  padding-left: 22px;
  line-height: 1.65;
  color: var(--text-soft);
}
.bp-post__body li { margin-bottom: 8px; }
.bp-post__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(147, 208, 50, 0.45);
}
.bp-post__body a:hover { text-decoration-color: var(--accent); color: #ffffff; }
.bp-post__body img,
.bp-post__body figure {
  margin: 24px 0;
  max-width: 100%;
  border-radius: var(--r-tile);
}
.bp-post__body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  font-family: var(--ff-display);
  font-size: 19px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--text);
}
.bp-post__body code {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  background: rgba(147, 208, 50, 0.1);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}

.bp-post__author {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  margin: 56px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}
.bp-post__author img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  border: 0;
  border-radius: 14px;
}
.bp-post__author-name {
  font-family: var(--ff-display);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-size: 17px;
  color: var(--text);
  margin: 0 0 4px;
}
.bp-post__author-role {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.bp-post__author-bio { font-size: 14px; line-height: 1.55; color: var(--text-soft); margin: 0; }

@media (max-width: 640px) {
  .bp-post__head { padding: 32px 0 20px; }
  .bp-post__body { padding: 32px 0 40px; }
  .bp-post__author {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bp-post__author img { width: 88px; height: 88px; }
}

/* --- Blog CTA partial --- */
.bp-section--cta {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  padding-bottom: 56px;
}
.bp-section--cta .bp-section__num { color: var(--accent); }
.bp-section--cta .bp-section__meta { color: var(--muted); opacity: 1; }
.bp-section--cta .bp-display { color: var(--text); }
.bp-section--cta .bp-lead { color: var(--text-soft); }
.bp-section--cta.is-blue {
  background: linear-gradient(160deg, var(--grad-blue-2) 0%, var(--bg) 72%);
  color: var(--text);
  margin-top: 0;
}
.bp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.bp-lead-form--card {
  background: var(--surface);
  color: var(--text);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bp-lead-form--card .bp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-lead-form--card .bp-field span {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.bp-lead-form--card .bp-field input,
.bp-lead-form--card .bp-field textarea {
  font-family: var(--ff-body);
  font-size: 16px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}
.bp-lead-form--card .bp-field input:focus,
.bp-lead-form--card .bp-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.bp-lead-form__legal {
  margin: 4px 0 0;
  color: var(--muted);
}
.bp-lead-form__legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* =================================================================
 * ROADMAP — investors timeline columns
 * ================================================================= */

.bp-roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bp-roadmap__col {
  border-top: 3px solid var(--dim);
  padding-top: 24px;
}
.bp-roadmap__col--accent { border-top-color: var(--accent); }
.bp-roadmap__col--white  { border-top-color: #ffffff; }
.bp-roadmap__when {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--text-soft);
}
.bp-roadmap__col--accent .bp-roadmap__when { color: var(--accent); }
.bp-roadmap__col--white .bp-roadmap__when { color: var(--text); }
.bp-roadmap__what {
  margin-top: 10px;
  font-weight: 700;
  color: var(--text);
}
.bp-roadmap__col p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14.5px;
}
@media (max-width: 900px) {
  .bp-roadmap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .bp-roadmap { grid-template-columns: 1fr; }
}

/* Traction strip — bordered stat cells on bg-2 band */
.bp-traction {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.bp-traction__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.bp-traction__cell {
  background: var(--bg-2);
  padding: 44px 32px;
}
.bp-traction__cell .n {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(36px, 3.6vw, 52px);
  color: var(--text);
}
.bp-traction__cell.is-accent .n,
.bp-traction__cell.is-accent .k { color: var(--accent); }
.bp-traction__cell .k {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.bp-traction__cell .s {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 900px) {
  .bp-traction__grid { grid-template-columns: 1fr 1fr; }
  .bp-traction__cell { padding: 28px 22px; }
}

/* =================================================================
 * COUNTERS — [data-count] animated by nav.js
 * ================================================================= */

.bp-count-giant {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(90px, 16vw, 280px);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 60px rgba(147, 208, 50, 0.35);
}

/* =================================================================
 * A11Y / INPUT-MODE POLISH (Task 37 review round 3)
 * ================================================================= */

:where(.bp-btn, .bp-nav__links a, .bp-nav__cta, .bp-faq summary, .bp-rating-pill, .bp-store-badge):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.bp-btn:focus-visible { border-radius: var(--r-pill); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Touch devices: don't let the white hover state stick after a tap */
@media (hover: none) {
  .bp-btn:hover,
  .bp-btn--primary:hover,
  .bp-btn--accent:hover,
  .bp-btn--green:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    transform: none;
  }
  .bp-btn--secondary:hover,
  .bp-btn--ghost:hover { background: transparent; color: var(--accent); }
  .bp-btn--ghost-light:hover { color: var(--text); border-color: rgba(242, 246, 251, 0.35); }
}

/* Preventive: pill buttons inside accent-link contexts must not inherit
 * the content-link colour (same class of bug as the legal-page fix). */
.bp-contact-card a.bp-btn,
.bp-post__body a.bp-btn {
  color: var(--accent-ink);
  text-decoration: none;
}
