/* ═══════════════════════════════════════════
   КЛИНИКА ДОКТОРА ЛЮБОВЦЕВОЙ — Global Styles
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --teal:        #2B7D7A;
  --teal-dark:   #1B5452;
  --teal-mid:    #3A9693;
  --teal-light:  #E6F4F3;
  --teal-pale:   #F0FAF9;
  --gold:        #C8A84B;
  --gold-dark:   #A8882A;
  --gold-light:  #F5EDD4;
  --dark:        #1C3333;
  --text:        #2E4A4A;
  --text-mid:    #5A7575;
  --text-light:  #8AABAB;
  --white:       #FFFFFF;
  --bg:          #FAFEFE;
  --border:      #D8ECEB;
  --shadow-sm:   0 2px 12px rgba(43,125,122,0.08);
  --shadow-md:   0 6px 28px rgba(43,125,122,0.12);
  --shadow-lg:   0 12px 48px rgba(43,125,122,0.16);
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   28px;
  --radius-xl:   36px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
.h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }
.h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.25; }
.h4 { font-size: 1.1rem; font-weight: 700; }
.lead { font-size: 1.05rem; line-height: 1.7; color: var(--text-mid); }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.teal   { color: var(--teal); }
.gold   { color: var(--gold); }
.dark   { color: var(--dark); }
.white  { color: var(--white); }
.upper  { text-transform: uppercase; }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .h2 { color: var(--dark); margin-bottom: 12px; }
.section-header .lead { max-width: 580px; margin: 0 auto; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 44px;
  height: 44px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-size: 0.78rem; font-weight: 700; color: var(--teal-dark); line-height: 1.2; letter-spacing: 0.04em; text-transform: uppercase; }
.logo-sub  { font-size: 0.65rem; color: var(--text-light); letter-spacing: 0.03em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover, .nav a.active { background: var(--teal-light); color: var(--teal-dark); }

.header-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-phone {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-dark);
}
.header-phone span { font-size: 0.7rem; color: var(--text-light); display: block; font-weight: 400; }

.icon-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.icon-link:hover { background: var(--teal); }
.icon-link:hover svg { stroke: white; fill: white; }

.working-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #3aab3a;
}
.working-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3aab3a;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(43,125,122,0.3);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,168,75,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}
.btn-lg { padding: 18px 36px; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 32px;
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.card-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.card-gold {
  background: var(--gold-light);
  border-color: rgba(200,168,75,0.3);
}

/* ── ICON BOXES ── */
.icon-box {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.icon-box svg { width: 28px; height: 28px; stroke: var(--teal); }
.icon-box-sm { width: 44px; height: 44px; margin-bottom: 0; }
.icon-box-sm svg { width: 22px; height: 22px; }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

/* ── STATS ROW ── */
.stats-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item { }
.stat-num {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-top: 4px;
}

/* ── BADGE / TAG ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.badge-teal { background: var(--teal-light); color: var(--teal-dark); }
.badge-gold { background: var(--gold-light); color: var(--gold-dark); }
.badge-dark { background: var(--dark); color: var(--white); }

/* ── HERO SECTION ── */
.hero {
  background: var(--teal-pale);
  padding: 72px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gold-light);
  border: 1px solid rgba(200,168,75,0.35);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 24px;
}
.hero-title { color: var(--dark); margin-bottom: 20px; }
.hero-title em { color: var(--teal); font-style: normal; }
.hero-desc { font-size: 1.05rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 36px; max-width: 480px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 40px; }

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── PROCESS STEPS ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  border-radius: var(--radius-md);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.step-num {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.15;
  position: absolute;
  top: 20px;
  right: 24px;
  letter-spacing: -0.04em;
}
.step-card.light { background: var(--teal-pale); border: 1px solid var(--border); }
.step-card.mid   { background: var(--teal); color: white; }
.step-card.dark  { background: var(--dark); color: white; }
.step-card.mid .step-num,
.step-card.dark .step-num { opacity: 0.2; color: white; }
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.step-desc  { font-size: 0.88rem; line-height: 1.65; opacity: 0.85; }

/* ── REVIEW CARDS ── */
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.review-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.review-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 1rem; }
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }
.review-text { font-size: 0.92rem; line-height: 1.7; color: var(--text-mid); }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 60px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.cta-banner::after {
  content: '';
  position: absolute;
  right: 80px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.cta-banner h2 { color: white; margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,0.8); font-size: 1rem; }
.cta-banner-btns { display: flex; flex-direction: column; gap: 12px; z-index: 1; }
.btn-messenger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-messenger:hover { background: rgba(255,255,255,0.25); }

/* ── ACCORDION / FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-q {
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-a {
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-top: 12px;
}

/* ── PROGRAM CARDS ── */
.program-card {
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  border: 2px solid var(--border);
  background: white;
  transition: all 0.25s;
}
.program-card.featured {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.program-card:not(.featured):hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.program-duration {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.program-card.featured .program-duration { color: rgba(255,255,255,0.7); }
.program-card:not(.featured) .program-duration { color: var(--teal); }
.program-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; line-height: 1.2; }
.program-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.program-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}
.program-feature-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.program-card:not(.featured) .program-feature-icon { background: var(--teal-light); }
.program-card.featured .program-feature-icon { background: rgba(255,255,255,0.2); }

/* ── SERVICE CARDS (icon + title) ── */
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.22s;
  cursor: pointer;
}
.service-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.service-card p  { font-size: 0.87rem; color: var(--text-mid); line-height: 1.6; }
.service-card-footer { margin-top: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  padding: 20px 0;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.4; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 64px 0;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.page-hero .badge { margin-bottom: 16px; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.page-hero h1 { color: white; margin-bottom: 16px; }
.page-hero p   { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 560px; line-height: 1.7; }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── WHY SECTION ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--teal-pale);
  border: 1px solid var(--border);
  transition: all 0.22s;
}
.why-card:hover {
  background: var(--teal-light);
  border-color: var(--teal);
  transform: translateY(-3px);
}
.why-icon { font-size: 2rem; margin-bottom: 14px; }
.why-title { font-weight: 700; color: var(--dark); margin-bottom: 8px; font-size: 0.95rem; }
.why-desc  { font-size: 0.84rem; color: var(--text-mid); line-height: 1.6; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { margin-bottom: 16px; }
.footer-desc { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.footer-contacts a,
.footer-contacts span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
}
.footer-contacts a:hover { color: var(--teal-mid); }
.footer-nav h4 { color: white; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px; }
.footer-nav a {
  display: block;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--teal-mid); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ── SPLIT SECTION ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* ── VISUAL MOCK (placeholder for images) ── */
.visual-mock {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  position: relative;
}
.visual-mock svg { width: 30%; opacity: 0.3; }

/* ── HIGHLIGHT BOX ── */
.highlight-box {
  background: var(--gold-light);
  border: 1px solid rgba(200,168,75,0.3);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 0.95rem;
  color: var(--text);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--teal-pale); }
::-webkit-scrollbar-thumb { background: var(--teal-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .grid-2, .grid-3, .split { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .steps-grid { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 40px 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero-stats { gap: 24px; }
  .program-card.featured { transform: scale(1); }
}