/* repwave.ru — shared look of the public site. Colours follow the app (mobile/lib/theme.ts):
   graphite base, azure accent for athletes, violet for coaches. */
:root {
  --bg: #141414;
  --bg-2: #1b1b1b;
  --card: #1f1f1f;
  --card-2: #262626;
  --line: #303030;
  --fg: #f2f2f2;
  --muted: #a3a3a3;
  --faint: #737373;
  --azure: #3da9fc;
  --violet: #9b7cff;
  --accent: var(--azure);
  --accent-soft: rgba(61, 169, 252, 0.14);
  --red: #ff5d5d;
  --orange: #ffa63d;
  --yellow: #ffd84d;
  --green: #4cd18a;
  --radius: 16px;
  --max: 1160px;
  color-scheme: dark;
}
.coach-page { --accent: var(--violet); --accent-soft: rgba(155, 124, 255, 0.16); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
section { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 20, 20, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 800; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav > a, .nav .drop > button {
  color: var(--muted); font: inherit; font-weight: 600; font-size: 15px; background: none; border: 0;
  padding: 8px 14px; border-radius: 10px; cursor: pointer;
}
.nav > a:hover, .nav .drop > button:hover, .nav .active { color: var(--fg); background: var(--card); text-decoration: none; }
.drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; padding: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); display: none;
}
.drop.open .drop-menu { display: block; }
.drop-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--fg); }
.drop-menu a:hover { background: var(--card-2); text-decoration: none; }
.drop-menu small { display: block; color: var(--muted); font-size: 13px; }
.header-cta { margin-left: auto; display: flex; gap: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--fg); padding: 8px; cursor: pointer; }

@media (max-width: 900px) {
  .burger { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; margin: 0;
    display: none; max-height: calc(100vh - 64px); overflow: auto;
  }
  .nav.open { display: flex; }
  .drop-menu { position: static; display: block; box-shadow: none; border: 0; background: none; padding: 0 0 0 12px; min-width: 0; }
  .nav .drop > button {
    pointer-events: none; background: none; padding: 16px 14px 4px; color: var(--faint);
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-primary { background: var(--accent); color: #0b0b0b; }
.btn-ghost { background: var(--card); color: var(--fg); border-color: var(--line); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%); pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 580px; margin-bottom: 28px; }
.phones { display: flex; justify-content: center; gap: 16px; }
.phone {
  width: 220px; border-radius: 28px; border: 6px solid #2a2a2a; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); background: #000;
}
.phone:nth-child(2) { transform: translateY(36px); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: 46%; max-width: 220px; }
}
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.stats b { display: block; font-size: 28px; color: var(--fg); }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
a.card { color: var(--fg); display: block; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }
.more { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--accent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 16px 0 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--muted); }
.checks li b { color: var(--fg); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233da9fc' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}
.coach-page .checks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b7cff' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
.shot { border-radius: 24px; border: 6px solid #2a2a2a; max-width: 300px; margin: 0 auto; box-shadow: 0 24px 48px rgba(0,0,0,.45); }
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { counter-reset: step; }
.steps.cont { counter-reset: none; } /* continues the numbering of the .steps grid right before it */
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before {
  counter-increment: step; content: counter(step); position: absolute; top: 20px; left: 24px;
  font-weight: 800; color: var(--accent); font-size: 22px;
}

/* reviews */
.review blockquote { margin: 0 0 16px; color: var(--fg); }
.review .who { color: var(--muted); font-size: 14px; }
.stars { color: var(--yellow); letter-spacing: 2px; margin-bottom: 10px; }

/* pricing */
.price { font-size: 30px; font-weight: 800; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
table.plain { width: 100%; border-collapse: collapse; }
table.plain td, table.plain th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { color: var(--muted); font-weight: 600; font-size: 14px; }

/* CTA */
.cta {
  border-radius: 24px; padding: 48px; text-align: center;
  background: linear-gradient(135deg, var(--accent-soft), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
}
.cta .btn-row { justify-content: center; margin-top: 20px; }
@media (max-width: 600px) { .cta { padding: 32px 20px; } }

/* store badges */
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 12px;
  background: #000; border: 1px solid #3a3a3a; color: #fff; min-width: 170px;
}
.store:hover { text-decoration: none; border-color: var(--accent); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; color: #bbb; line-height: 1.1; }
.store b { display: block; font-size: 16px; line-height: 1.2; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; background: var(--bg-2); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer li a { color: var(--fg); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--fg);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 20px; height: 20px; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.legal a { color: var(--muted); }

/* ---------- article / long reads ---------- */
.page-head { padding-top: 56px; padding-bottom: 24px; }
.page-head p { color: var(--muted); font-size: 18px; max-width: 760px; }
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.prose { font-size: 17px; line-height: 1.75; }
.prose h2 { margin-top: 48px; font-size: 28px; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: #d6d6d6; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose b, .prose strong { color: var(--fg); }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--card); color: var(--fg); }
.table-scroll { overflow-x: auto; }
.note {
  border-left: 3px solid var(--accent); background: var(--card); padding: 14px 18px; border-radius: 0 12px 12px 0;
  margin: 20px 0; color: #d6d6d6;
}
.term { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 12px 0; }
.term b { color: var(--accent); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); margin: 0 6px 6px 0;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button, .tabs a {
  font: inherit; font-weight: 700; font-size: 15px; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
}
.tabs button[aria-selected='true'], .tabs a.on { color: #0b0b0b; background: var(--accent); border-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--fg); }
.toc { position: sticky; top: 84px; font-size: 14px; }
.toc a { display: block; padding: 4px 0; color: var(--muted); }
.toc a:hover { color: var(--fg); }
.with-toc { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
@media (max-width: 900px) { .with-toc { grid-template-columns: 1fr; } .toc { position: static; display: none; } }

/* video placeholder: loads YouTube only on click */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000 center/cover;
  border: 1px solid var(--line); cursor: pointer;
}
.video::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; border-radius: 14px;
  background: rgba(255, 0, 0, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.playing::after { display: none; }
