/* css/variant-b.css */

/* ── COLOUR TOKENS (light theme override) ── */
body.variant-b {
  --blue:       #E84010;
  --blue-hover: #C63A00;
  --bg:         #F7F6F3;
  --surface:    #FFFFFF;
  --surface2:   #EEEAE3;
  --border:     #E0DDD6;
  background: #F7F6F3;
  color: #111111;
}

/* ── HEADER ── */
body.variant-b .site-header:not(.scrolled) .nav-menu a { color: rgba(255,255,255,0.8); }
body.variant-b .site-header:not(.scrolled) .nav-menu a:hover { color: var(--blue); }
body.variant-b .site-header:not(.scrolled) .burger span { background: #FFFFFF; }
body.variant-b .site-header.scrolled {
  background: rgba(247,246,243,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E0DDD6;
}
body.variant-b .site-header.scrolled .nav-menu a { color: #555555; }
body.variant-b .site-header.scrolled .nav-menu a:hover { color: var(--blue); }
body.variant-b .site-header.scrolled .burger span { background: #111111; }

/* ── HERO ── */
.hero-b {
  position: relative;
  height: 100vh; min-height: 600px;
  display: flex; align-items: flex-end;
  padding-bottom: 80px; overflow: hidden;
  background: #1a1a1a;
}
.hero-b-bg {
  position: absolute; inset: 0;
  background: url('https://cdn-ru.bitrix24.ru/b28182076/landing/890/8908284b09ce71cb3cd20ff93398f79e/dsc_0767_1x.jpg') center/cover no-repeat;
}
.hero-b-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top,  rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 40%, rgba(0,0,0,0.10) 100%),
    linear-gradient(to right, rgba(0,0,0,0.55) 0%, transparent 65%);
}
.hero-b-content { position: relative; z-index: 1; max-width: 580px; }
.hero-b-label {
  display: block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 20px;
}
.hero-b-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 900; line-height: 1.0; letter-spacing: -0.03em;
  color: #FFFFFF; margin-bottom: 20px; text-transform: uppercase;
}
.hero-b-title em { font-style: normal; color: var(--blue); }
.hero-b-sub {
  color: rgba(255,255,255,0.62); font-size: 1rem;
  margin-bottom: 36px; max-width: 400px; line-height: 1.65;
}

/* ── STATS ── */
.stats-b {
  border-top: 1px solid #E0DDD6;
  border-bottom: 1px solid #E0DDD6;
}
.stats-b-inner {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: #E0DDD6;
}
.stat-b {
  background: #FFFFFF;
  padding: 40px 28px; text-align: center;
}
.stat-b-num {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900; color: #111111; line-height: 1; margin-bottom: 8px;
}
.stat-b-num em { font-style: normal; color: var(--blue); }
.stat-b-label {
  font-size: 0.76rem; color: #888888;
  text-transform: uppercase; letter-spacing: 0.1em;
}

/* ── ABOUT ── */
.about-b { background: #F7F6F3; }
.about-b-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-b-photo { min-width: 0; }
.about-b-photo img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius); display: block; }
.about-b-text { min-width: 0; overflow: hidden; }
.about-b-overline {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 16px;
}
.about-b-text .section-title { color: #111111; margin-bottom: 24px; }
.about-b-text p { color: #666666; margin-bottom: 16px; line-height: 1.75; }
.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 260px; }
.carousel-item img { width: 260px; height: 180px; object-fit: cover; border-radius: var(--radius); pointer-events: none; display: block; max-width: none; }

.about-b-carousel { margin-top: 32px; }
.about-b-carousel .carousel-item { flex: 0 0 190px; }
.about-b-carousel .carousel-item img { width: 190px; height: 126px; border-radius: 8px; }

/* ── TRAINERS (magazine cover cards) ── */
.trainers-b { border-top: 1px solid #E0DDD6; background: #F7F6F3; }
.trainers-b .section-title { color: #111111; }
.trainers-b-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trainer-b-card {
  position: relative; height: 520px;
  overflow: hidden; border-radius: var(--radius); cursor: default;
}
.trainer-b-card > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block; max-width: none;
  transition: transform 0.5s ease;
}
.trainer-b-card:hover > img { transform: scale(1.04); }
.trainer-b-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
}
.trainer-b-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px; color: #FFFFFF;
}
.trainer-b-num {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.trainer-b-info h3 { font-size: 1.7rem; font-weight: 900; margin-bottom: 4px; line-height: 1.15; }
.trainer-b-since { color: rgba(255,255,255,0.5); font-size: 0.8rem; margin-bottom: 12px; }
.trainer-b-info p { color: rgba(255,255,255,0.72); font-size: 0.88rem; line-height: 1.55; }

/* ── RESULTS ── */
.results-b { background: #F7F6F3; border-top: 1px solid #E0DDD6; }
.results-b .section-title { color: #111111; }
.results-b-sub { color: #888888; margin-top: -36px; margin-bottom: 40px; }
.results-b-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.result-b { position: relative; overflow: hidden; border-radius: 8px; }
.result-b img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.4s ease; display: block; }
.result-b:nth-child(even) img { aspect-ratio: 2/3; }
.result-b:hover img { transform: scale(1.04); }
.result-b-hover {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(232,64,16,0.75) 0%, rgba(180,28,0,0.55) 100%);
  opacity: 0; transition: opacity 0.3s ease;
}
.result-b:hover .result-b-hover { opacity: 1; }

/* ── PRICES ── */
.prices-b { background: #FFFFFF; border-top: 1px solid #E0DDD6; }
.prices-b .section-title { color: #111111; }
.prices-b-grid { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 16px; margin-bottom: 28px; align-items: start; }
.price-b-card {
  border: 1.5px solid #E0DDD6;
  border-radius: var(--radius); padding: 36px 28px;
  background: #FFFFFF; display: flex; flex-direction: column;
}
.price-b-card--featured {
  background: #111111; border-color: #111111;
  color: #FFFFFF;
  box-shadow: 0 20px 48px rgba(0,0,0,0.16);
}
.price-b-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.price-b-name { font-size: 1rem; font-weight: 700; color: #111111; margin-bottom: 20px; }
.price-b-card--featured .price-b-name { color: #FFFFFF; }
.price-b-amount { margin-bottom: 24px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.price-b-from { font-size: 0.85rem; color: #888888; }
.price-b-card--featured .price-b-from { color: rgba(255,255,255,0.45); }
.price-b-amount strong { font-size: 2.4rem; font-weight: 900; color: #111111; line-height: 1; }
.price-b-card--featured .price-b-amount strong { color: #FFFFFF; }
.price-b-amount > span { font-size: 0.85rem; color: #888888; }
.price-b-card--featured .price-b-amount > span { color: rgba(255,255,255,0.45); }
.price-b-features { list-style: none; flex: 1; margin-bottom: 28px; }
.price-b-features li {
  padding: 9px 0; border-bottom: 1px solid #E0DDD6;
  font-size: 0.88rem; color: #555555;
}
.price-b-card--featured .price-b-features li { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.72); }
.price-b-features li:last-child { border-bottom: none; }
.btn-b-outline {
  display: inline-block; text-align: center;
  border: 1.5px solid var(--blue); color: var(--blue);
  padding: 14px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
}
.btn-b-outline:hover { background: var(--blue); color: #FFFFFF; }
.prices-b-note {
  text-align: center; color: #888888; font-size: 0.87rem;
  border-top: 1px solid #E0DDD6; padding-top: 20px;
}
.prices-b-note strong { color: #111111; }

/* ── FORM (dark section) ── */
.form-b { background: #111111; color: #FFFFFF; }
.form-b .section-title { color: #FFFFFF; }
.form-b-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.form-b-reasons { list-style: none; margin-top: 28px; }
.form-b-reasons li {
  padding: 12px 0 12px 24px; border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.62); font-size: 0.95rem; position: relative;
}
.form-b-reasons li::before { content: '→'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.form-b .form-group input {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12); color: #FFFFFF;
}
.form-b .form-group input::placeholder { color: rgba(255,255,255,0.35); }
.form-b .form-group input:focus { border-color: var(--blue); }
.form-b .form-privacy { color: rgba(255,255,255,0.3); }

/* ── FOOTER ── */
.footer-b { background: #111111; color: #FFFFFF; padding: 60px 0 0; }
.footer-b-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-b .footer-logo { margin-bottom: 20px; display: block; }
.footer-b address { font-style: normal; color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.75; margin-bottom: 12px; }
.footer-b address a { color: #FFFFFF; }
.footer-hours { color: rgba(255,255,255,0.5); font-size: 0.88rem; margin-bottom: 20px; }
.footer-b .footer-messengers { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-b .messenger-btn {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 8px 14px; font-size: 0.85rem; color: #FFFFFF;
  transition: border-color var(--transition), color var(--transition);
}
.footer-b .messenger-btn:hover { border-color: var(--blue); color: var(--blue); }
.footer-b-map iframe { border-radius: var(--radius); display: block; }
.footer-b-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px; text-align: center; color: rgba(255,255,255,0.28); font-size: 0.8rem; }

/* ── STICKY CTA (mobile) ── */
body.variant-b .sticky-cta-mobile { background: #111111; border-top: 1px solid rgba(255,255,255,0.1); }

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

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .results-b-grid { grid-template-columns: repeat(3,1fr); }
  .trainer-b-card { height: 460px; }
}

@media (max-width: 900px) {
  .about-b-inner { grid-template-columns: 1fr; gap: 28px; }
  .about-b-photo img { height: 280px; }
  .trainers-b-grid { grid-template-columns: 1fr; gap: 16px; }
  .trainer-b-card { height: 420px; }
  .prices-b-grid { grid-template-columns: 1fr; }
  .price-b-card--featured { box-shadow: none; }
  .form-b-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-b-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  /* Navigation: header expands to fullscreen; nav-menu is absolute below the header bar */
  body.variant-b .site-header.menu-open { bottom: 0; background: #111111; 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: #FFFFFF; }
  .burger { display: flex; }
  .header-cta { display: none; }

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

  /* Hero */
  .hero-b { padding-bottom: 48px; }
  .hero-b-title { font-size: clamp(1.9rem, 10vw, 2.8rem); }
  .hero-b-sub { font-size: 0.9rem; margin-bottom: 24px; }

  /* Stats */
  .stats-b-inner { grid-template-columns: 1fr 1fr; }
  .stat-b { padding: 24px 16px; }

  /* About */
  .about-b-photo img { height: 220px; }

  /* Trainers */
  .trainer-b-card { height: 360px; }
  .trainer-b-info h3 { font-size: 1.4rem; }

  /* Results */
  .results-b-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .results-b-sub { margin-top: -20px; margin-bottom: 28px; }

  /* Prices */
  .price-b-card { padding: 24px 20px; }
  .price-b-amount strong { font-size: 2rem; }

  /* Form */
  .form-b-reasons { display: none; }
  .form-b-inner { gap: 20px; }

  /* Footer */
  .footer-b-map iframe { height: 220px; }

  /* Sticky CTA */
  body.variant-b .sticky-cta-mobile { display: block; }
  body.variant-b { padding-bottom: 76px; }
}
