/* Buenos Padel · landing UI primitives (per Brandbook 01 / 2026)
 *
 * Editorial / Passport design language:
 * - Display: Prostir Sans Heavy 900, UPPERCASE, lh 0.85-0.9, ls -0.01em
 * - Body:    PP Mori 400/600, lh 1.55, normal case
 * - Mono:    JetBrains Mono 10-11px, ls 0.14em, UPPERCASE, ink-soft
 * - Square 1.5px ink borders, no radius, no soft shadows
 * - Rule lines (1.5px solid / 1px dashed) for scaffolding
 *
 * Source-of-truth tokens live in brand.css. This file defines layout / components.
 */

html { scroll-behavior: smooth; }

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

/* :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.78; }
:where(body.bp-landing img) {
  max-width: 100%;
  display: block;
}

/* === Mobile horizontal-scroll safety net ===
 * Prevent any rogue child (large display text, iframe, decorative element)
 * from creating horizontal scroll on iOS Safari/Chrome. `clip` is preferred
 * over `hidden` because it doesn't affect sticky positioning. */
: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 — brandbook 1080px reading width === */
.bp-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 56px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .bp-container { padding: 0 20px; }
}

/* Grid children should be allowed to shrink below their content width;
 * by default `min-width: auto` makes them at least as wide as their content,
 * which is what causes overflow when content is a giant display number. */
.bp-split > *,
.bp-split--feature > *,
.bp-split--asym > *,
.bp-split--court > *,
.bp-grid-2 > *,
.bp-grid-3 > *,
.bp-grid-4 > *,
.bp-grid-5 > * {
  min-width: 0;
}

/* On mobile, big display numbers in feature cells should not exceed viewport;
 * cap them to a width-relative size so they always fit. */
@media (max-width: 480px) {
  .bp-split--feature .bp-display {
    font-size: clamp(56px, 22vw, 120px) !important;
    overflow-wrap: break-word;
  }
}

/* =================================================================
 * TYPOGRAPHY (Brandbook section 04 — type scale)
 * ================================================================= */

.bp-display {
  font-family: var(--ff-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.86;
  color: var(--ink);
  margin: 0;
}

.bp-display--xxl { font-size: clamp(64px, 11vw, 128px); line-height: 0.86; }
.bp-display--xl  { font-size: clamp(48px, 8vw, 88px);   line-height: 0.86; }
.bp-display--lg  { font-size: clamp(36px, 5vw, 56px);   line-height: 0.9; }
.bp-display--md  { font-size: clamp(24px, 3vw, 36px);   line-height: 1; }

.bp-lead {
  font-family: var(--ff-body);
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 780px;
  margin: 0;
  text-wrap: pretty;
}

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

.bp-mono {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.bp-eyebrow {
  display: block;
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.bp-eyebrow.is-light { color: rgba(255, 255, 255, 0.78); }

/* Light variants for use on dark backgrounds */
.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: #fff; }
.bp-lead.is-light  { color: rgba(255, 255, 255, 0.88); }
.bp-body.is-light  { color: rgba(255, 255, 255, 0.92); }
.bp-small.is-light { color: rgba(255, 255, 255, 0.7); }
.bp-mono.is-light  { color: rgba(255, 255, 255, 0.78); }

/* Backwards-compat: pages still using .bp-title */
.bp-title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.9;
  color: var(--ink);
  margin: 0 0 32px;
}
.bp-title.is-light { color: #fff; }
.bp-title.is-center { text-align: center; }

/* Override page-level h1/h2 weight to brandbook 900 */
:where(body.bp-landing) :is(.display, .section-title, .bp-title, .hero h1, .hero h2, .bp-section h2) {
  font-family: var(--ff-display);
  font-weight: 900;
  letter-spacing: -0.01em;
}

/* =================================================================
 * SCAFFOLDING — rules, section heads (Brandbook section 05)
 * ================================================================= */

.bp-rule          { height: 1.5px; background: var(--ink); border: 0; margin: 0; opacity: 0.85; }
.bp-rule--2       { height: 2px;   background: var(--ink); border: 0; margin: 0; }
.bp-rule--dashed  { border-top: 1px dashed var(--ink); height: 0; margin: 0; opacity: 0.45; }
.bp-rule.is-light          { background: rgba(255,255,255,0.65); }
.bp-rule--dashed.is-light  { border-top-color: rgba(255,255,255,0.45); }

.bp-section {
  padding: 80px 0;
  position: relative;
}
.bp-section.is-paper { background: var(--paper); }
.bp-section.is-paper-2 { background: var(--paper-2); }
.bp-section.is-white { background: #fff; }
.bp-section.is-blue {
  background: var(--blue);
  color: #fff;
}
.bp-section.is-ink {
  background: var(--ink);
  color: var(--paper);
}
.bp-section.is-blue h2,
.bp-section.is-blue p,
.bp-section.is-ink h2,
.bp-section.is-ink p { color: inherit; }

/* Section header: number + title (left) | meta (right) */
.bp-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1.5px solid var(--ink);
}
.bp-section.is-blue .bp-section__head,
.bp-section.is-ink  .bp-section__head { border-bottom-color: rgba(255,255,255,0.65); }

.bp-section__num {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.bp-section.is-blue .bp-section__num,
.bp-section.is-ink  .bp-section__num { color: rgba(255,255,255,0.78); }

.bp-section__meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.bp-section.is-blue .bp-section__meta,
.bp-section.is-ink  .bp-section__meta { color: rgba(255,255,255,0.78); }

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

/* =================================================================
 * BUTTONS — square 1.5px border, brandbook 06
 * ================================================================= */

.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  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);
  opacity: 1;
}

.bp-btn--primary {
  background: var(--blue);
  color: var(--paper);
  border-color: var(--blue);
}
.bp-btn--primary:hover {
  background: var(--blue-ink);
  border-color: var(--blue-ink);
  color: var(--paper);
}

.bp-btn--accent,
.bp-btn--green {
  background: var(--green);
  color: var(--paper);
  border-color: var(--ink);
}
.bp-btn--accent:hover,
.bp-btn--green:hover {
  background: var(--green-deep);
  color: var(--paper);
}

.bp-btn--secondary,
.bp-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.bp-btn--secondary:hover,
.bp-btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.bp-btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.bp-btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border-color: #fff;
}

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

/* =================================================================
 * BADGES — mono caps, 1px border, brandbook 06
 * ================================================================= */

.bp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 5px 9px;
  background: transparent;
  color: var(--ink);
}
.bp-badge--solid { background: var(--ink); color: var(--paper); }
.bp-badge--blue  { background: var(--blue); color: var(--paper); border-color: var(--blue); }
.bp-badge--green { background: var(--green); color: var(--paper); border-color: var(--green); }
.bp-badge--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}

/* =================================================================
 * META ROWS — k/v with dashed borders (brandbook 06)
 * ================================================================= */

.bp-meta-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px dashed var(--ink);
  align-items: baseline;
}
.bp-meta-row:last-child { border-bottom: 1px dashed var(--ink); }
.bp-meta-row .k {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bp-meta-row .v {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.1;
}
.bp-meta-row.is-light { border-top-color: rgba(255,255,255,0.45); }
.bp-meta-row.is-light:last-child { border-bottom-color: rgba(255,255,255,0.45); }
.bp-meta-row.is-light .k { color: rgba(255,255,255,0.78); }
.bp-meta-row.is-light .v { color: #fff; }

/* Meta-grid: 2-4 cells with shared dashed borders top+bottom */
.bp-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px dashed var(--ink);
  border-bottom: 1px dashed var(--ink);
  padding: 14px 0;
}
.bp-meta-grid .cell {
  padding: 0 16px;
  border-left: 1px dashed var(--ink);
}
.bp-meta-grid .cell:first-child { border-left: 0; padding-left: 0; }
.bp-meta-grid .cell .k {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
}
.bp-meta-grid .cell .v {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--ink);
  line-height: 1.05;
}
.bp-meta-grid.is-light {
  border-top-color: rgba(255,255,255,0.45);
  border-bottom-color: rgba(255,255,255,0.45);
}
.bp-meta-grid.is-light .cell { border-left-color: rgba(255,255,255,0.45); }
.bp-meta-grid.is-light .cell .k { color: rgba(255,255,255,0.78); }
.bp-meta-grid.is-light .cell .v { color: #fff; }
@media (max-width: 640px) {
  .bp-meta-grid { grid-template-columns: 1fr 1fr; }
  .bp-meta-grid .cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .bp-meta-grid .cell { padding: 8px 12px; }
}

/* =================================================================
 * CARDS — square 1.5px ink border, no radius (brandbook 06)
 * ================================================================= */

.bp-card {
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.bp-card:hover {
  transform: translateY(-2px);
}
.bp-section.is-paper .bp-card { background: var(--paper); }
.bp-section.is-paper-2 .bp-card { background: var(--paper); }
.bp-section.is-white .bp-card { background: var(--paper); }
.bp-section.is-blue .bp-card,
.bp-section.is-ink .bp-card {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}

.bp-card .bp-card__num {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bp-section.is-blue .bp-card .bp-card__num,
.bp-section.is-ink .bp-card .bp-card__num { color: rgba(255,255,255,0.78); }

.bp-card h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 28px);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}
.bp-section.is-blue .bp-card h3,
.bp-section.is-ink .bp-card h3 { color: #fff; }

.bp-card .bp-card__price {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--blue);
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}
.bp-section.is-blue .bp-card .bp-card__price,
.bp-section.is-ink .bp-card .bp-card__price { color: var(--green-tint); }

.bp-card p {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}
.bp-section.is-blue .bp-card p,
.bp-section.is-ink .bp-card p { color: rgba(255,255,255,0.85); }

.bp-card .bp-card__sub {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 14px 0 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--ink-soft);
  font-weight: 600;
}
.bp-section.is-blue .bp-card .bp-card__sub,
.bp-section.is-ink .bp-card .bp-card__sub {
  color: #fff;
  border-top-color: rgba(255,255,255,0.45);
}

/* === Train card variant — 72px num column + body === */
.bp-train-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 0;
  transition: transform 0.18s ease;
}
.bp-train-card:hover { transform: translateY(-2px); }
.bp-train-card.is-done {
  background: var(--ink);
  color: var(--paper);
}
.bp-train-card .num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 44px;
  border-right: 1.5px solid currentColor;
  padding: 16px 0;
}
.bp-train-card.is-done .num { color: var(--paper); }
.bp-train-card .body {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-train-card .tag {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.7;
}
.bp-train-card .ttl {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1.05;
  color: currentColor;
}
.bp-train-card .price {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 16px;
  color: var(--blue);
  text-transform: none;
}
.bp-train-card.is-done .price { color: var(--green); }
.bp-train-card .sub {
  font-family: var(--ff-body);
  font-size: 13px;
  color: currentColor;
  opacity: 0.78;
  line-height: 1.45;
}

/* === Grid presets === */
.bp-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.bp-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.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;
}

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

.bp-p1-ribbon {
  background: var(--blue);
  color: #fff;
  padding: 32px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.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: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 700;
}
.bp-p1-ribbon p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
  text-align: left;
}
.bp-p1-ribbon p strong { font-weight: 700; }
@media (max-width: 768px) {
  .bp-p1-ribbon .bp-p1-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }
}

/* =================================================================
 * FAQ — details/summary (brandbook compatible)
 * ================================================================= */

.bp-faq {
  max-width: 820px;
}
.bp-faq details {
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 22px 26px;
  margin-bottom: 12px;
}
.bp-section.is-paper .bp-faq details,
.bp-section.is-paper-2 .bp-faq details { background: var(--paper); }
.bp-faq summary {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(15px, 1.6vw, 18px);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary::after {
  content: '+';
  font-size: 22px;
  font-family: var(--ff-display);
  color: var(--blue);
  font-weight: 400;
  flex: 0 0 auto;
}
.bp-faq details[open] summary::after { content: '−'; }
.bp-faq details > *:not(summary) {
  padding-top: 14px;
  font-family: var(--ff-body);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* =================================================================
 * CLUBS STRIP — «Наши клубы — это» editorial photo slider
 * ================================================================= */

.bp-clubs-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bp-clubs-strip__item {
  border: 1.5px solid var(--ink);
  background: #fff;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.bp-clubs-strip__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-bottom: 1.5px solid var(--ink);
}
.bp-clubs-strip__item figcaption {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-clubs-strip__item figcaption .bp-display--md {
  margin: 4px 0 8px;
}
.bp-clubs-strip__item figcaption p {
  margin: 0;
}
@media (max-width: 768px) {
  .bp-clubs-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bp-clubs-strip__item img {
    aspect-ratio: 16 / 10;
  }
}

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

.bp-slogan-band {
  background: #fff;
  padding: 100px 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.bp-slogan-band .bp-slogan-text {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(24px, 4vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 1040px;
  color: var(--ink);
  margin: 0;
}

/* =================================================================
 * COACH GRID — passport style
 * ================================================================= */

.bp-coaches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.bp-coach {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
}
.bp-section.is-paper .bp-coach,
.bp-section.is-paper-2 .bp-coach { background: #fff; }
.bp-coach img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  background: var(--paper-2);
  border-bottom: 1.5px solid var(--ink);
}
.bp-coach__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.bp-coach__tag {
  font-family: var(--ff-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bp-coach h3 {
  font-family: var(--ff-display);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: var(--ink);
  margin: 4px 0 0;
}
.bp-coach .bp-coach__level {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 2px;
}
.bp-coach p {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* =================================================================
 * STAMP — round 140px, 2.5px stamp-red border, rotate -8°
 * ================================================================= */

.bp-stamp {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2.5px solid var(--stamp-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stamp-red);
  font-family: var(--ff-display);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: 0.9;
  font-size: 18px;
  letter-spacing: 0.02em;
  transform: rotate(-8deg);
  padding: 18px;
  background: transparent;
  flex-shrink: 0;
}
.bp-stamp.is-on-image {
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(4px);
}
.bp-stamp--sm {
  width: 100px;
  height: 100px;
  font-size: 12px;
  padding: 12px;
}

/* =================================================================
 * BULLET LIST — display num + dashed bottom (brandbook 06)
 * ================================================================= */

.bp-bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bp-bullet-list li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--ink);
  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: 900;
  font-size: 22px;
  color: var(--ink);
}
.bp-bullet-list li > span:not(.n) {
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

/* =================================================================
 * TAB PILLS (brandbook .tab-pill)
 * ================================================================= */

.bp-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bp-tab-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--ff-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 9px 16px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.bp-tab-pill:hover { background: var(--paper-2); }
.bp-tab-pill.is-on,
.bp-tab-pill[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* =================================================================
 * HERO — image background with editorial overlay
 * ================================================================= */

.bp-hero {
  background: var(--paper);
  padding: 56px 0 72px;
  text-align: left;
  position: relative;
  border-bottom: 1.5px solid var(--ink);
}

.bp-hero__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 36px;
}
.bp-hero--image .bp-hero__topbar {
  color: rgba(255,255,255,0.85);
  border-bottom-color: rgba(255,255,255,0.65);
}

.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(40px, 8.5vw, 120px);
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}

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

.bp-hero__h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--ink);
  text-wrap: balance;
}
.bp-hero--image .bp-hero__h2 { color: #fff; }

.bp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

/* === Image-backed variant === */
.bp-hero--image {
  padding: 56px 0 64px;
  background-color: var(--blue-ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  border-bottom-color: var(--ink);
}
.bp-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 46, 94, 0.62) 0%,
    rgba(4, 65, 132, 0.68) 50%,
    rgba(3, 46, 94, 0.85) 100%
  );
  z-index: 0;
}
.bp-hero--image > * { position: relative; z-index: 1; }
.bp-hero--image .bp-hero__title { color: #fff; }
.bp-hero--image .bp-lead         { color: rgba(255,255,255,0.92); }

/* =================================================================
 * MOTION — 3 keyframes (brandbook 08)
 * ================================================================= */

@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; }
}

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

@media (max-width: 768px) {
  .bp-section { padding: 56px 0; }
  .bp-section__head { margin-bottom: 28px; padding-bottom: 18px; }
  .bp-card { padding: 22px; }
  .bp-train-card { grid-template-columns: 60px 1fr; }
  .bp-train-card .num { font-size: 32px; }
  .bp-train-card .body { padding: 14px 18px; }
  .bp-stamp { width: 110px; height: 110px; font-size: 14px; padding: 14px; }
}

/* === 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)
 *
 * Markup pattern:
 *   <form class="bp-lead-form" data-bp-form="hero|main|...">
 *     <div class="bp-lead-form__row">
 *       <label class="bp-lead-form__field"><span>Имя</span><input name="name" required></label>
 *       <label class="bp-lead-form__field"><span>Телефон</span><input name="phone" type="tel" required></label>
 *     </div>
 *     <label class="bp-lead-form__field"><span>Сообщение</span><textarea name="message"></textarea></label>
 *     <button type="submit" class="bp-btn bp-btn--green">Отправить заявку</button>
 *     <p class="bp-lead-form__result" data-bp-lead-result></p>
 *   </form>
 *
 * Add `.bp-lead-form--on-blue` for placement on the dark blue contact section.
 * ================================================================= */

.bp-lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1.5px solid var(--ink);
  background: #fff;
  padding: 28px;
}
.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-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bp-lead-form input,
.bp-lead-form textarea,
.bp-lead-form select {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  /* 16px is the iOS Safari zoom threshold — anything smaller triggers
   * automatic zoom-on-focus, which leaves the viewport zoomed and
   * horizontally scrollable. Keep ≥16px on all touch-target inputs. */
  font-size: 16px;
  line-height: 1.4;
  border-radius: 0;
  box-sizing: border-box;
}
.bp-lead-form input:focus,
.bp-lead-form textarea:focus,
.bp-lead-form select:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1.5px;
}
.bp-lead-form textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--ff-body);
}
.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-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bp-lead-form__result[data-state="ok"]    { color: var(--green-deep); }
.bp-lead-form__result[data-state="error"] { color: var(--stamp-red); }
.bp-lead-form__result[data-state="pending"] { color: var(--ink-soft); }

/* On-blue variant (for placement inside .bp-section.is-blue) */
.bp-lead-form--on-blue {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.65);
}
.bp-lead-form--on-blue .bp-lead-form__field > span { color: rgba(255, 255, 255, 0.78); }
.bp-lead-form--on-blue input,
.bp-lead-form--on-blue textarea,
.bp-lead-form--on-blue select {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.bp-lead-form--on-blue input::placeholder,
.bp-lead-form--on-blue textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.bp-lead-form--on-blue input:focus,
.bp-lead-form--on-blue textarea:focus,
.bp-lead-form--on-blue select:focus { outline-color: #fff; }
.bp-lead-form--on-blue .bp-lead-form__result { color: rgba(255, 255, 255, 0.78); }
.bp-lead-form--on-blue .bp-lead-form__result[data-state="ok"]    { color: #bbf7d0; }
.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: 20px; }
}

/* =================================================================
 * RESPONSIVE LAYOUT UTILITIES
 *
 * .bp-split — двухколоночный ряд (текст + карта, список + форма, фича + контент).
 *             На <=768px коллапсится в одну колонку.
 *
 * .bp-gallery-strip — сетка изображений 3/4-up на десктопе, 2-up на планшете,
 *                     1-up на телефоне. Без скруглений, паддинг 4px.
 * ================================================================= */

.bp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.bp-split--feature {
  /* Big visual / number + content. Centered on desktop. */
  grid-template-columns: minmax(0, auto) 1fr;
  align-items: center;
  gap: 56px;
}
.bp-split--asym {
  /* Slightly wider left column. */
  grid-template-columns: 1.1fr 1fr;
}
.bp-split--court {
  /* Fixed-width SVG diagram + content (e.g. court diagram on /turniry). */
  grid-template-columns: 280px 1fr;
  gap: 56px;
}
.bp-split--centered {
  /* Single centered column (used for forms / single-card layouts). */
  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: 4px;
  padding: 0 4px;
}
.bp-gallery-strip--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
  .bp-gallery-strip,
  .bp-gallery-strip--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .bp-gallery-strip,
  .bp-gallery-strip--3 { grid-template-columns: 1fr; }
}

/* Section meta на средних экранах позволить переноc, чтобы длинная мета не
 * прокручивала секцию по горизонтали (collapse to column уже на 640px). */
@media (max-width: 768px) {
  .bp-section__meta { white-space: normal; }
}

/* Контактная meta-row на узких экранах — k-колонка не должна занимать треть. */
@media (max-width: 480px) {
  .bp-meta-row { grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; }
}

/* =================================================================
 * LEGAL PAGES — long-form text content (offer / rules / privacy / cookies /
 * user-agreement / delete-account / findjob).
 *
 * Wrap all body copy in <div class="bp-legal-content"> to inherit
 * brandbook typography: display headings, dashed-rule separators between H2,
 * justified body text in PP Mori at 15/1.6.
 * ================================================================= */

.bp-legal-content {
  max-width: 820px;
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.bp-legal-content h1,
.bp-legal-content h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: var(--ink);
  margin: 56px 0 20px;
  padding-top: 32px;
  border-top: 1px dashed var(--ink);
  font-size: clamp(22px, 3vw, 32px);
}
.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: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.1;
  color: var(--blue);
  margin: 32px 0 12px;
  font-size: 18px;
}
.bp-legal-content h4 {
  font-family: var(--ff-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--ink-soft);
  margin: 24px 0 8px;
}
.bp-legal-content p {
  margin: 0 0 16px;
  text-align: left;
}
.bp-legal-content strong { font-weight: 600; }
.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.55;
}
.bp-legal-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(4,65,132,0.4);
}
.bp-legal-content a:hover {
  text-decoration-color: var(--blue);
}
.bp-legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
.bp-legal-content table th,
.bp-legal-content table td {
  border: 1px dashed var(--ink);
  padding: 10px 14px;
  text-align: left;
}
.bp-legal-content table th {
  font-family: var(--ff-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  background: var(--paper);
}

/* Legal page hero: compact editorial (no image bg) */
.bp-legal-hero {
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
  padding: 48px 0 56px;
}
.bp-legal-hero .bp-hero__topbar {
  margin-bottom: 28px;
}
.bp-legal-hero h1 {
  font-family: var(--ff-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--ink);
  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: 1.5px solid var(--ink);
}
.bp-related__title {
  font-family: var(--ff-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.96;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--ink);
  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: 13px;
  color: var(--ink-soft);
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bp-related-card__cta {
  margin-top: auto;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
  border-top: 1.5px dashed var(--ink);
  padding-top: 12px;
}
.bp-related-card:hover .bp-related-card__cta {
  color: var(--ink);
}
@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: 1.5px solid var(--ink);
}
.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-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.bp-related-posts__index:hover { color: var(--ink); }
.bp-related-post {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.bp-related-post:hover { color: inherit; }
.bp-related-post:hover .bp-related-post__cta { color: var(--ink); }
.bp-related-post__cat {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bp-related-post__title {
  font-family: var(--ff-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.02;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink);
  margin: 0;
}
.bp-related-post__lead {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.bp-related-post__cta {
  margin-top: auto;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
  border-top: 1.5px dashed var(--ink);
  padding-top: 10px;
}
@media (max-width: 640px) {
  .bp-related-posts { gap: 12px; }
  .bp-related-post { padding: 16px 16px 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: 8px 14px;
  border: 1.5px solid var(--ink);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
}
.bp-cat-list a:hover { background: var(--ink); color: var(--paper); }

/* --- 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(--ink);
  padding: 28px;
  font-family: var(--ff-body);
  color: var(--ink-soft);
  text-align: center;
  font-size: 15px;
}
.bp-post-list__placeholder a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.bp-post-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  min-height: 320px;
}
.bp-post-card:hover { color: inherit; opacity: 1; }
.bp-post-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
}
.bp-post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bp-post-card__body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.bp-post-card__cat {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bp-post-card__title {
  font-family: var(--ff-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  margin: 4px 0 0;
}
.bp-post-card__lead {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
}
.bp-post-card__meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px dashed var(--ink);
  padding-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Single post layout --- */
.bp-post {
  display: block;
  border-top: 1.5px solid var(--ink);
  background: var(--paper);
}
.bp-post__head {
  padding: 56px 0 32px;
  border-bottom: 1px dashed var(--ink);
}
.bp-post__crumbs {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.bp-post__crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.bp-post__crumbs a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.bp-post__cat {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 4px 10px;
  margin-bottom: 18px;
}
.bp-post__title {
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 18px;
  text-wrap: balance;
}
.bp-post__lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--ink);
}
.bp-post__meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bp-post__meta a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.bp-post__meta a:hover { color: var(--ink); }

.bp-post__hero {
  margin: 0;
  border-bottom: 1.5px solid var(--ink);
}
.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: 780px; }
.bp-post__intro {
  font-family: var(--ff-body);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 18px;
  margin: 0 0 32px;
}
.bp-post__body h2 {
  font-family: var(--ff-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  margin: 40px 0 14px;
}
.bp-post__body h3 {
  font-family: var(--ff-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.05;
  font-size: 18px;
  color: var(--blue);
  margin: 28px 0 10px;
}
.bp-post__body p { margin: 0 0 16px; line-height: 1.65; font-size: 16px; }
.bp-post__body ul,
.bp-post__body ol {
  margin: 0 0 20px;
  padding-left: 22px;
  line-height: 1.6;
}
.bp-post__body li { margin-bottom: 8px; }
.bp-post__body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(4, 65, 132, 0.45);
}
.bp-post__body a:hover { text-decoration-color: var(--blue); }
.bp-post__body img,
.bp-post__body figure {
  margin: 24px 0;
  max-width: 100%;
}
.bp-post__body blockquote {
  border-left: 3px solid var(--ink);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
  font-family: var(--ff-display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.05;
  color: var(--ink);
}
.bp-post__body code {
  font-family: var(--ff-mono);
  font-size: 13px;
  background: rgba(4, 65, 132, 0.08);
  padding: 1px 6px;
}

.bp-post__author {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  margin: 56px 0 0;
  padding: 24px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.bp-post__author img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid var(--ink);
}
.bp-post__author-name {
  font-family: var(--ff-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 4px;
}
.bp-post__author-role {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.bp-post__author-bio { font-size: 14px; line-height: 1.5; color: var(--ink); 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: 1.5px solid var(--ink);
  padding-top: 56px;
  padding-bottom: 56px;
}
.bp-section--cta .bp-section__num,
.bp-section--cta .bp-section__meta { color: var(--paper); opacity: 0.7; }
.bp-section--cta .bp-display { color: var(--paper); }
.bp-section--cta .bp-lead { color: var(--paper); }
.bp-section--cta.is-blue {
  background: var(--blue);
  color: var(--paper);
}
.bp-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.bp-lead-form--card {
  background: var(--paper);
  color: var(--ink);
  padding: 24px;
  border: 1.5px solid var(--ink);
  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-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.bp-lead-form--card .bp-field input,
.bp-lead-form--card .bp-field textarea {
  font-family: var(--ff-body);
  font-size: 15px;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.bp-lead-form--card .bp-field input:focus,
.bp-lead-form--card .bp-field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.bp-lead-form__legal {
  margin: 4px 0 0;
  color: var(--ink-soft);
}
.bp-lead-form__legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
