/* css/variant-c.css */

/* Grid items: prevent min-width:auto from expanding beyond track */
.hero-c-photo, .hero-c-text,
.about-c-photo, .about-c-text,
.prices-c-left, .prices-c-right,
.form-c-quote, .form-c-box,
.footer-c-address, .footer-c-contacts, .footer-c-map { min-width: 0; }
.about-c-text { overflow: hidden; }

/* ── HEADER (same structure as A, different file to keep isolation) ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 32px; }
.logo img { height: 40px; width: auto; }
.nav { margin-left: auto; }
.nav-menu { display: flex; gap: 28px; }
.nav-menu a { color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.nav-menu a:hover { color: var(--white); }
.header-cta { padding: 10px 24px; font-size: 0.9rem; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ── HERO C (split 50/50) ── */
.hero-c {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100vh; padding-top: 80px;
}
.hero-c-photo { overflow: hidden; }
.hero-c-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-c-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 48px; background: var(--bg); position: relative; overflow: hidden;
}
.hero-c-big {
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900; line-height: 0.9; letter-spacing: -0.04em;
  color: var(--border); position: absolute; bottom: -20px; right: -20px;
  pointer-events: none; user-select: none;
}
.hero-c-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 20px; position: relative; z-index: 1;
}
.hero-c-title span { color: var(--blue); }
.hero-c-sub { color: var(--muted); margin-bottom: 36px; max-width: 380px; position: relative; z-index: 1; }

/* ── STATS C ── */
.stats-c { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.stats-c-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
.stat-c { padding: 32px 24px; border-right: 1px solid var(--border); }
.stat-c:last-child { border-right: none; }
.stat-c-num {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900; line-height: 1; color: var(--white);
  letter-spacing: -0.03em; margin-bottom: 8px;
}
.stat-c-num span { color: var(--blue); font-size: 0.6em; }
.stat-c-label { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── ABOUT C ── */
.about-c-inner { display: grid; grid-template-columns: 3fr 4fr; gap: 48px; align-items: start; }
.about-c-photo { position: relative; padding-bottom: 24px; }
.about-c-photo > img:first-child { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.about-c-photo2 {
  position: absolute; bottom: 0; right: -24px;
  width: 55%; border: 3px solid var(--bg); border-radius: var(--radius); overflow: hidden;
}
.about-c-photo2 img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.about-c-text { padding-top: 24px; }
.about-c-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.about-c-text p { color: var(--muted); margin-bottom: 16px; }
.about-c-scroll { margin-top: 32px; }
.carousel-track { display: flex; gap: 10px; overflow-x: auto; cursor: grab; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 180px; }
.carousel-item img { width: 180px; height: 120px; object-fit: cover; border-radius: 8px; pointer-events: none; }

/* ── TRAINERS C ── */
.trainers-c { background: var(--surface); }
.trainers-c-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 40px; }
.trainer-c {
  display: grid; grid-template-columns: 80px 200px 1fr;
  gap: 40px; align-items: center;
  padding: 40px 0; border-top: 1px solid var(--border);
}
.trainer-c:last-child { border-bottom: 1px solid var(--border); }
.trainer-c-num { font-size: 4rem; font-weight: 900; color: var(--border); line-height: 1; }
.trainer-c-photo img { width: 200px; height: 240px; object-fit: cover; border-radius: var(--radius); }
.trainer-c-info h3 { font-size: 2rem; font-weight: 900; line-height: 1.1; margin-bottom: 8px; }
.trainer-c-since { color: var(--blue); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.trainer-c-info p { color: var(--muted); }

/* ── RESULTS C (masonry columns) ── */
.results-c-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.results-c-sub { color: var(--muted); }
.results-c-masonry { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; align-items: start; }
.masonry-col { display: flex; flex-direction: column; gap: 12px; }
.masonry-col--offset { margin-top: 48px; }
.result-c img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; display: block; transition: transform var(--transition); }
.result-c:hover img { transform: scale(1.02); }

/* ── PRICES C ── */
.prices-c-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.prices-c-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 20px; }
.prices-c-big {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900; line-height: 0.9; letter-spacing: -0.04em; margin-bottom: 24px;
}
.prices-c-big span { color: var(--blue); font-size: 0.5em; }
.prices-c-note { color: var(--muted); margin-bottom: 32px; }
.prices-c-table { width: 100%; border-collapse: collapse; }
.prices-c-table th { text-align: left; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 12px 0; border-bottom: 1px solid var(--border); }
.prices-c-table td { padding: 16px 0; border-bottom: 1px solid var(--border); color: var(--white); vertical-align: middle; }
.prices-c-table td:last-child { text-align: right; font-weight: 700; color: var(--blue); white-space: nowrap; }
.prices-c-table small { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.prices-c-table tr.featured-row td:last-child { font-size: 1.1rem; }
.prices-c-single { margin-top: 20px; color: var(--muted); font-size: 0.95rem; padding-top: 16px; border-top: 1px solid var(--border); }
.prices-c-single strong { color: var(--white); }

/* ── FORM C ── */
.form-c-section { background: var(--surface); }
.form-c-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.form-c-quote { padding: 40px; background: var(--bg); border-radius: var(--radius); border-left: 4px solid var(--blue); }
.quote-mark { font-size: 5rem; font-weight: 900; color: var(--blue); line-height: 0.7; margin-bottom: 16px; }
blockquote { font-size: 1.3rem; font-weight: 700; line-height: 1.4; margin-bottom: 16px; }
.form-c-quote cite { color: var(--muted); font-size: 0.85rem; font-style: normal; display: block; }
.form-c-quote blockquote footer { margin-top: 16px; }
.form-privacy { color: var(--muted); font-size: 0.75rem; margin-top: 12px; }

/* ── FOOTER C ── */
.footer-c { background: var(--bg); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-c-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-c-city { font-size: 3rem; font-weight: 900; letter-spacing: -0.03em; color: var(--border); margin-bottom: 16px; }
address { font-style: normal; color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.footer-logo { margin-bottom: 16px; }
.footer-c-contacts p { color: var(--white); font-weight: 600; margin-bottom: 8px; }
.footer-c-contacts a { color: var(--white); }
.footer-hours { color: var(--muted); font-size: 0.9rem; margin: 12px 0 16px; }
.footer-messengers { display: flex; gap: 10px; flex-wrap: wrap; }
.messenger-btn { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-size: 0.85rem; transition: border-color var(--transition); }
.messenger-btn:hover { border-color: var(--blue); color: var(--blue); }
.footer-c-map iframe { border-radius: var(--radius); }
.footer-c-bottom { border-top: 1px solid var(--border); padding: 20px; text-align: center; color: var(--muted); font-size: 0.8rem; }

/* ── SCROLL OFFSET FOR FIXED HEADER ── */
section[id], footer[id] {
  scroll-margin-top: 80px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .trainer-c { grid-template-columns: 60px 160px 1fr; gap: 24px; }
  .trainer-c-photo img { width: 160px; height: 200px; }
  .results-c-masonry { grid-template-columns: repeat(2,1fr); }
  .masonry-col--offset { margin-top: 0; }
}

@media (max-width: 900px) {
  /* Hero */
  .hero-c { grid-template-columns: 1fr; min-height: auto; padding-top: 0; }
  .hero-c-photo { height: 50vh; min-height: 260px; padding-top: 80px; box-sizing: border-box; }
  .hero-c-photo img { object-position: center top; }
  .hero-c-text { padding: 40px 24px 48px; }

  /* Stats */
  .stats-c { padding: 0; }
  .stats-c-grid { grid-template-columns: repeat(2,1fr); }
  .stat-c { padding: 28px 20px; border-bottom: 1px solid var(--border); }
  .stat-c:nth-child(2n) { border-right: none; }
  .stat-c:nth-child(3), .stat-c:nth-child(4) { border-bottom: none; }

  /* About */
  .about-c-inner { grid-template-columns: 1fr; gap: 24px; }
  .about-c-photo { padding-bottom: 0; }
  .about-c-photo > img:first-child { aspect-ratio: 3/2; }
  .about-c-photo2 { display: none; }

  /* Trainers */
  .trainer-c { grid-template-columns: 48px 1fr; gap: 20px; align-items: start; }
  .trainer-c-num { font-size: 2rem; padding-top: 8px; }
  .trainer-c-photo { display: none; }
  .trainer-c-info h3 { font-size: 1.5rem; }

  /* Prices / Form / Footer */
  .prices-c-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-c-inner { grid-template-columns: 1fr; }
  .footer-c-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* Navigation: header expands to fullscreen; nav-menu is absolute below the header bar */
  .site-header.menu-open { bottom: 0; background: var(--bg); backdrop-filter: none; }
  .nav-menu { display: none; }
  .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; bottom: 0; padding: 24px 20px 40px; gap: 28px; overflow-y: auto; }
  .nav-menu a { font-size: 1.4rem; font-weight: 700; color: var(--white); }
  .burger { display: flex; }
  .header-cta { display: none; }

  /* Section */
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 28px; }

  /* Hero */
  .hero-c-photo { height: 40vh; min-height: 220px; }
  .hero-c-text { padding: 32px 20px 40px; }
  .hero-c-title { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .hero-c-sub { font-size: 0.9rem; margin-bottom: 28px; }
  .hero-c-big { font-size: clamp(3rem, 18vw, 5rem); }

  /* Stats */
  .stats-c-grid { grid-template-columns: repeat(2,1fr); }
  .stat-c-num { font-size: clamp(2.5rem, 10vw, 4rem); }

  /* Results */
  .results-c-masonry { grid-template-columns: 1fr 1fr; gap: 8px; }
  .masonry-col--offset { margin-top: 0; }
  .results-c-header { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Prices */
  .prices-c-big { font-size: clamp(3rem, 14vw, 5rem); }
  .prices-c-table { font-size: 0.82rem; }
  .prices-c-table td { padding: 12px 0; }
  .prices-c-table td:last-child { font-size: 0.82rem; }

  /* Form */
  .form-c-quote { padding: 24px 20px; }
  blockquote { font-size: 1.1rem; }

  /* Footer */
  .footer-c-city { font-size: 2rem; }
  .footer-c-map iframe { height: 200px; }
}
