/* ============================================================
   Портал пловца — дизайн-система
   Палитра: глубокая ночь + коралл + тёплая бумага
   ============================================================ */
:root {
  --ink: #0A1626;
  --ink-2: #12263A;
  --navy: #0E2A44;
  --navy-3: #12395C;
  --paper: #F6F8FB;
  --paper-2: #EDF3F8;
  --card: #FFFFFF;
  --line: #DEE9F2;
  --muted: #5C7488;
  --muted-2: #8298AB;
  --accent: #FF6A2B;
  --accent-2: #FF8A4C;
  --accent-soft: #FFF0E7;
  --teal: #14B8A6;
  --teal-soft: #E6FBF7;
  --warn: #E7A100;
  --bad: #DE4A5E;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -22px rgba(10, 22, 38, 0.35);
  --shadow-soft: 0 8px 24px -14px rgba(10, 22, 38, 0.25);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }

/* ---------- общие элементы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: -0.01em;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -12px rgba(255, 106, 43, .65); }
.btn-primary:hover { background: #FF5A13; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: #B9CDDC; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-xs { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-dark { background: var(--ink); color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #D9E8F5; font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.pill.small { font-size: 12px; padding: 6px 12px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,.18); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--paper-2); color: #27455F; font-size: 12.5px; font-weight: 700; }
.chip-ok { background: var(--teal-soft); color: #0C7C6E; }
.chip-soft { background: var(--accent-soft); color: #B4460C; }
.chip-line { background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }

.eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow.light { color: #FFB08C; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* ---------- шапка сайта ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 22, 38, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.logo-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), #FF9A5E); color: #fff; }
.logo-mark svg { width: 26px; height: 26px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 16px; letter-spacing: -0.01em; }
.logo-text small { font-size: 10.5px; color: #9EB6CA; letter-spacing: .06em; text-transform: uppercase; }
.header-nav { display: flex; gap: 22px; margin-left: auto; }
.header-nav a { color: #C7D8E6; font-size: 14px; font-weight: 600; }
.header-nav a:hover { color: #fff; }
.header-actions { display: flex; gap: 10px; }
.header-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.18); }
.header-actions .btn-ghost:hover { border-color: rgba(255,255,255,.5); }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 10px; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }
.mobile-nav { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 74px 0 86px; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px); background-size: 26px 26px; opacity: .25; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero-glow-a { width: 560px; height: 560px; right: -120px; top: -160px; background: #FF6A2B; opacity: .28; }
.hero-glow-b { width: 460px; height: 460px; left: -160px; bottom: -220px; background: #14B8A6; opacity: .18; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(42px, 5vw, 66px); margin: 22px 0 22px; }
.hero-copy h1 em { font-style: normal; color: var(--accent-2); }
.lead { color: #B9CEDF; font-size: 18px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin: 30px 0 34px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.hero-facts { display: flex; gap: 34px; list-style: none; padding: 0; margin: 0; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts b { font-family: var(--font-display); font-size: 26px; color: #fff; }
.hero-facts span { font-size: 12.5px; color: #8FA8BC; margin-top: 2px; }

.hero-card { position: relative; }
.plan-mock {
  background: linear-gradient(165deg, #FFFFFF, #F1F6FA);
  color: var(--ink); border-radius: 26px; padding: 26px; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.6);
}
.plan-mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.plan-mock-head small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.plan-mock-head strong { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.02em; }
.badge-soft { background: var(--accent-soft); color: #B4460C; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.plan-target { margin: 22px 0 18px; padding: 18px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; gap: 2px; }
.target-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #8FA8BC; font-weight: 700; }
.target-value { font-family: var(--font-display); font-size: 40px; letter-spacing: -0.03em; }
.target-note { font-size: 12px; color: #9FB7C9; }
.plan-rows { display: grid; gap: 8px; }
.plan-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.plan-row span { color: var(--muted); }
.plan-compare { margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--paper-2); }
.compare-title { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare-row { display: flex; justify-content: space-between; margin: 8px 0 6px; font-size: 14px; }
.compare-row b { font-size: 18px; }
.plan-compare p { color: var(--muted); font-size: 13px; }
.plan-compare em { color: var(--accent); font-style: normal; font-weight: 700; }

/* ---------- полоса методики ---------- */
.logos-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0; }
.logos-strip p { text-align: center; color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 14px; }
.strip-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 12px; }
.strip-items span { padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: #33506A; }

/* ---------- секции ---------- */
.section { padding: 92px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.feature-icon { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

.section-compare { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.compare-copy h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 16px; }
.compare-copy p { color: var(--muted); font-size: 16.5px; }
.compare-copy b { color: var(--ink); }
.check-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; font-size: 15px; color: #2A465C; font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-soft); color: #0C7C6E; font-size: 12px; display: grid; place-items: center; font-weight: 800; }
.compare-table { padding: 10px 24px 22px; }
.compare-table-head, .compare-tr { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.compare-table-head { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 800; }
.compare-tr span { color: var(--muted); }
.compare-tr b { font-family: var(--font-display); font-size: 17px; }
.compare-foot { color: var(--muted); font-size: 12.5px; margin-top: 16px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

.section-dark { background: var(--ink); color: #fff; }
.coach-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.coach-copy h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 16px; }
.coach-copy > p { color: #B9CEDF; font-size: 16.5px; }
.coach-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.coach-points b { display: block; font-family: var(--font-display); font-size: 20px; }
.coach-points span { color: #8FA8BC; font-size: 13px; }
.coach-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); box-shadow: none; padding: 10px 24px; }
.coach-row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.coach-row:last-child { border-bottom: 0; }
.coach-row span { color: #8FA8BC; }
.coach-row b { color: #fff; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 26px; display: flex; flex-direction: column; }
.price-card h3 { font-size: 18px; color: var(--muted); margin-bottom: 14px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.price b { font-family: var(--font-display); font-size: 38px; letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: 13px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; flex: 1; }
.price-card li { position: relative; padding-left: 26px; font-size: 14px; color: #2A465C; }
.price-card li::before { content: "•"; position: absolute; left: 6px; color: var(--accent); font-weight: 800; }
.price-card .btn { width: 100%; }
.price-card-hot { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--shadow); }
.price-card-hot h3 { color: #9EB6CA; }
.price-card-hot li { color: #D6E4F0; }
.price-card-hot li::before { color: var(--accent-2); }
.price-card-hot .btn-line { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.hot-badge { position: absolute; top: -12px; right: 22px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px; }
.pricing-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 22px; }

.section-faq { background: #fff; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq-copy h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 14px; }
.faq-copy p { color: var(--muted); margin-bottom: 22px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-list summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--font-display); font-size: 22px; color: var(--accent); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { color: var(--muted); font-size: 14.5px; margin-top: 12px; }

.cta-section { background: linear-gradient(120deg, #0E2A44, #12395C 60%, #1B4E74); color: #fff; padding: 74px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 10px; }
.cta-inner p { color: #B9CEDF; }
.cta-form { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-form input { padding: 16px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
  color: #fff; font-size: 15px; min-width: 220px; outline: none; }
.cta-form input::placeholder { color: #9FB7C9; }
.cta-form input:focus { border-color: rgba(255,255,255,.6); }

.site-footer { background: var(--ink); color: #8FA8BC; padding: 56px 0 22px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 13px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col a, .footer-col p { display: block; font-size: 13px; margin-bottom: 8px; color: #9EB6CA; }
.footer-col a:hover { color: #fff; }
.footer-small { color: #6F8CA2 !important; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; font-size: 12px; color: #6F8CA2; flex-wrap: wrap; gap: 10px; }

/* ============================================================
   КАБИНЕТ
   ============================================================ */
.app-body { background: var(--paper); }
.app-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.app-side { background: var(--ink); color: #fff; padding: 24px 18px; display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh; }
.app-logo { color: #fff; }
.app-nav { display: grid; gap: 4px; }
.app-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 12px; color: #C7D8E6; font-size: 14px; font-weight: 600; }
.app-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-nav a.active { background: rgba(255,106,43,.14); color: #fff; }
.app-nav a.active .nav-ico { color: var(--accent-2); }
.nav-ico { width: 18px; text-align: center; opacity: .85; }
.app-side-foot { margin-top: auto; display: grid; gap: 14px; }
.side-profile { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); }
.side-profile b { display: block; font-size: 13px; }
.side-profile small { color: #8FA8BC; font-size: 11px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(140deg, var(--accent), #FFA26A);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.app-side-foot .btn-line { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; }
.app-side-foot .btn-line:hover { border-color: rgba(255,255,255,.4); }

.app-main { padding: 34px 40px 54px; min-width: 0; }
.app-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.app-crumbs { color: var(--muted-2); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.app-top h1 { font-size: clamp(28px, 3vw, 38px); }
.app-sub { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.app-top-actions { display: flex; align-items: center; gap: 12px; }

.hero-app { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; padding: 26px 28px; margin-bottom: 26px;
  background: linear-gradient(150deg, #0E2A44, #12395C 55%, #1A4E77); color: #fff; border: 0; box-shadow: var(--shadow); }
.hero-app .pill { background: rgba(255,255,255,.1); }
.hero-app h2 { font-size: clamp(20px, 2.2vw, 28px); margin: 14px 0 18px; line-height: 1.25; }
.hero-app-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 16px; }
.hero-app-meta small { display: block; color: #8FA8BC; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 3px; }
.hero-app-meta b { font-size: 14.5px; }
.hero-app-targets { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-app .chip { background: rgba(255,255,255,.1); color: #E7F1FA; }
.hero-app-side { border-left: 1px solid rgba(255,255,255,.12); padding-left: 26px; display: grid; gap: 14px; align-content: center; }
.mini-block small { color: #8FA8BC; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.mini-block p { color: #D6E4F0; font-size: 13px; margin-top: 5px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.hero-app .btn-line { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }

.app-section { margin-bottom: 26px; }
.app-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.app-section-head h2 { font-size: 22px; }
.app-section-head p { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.week-tabs { display: flex; gap: 6px; background: #fff; padding: 5px; border-radius: 14px; border: 1px solid var(--line); }
.week-tab { border: 0; background: transparent; padding: 8px 13px; border-radius: 10px; font-weight: 700; font-size: 13px; color: var(--muted);
  display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.week-tab small { font-weight: 600; font-size: 10.5px; color: var(--muted-2); }
.week-tab.active { background: var(--ink); color: #fff; }
.week-tab.active small { color: #9EB6CA; }

.week-pane { display: none; }
.week-pane.active { display: block; }
.week-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13.5px; }
.session-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.workout-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .2s ease, transform .2s ease; }
.workout-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.workout-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.workout-day { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.zone-chip { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--paper-2); color: #27455F; }
.zone-V1 { background: #E8F6EE; color: #177A4A; }
.zone-V2 { background: #E6F3FB; color: #14648F; }
.zone-V3 { background: #EDEFFE; color: #3646A8; }
.zone-V4 { background: #F5ECFE; color: #6A3AA6; }
.zone-V5 { background: #FCEDF3; color: #A62C58; }
.zone-V6 { background: #FDEEE3; color: #B45510; }
.zone-V7 { background: #FDE7E7; color: #B62B2B; }
.zone-V1-V7, .zone-V3-V5, .zone-V2-V4, .zone-V1-V3, .zone-V5-V7, .zone-V3-V7, .zone-V2-V6 { background: #EEF6FF; color: #26517A; }
.workout-card h3 { font-size: 15px; line-height: 1.35; font-weight: 800; letter-spacing: -0.01em; }
.workout-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.workout-meta span { display: inline-flex; align-items: center; gap: 5px; }
.workout-meta span::before { content: "·"; color: var(--accent); font-weight: 800; }
.targets { display: flex; flex-wrap: wrap; gap: 6px; }
.target-pill { background: var(--accent-soft); color: #B4460C; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 8px; }
.workout-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 6px; border-top: 1px dashed var(--line); }
.workout-dir { font-size: 11.5px; color: var(--muted-2); }

.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.app-card { padding: 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h2 { font-size: 18px; }
.card-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.list-clean { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row b { display: block; font-size: 14px; }
.list-row small { color: var(--muted); font-size: 12px; }
.list-row-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-badge { background: var(--paper-2); color: #27455F; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }

.upload-zone { display: grid; gap: 6px; text-align: center; border: 1.5px dashed #C6D8E6; border-radius: 16px; padding: 22px 16px; background: var(--paper); }
.upload-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: #B4460C;
  font-size: 18px; margin: 0 auto 4px; }
.upload-zone b { font-size: 14.5px; }
.upload-zone p { max-width: 360px; margin: 0 auto; }

.call-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.call-row:last-of-type { border-bottom: 0; }
.cal-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; font-size: 18px; }
.cal-ico.alt { background: var(--teal-soft); }
.call-row b { display: block; font-size: 14px; }
.call-row small { color: var(--muted); font-size: 12px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.stat small { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.stat b { font-family: var(--font-display); font-size: 20px; }
.stat-note { font-size: 10.5px; color: #0C7C6E; font-weight: 800; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 8px 4px 0; }
.bars span { flex: 1; background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-radius: 6px 6px 2px 2px; opacity: .85; }

.app-bottom-note { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: var(--muted-2); font-size: 12px; flex-wrap: wrap; }
.app-bottom-note a { color: var(--accent); font-weight: 700; }

.mobile-tabbar { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 560px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .compare-grid, .coach-grid, .faq-grid { grid-template-columns: 1fr; gap: 34px; }
  .pricing { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 220px 1fr; }
  .app-main { padding: 28px 26px 46px; }
  .session-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-app { grid-template-columns: 1fr; }
  .hero-app-side { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding-left: 0; padding-top: 18px; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 100%); }
  .header-inner { height: 64px; gap: 14px; }
  .header-nav, .header-actions { display: none; }
  .burger { display: block; }
  .mobile-nav { display: none; flex-direction: column; gap: 6px; padding: 12px 16px 20px; background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); }
  body.nav-open .mobile-nav { display: flex; }
  .mobile-nav a { color: #C7D8E6; font-weight: 600; padding: 10px 6px; }
  .mobile-nav .btn { margin-top: 6px; }
  .hero { padding: 46px 0 56px; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 44px); }
  .lead { font-size: 16px; }
  .hero-facts { gap: 22px; }
  .section { padding: 60px 0; }
  .cards-3, .steps, .coach-points { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-form input, .cta-form .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-main { padding: 20px 16px 84px; }
  .app-top { gap: 14px; }
  .app-top-actions .chip { display: none; }
  .session-grid, .app-grid { grid-template-columns: 1fr; }
  .week-tabs { overflow-x: auto; width: 100%; }
  .week-tab { flex: 0 0 auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(10,22,38,.96); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.1); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-tabbar a { color: #9EB6CA; font-size: 11px; font-weight: 700; text-align: center; padding: 8px 2px; border-radius: 10px; }
  .mobile-tabbar a.active { color: #fff; background: rgba(255,106,43,.16); }
}


/* ============================================================
   АНКЕТА (онбординг)
   ============================================================ */
.onb-main { padding: 54px 0 80px; }
.onb-wrap { max-width: 980px; }
.onb-head { margin-bottom: 28px; }
.onb-head h1 { font-size: clamp(30px, 4vw, 46px); margin: 16px 0 14px; }
.onb-head .lead { color: var(--muted); font-size: 17px; max-width: 720px; }
.onb-head .lead b { color: var(--ink); }
.onb-pill { background: var(--accent-soft); border-color: #FFD7C2; color: #B4460C; }
.onb-pill .dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(255,106,43,.15); }
.onb-errors { margin-top: 16px; display: grid; gap: 6px; }
.onb-errors div { background: #FDEBEE; border: 1px solid #F6C9D0; color: #A32033; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.onb-form { display: grid; gap: 16px; }
.onb-card { padding: 26px 28px; display: grid; gap: 18px; }
.onb-card-head { display: flex; gap: 14px; align-items: flex-start; }
.onb-num { width: 34px; height: 34px; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; flex: 0 0 auto; }
.onb-card-head h2 { font-size: 19px; margin-bottom: 3px; }
.onb-card-head p { color: var(--muted); font-size: 13px; }
.onb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.onb-grid-4 { grid-template-columns: repeat(4, 1fr); }
.onb-card .field-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 12px; font-weight: 800; color: #33506A; letter-spacing: .04em; text-transform: uppercase; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; font: 500 15px var(--font); color: var(--ink); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #A9BAC8; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,106,43,.12); }
.field-hint { color: var(--muted); font-size: 12.5px; }
.onb-consent { gap: 20px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: #33506A; line-height: 1.55; cursor: pointer; }
.check input { width: 19px; height: 19px; margin-top: 1px; accent-color: var(--accent); flex: 0 0 auto; }
.check a { color: var(--accent); font-weight: 700; }
.onb-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.onb-note { margin-top: 18px; text-align: center; color: var(--muted-2); font-size: 12.5px; }
@media (max-width: 900px) {
  .onb-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .onb-main { padding: 30px 0 60px; }
  .onb-grid, .onb-grid-4 { grid-template-columns: 1fr; }
  .onb-card { padding: 20px 18px; }
  .onb-submit .btn { width: 100%; }
}


/* ============================================================
   БИБЛИОТЕКА
   ============================================================ */
.nav-active { color: #fff !important; }
.lib-hero { background: var(--ink); color: #fff; padding: 64px 0 46px; position: relative; overflow: hidden; }
.lib-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 26px 26px; opacity: .22; }
.lib-hero .wrap { position: relative; }
.lib-hero h1 { font-size: clamp(38px, 5vw, 58px); margin: 16px 0 16px; }
.lib-hero .lead { color: #B9CEDF; font-size: 17px; max-width: 760px; }
.lib-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.lib-filter { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #C7D8E6; font-weight: 700; font-size: 13.5px; }
.lib-filter:hover { border-color: rgba(255,255,255,.45); color: #fff; }
.lib-filter.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.lib-section { padding: 54px 0 74px; }
.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lib-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 10px; transition: transform .18s ease, box-shadow .18s ease; }
.lib-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.lib-kind { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lib-card h2 { font-size: 18px; line-height: 1.3; }
.lib-card p { color: var(--muted); font-size: 14px; flex: 1; }
.lib-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.lib-meta { color: var(--muted-2); font-size: 12px; }
.lib-note { text-align: center; color: var(--muted-2); font-size: 13px; margin-top: 26px; }
@media (max-width: 900px) {
  .lib-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .lib-grid { grid-template-columns: 1fr; }
  .lib-hero { padding: 42px 0 34px; }
  .mobile-tabbar { grid-template-columns: repeat(6, 1fr) !important; }
  .mobile-tabbar a { font-size: 10px !important; }
}


/* ============================================================
   ЧАТ С ТРЕНЕРОМ
   ============================================================ */
.chat-page { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.chat-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.chat-coach { display: flex; gap: 12px; align-items: center; }
.chat-coach .avatar { width: 46px; height: 46px; font-size: 15px; }
.chat-coach b { display: block; font-size: 15px; }
.chat-coach small { color: var(--muted); font-size: 12px; }
.chat-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #0C7C6E; }
.chat-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.chat-rules { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.chat-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 560px; overflow: hidden; }
.chat-panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chat-panel-head h2 { font-size: 17px; }
.chat-thread { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); overflow-y: auto; max-height: 460px; }
.msg { max-width: 78%; padding: 12px 15px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg small { display: block; font-size: 10.5px; opacity: .65; margin-top: 5px; }
.msg-coach { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg-athlete { background: var(--ink); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.chat-form { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); font: 500 14px var(--font); outline: none; }
.chat-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,106,43,.12); }
.chat-note { padding: 0 16px 14px; color: var(--muted-2); font-size: 11.5px; background: #fff; }
@media (max-width: 900px) {
  .chat-page { grid-template-columns: 1fr; }
  .chat-side { order: 2; }
}


.msg-media { display: block; max-width: 100%; max-height: 240px; border-radius: 12px; margin-top: 8px; object-fit: cover; background: #000; }
.chat-call-form { border-top: 1px dashed var(--line); padding-top: 14px; display: grid; gap: 10px; }
.chat-call-form .field span { font-size: 11.5px; }
.chat-call-form .field input { padding: 10px 12px; font-size: 13.5px; }
.chat-file { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); cursor: pointer; font-size: 18px; flex: 0 0 auto; }
.chat-file:hover { border-color: var(--accent); }


/* ============================================================
   ПЕРЕСЧЁТ И ТЕСТ
   ============================================================ */
.recalc-card { padding: 22px 24px; margin-bottom: 20px; border-color: #BFE9DC; background: linear-gradient(160deg, #F2FCF8, #FFFFFF 60%); }
.recalc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.recalc-head h2 { font-size: 20px; margin-bottom: 4px; }
.recalc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.recalc-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px dashed #CFE9DF; font-size: 14px; flex-wrap: wrap; }
.recalc-label { min-width: 92px; font-weight: 700; color: #33506A; }
.recalc-old { color: var(--muted-2); }
.recalc-new { font-family: var(--font-display); font-size: 16px; }
.recalc-diff { margin-left: auto; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.recalc-diff.good { background: var(--teal-soft); color: #0C7C6E; }
.recalc-diff.bad { background: #FDEDEA; color: #B4361A; }

.test-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: start; }
.test-card { padding: 24px; display: grid; gap: 16px; }
.test-card textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font: 500 14px var(--font); resize: vertical; outline: none; }
.test-card textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,106,43,.12); }
.test-side { padding: 22px; display: grid; gap: 12px; align-content: start; }
.test-side h2 { font-size: 18px; }
.test-hint { border-top: 1px dashed var(--line); padding-top: 12px; font-size: 13px; color: var(--muted); }
.test-hint b { display: block; color: var(--ink); margin-bottom: 6px; }
.test-hint ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 900px) {
  .test-layout { grid-template-columns: 1fr; }
  .recalc-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   ВХОД, КАБИНЕТ ТРЕНЕРА, АДМИНКА, ЗАПИСЬ, ОПЛАТА
   ============================================================ */
.auth-main { padding: 56px 0 80px; }
.auth-wrap { max-width: 560px; }
.auth-wrap-wide { max-width: 820px; }
.auth-card { padding: 30px 32px; display: grid; gap: 16px; }
.auth-card h1 { font-size: clamp(28px, 3vw, 38px); }
.auth-form { display: grid; gap: 14px; }
.auth-note { background: var(--teal-soft); border: 1px solid #BFE9DC; color: #0C6B5E; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; }
.auth-sent { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: var(--paper); border: 1px dashed var(--line); }
.auth-dev { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--muted-2); word-break: break-all; }
.auth-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px dashed var(--line); padding-top: 14px; }
.auth-links a { color: var(--accent); font-weight: 700; font-size: 13.5px; }
.field-static .field-value { padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.stack { display: grid; gap: 12px; }
.app-card-wide { grid-column: 1 / -1; }
.table-simple { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-simple th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.table-simple td { padding: 10px 6px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.table-simple tr:last-child td { border-bottom: 0; }
.invite-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.invite-form input { width: 110px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font: 500 13.5px var(--font); }
.coach-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 18px; }
.coach-card { padding: 24px; display: grid; gap: 12px; }
.coach-card-head { display: flex; align-items: center; gap: 14px; }
.coach-card-head h1, .coach-card-head h2 { font-size: 20px; }
.avatar-lg { width: 52px; height: 52px; font-size: 18px; flex: 0 0 auto; }
.coach-price { font-size: 14px; color: #33506A; white-space: pre-line; }
.coach-card-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.join-code-card { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.join-code-card h2 { font-size: 18px; margin-bottom: 4px; }
.pay-card { text-align: center; }
.pay-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; background: var(--paper); border-radius: 14px; padding: 14px 16px; }
.pay-summary b { display: block; font-size: 14.5px; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.pay-amount { font-family: var(--font-display); font-size: 52px; letter-spacing: -0.03em; }
.pay-amount span { font-size: 26px; color: var(--muted); }
.pay-qr { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 18px; width: fit-content; margin: 0 auto; }
.pay-qr img { width: 220px; height: 220px; }
.pay-card .btn { width: 100%; }
@media (max-width: 800px) {
  .coach-cards { grid-template-columns: 1fr; }
  .auth-card { padding: 22px 18px; }
  .pay-summary { grid-template-columns: 1fr; }
  .join-code-card { flex-direction: column; align-items: flex-start; }
}


.coach-photo { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line); }
.coach-photo-preview { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line); }
.avatar-img { object-fit: cover; padding: 0; }
.coach-regalia { font-size: 14px; color: #33506A; white-space: pre-line; }
.coach-plan-weeks { display: grid; gap: 14px; }
.coach-week { border-top: 1px dashed var(--line); padding-top: 12px; }
.coach-week:first-child { border-top: 0; padding-top: 0; }
.coach-week-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.coach-sessions { display: grid; gap: 6px; }
.coach-session { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 10px; background: var(--paper); border-radius: 10px; font-size: 13px; }
.coach-session-text { flex: 1; min-width: 200px; }
.chat-thread-compact { max-height: 300px; padding: 12px; background: var(--paper); border-radius: 12px; }
.chat-form { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.file-input { padding: 10px; background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; }


/* ============================================================
   РАБОЧАЯ ЗОНА ТРЕНЕРА: меню, расчётные механизмы
   ============================================================ */
.coach-tabs { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line);
  padding: 6px; border-radius: 14px; margin-bottom: 18px; position: sticky; top: 10px; z-index: 5; box-shadow: var(--shadow-soft); }
.coach-tabs a { padding: 9px 15px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.coach-tabs a:hover { background: var(--paper-2); color: var(--ink); }
.calc-profile { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.calc-profile > div { background: var(--paper); border-radius: 12px; padding: 11px 13px; }
.calc-profile small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.calc-profile b { font-size: 14px; }
.calc-model { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 8px 0 10px; }
.calc-model > div { background: linear-gradient(160deg, #0E2A44, #12395C); color: #fff; border-radius: 12px; padding: 12px 8px; text-align: center; }
.calc-model span { display: block; font-size: 11px; color: #9EB6CA; letter-spacing: .08em; }
.calc-model b { font-family: var(--font-display); font-size: 18px; }
.calc-sub { margin: 24px 0 10px; font-size: 16px; }
.calc-table td { white-space: nowrap; }
.calc-gen { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 10px; align-items: end;
  background: var(--paper); padding: 14px; border-radius: 14px; }
@media (max-width: 1000px) {
  .calc-profile { grid-template-columns: repeat(2, 1fr); }
  .calc-model { grid-template-columns: repeat(4, 1fr); }
  .calc-gen { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .calc-profile { grid-template-columns: 1fr 1fr; }
  .calc-model { grid-template-columns: repeat(3, 1fr); }
  .calc-gen { grid-template-columns: 1fr; }
  .coach-tabs { flex-wrap: nowrap; overflow-x: auto; }
}


.calc-result { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px;
  background: var(--teal-soft); border: 1px solid #BFE9DC; border-radius: 12px; font-size: 14px; color: #0C6B5E; }
.calc-result-label { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.calc-result-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.calc-result-grid > div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.calc-result-grid small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.calc-result-grid b { font-family: var(--font-display); font-size: 17px; }
.ai-result { background: #F4F7FB; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
@media (max-width: 1000px) { .calc-result-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .calc-result-grid { grid-template-columns: repeat(2, 1fr); } }


.sim-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }
.sim-head, .sim-row { display: grid; grid-template-columns: 44px 1fr 1fr 1fr 1fr 1fr; gap: 6px; align-items: center; }
.sim-head span { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sim-row b { color: var(--accent); }
.sim-row input { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font: 500 13px var(--font); }


.order-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.order-copy h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.order-copy p { color: var(--muted); font-size: 16px; }
.order-copy .check-list { margin: 20px 0 22px; }
.form-card { padding: 26px 28px; }
.form-card textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font: 500 14px var(--font); resize: vertical; }
.btn-block { width: 100%; }
.form-note { margin-top: 10px; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; gap: 26px; } }


/* структура тренировки: разминка — основная серия — заминка */
.workout-part { border-left: 3px solid var(--line); padding: 3px 0 3px 10px; }
.workout-part-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted-2); font-weight: 800; }
.workout-part p { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 2px 0 0; }
.workout-part.main { border-left-color: var(--accent); }
.workout-part.main p { font-size: 14px; color: var(--ink); font-weight: 700; }
.waiting-card { padding: 26px; display: grid; gap: 12px; }
.zone-memo .calc-table td { font-size: 13px; }
.coach-photo-wrap { position: relative; flex: 0 0 auto; }
.coach-logo-badge { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px;
  border-radius: 9px; border: 2px solid #fff; object-fit: cover; background: #fff; }
.color-row { display: flex; gap: 10px; align-items: center; }
input[type=color] { width: 52px; height: 44px; padding: 4px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.form-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; margin: 10px 0; }
.form-fields .check span { font-size: 13px; }
.form-group-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); margin-top: 12px; }


.coach-session { align-items: flex-start; }
.coach-session-side { display: flex; flex-direction: column; gap: 4px; min-width: 64px; }
.coach-session-body { flex: 1; display: grid; gap: 4px; min-width: 220px; }
.session-part { display: flex; gap: 8px; align-items: baseline; }
.session-part small { flex: 0 0 110px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); font-weight: 800; }
.session-part span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.session-part.main span { color: var(--ink); font-weight: 700; font-size: 13px; }
.coach-session-right { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; min-width: 84px; }


.auth-steps { margin: 10px 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.auth-steps li { line-height: 1.45; }


.me-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.me-grid div { display: grid; gap: 2px; }
.me-grid small { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); font-weight: 800; }
.me-grid b { font-size: 13.5px; }
@media (max-width: 900px) { .me-grid { grid-template-columns: repeat(2, 1fr); } }


.rent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 8px; }
.rent-cell { margin: 0; }
.rent-btn { width: 100%; display: grid; gap: 2px; padding: 10px 8px; }
.rent-btn b { font-size: 14px; }
.rent-btn span { font-size: 12px; opacity: .8; font-weight: 600; }
@media (max-width: 700px) { .rent-grid { grid-template-columns: repeat(2, 1fr); } }


.pb-form { margin: 6px 0 10px; }
.pb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 900px) { .pb-grid { grid-template-columns: repeat(2, 1fr); } }
.msg-media { max-width: 260px; border-radius: 10px; margin: 6px 0; display: block; }


.task-form { display: flex; gap: 10px; align-items: center; margin: 6px 0 10px; flex-wrap: wrap; }
.task-form input[type=text] { flex: 1; min-width: 240px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }


/* рабочая зона спортсмена: вкладки слева */
.athlete-workspace { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: start; }
.athlete-tabs { position: sticky; top: 14px; z-index: 20; display: grid; gap: 4px; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 24px rgba(10, 22, 38, .06); }
.athlete-tab { text-align: left; padding: 9px 12px; border-radius: 9px; border: 0; background: transparent; font: 700 13px var(--font); color: var(--muted); cursor: pointer; }
.athlete-tab:hover { background: var(--paper); color: var(--ink); }
.athlete-tab.active { background: var(--navy); color: #fff; }
.athlete-pane { display: none; }
.athlete-pane.active { display: block; }
@media (max-width: 900px) {
  .athlete-workspace { grid-template-columns: 1fr; }
  .athlete-tabs { position: static; grid-template-columns: repeat(3, 1fr); display: grid; }
  .athlete-tab { text-align: center; }
}

/* фильтры дашборда */
.filter-bar { display: flex; gap: 8px; margin: 6px 0 8px; flex-wrap: wrap; }
.filter-bar input[type=search], .filter-bar select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font: 500 13px var(--font); background: #fff; }
.filter-bar input[type=search] { flex: 1; min-width: 220px; }
.filter-chips { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.chip-red { background: #FDECEC; color: #B42318; border-color: #F5C6C2; }
.bell-link { position: relative; }
.bell-badge { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff; border-radius: 999px; font: 800 10px var(--font); padding: 2px 6px; }
.notif-new b { color: var(--ink); }
.notif-new { background: #FFF7F2; }
.session-edit { grid-column: 1 / -1; display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; margin-top: 8px; grid-template-columns: repeat(2, 1fr); }
.session-edit .field { margin: 0; }


/* инфографика: графики и инфо-блоки */
.chart-card { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; }
.chart-card svg.chart { width: 100%; height: auto; display: block; }
.info-box { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; margin: 12px 0; background: #FFFDF9; }
.info-box summary { cursor: pointer; font-weight: 800; font-size: 13px; color: var(--navy); }
.info-box p { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.fact-box { margin-top: 8px; }
.fact-box summary { display: inline-block; }
.fact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; }
.fact-form .field { margin: 0; }


.plan-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 14px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.plan-toolbar form { margin: 0; }


/* ---------- компактная рабочая зона тренера ---------- */
.athlete-workspace { grid-template-columns: 168px minmax(0, 1fr); gap: 16px; }
.athlete-panes { max-width: 1040px; }
.app-main { padding: 24px 32px 40px; }
.athlete-panes .app-card { padding: 16px 18px; gap: 10px; }
.athlete-panes .card-head h2 { font-size: 17px; }
.athlete-pane .calc-sub { margin: 4px 0 8px; font-size: 14px; }
.calc-table th, .calc-table td { padding: 6px 9px; font-size: 12.5px; }
.calc-table thead th { font-size: 11px; }
.chart-card { padding: 8px 10px; }
.chart-card svg.chart { max-width: 620px; }

/* аккордеоны «Расчётных механизмов» */
.calc-block { border: 1px solid var(--line); border-radius: 12px; padding: 2px 12px 12px; background: #fff; margin: 0; }
.calc-block + .calc-block { margin-top: 4px; }
.calc-block > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 2px; margin: 0 0 2px; }
.calc-block > summary::-webkit-details-marker { display: none; }
.calc-block > summary::before { content: '▸'; color: var(--accent); font-size: 12px; transition: transform .15s; }
.calc-block[open] > summary::before { content: '▾'; }
.calc-block[open] { background: #fff; }
.calc-block .calc-gen, .calc-block .pb-form, .calc-block .stack { margin: 0; }
.calc-block .calc-gen { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.calc-block .calc-gen .field { margin: 0; min-width: 140px; flex: 1 1 160px; }
.calc-block .calc-gen button { flex: 0 0 auto; }
.calc-block .calc-gen .field-wide, .calc-block .calc-gen label.field-wide { flex: 2 1 320px; }

/* PB-калькулятор */
.pb-calc { display: grid; gap: 10px; }
.pb-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.pb-seg label { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; background: #fff; }
.pb-seg input { accent-color: var(--accent); }
.pb-row { display: flex; gap: 10px; align-items: flex-end; }
.pb-row .field { margin: 0; flex: 1; }
.pb-result { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #FFFDF9; display: grid; gap: 8px; }
.pb-result-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pb-result-head b { font-size: 20px; color: var(--navy); }
.pb-result-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .athlete-workspace { grid-template-columns: 1fr; }
  .athlete-panes { max-width: 100%; }
}


/* Пошаговые протоколы тестов («Как провести тест») */
.info-box ol.howto-steps, .info-box ul.howto-steps { margin: 8px 0 2px; padding-left: 20px; }
.info-box .howto-steps li { font-size: 13px; color: var(--ink, #243F55); line-height: 1.55; margin: 4px 0; }
.info-box .howto-steps li b { color: var(--navy); }
.info-box ul.howto-steps { list-style: none; padding-left: 4px; }
.info-box ul.howto-steps li { position: relative; padding-left: 18px; }
.info-box ul.howto-steps li::before { content: "•"; position: absolute; left: 2px; color: var(--orange, #FF6A2B); font-weight: 800; }

/* ---------- юридический подвал (все страницы) ---------- */
.legal-strip { background: #0A1626; border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0 26px; margin-top: 0; }
.legal-strip-inner { display: grid; gap: 5px; text-align: center; }
.legal-holder { margin: 0; font-size: 12.5px; font-weight: 600; color: #C6D5E4; letter-spacing: .01em; }
.legal-req { margin: 0; font-size: 10.5px; color: #6E869D; letter-spacing: .02em; }
@media (max-width: 640px) {
  .legal-strip { padding: 18px 16px 22px; }
  .legal-holder { font-size: 11.5px; }
  .legal-req { font-size: 9.5px; line-height: 1.5; }
}

.legal-max { margin: 4px 0 0; }
.legal-max a { font-size: 11px; color: #8FB0C9; text-decoration: underline; text-underline-offset: 2px; }
.legal-max a:hover { color: #fff; }
