/* ============================================
   ПОДЗАРЯДКА — Landing (Marina Volodina, Rybinsk)
   Design system & responsive
   ============================================ */

:root {
  /* Palette from design */
  --bg: #f8f8fc;
  --bg-card: #ffffff;
  --text: #2d2d2d;
  --text-muted: #5a5a5a;
  --accent-magenta: #ec4899;
  --accent-magenta-soft: rgba(236, 72, 153, 0.12);
  --accent-violet: #6366f1;
  --accent-violet-soft: rgba(99, 102, 241, 0.12);
  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --border: rgba(45, 45, 45, 0.08);
  --shadow: 0 4px 24px rgba(45, 45, 45, 0.06);
  --shadow-hover: 0 8px 32px rgba(45, 45, 45, 0.1);

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & layout */
  --header-h: 72px;
  --section-padding-y: clamp(3rem, 8vw, 5rem);
  --container-max: 1140px;
  --radius: 16px;
  --radius-sm: 10px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease-out); }
ul { list-style: none; margin: 0; padding: 0; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-brand);
  z-index: 9999;
  transition: width 0.08s linear;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(248, 248, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.navbar { padding: 0; }
.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}
.brand-icon { flex-shrink: 0; }
.brand-name { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.navbar-toggler {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--accent-violet-soft); }
.nav-toggle-icon { width: 24px; height: 24px; color: var(--text); }

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}
.navbar-nav .nav-link:hover { color: var(--accent-violet); }

/* Offcanvas mobile menu */
.offcanvas { border-left: 1px solid var(--border); }
.offcanvas-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav-list a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
}
.mobile-nav-list a:hover { color: var(--accent-violet); background: var(--accent-violet-soft); }
.mobile-contact { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.mobile-phone { font-weight: 600; font-size: 1.125rem; color: var(--accent-violet); }
.mobile-name { margin: 0.25rem 0 0; color: var(--text-muted); font-size: 0.9375rem; }

/* Hero */
.hero {
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  max-width: 400px;
  height: 60%;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
}
.hero-title { margin: 0 0 0.5rem; }
.hero-title-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-hint {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-style: italic;
}

.hero-content { position: relative; }
.hero-visual {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-image { width: 100%; object-fit: cover; }

.hero-benefits-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.benefit-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  border: 1px solid var(--border);
}
.benefit-bubble .benefit-icon { flex-shrink: 0; color: var(--accent-magenta); }
.benefit-bubble--tl { top: 8%; left: -8%; }
.benefit-bubble--bl { bottom: 12%; left: -5%; }
.benefit-bubble--tr { top: 10%; right: -10%; }
.benefit-bubble--br { bottom: 15%; right: -8%; }

@media (max-width: 991px) {
  .hero-benefits-orb { position: static; transform: none; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
  .benefit-bubble { position: static !important; }
}
@media (max-width: 575px) {
  .benefit-bubble { white-space: normal; font-size: 0.75rem; padding: 0.4rem 0.6rem; }
}

/* Reveal (for JS scroll animations) */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* Sections common */
.section {
  padding: var(--section-padding-y) 0;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--text);
  margin: 0 0 1rem;
}
.section-text {
  color: var(--text-muted);
  margin: 0;
  max-width: 52ch;
}

/* Nutrition — tape strip */
.section--nutrition { padding-top: 0; }
.tape-wrap {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  overflow: hidden;
}
.tape {
  position: absolute;
  width: 140%;
  height: 48px;
  background: var(--accent-magenta);
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 12px rgba(236, 72, 153, 0.3);
}
.tape::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 8px,
    rgba(255,255,255,0.15) 8px,
    rgba(255,255,255,0.15) 10px
  );
  pointer-events: none;
}
.tape--1 { transform: rotate(-4deg); }
.tape--2 { transform: rotate(3deg); top: 50%; margin-top: -24px; }
.tape-text-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}
.tape-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.section-inner { padding-top: 0.5rem; }
.nutrition-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nutrition-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 500;
}
.nutrition-list svg { flex-shrink: 0; color: var(--accent-magenta); }

/* Training */
.training-lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  text-align: center;
  color: var(--text);
  margin: 0 0 2rem;
  line-height: 1.5;
}
.training-lead .highlight { color: var(--accent-magenta); font-weight: 600; }

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feature-card-icon { color: var(--accent-violet); margin-bottom: 0.75rem; }
.feature-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.feature-card-text { color: var(--text-muted); margin: 0; font-size: 0.9375rem; }

/* Benefits grid */
.benefit-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
  height: 100%;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}
.benefit-card:hover { border-color: var(--accent-violet); box-shadow: var(--shadow); }
.benefit-card-icon { color: var(--accent-magenta); margin-bottom: 0.75rem; }
.benefit-card-text { margin: 0; font-size: 0.9375rem; color: var(--text); }

/* Contact */
.section--contact { padding-bottom: 4rem; }
.contact-block {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-lead { font-size: 0.9375rem; color: var(--text-muted); margin: 0 0 1rem; }
.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}
.contact-phone:hover { color: var(--accent-violet); }
.contact-phone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-phone-icon svg { width: 20px; height: 20px; }
.contact-name { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin: 0.5rem 0 0.25rem; }
.contact-city { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.footer-text {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* Container override if needed */
.container { max-width: var(--container-max); }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .feature-card:hover { transform: none; }
}
