/* =========================================
   ТРЕНЕР ЛЕШЕНЬКА — ТЁМНАЯ ТЕМА
   ========================================= */

/* 1. Цветовые токены */
:root {
  --brand:   #e8612a;
  --brand-2: #ff8c57;
  --accent:  #f7b733;
  --bg:      #0e0f13;
  --surface: #16181f;
  --surface-2:#1f2230;
  --text:    #f0f0f4;
  --muted:   #8b8fa8;
  --border:  rgba(255,255,255,.09);
  --grad:    linear-gradient(135deg, #e8612a 0%, #f7b733 100%);
  --radius-1: 8px;
  --radius-2: 14px;
  --radius-3: 20px;
  --shadow-1: 0 2px 8px rgba(0,0,0,.35);
  --shadow-2: 0 6px 24px rgba(0,0,0,.45);
  --shadow-3: 0 16px 48px rgba(0,0,0,.6);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --container: 1200px;
}

/* 2. База */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* точечный паттерн-фон */
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 30px 30px;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; cursor: pointer; }

/* 3. Утилиты (поверх theme.css) */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem,4vw,2.5rem); }
.section    { padding: clamp(64px,8vw,120px) 0; }
.muted      { color: var(--muted); }
.eyebrow    { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .7rem; }

/* 4. Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .45rem; padding: .65rem 1.4rem;
  background: var(--grad); color: #fff; font-weight: 700;
  border-radius: 100px; font-size: .95rem;
  transition: transform .2s var(--ease-out), box-shadow .2s;
  box-shadow: 0 4px 18px rgba(232,97,42,.35);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,97,42,.5); }
.btn:active { transform: translateY(0); }

.btn-ghost  { background: transparent; border: 1.5px solid rgba(255,255,255,.25); color: var(--text); box-shadow: none; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }

.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem .95rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-nav { padding: .5rem 1.1rem; font-size: .88rem; }

/* 5. Шапка */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14,15,19,.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: .55rem; }
.brand-mark { display: flex; color: var(--brand); }
.brand-text { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-sub  { font-weight: 400; color: var(--muted); font-size: .8rem; margin-left: .25rem; }

.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav a:not(.btn) { font-size: .9rem; color: var(--muted); transition: color .18s; }
.nav a:not(.btn):hover { color: var(--text); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; padding: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 6. Герой */
.hero { position: relative; min-height: clamp(560px, 90vh, 900px); display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14,15,19,.88) 35%, rgba(14,15,19,.5) 75%, rgba(14,15,19,.2) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; max-width: 760px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1.2rem; }
.hero-lead { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(240,240,244,.8); max-width: 560px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }
.hero-badges { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: var(--muted); }
.hero-badges i { display: block; width: 4px; height: 4px; background: var(--border); border-radius: 50%; }

/* 7. Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
}
.tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-2); padding: clamp(1.2rem,3vw,2rem);
  position: relative; overflow: hidden;
}
.tile-lg {
  grid-column: span 2; grid-row: span 2;
  background: linear-gradient(135deg, #1e1230 0%, #16181f 100%);
}
.tile-accent {
  background: linear-gradient(135deg, rgba(232,97,42,.18) 0%, rgba(247,183,51,.10) 100%);
  border-color: rgba(232,97,42,.3);
}
.tile-wide { grid-column: span 2; }
.tile-num {
  font-size: clamp(2.8rem,6vw,4.4rem); font-weight: 900; line-height: 1;
  letter-spacing: -.04em; color: var(--text);
}
.tile-num span { font-size: 55%; color: var(--brand); }
.tile-cap { font-size: .85rem; color: var(--muted); margin-top: .5rem; max-width: 200px; }
.tile-mini { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem; }
.tile-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.tile-list li { display: flex; align-items: center; gap: .55rem; }
.tile-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 20% 80%, rgba(232,97,42,.18) 0%, transparent 60%);
}

/* 8. Программы */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-2); overflow: hidden; }

.prog-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.prog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.prog:hover .prog-media img { transform: scale(1.04); }
.prog-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.prog-body h3 { font-size: 1.1rem; font-weight: 800; }
.prog-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.price { font-weight: 800; font-size: .95rem; color: var(--brand-2); }

.tag {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--brand); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 100px;
}

/* 9. О тренере */
.about-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius-3); aspect-ratio: 3/4; object-fit: cover; }
.about-chip {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: rgba(14,15,19,.82); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 100px;
  padding: .55rem 1.2rem; text-align: center;
  white-space: nowrap;
}
.about-chip strong { display: block; font-weight: 800; font-size: .9rem; }
.about-chip span   { font-size: .75rem; color: var(--muted); }
.about-text { display: flex; flex-direction: column; gap: 1rem; }
.about-text h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; }
.about-text p { color: rgba(240,240,244,.8); }
.about-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.about-list li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }

/* 10. Калькулятор */
.calc-wrap {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(1.5rem,4vw,3rem);
  padding: clamp(1.5rem,4vw,3rem);
  align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-3);
}
.calc-intro { display: flex; flex-direction: column; gap: .5rem; }
.calc-intro h2 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.calc-form { display: flex; flex-direction: column; gap: .85rem; }
.calc-result { display: flex; flex-direction: column; gap: 1.1rem; }
.calc-big { display: flex; align-items: baseline; gap: .5rem; }
.calc-kcal { font-size: clamp(2.4rem,4vw,3.6rem); font-weight: 900; color: var(--brand); letter-spacing: -.04em; }
.calc-unit  { font-size: .9rem; color: var(--muted); }
.macros { display: grid; grid-template-columns: repeat(3,1fr); gap: .6rem; }
.macro { background: var(--surface-2); border-radius: var(--radius-1); padding: .7rem .5rem; text-align: center; }
.macro b    { display: block; font-size: 1.25rem; font-weight: 800; color: var(--brand-2); }
.macro span { font-size: .72rem; color: var(--muted); }
.calc-note  { font-size: .8rem; }
.calc-cta   { margin-top: .4rem; }

/* Поля */
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(3,1fr); gap: .65rem; }
.field input, .field select, .field textarea {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-1);
  padding: .65rem .85rem; font-size: .95rem; font-family: inherit;
  outline: none; transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(232,97,42,.15);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field textarea { resize: vertical; min-height: 90px; }

.seg { display: flex; gap: .5rem; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg-opt span {
  display: block; padding: .5rem 1rem; border-radius: 100px; font-size: .88rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; transition: .18s;
  color: var(--muted);
}
.seg-opt input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 11. Галерея */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}
.gal-item { margin: 0; border-radius: var(--radius-2); overflow: hidden; aspect-ratio: 1; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease-out); }
.gal-item:hover img { transform: scale(1.05); }
.gal-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* 12. Отзывы */
.review { padding: 1.6rem; display: flex; flex-direction: column; gap: .9rem; }
.stars { display: flex; gap: 3px; color: var(--accent); }
.review-text { font-size: .95rem; line-height: 1.7; color: rgba(240,240,244,.85); }
.review-by { display: flex; align-items: center; gap: .75rem; }
.ava {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
}
.review-by strong { display: block; font-size: .9rem; }
.review-by em { display: block; font-size: .78rem; color: var(--muted); font-style: normal; }

/* 13. FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem,5vw,5rem); align-items: start; }
.faq-head { max-width: 320px; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  border-radius: var(--radius-1); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(232,97,42,.35); }
.faq-item summary {
  cursor: pointer; padding: 1.1rem 1.3rem;
  font-weight: 700; font-size: .95rem;
  display: flex; justify-content: space-between; align-items: center;
  list-style: none; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico {
  display: block; width: 22px; height: 22px; flex-shrink: 0;
  border: 1.5px solid var(--border); border-radius: 50%;
  position: relative; transition: background .2s, border-color .2s, transform .25s;
}
.faq-ico::before, .faq-ico::after {
  content: ''; position: absolute; background: var(--muted); border-radius: 1px;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  transition: opacity .2s, transform .2s;
}
.faq-ico::before { width: 10px; height: 2px; }
.faq-ico::after  { width: 2px; height: 10px; }
.faq-item[open] .faq-ico { background: var(--brand); border-color: var(--brand); transform: rotate(45deg); }
.faq-item[open] .faq-ico::before, .faq-item[open] .faq-ico::after { background: #fff; }
.faq-ans { padding: 0 1.3rem 1.2rem; }
.faq-ans p { font-size: .9rem; color: var(--muted); line-height: 1.7; }

/* 14. Форма заявки */
.lead-sec { background: linear-gradient(180deg, var(--bg) 0%, #130e0b 100%); }
.lead-card {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem,5vw,4rem);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-3); padding: clamp(1.8rem,4vw,3.5rem);
}
.lead-info { display: flex; flex-direction: column; gap: 1rem; }
.lead-info h2 { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; }
.lead-points { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.lead-points li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.lead-form { display: flex; flex-direction: column; gap: .85rem; }

.form-err {
  background: rgba(232,97,42,.15); border: 1px solid rgba(232,97,42,.4);
  color: var(--brand-2); border-radius: var(--radius-1);
  padding: .75rem 1rem; font-size: .9rem;
}
.thanks { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; padding-top: 1rem; }
.thanks-ico {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.thanks h3 { font-size: 1.4rem; font-weight: 800; }

/* 15. Футер */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.footer-col a { font-size: .88rem; color: var(--muted); transition: color .18s; }
.footer-col a:hover { color: var(--text); }
.footer-col p { font-size: .85rem; }
.footer-col span { font-size: .85rem; }
.brand-foot .brand-text { font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .8rem; }

/* 16. Иконки */
.ic-check { color: var(--brand); flex-shrink: 0; }

/* 17. SEC HEAD */
.sec-head { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.sec-head h2 { font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 900; line-height: 1.1; letter-spacing: -.03em; }
.sec-head p { margin-top: .6rem; }

/* 18. Reveal-анимации (только при js-классе) */
html.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* 19. prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 20. Адаптив */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-lg { grid-column: span 2; grid-row: span 1; }
  .tile-wide { grid-column: span 2; }
  .calc-wrap { grid-template-columns: 1fr 1fr; }
  .calc-intro { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media img { aspect-ratio: 16/9; max-height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(14,15,19,.97); backdrop-filter: blur(16px);
    flex-direction: column; padding: 1.5rem; gap: 1rem;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { font-size: 1rem; text-align: center; }
  .burger { display: flex; margin-left: auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gal-big { grid-column: span 2; }
  .cards { grid-template-columns: 1fr; }
  .lead-card { grid-template-columns: 1fr; }
  .calc-wrap { grid-template-columns: 1fr; }
  .calc-intro { grid-column: 1; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .bento { grid-template-columns: 1fr; }
  .tile-lg { grid-column: 1; }
  .tile-wide { grid-column: 1; }
  .hero h1 { font-size: clamp(2rem,8vw,2.8rem); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; text-align: center; }
}