/* CF BAZA — публичный сайт. Цвета с оригинального cf-baza.ru, акцент берётся из админки (--accent). */
:root {
  --bg: #292929;
  --bg-deep: #1F1F1F;
  --card: #333333;
  --line: #444444;
  --text: #FFFFFF;
  --muted: #DBDBDB;
  --dim: #A6A6A6;
  --ink: #292929;
  --paper: #FFFFFF;
  --paper-card: #F4F4F4;
  --paper-muted: #4A4A4A;
  --accent: #FECC00;
  --radius: 8px;
  --wrap: 1280px;
  --pad-x: 16px;
  --sec-y: clamp(64px, 9vw, 112px);
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; margin: 0; line-height: 1.02; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--sec-y) 0; }
.light { background: var(--paper); color: var(--ink); }
.deep { background: var(--bg-deep); border-top: 1px solid #3A3A3A; border-bottom: 1px solid #3A3A3A; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.h2 { font-size: clamp(32px, 4.4vw, 60px); }
.h2-big { font-size: clamp(34px, 5vw, 72px); line-height: 1; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head > h2 { flex: 1 1 520px; }
.sec-head > p { flex: 1 1 320px; max-width: 420px; color: var(--muted); }
.light .sec-head > p { color: var(--paper-muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--ink); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 50px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-white { background: #FFFFFF; color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.pill { display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--accent); padding: 4px 12px; border-radius: 50px; white-space: nowrap; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: rgba(31,31,31,.95); backdrop-filter: blur(6px); border-bottom: 1px solid #3A3A3A; }
.header-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; min-height: 48px; }
.logo img { height: clamp(20px, 2.4vw, 34px); width: auto; }
.nav { order: 1; flex: 1 1 560px; min-width: 0; display: flex; justify-content: center; gap: 22px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-weight: 600; font-size: 15px; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; padding: 10px 0; color: var(--text); }
.nav a:hover { color: var(--accent); }
.header-cta { order: 2; display: flex; align-items: center; gap: 8px; }
.call { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #5A5A5A; color: var(--text); }
.call:hover { border-color: var(--accent); color: var(--accent); }
.header .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (max-width: 440px) {
  .logo img { height: 18px; }
  .header .btn { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 920px) {
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; gap: 20px; margin: 0 calc(-1 * var(--pad-x)); padding: 0 var(--pad-x); border-top: 1px solid #333; }
}

/* Первый экран */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid #3A3A3A; background: var(--bg-deep); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.88) 0%, rgba(20,20,20,.66) 50%, rgba(20,20,20,.35) 100%); }
@media (max-width: 640px) { .hero-bg { background-position: 30% top; } .hero-bg::after { background: rgba(20,20,20,.72); } }
.hero-in { position: relative; padding-top: clamp(40px, 7vh, 96px); padding-bottom: clamp(44px, 8vh, 110px); }
.hero h1 { font-size: clamp(32px, min(6.2vw, 10.5vh), 96px); line-height: 1; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1 span { display: block; }
.hero h1 span { color: var(--accent); }
.hero-text { margin-top: clamp(16px, 3vh, 28px); max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 4vh, 36px); }
.hero-actions .btn-accent { flex: 1 1 240px; max-width: 320px; }
.hero-actions .btn-white { flex: 1 1 160px; max-width: 220px; }

/* Цифры */
.facts { background: var(--accent); color: var(--ink); }
.facts-in { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.fact { flex: 1 1 140px; }
.fact b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.fact span { display: block; font-weight: 700; font-size: 14px; margin-top: 6px; }

/* Карточки */
.cards { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.card { flex: 1 1 260px; background: var(--paper-card); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.card h3 { font-size: 26px; margin: 18px 0 8px; font-weight: 600; }
.card p { color: var(--paper-muted); }

/* Зачем */
.why { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.why > div { flex: 1 1 420px; min-width: 0; }
.why h2 { margin-bottom: 32px; }
.why-item { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item .n { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--accent); }
.why-item b { display: block; font-size: 18px; }
.why-item p { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery figure, .gallery .gal-ph { display: block; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); aspect-ratio: 4 / 3; }
.gallery figure:first-child, .gallery .gal-ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.equip { margin-top: 14px; color: var(--muted); font-size: 15px; }
.equip-solo { margin-top: 24px; padding: 24px; border-radius: var(--radius); background: var(--card); color: var(--muted); }

/* Расписание */
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.dot-group { background: #FFFFFF; }
.dot-teen { border: 2px solid #FFFFFF; }
.dot-race, .dot-special { background: var(--accent); }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.day { flex: 1 1 150px; background: var(--bg); border-radius: var(--radius); padding: 16px 14px; }
.day h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.slot { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-size: 14px; border-radius: 50px; white-space: nowrap; padding: 6px 12px; }
.slot-group { background: #FFFFFF; color: var(--ink); }
.slot-teen { border: 2px solid #FFFFFF; padding: 4px 10px; }
.slot-race, .slot-special { background: var(--accent); color: var(--ink); }
.day-off { color: var(--dim); font-size: 15px; }
.note { margin-top: 24px; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; gap: 6px; }

/* Тренеры */
.coach { flex: 1 1 280px; background: var(--paper-card); border-radius: var(--radius); overflow: hidden; }
.coach-photo { aspect-ratio: 4 / 4.4; background: #333; position: relative; overflow: hidden; }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.coach-photo .initial { position: absolute; top: 12px; left: 18px; font-family: var(--display); font-weight: 700; font-size: 130px; line-height: 1; color: #3E3E3E; }
.coach-body { padding: clamp(20px, 3vw, 28px); }
.coach h3 { font-size: 26px; font-weight: 600; }
.coach .sub { margin: 6px 0 16px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #5A5A5A; }
.coach ul { margin: 0; padding-left: 18px; color: var(--paper-muted); display: flex; flex-direction: column; gap: 6px; }

/* Цены */
.plans { display: flex; flex-wrap: wrap; gap: 16px 12px; align-items: stretch; }
.plan { flex: 1 1 240px; background: var(--card); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; position: relative; border: 2px solid transparent; }
.plan.featured { border-color: var(--accent); }
.plan .pill { position: absolute; top: -13px; left: 24px; }
.plan-name { font-weight: 700; font-size: 18px; }
.plan-price b { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 4vw, 52px); }
.plan-price span { color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; color: var(--muted); flex-grow: 1; display: flex; flex-direction: column; gap: 6px; }
.plan .btn { width: 100%; }
.extras { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.extra { background: var(--card); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.extra-info { flex: 1 1 340px; min-width: 0; }
.extra-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.extra-title h3 { font-size: 28px; }
.extra-info p { margin-top: 8px; color: var(--muted); }
.extra-prices { flex: 1 1 300px; display: flex; gap: 12px; flex-wrap: wrap; }
.price-box { flex: 1 1 130px; background: var(--bg); border-radius: var(--radius); padding: 14px 18px; }
.price-box b { display: block; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.1; }
.price-box span { font-size: 14px; color: var(--muted); }

/* Отзывы */
.review { flex: 1 1 300px; margin: 0; background: var(--paper-card); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.review blockquote { margin: 0; font-size: 17px; flex-grow: 1; }
.review figcaption { font-weight: 700; }
.review figcaption span { font-weight: 400; color: #5A5A5A; }

/* FAQ */
.faq { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.faq > h2 { flex: 1 1 300px; }
.faq-list { flex: 2 1 520px; min-width: 0; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 26px; line-height: 1; transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); }

/* Контакты */
.contacts { background: var(--accent); color: var(--ink); }
.contacts-in { display: flex; flex-wrap: wrap; gap: 40px 56px; padding-top: var(--sec-y); padding-bottom: clamp(40px, 5vw, 56px); }
.contacts-info { flex: 1 1 400px; min-width: 0; }
.contacts-logo { width: clamp(240px, 28vw, 380px); height: auto; margin-bottom: 28px; }
.contacts h2 { font-size: clamp(40px, 6vw, 84px); line-height: .98; margin-bottom: 20px; }
.contacts-info > p { font-size: 18px; max-width: 460px; margin-bottom: 32px; }
.contacts dl { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.contacts dt { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contacts dd { margin: 4px 0 0; font-weight: 700; }
.contacts dd a { color: var(--ink); }
.socials { display: flex; gap: 20px; }
.socials a { padding: 10px 0; }
.form { flex: 1 1 360px; min-width: 0; background: var(--bg); color: var(--text); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.form h3 { font-size: 28px; font-weight: 600; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.form input, .form select { min-height: 52px; width: 100%; padding: 0 20px; border-radius: 50px; background: var(--card); border: 1px solid #555; color: var(--text); font: inherit; font-weight: 400; font-size: 17px; }
.form select { padding: 0 16px; }
.form input:focus, .form select:focus { border-color: var(--accent); outline: none; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 13px; color: var(--dim); }
.form .check input { width: 20px; min-height: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.form .check a { color: var(--muted); }
.form .btn { width: 100%; min-height: 56px; font-size: 17px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { border-radius: var(--radius); padding: 14px 16px; font-weight: 600; }
.form-msg.ok { background: #20391F; color: #CFF5C8; }
.form-msg.error { background: #4A1F1F; color: #FFD6D6; }
.map { padding-bottom: clamp(40px, 5vw, 64px); }
.map iframe { width: 100%; height: clamp(220px, 20vw, 280px); border: 0; border-radius: var(--radius); display: block; background: var(--bg); }

/* Подвал */
.footer { background: var(--bg-deep); border-top: 1px solid #3A3A3A; }
.footer-in { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.footer img { height: 40px; width: auto; }
.footer a { color: var(--muted); }

/* Плавающая кнопка на телефоне */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; gap: 8px; transition: transform .25s ease, opacity .25s ease; }
  .sticky-cta .btn { flex: 1; min-height: 52px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
  .sticky-cta .call { background: var(--bg); width: 52px; height: 52px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
  .sticky-cta.hide { transform: translateY(120%); opacity: 0; pointer-events: none; }
  .footer-in { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .sticky-cta, .faq summary::after { transition: none; }
}

@media (max-width: 440px) {
  .hero-actions .btn-accent, .hero-actions .btn-white { flex-basis: 100%; max-width: none; }
}

/* Документы: политика, согласие, реквизиты */
.doc { max-width: 860px; }
.doc .h2 { margin-bottom: 20px; }
.doc h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 32px 0 12px; text-transform: none; font-weight: 600; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc-intro { font-size: 15px; color: var(--dim) !important; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 40px !important; }
.doc-nav a:not(.btn) { color: var(--text); }
.req { margin: 0; display: grid; gap: 0; }
.req > div { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.req > div:last-child { border-bottom: 1px solid var(--line); }
.req dt { color: var(--dim); font-size: 15px; }
.req dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 520px) { .req > div { grid-template-columns: 1fr; gap: 2px; } }

/* Подвал: юридическая строка */
.footer-legal { padding-bottom: 28px; font-size: 13px; color: var(--dim); }
.footer-legal p { margin: 0 0 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--muted); }

/* Уведомление о cookie */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; max-width: 720px; margin: 0 auto; background: #1F1F1F; border: 1px solid #444; border-radius: var(--radius); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 320px; font-size: 14px; color: var(--muted); }
.cookie a { color: var(--text); }
.cookie .btn { min-height: 44px; }

/* Турниры */
.events { position: relative; overflow: hidden; }
.events::before { content: ''; position: absolute; inset: 0 auto auto 0; width: 6px; height: 100%; background: var(--accent); }
.ev-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ev-intro h2 span { display: block; color: var(--accent); }
.ev-lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); margin: 22px 0 0; max-width: 560px; }

.ev-tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ev-tags li { border: 1px solid #4A4A4A; border-radius: 50px; padding: 7px 16px; font-size: 14px; font-weight: 600; }
.ev-tags li::before { content: '★'; color: var(--accent); margin-right: 8px; }
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev-ph { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg); }
.ev-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease, filter .35s ease; filter: saturate(.9); }
.ev-ph:hover img { transform: scale(1.06); filter: saturate(1.1); }
.ev-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 5vw, 60px); }
.ev-pillar { background: var(--bg); border-radius: var(--radius); padding: 22px 22px 24px; border-top: 3px solid var(--accent); }
.ev-num { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; color: var(--accent); }
.ev-pillar h3 { font-size: 22px; margin: 12px 0 8px; text-transform: uppercase; }
.ev-pillar p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 980px) {
  .ev-top { grid-template-columns: 1fr; }
  .ev-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ev-pillars { grid-template-columns: 1fr; gap: 10px; }
  .ev-pillar { padding: 18px; }
}
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 12px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 8px; }
.lb p { margin: 0; color: #ddd; font-size: 15px; text-align: center; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lb .lb-x { top: 16px; right: 16px; }
.lb .lb-p { left: 12px; top: 50%; }
.lb .lb-n { right: 12px; top: 50%; }
.events .h2-big { font-size: clamp(32px, 3.7vw, 56px); }
.ev-grid.n7, .ev-grid.n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ev-grid.n7 .ev-ph:first-child { grid-column: span 2; aspect-ratio: auto; height: 0; min-height: 100%; }
@media (max-width: 560px) {
  .ev-grid.n7, .ev-grid.n8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-grid.n7 .ev-ph:first-child { aspect-ratio: 16 / 7; height: auto; min-height: 0; }
}

/* Пометки «красным карандашом» */
.pencil { background: url('/static/img/pencil-underline.svg') left 98% / 100% .4em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .12em; }
.sec-head.scribble > p { position: relative; padding: 36px 42px; margin-left: 24px; }
.sec-head.scribble > p::after { content: ''; position: absolute; inset: -4px -8px; background: url('/static/img/pencil-circle.svg') center / 100% 100% no-repeat; pointer-events: none; }
.pencil-arrow { position: absolute; left: -190px; top: -64px; width: 210px; height: 105px; background: url('/static/img/pencil-arrow.svg') center / contain no-repeat; pointer-events: none; }
@media (max-width: 860px) {
  .sec-head.scribble { gap: 84px; }
  .sec-head.scribble > p { margin-left: 0; margin-right: 6px; padding: 38px 34px; }
  .pencil-arrow { left: 52%; top: -76px; width: 130px; height: 65px; transform: rotate(52deg); }
}

/* Окно звонка */
.callbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.callbox[hidden] { display: none; }
.callbox-card { position: relative; width: 100%; max-width: 380px; background: var(--bg); color: var(--text); border-radius: 20px; padding: 32px 26px 24px; text-align: center; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); border-top: 4px solid var(--accent); animation: cbIn .2s ease; }
@keyframes cbIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.callbox-ic { width: 60px; height: 60px; margin: 0 auto 4px; border-radius: 50%; background: var(--accent); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.callbox-ic svg { width: 28px; height: 28px; }
.callbox-t { margin: 0; color: var(--muted); font-size: 15px; }
.callbox-num { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 8vw, 34px); color: var(--text); text-decoration: none; letter-spacing: .01em; line-height: 1.1; }
.callbox-h { margin: -4px 0 6px; font-size: 14px; color: var(--muted); }
.callbox-go, .callbox-copy { width: 100%; }
.callbox-form { color: var(--muted); font-size: 14px; margin-top: 2px; }
.callbox-x { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: var(--text); font-size: 24px; cursor: pointer; line-height: 1; }

/* Турниры: фото крупнее, под текстом */
.ev-top { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 44px); }
.ev-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(28px, 5vw, 80px); align-items: end; }
.ev-intro > .eyebrow, .ev-intro > h2 { grid-column: 1; }
.ev-intro > .ev-lead { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.ev-grid, .ev-grid.n7, .ev-grid.n8 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ev-grid.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .ev-intro { grid-template-columns: 1fr; }
  .ev-intro > .ev-lead { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .ev-grid, .ev-grid.n6, .ev-grid.n7, .ev-grid.n8 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .ev-grid::-webkit-scrollbar { display: none; }
  .ev-grid .ev-ph, .ev-grid.n7 .ev-ph:first-child { flex: 0 0 82%; aspect-ratio: 4 / 3; height: auto; min-height: 0; scroll-snap-align: start; }
}

/* Отзывы: компактный раздел */
.reviews.section { padding: calc(var(--sec-y) / 2) 0; }
.reviews .h2 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: clamp(16px, 2vw, 24px); }
.reviews .cards { gap: 12px; }
.reviews .review { padding: 16px 18px; gap: 10px; flex-basis: 260px; }
.reviews .review blockquote { font-size: 15px; line-height: 1.5; }
.reviews .review figcaption { font-size: 14px; }

.gallery.n2 { grid-template-columns: 1fr; }
.gallery.n2 .gal-ph { aspect-ratio: 16 / 10; }
.gallery img { transition: transform .35s ease; }
.gallery .gal-ph:hover img { transform: scale(1.04); }

/* Последний абонемент, оставшийся один в ряду (например «Детский»), — широкой полосой */
@media (min-width: 900px) {
  .plans > .plan:last-child:nth-child(4n+1) { flex-basis: 100%; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 1.4fr) 240px; align-items: center; column-gap: 32px; row-gap: 4px; }
  .plans > .plan:last-child:nth-child(4n+1) .plan-name { grid-column: 1; grid-row: 1; }
  .plans > .plan:last-child:nth-child(4n+1) .plan-price { grid-column: 1; grid-row: 2; }
  .plans > .plan:last-child:nth-child(4n+1) ul { grid-column: 2; grid-row: 1 / span 2; }
  .plans > .plan:last-child:nth-child(4n+1) .btn { grid-column: 3; grid-row: 1 / span 2; }
}

/* Текст в обведённом карандашом блоке — «от руки», но читаемый */
.sec-head.scribble > p { font-family: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive; font-weight: 600; font-size: clamp(23px, 1.9vw, 27px); line-height: 1.25; color: #2A2A2A; letter-spacing: .01em; }

/* Ссылка «Программа тренировок» в шапке */
.prog-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 50px; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.prog-link:hover { background: var(--accent); color: var(--ink); }
.nav .nav-prog { color: var(--accent); }
@media (min-width: 1201px) { .nav .nav-prog { display: none; } }
@media (max-width: 1200px) { .prog-link { display: none; } }

/* Страница программы */
.prog-main { padding-top: clamp(28px, 4vw, 48px); }
.prog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.prog-head > div:first-child { flex: 1 1 420px; min-width: 0; }
.prog-lead { color: var(--muted); max-width: 620px; margin: 12px 0 0; }
.my-total { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 14px 18px; }
.my-total b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.my-total span { font-size: 13px; line-height: 1.3; color: var(--muted); }
.tracks { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 28px 0 0; padding-bottom: 4px; }
.tracks::-webkit-scrollbar { display: none; }
.track { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 50px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.track span { font-weight: 500; font-size: 13px; color: var(--muted); }
.track.on { background: var(--accent); color: var(--ink); }
.track.on span { color: var(--ink); opacity: .7; }
.track-about { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.pd-strip { position: sticky; top: 62px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 18px 0 8px; padding: 10px 0; background: var(--bg); }
.pd-strip::-webkit-scrollbar { display: none; }
.pd-chip { flex: none; display: flex; flex-direction: column; align-items: center; width: 48px; padding: 6px 0; border-radius: 12px; border: 1px solid #3A3A3A; color: var(--text); text-decoration: none; line-height: 1.15; }
.pd-chip span { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.pd-chip b { font-family: var(--display); font-size: 20px; }
.pd-chip.today { border-color: var(--accent); }
.pd-chip:hover { background: var(--card); }
.pday { scroll-margin-top: 140px; margin-top: 28px; }
.pday-h { font-size: clamp(22px, 2.6vw, 30px); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pday-wd { color: var(--accent); }
.wod { background: var(--card); border-radius: var(--radius); padding: clamp(18px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 18px; margin-bottom: 14px; }
.wod-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; }
.wb { min-width: 0; }
.wb h4 { font-family: var(--display); text-transform: uppercase; font-weight: 600; font-size: 18px; letter-spacing: .02em; color: var(--accent); margin: 0 0 8px; }
.wb ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wb li { font-size: 16px; line-height: 1.45; padding-left: 14px; position: relative; overflow-wrap: anywhere; }
.wb li::before { content: ''; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: #6A6A6A; }
.wb li.rest { color: var(--muted); font-style: italic; }
.wb li.rest::before { background: transparent; }
.wod-img img { display: block; max-width: 100%; max-height: 640px; border-radius: 10px; }
.wod-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; border-top: 1px solid #3A3A3A; padding-top: 14px; }
.done-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 50px; border: 1.5px solid #5A5A5A; background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.done-btn svg { opacity: .35; }
.done-btn:hover { border-color: var(--accent); }
.done-btn.on { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.done-btn.on svg { opacity: 1; }
.done-n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wod-author { margin-left: auto; font-size: 13px; color: var(--muted); }
.prog-empty { color: var(--muted); margin-top: 32px; }
.prog-more { margin-top: 28px; }
@media (max-width: 560px) { .wod-author { margin-left: 0; width: 100%; } .pd-strip { top: 104px; } }
@media (min-width: 1201px) and (max-width: 1500px) { .nav { gap: 16px; font-size: 14px; } .prog-link { padding: 0 14px; font-size: 14px; } .header .btn { padding: 0 14px; font-size: 14px; } }

/* Профиль атлета, результаты, рейтинг */
.ath-name { font-weight: 700; color: var(--accent); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.my-total { text-decoration: none; color: inherit; }
a.my-total u { color: var(--accent); text-decoration: none; }
.res-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.res-form input[name=result] { flex: 1 1 240px; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid #4A4A4A; background: var(--bg); color: var(--text); padding: 0 14px; font: inherit; font-size: 15px; }
.res-form .sc { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }
.res-form .btn { min-height: 44px; }
.res-form small { width: 100%; color: var(--muted); font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.wod-res summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: 15px; }
.wod-res ol { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.wod-res li { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.wod-res li span { min-width: 140px; }
.wod-res li i { font-size: 12px; color: var(--muted); font-style: normal; text-transform: uppercase; }
.wod-res li.me span { color: var(--accent); font-weight: 700; }
.login-card { max-width: 420px; text-align: left; }
.login-tabs { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 50px; }
.login-tabs button { flex: 1; min-height: 38px; border: 0; border-radius: 50px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.login-tabs button.on { background: var(--accent); color: var(--ink); }
.lf { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.lf input { min-height: 46px; border-radius: 10px; border: 1px solid #4A4A4A; background: var(--bg); color: var(--text); padding: 0 14px; font: inherit; font-size: 16px; }
.login-card .consent { display: flex; gap: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.login-card .consent a { color: var(--accent); }
.login-err { color: #FF8A7A; margin: 0; font-size: 14px; }
.rate-nav { display: flex; align-items: center; gap: 16px; margin: 24px 0 12px; }
.rate-nav b { font-family: var(--display); font-size: 24px; text-transform: uppercase; min-width: 180px; text-align: center; }
.rate { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.rate li { display: grid; grid-template-columns: 40px 1fr auto; gap: 4px 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 12px 16px; }
.rate .pos { font-family: var(--display); font-size: 20px; color: var(--muted); }
.rate li:nth-child(-n+3) .pos { color: var(--accent); }
.rate .nm { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.rate b { font-family: var(--display); font-size: 24px; color: var(--accent); font-variant-numeric: tabular-nums; }
.rate small { grid-column: 2 / 4; color: var(--muted); font-size: 12.5px; }
.rate small:empty { display: none; }
.rate li.me { outline: 2px solid var(--accent); }
@media (max-width: 560px) { .prog .header-cta .btn-accent { display: none; } }

/* Мои тренировки */
a.ath-name { text-decoration: none; }
a.ath-name:hover { text-decoration: underline; }
.my-total a { color: var(--text); }
.me-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 24px 0 8px; }
.me-stat { background: var(--card); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.me-stat b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.me-stat span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.me-month { font-size: 16px; color: var(--muted); letter-spacing: .06em; margin: 28px 0 10px; }
.me-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.me-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--card); border-radius: 12px; padding: 12px 16px; }
.me-d { font-size: 13px; color: var(--muted); line-height: 1.2; }
.me-d b { font-family: var(--display); font-size: 22px; color: var(--text); }
.me-w { min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.me-t { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: var(--accent); border-radius: 6px; padding: 1px 7px; margin-right: 8px; }
.me-r { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.me-r b { font-family: var(--display); font-size: 18px; }
.me-r small, .me-d small { color: var(--muted); font-size: 12px; }
.me-settings { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.me-pin { display: flex; flex-wrap: wrap; gap: 8px; }
.me-pin input { flex: 1 1 120px; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid #4A4A4A; background: var(--card); color: var(--text); font: inherit; }
@media (max-width: 520px) { .me-list li { grid-template-columns: 52px minmax(0, 1fr); } .me-r { grid-column: 2; align-items: flex-start; text-align: left; flex-direction: row; gap: 8px; } }
