/* ============================================================
   style.css — Тренер Владимир Копылов
   Modern fitness-trainer landing page
   ============================================================ */

/* ── Custom properties ───────────────────────────────────────── */
:root {
  --clr-bg:        #f8f9fa;
  --clr-bg-alt:    #f1f3f5;
  --clr-dark:      #0d0d0d;
  --clr-dark2:     #1a1a1a;
  --clr-dark3:     #242424;
  --clr-accent:    #f97316;
  --clr-accent-hv: #ea580c;
  --clr-text:      #1a1a1a;
  --clr-muted:     #6b7280;
  --clr-border:    rgba(0,0,0,.09);
  --clr-white:     #ffffff;

  --nav-h: 70px;
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  24px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.07);
  --shadow-md: 0 6px 28px rgba(0,0,0,.11);
  --shadow-lg: 0 16px 56px rgba(0,0,0,.16);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --trans: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--clr-text);
  background: var(--clr-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Typography ──────────────────────────────────────────────── */
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.3; }

/* ── Utilities ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 12px;
}

.section-sub {
  margin-top: 14px;
  color: var(--clr-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: var(--trans);
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-white);
  border-color: var(--clr-accent);
}
.btn-primary:hover {
  background: var(--clr-accent-hv);
  border-color: var(--clr-accent-hv);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249,115,22,.35);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-white);
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--clr-dark);
  color: var(--clr-white);
  border-color: var(--clr-dark);
}
.btn-dark:hover {
  background: var(--clr-dark2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.btn-outline {
  background: transparent;
  color: var(--clr-dark);
  border-color: var(--clr-dark);
}
.btn-outline:hover {
  background: var(--clr-dark);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ── Scroll animations ───────────────────────────────────────── */
.fade-up, .fade-left, .fade-right {
  opacity: 0;
  transition: opacity .65s var(--trans), transform .65s var(--trans);
}
.fade-up    { transform: translateY(36px); }
.fade-left  { transform: translateX(-36px); }
.fade-right { transform: translateX(36px); }

.fade-up.in,
.fade-left.in,
.fade-right.in {
  opacity: 1;
  transform: none;
}

/* ── NAV ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  transition: background var(--trans), box-shadow var(--trans);
}

.nav.scrolled {
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--clr-white);
  letter-spacing: -.02em;
}
.nav-logo span { color: var(--clr-accent); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--trans);
}
.nav-links a:hover { color: var(--clr-white); }

.nav-cta {
  background: var(--clr-accent);
  color: var(--clr-white) !important;
  padding: 8px 22px;
  border-radius: var(--r-sm);
  font-weight: 600 !important;
  transition: background var(--trans), transform var(--trans) !important;
}
.nav-cta:hover {
  background: var(--clr-accent-hv) !important;
  transform: translateY(-1px);
}

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

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(18px);
  padding: 16px 24px 24px;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--trans);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--clr-accent); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--clr-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(10,10,10,.88) 45%,
    rgba(10,10,10,.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 60px 24px 60px max(24px, calc((100vw - 1200px) / 2 + 24px));
}

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--clr-white);
  margin-bottom: 22px;
}

.hero-sub {
  color: rgba(255,255,255,.72);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-photo {
  position: absolute;
  right: max(0px, calc((100vw - 1200px) / 2));
  bottom: 0;
  z-index: 1;
  width: clamp(280px, 38vw, 540px);
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}
.hero-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(249,115,22,.18));
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: rgba(255,255,255,.55);
  animation: bounceDown 2s ease-in-out infinite;
  transition: border-color var(--trans);
}
.scroll-hint:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.scroll-hint svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

@keyframes bounceDown {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── ABOUT ───────────────────────────────────────────────────── */
.about { background: var(--clr-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  max-width: 440px;
  justify-self: end;
  width: 100%;
}

.about-photo {
  width: 100%;
  border-radius: var(--r-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--clr-accent);
  color: var(--clr-white);
  border-radius: var(--r-md);
  padding: 16px 22px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(249,115,22,.4);
}
.badge-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.badge-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  opacity: .9;
  letter-spacing: .04em;
  margin-top: 4px;
}

.about-text .section-label { margin-bottom: 10px; }
.about-text h2 { margin-bottom: 18px; }

.about-lead {
  font-size: 1.1rem;
  color: var(--clr-text);
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 22px;
}

.about-story { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.about-story p { color: var(--clr-muted); line-height: 1.75; }

.about-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 3px solid var(--clr-accent);
  padding-left: 14px;
}
.stat-n {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-text);
  letter-spacing: -.02em;
  line-height: 1;
}
.stat-l {
  font-size: .78rem;
  color: var(--clr-muted);
  font-weight: 500;
  letter-spacing: .02em;
}

/* ── PROGRAMS ────────────────────────────────────────────────── */
.programs { background: var(--clr-bg); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.prog-card {
  background: var(--clr-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--trans), transform var(--trans);
  border: 1px solid var(--clr-border);
}
.prog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.prog-featured {
  position: relative;
  background: var(--clr-dark);
  color: var(--clr-white);
  border-color: transparent;
  outline: 3px solid var(--clr-accent);
  outline-offset: -1px;
}
.prog-featured::before {
  