/* ============================================
   GymLog landing — стиль вдохновлён idigeneri.ru
   Тёмная тема, Space Grotesk, лайм-акцент.
   ============================================ */

:root {
  --bg: #141414;
  --bg-card: #1c1c1c;
  --bg-card-hover: #232323;
  --border: rgba(255, 255, 255, 0.08);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #d4ff00;
  --accent-hover: #b8e600;
  --tg: #0088cc;

  --container: 1120px;
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 255, 0, 0.25);
}
.btn:active { transform: translateY(0); }
.btn--small { padding: 8px 16px; font-size: 14px; }
.btn--lg { padding: 18px 36px; font-size: 18px; }
.btn--full { width: 100%; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.logo {
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 255, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(212, 255, 0, 0.08);
  border: 1px solid rgba(212, 255, 0, 0.2);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}
.hero h1 {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  position: relative;
}
.hero__sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  position: relative;
}
.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
}

/* ---------- Section title (контурный H2) ---------- */
.section-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 56px;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
  text-stroke: 1.5px var(--text);
  line-height: 0.95;
}

/* ---------- Features ---------- */
.features { padding: 80px 0; background: rgba(28, 28, 28, 0.4); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature:hover {
  border-color: rgba(212, 255, 0, 0.3);
  transform: translateY(-2px);
}
.feature__icon {
  font-size: 32px;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature p {
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- How it works ---------- */
.how { padding: 100px 0; }
.steps {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr 320px;
  gap: 32px;
  align-items: center;
}
.step:nth-child(even) {
  grid-template-columns: 320px 1fr 80px;
}
.step:nth-child(even) .step__phone { grid-column: 1; }
.step:nth-child(even) .step__text  { grid-column: 2; }
.step:nth-child(even) .step__num   { grid-column: 3; }
.step__num {
  font-size: 80px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  text-align: center;
}
.step__text h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 12px;
}
.step__text p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 480px;
}

/* ---------- Fake chat ---------- */
.step__phone {
  background: #17212b;
  border-radius: 20px;
  padding: 16px 12px;
  border: 8px solid #2a2a2a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat__bubble {
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 85%;
}
.chat__bubble p { margin: 0; }
.chat__bubble p + p { margin-top: 8px; }
.chat__bubble--bot {
  background: #182533;
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat__bubble--user {
  background: #2b5278;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat__bubble--btn {
  background: #182533;
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-self: stretch;
  max-width: 100%;
  text-align: center;
  font-weight: 500;
}
.chat__bubble--voice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
.chat__voice-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  height: 24px;
}
.chat__voice-bars span {
  flex: 1;
  height: var(--h, 50%);
  min-height: 4px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
}
.chat__voice-bars span:nth-child(1)  { --h: 30%; }
.chat__voice-bars span:nth-child(2)  { --h: 60%; }
.chat__voice-bars span:nth-child(3)  { --h: 90%; }
.chat__voice-bars span:nth-child(4)  { --h: 70%; }
.chat__voice-bars span:nth-child(5)  { --h: 40%; }
.chat__voice-bars span:nth-child(6)  { --h: 85%; }
.chat__voice-bars span:nth-child(7)  { --h: 95%; }
.chat__voice-bars span:nth-child(8)  { --h: 55%; }
.chat__voice-bars span:nth-child(9)  { --h: 75%; }
.chat__voice-bars span:nth-child(10) { --h: 35%; }
.chat__voice-bars span:nth-child(11) { --h: 65%; }
.chat__voice-bars span:nth-child(12) { --h: 50%; }
.chat__voice-bars span:nth-child(13) { --h: 80%; }
.chat__voice-bars span:nth-child(14) { --h: 25%; }
.chat__time { font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.chat__exercise {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.5;
}
.chat__btns {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.chat__btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

/* ---------- Price ---------- */
.price { padding: 80px 0; background: rgba(28, 28, 28, 0.4); }
.price-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}
.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.price-card__trial {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.price-card__trial-gift { font-size: 32px; }
.price-card__trial-title { font-weight: 700; font-size: 18px; }
.price-card__trial-sub { color: var(--text-muted); font-size: 14px; }
.price-card__divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.price-card__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.price-card__num {
  font-size: 72px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-card__period { font-size: 14px; color: var(--text-muted); }
.price-card__note {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 120px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(212, 255, 0, 0.06) 0%, transparent 60%);
}
.final-cta h2 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer__brand { font-weight: 700; font-size: 18px; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.footer__links a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer__links a:hover { color: var(--accent); }
.footer__copy { color: var(--text-dim); font-size: 13px; }

/* ---------- Document pages (Privacy, Consent, Terms) ---------- */
.doc {
  padding: 60px 0 100px;
}
.doc .container {
  max-width: 760px;
}
.doc__back {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.15s ease;
}
.doc__back:hover { color: var(--accent); }
.doc__title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.doc__meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 40px;
}
.doc h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
}
.doc h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--text);
}
.doc p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.doc ul {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 16px;
  padding-left: 24px;
}
.doc li { margin-bottom: 6px; }
.doc a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(212, 255, 0, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.doc a:hover { text-decoration-color: var(--accent); }
.doc b, .doc strong { color: var(--text); font-weight: 600; }

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
  .hero { padding: 60px 0 80px; }
  .features { padding: 60px 0; }
  .how { padding: 60px 0; }
  .price { padding: 60px 0; }
  .final-cta { padding: 80px 0; }

  .section-title { margin-bottom: 40px; -webkit-text-stroke-width: 1px; }
  .steps { gap: 48px; }
  .step,
  .step:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 16px;
    text-align: center;
  }
  .step__num { font-size: 56px; }
  .step__text p { margin: 0 auto; }
  .step__phone { max-width: 320px; margin: 0 auto; }

  .price-card { padding: 28px 24px; }
  .price-card__num { font-size: 56px; }
}
