/* ============================================================
   ЛИМФА — Редизайн 2025
   Modern Medical Clinic CSS
   ============================================================ */

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

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

:root {
  --green: #5ba828;
  --green-dark: #47891f;
  --green-light: #eef7e5;
  --green-mid: #d4eebd;
  --navy: #1b2e14;
  --text: #2d3748;
  --text-light: #6b7a8d;
  --white: #ffffff;
  --bg-light: #f8faf5;
  --bg-grey: #f4f4f6;
  --border: #e2e8d6;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.1rem; color: var(--text-light); line-height: 1.7; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(91,168,40,0.35);
}
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 6px 20px rgba(91,168,40,0.45); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--green);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.btn-white:hover { background: var(--green-light); color: var(--green-dark); }
.btn-lg { padding: 17px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ---- Layout ---- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-light); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.section-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.06);
}

.header-top {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.header-top .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.header-address {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--text-light);
}
.header-address svg { color: var(--green); flex-shrink: 0; }
.header-phone {
  display: flex; align-items: center; gap: 8px;
}
.header-phone a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 1.1rem; color: var(--navy);
}
.header-phone a:hover { color: var(--green); }
.header-phone small { color: var(--text-light); font-size: 0.75rem; }
.header-socials { display: flex; gap: 8px; }
.header-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-light); color: var(--text-light);
  font-size: 0.9rem; transition: all var(--transition);
}
.header-socials a:hover { background: var(--green); color: var(--white); }

.header-main .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 12px; padding-bottom: 12px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img { width: 44px; height: 44px; }
.logo-text { line-height: 1.1; }
.logo-text .logo-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 1.45rem; color: var(--green);
  letter-spacing: 0.05em;
}
.logo-text .logo-sub {
  font-size: 0.68rem; color: var(--text-light);
  letter-spacing: 0.05em; text-transform: uppercase;
}
/* Подзаголовок логотипа в хедере никогда не помещается — скрываем */
.site-header .logo-sub { display: none; }
/* Кнопка «Записаться» в шапке не помещается — она есть в top-bar и герое */
.header-cta .btn-primary { display: none; }

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 8px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--text);
  transition: all var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--green); background: var(--green-light); }
.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
/* Убираем дублирующий пункт «Коллектив» — он доступен через дропдаун «О клинике» */
.main-nav > a.nav-link[href="team.html"] { display: none; }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  min-width: 240px; padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 20px;
  font-size: 0.9rem; color: var(--text);
  transition: all var(--transition);
}
.dropdown a:hover { background: var(--bg-light); color: var(--green); padding-left: 24px; }

/* Header CTA */
.header-cta {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.burger span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 999;
  padding: 116px 24px 40px; overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text); cursor: pointer;
}
.mobile-nav a {
  display: block; padding: 14px 0;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1.1rem;
  color: var(--navy); border-bottom: 1px solid var(--border);
}
.mobile-nav-footer { margin-top: 24px; }
.mobile-nav-footer .btn { width: 100%; justify-content: center; }
/* Кнопки в mobile-nav не должны наследовать стиль ссылок-пунктов меню */
.mobile-nav .btn { display: flex; padding: 14px 24px; border-bottom: none; color: var(--white); font-size: 1rem; }
.mobile-phone {
  text-align: center; margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--navy);
}
.mobile-phone a {
  color: var(--navy); font-size: 1.3rem; font-weight: 700;
  border-bottom: none; padding: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg-light);
  overflow: hidden;
  min-height: 560px;
  display: flex; align-items: center;
}
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding-top: 60px; padding-bottom: 60px;
}
.hero-content { }
.hero-tag { margin-bottom: 16px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--green); }
.hero-text { font-size: 1.1rem; color: var(--text-light); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-light); margin-top: 20px;
}
.hero-note svg { color: var(--green); }

.hero-visual { position: relative; }
.hero-img-wrap {
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5/4;
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-light) 100%);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--white); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px;
}
.hero-badge-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.hero-badge-text strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; color: var(--navy); }
.hero-badge-text span { font-size: 0.8rem; color: var(--text-light); }
.hero-doctor {
  position: absolute; top: 16px; right: -12px;
  background: var(--white); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow);
  font-size: 0.82rem; max-width: 180px;
}
.hero-doctor strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; color: var(--navy); margin-bottom: 2px; }
.hero-doctor span { color: var(--text-light); line-height: 1.4; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--green);
  padding: 40px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-item {
  text-align: center; padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.stat-item:last-child { border-right: none; }
.stat-icon { font-size: 2rem; margin-bottom: 8px; }
.stat-number {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 2rem; color: var(--white); line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.8); }

/* ============================================================
   ABOUT
   ============================================================ */
.about .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-img-wrap {
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--green-light);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-content .section-tag { margin-bottom: 12px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { color: var(--text-light); margin-bottom: 16px; line-height: 1.75; }
.about-list { margin: 24px 0; }
.about-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.about-list li:last-child { border-bottom: none; }
.about-list-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; flex-shrink: 0; margin-top: 2px;
}
.about-certs {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px;
}
.cert-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--bg-light); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 500; color: var(--text-light);
}
.cert-badge svg { color: var(--green); }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg-light); }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card-img {
  aspect-ratio: 16/7;
  background: var(--green-mid);
  overflow: hidden;
}
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-card-img img { transform: scale(1.04); }
.service-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 { margin-bottom: 10px; }
.service-card-body p { color: var(--text-light); font-size: 0.93rem; flex: 1; margin-bottom: 16px; }
.service-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green); font-weight: 600; font-size: 0.9rem;
  transition: gap var(--transition);
}
.service-link:hover { gap: 10px; }

/* ============================================================
   RESULTS (Before/After)
   ============================================================ */
.results-slider { position: relative; }
.results-track {
  display: flex; overflow-x: auto; gap: 20px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 8px;
}
.results-track::-webkit-scrollbar { display: none; }
.result-slide {
  flex-shrink: 0; scroll-snap-align: start;
  width: 340px; border-radius: var(--radius);
  overflow: hidden; background: var(--white);
  box-shadow: var(--shadow);
}
.result-images { display: grid; grid-template-columns: 1fr 1fr; }
.result-img {
  position: relative; aspect-ratio: 3/4;
  background: var(--bg-grey);
}
.result-img img { width: 100%; height: 100%; object-fit: cover; }
.result-label {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.65); color: var(--white);
  font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 50px;
  white-space: nowrap;
}
.result-label.after { background: var(--green); }
.result-caption { padding: 14px 16px; }
.result-caption p { font-size: 0.85rem; color: var(--text-light); margin: 0; }

.slider-controls { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.slider-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition); color: var(--text);
}
.slider-btn:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.slider-dots { display: flex; align-items: center; gap: 8px; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: all var(--transition); cursor: pointer;
}
.slider-dot.active { background: var(--green); width: 24px; border-radius: 50px; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { background: var(--bg-light); }
.reviews-rating-bar {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-bottom: 40px; padding: 24px 32px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rating-main { text-align: center; padding-right: 24px; border-right: 1px solid var(--border); }
.rating-score {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 3rem; color: var(--navy); line-height: 1;
}
.rating-stars { color: #f59e0b; font-size: 1.1rem; margin: 4px 0; }
.rating-count { font-size: 0.82rem; color: var(--text-light); }
.rating-platforms { display: flex; gap: 20px; flex-wrap: wrap; }
.platform-badge {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-light);
  text-decoration: none; transition: all var(--transition);
  cursor: pointer;
}
a.platform-badge:hover {
  border-color: var(--green); background: var(--green-light);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.platform-badge .pname { font-size: 0.82rem; color: var(--text-light); }
.platform-badge .pscore {
  font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--navy);
}
.platform-badge .pstars { color: #f59e0b; font-size: 0.78rem; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-mid); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--green-dark);
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-meta strong { display: block; font-size: 0.95rem; color: var(--navy); }
.review-meta span { font-size: 0.8rem; color: var(--text-light); }
.review-stars { color: #f59e0b; font-size: 0.9rem; margin-bottom: 10px; }
.review-text { color: var(--text-light); font-size: 0.9rem; line-height: 1.65; flex: 1; }
.review-source {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-light);
}
.review-all-btn { text-align: center; margin-top: 36px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.3rem;
  margin: 0 auto 16px;
}
.step-img {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg-grey); margin-bottom: 16px;
}
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.step-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step-card p { font-size: 0.9rem; color: var(--text-light); }

/* ============================================================
   ARTICLES
   ============================================================ */
.articles { background: var(--bg-light); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
  transition: all var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card-img {
  aspect-ratio: 16/9; position: relative; overflow: hidden;
  background: var(--green-mid);
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.5) 100%);
}
.article-card-img .article-tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--green); color: var(--white);
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 50px;
}
.article-card-body { padding: 20px; }
.article-card-body h3 { font-size: 1rem; margin-bottom: 8px; }
.article-card-body p { font-size: 0.88rem; color: var(--text-light); }
.article-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  color: var(--green); font-weight: 600; font-size: 0.88rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: pointer; gap: 16px;
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 1rem; color: var(--navy);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--green); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--transition);
  font-size: 1rem;
}
.faq-item.open .faq-icon { background: var(--green); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  overflow: hidden; max-height: 0; transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--text-light); font-size: 0.95rem; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }

/* ============================================================
   CTA FORM SECTION
   ============================================================ */
.cta-form-section {
  background: linear-gradient(135deg, var(--navy) 0%, #2d5a1b 100%);
  padding: 80px 0;
}
.cta-form-section .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.cta-form-content h2 { color: var(--white); margin-bottom: 16px; }
.cta-form-content p { color: rgba(255,255,255,0.75); font-size: 1rem; }
.cta-video-wrap {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; background: rgba(255,255,255,0.1);
  position: relative; cursor: pointer;
}
.cta-video-wrap img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.3);
}
.video-play-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; transition: transform var(--transition);
}
.cta-video-wrap:hover .video-play-btn { transform: scale(1.1); }

.cta-form { background: var(--white); border-radius: var(--radius); padding: 36px; }
.cta-form h3 { margin-bottom: 8px; }
.cta-form .lead { margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.88rem; font-weight: 500; color: var(--text); }
.form-control {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--green); }
.form-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.8rem; color: var(--text-light); margin-bottom: 20px;
}
.form-consent input { margin-top: 3px; accent-color: var(--green); }
.form-consent a { color: var(--green); text-decoration: underline; }
.form-submit .btn { width: 100%; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  padding: 64px 0 32px;
}
.footer-main {
  display: grid; grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo-brand { font-size: 1.5rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-top: 16px; line-height: 1.7; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer-socials a:hover { background: var(--green); color: var(--white); }

.footer-col h4 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 0.88rem; color: var(--white);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.6); font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--green-light); }

.footer-contacts { }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px;
}
.footer-contact-item svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a, .footer-contact-item span {
  color: rgba(255,255,255,0.6); font-size: 0.88rem;
}
.footer-contact-item a:hover { color: var(--green-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-bottom-links a:hover { color: var(--green-light); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--green-light) 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.83rem; color: var(--text-light); margin-bottom: 16px;
}
.breadcrumb a { color: var(--green); }
.breadcrumb span { color: var(--border); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { max-width: 620px; }

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card.featured { grid-column: span 1; }
.team-card-img {
  aspect-ratio: 3/4; background: var(--green-mid);
  overflow: hidden;
}
.team-card-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card-body { padding: 20px; }
.team-card-body h3 { font-size: 1rem; margin-bottom: 4px; }
.team-card-role {
  font-size: 0.82rem; color: var(--green); font-weight: 500; margin-bottom: 10px;
}
.team-card-body p { font-size: 0.85rem; color: var(--text-light); }

/* ============================================================
   PRICES PAGE
   ============================================================ */
.prices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  background: var(--white); border-radius: var(--radius);
  border: 1.5px solid var(--border); padding: 32px 28px;
  transition: all var(--transition);
}
.price-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.price-card-icon { font-size: 2.4rem; margin-bottom: 16px; }
.price-card h3 { margin-bottom: 8px; }
.price-card .price-desc { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.price-list { margin: 20px 0; border-top: 1px solid var(--border); }
.price-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.price-row-name { font-size: 0.9rem; color: var(--text); flex: 1; }
.price-row-price { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--green); white-space: nowrap; }

/* ============================================================
   CONTACTS PAGE
   ============================================================ */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-block { display: flex; flex-direction: column; gap: 24px; }
.contact-block {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.contact-block h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.contact-block h3 svg { color: var(--green); }
.contact-map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3; background: var(--bg-grey);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; }

/* ============================================================
   LIBRARY / ARTICLES PAGE
   ============================================================ */
.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.library-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.library-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.library-card-img {
  aspect-ratio: 16/9; background: var(--green-mid); overflow: hidden;
}
.library-card-img img { width: 100%; height: 100%; object-fit: cover; }
.library-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.library-card-body h3 { font-size: 1rem; margin-bottom: 8px; }
.library-card-body p { font-size: 0.88rem; color: var(--text-light); flex: 1; }
.library-card-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.library-card-footer span { font-size: 0.8rem; color: var(--text-light); }

/* ============================================================
   STICKY CTA BAR (bottom mobile)
   ============================================================ */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 12px 20px; z-index: 990; gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.sticky-cta .btn { flex: 1; justify-content: center; }

/* ============================================================
   FLOATING CHAT BUTTON
   ============================================================ */
.float-chat {
  position: fixed; bottom: 28px; right: 28px; z-index: 980;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.float-chat-bubble {
  background: var(--white); border-radius: var(--radius);
  padding: 12px 16px; box-shadow: var(--shadow-lg);
  font-size: 0.85rem; color: var(--text); max-width: 200px;
  animation: float-pulse 3s ease-in-out infinite;
}
.float-chat-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 6px 20px rgba(91,168,40,0.4);
  transition: transform var(--transition);
}
.float-chat-btn:hover { transform: scale(1.1); }
@keyframes float-pulse { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-light { color: var(--text-light); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }
.bg-light { background: var(--bg-light); }
.hidden { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */


@media (max-width: 1100px) {
  .header-top .container > *:not(.header-phone):not(.btn) { display: none; }
  .main-nav { display: none; }
  .burger { display: flex; }
  .header-main .container { gap: 12px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about .container { grid-template-columns: 1fr; }
  .about-img-wrap { max-height: 300px; }
  .services-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .reviews-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .prices-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .cta-form-section .container { grid-template-columns: 1fr; }
  .cta-video-wrap { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .stat-item:nth-child(even) { }
  .articles-grid { grid-template-columns: 1fr; }
  .stages-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 600px) {
  .stages-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .reviews-rating-bar { flex-direction: column; }
  .rating-main { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 16px; }
  .footer-main { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  .float-chat { bottom: 88px; }
  /* Мобильный хедер — убираем кнопку из верхней полоски и пустой header-cta */
  .header-top .container > .btn { display: none; }
  .header-cta { display: none; }
  /* "бесплатный звонок" показываем как бейдж рядом с номером */
  .header-phone { flex-wrap: wrap; gap: 4px; }
  .header-phone small {
    display: inline-block;
    background: var(--green-light); color: var(--green-dark);
    font-size: 0.7rem; font-weight: 600;
    padding: 2px 8px; border-radius: 20px;
    letter-spacing: 0.02em;
  }
  .header-main .container { padding-top: 8px; padding-bottom: 8px; }
  /* Бургер всегда виден */
  .burger { display: flex !important; flex-shrink: 0; }
}

@media (max-width: 400px) {
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; }
}

/* ============================================================
   BREADCRUMBS (inner pages)
   ============================================================ */
.breadcrumbs {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumbs nav {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.83rem; color: var(--text-light);
}
.breadcrumbs a { color: var(--green); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* ============================================================
   PAGE HERO CONTENT (inner pages)
   ============================================================ */
.page-hero-content { max-width: 700px; }
.page-hero-content h1 { margin-bottom: 12px; }
.page-hero-content .hero-text { max-width: 620px; color: var(--text-secondary); }

/* ============================================================
   TEAM CARD — additional subclasses
   ============================================================ */
.team-card-photo {
  aspect-ratio: 3/4; background: var(--green-mid);
  overflow: hidden;
}
.team-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card-name { font-size: 1rem; margin-bottom: 4px; }
.team-card-info {
  list-style: none; padding: 0; margin: 8px 0 0;
}
.team-card-info li {
  font-size: 0.82rem; color: var(--text-light);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}
.team-card-info li::before {
  content: '—';
  position: absolute; left: 0;
  color: var(--green);
}

/* ============================================================
   PRICE CARD — additional subclasses
   ============================================================ */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card-badge {
  position: absolute; top: -1px; right: 20px;
  background: var(--green); color: var(--white);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 4px 12px; border-radius: 0 0 8px 8px;
}
.price-card-header { margin-bottom: 4px; }
.price-card-icon { font-size: 2.4rem; margin-bottom: 12px; }
.price-card-title { margin-bottom: 6px; }
.price-card-desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; }
.price-card-body { flex: 1; margin: 20px 0 0; }
.price-card-footer { margin-top: 24px; }
.price-card-note {
  font-size: 0.82rem; color: var(--text-light);
  background: var(--bg-light);
  border-radius: 8px; padding: 12px;
  margin-top: 16px; line-height: 1.5;
}
.price-list { list-style: none; padding: 0; margin: 0; }
.price-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.price-item:last-child { border-bottom: none; }
.price-item-name { flex: 1; color: var(--text); }
.price-item-value { color: var(--green); font-weight: 600; white-space: nowrap; font-size: 0.85rem; }

/* ============================================================
   BREADCRUMB LIST (ol-based, inner pages)
   ============================================================ */
.breadcrumb-list {
  display: flex; align-items: center; gap: 6px;
  list-style: none; padding: 0; margin: 0;
  font-size: 0.83rem; color: var(--text-light);
}
.breadcrumb-list li { display: flex; align-items: center; gap: 6px; }
.breadcrumb-list li + li::before {
  content: '/'; color: var(--border); font-size: 0.75rem;
}
.breadcrumb-list a { color: var(--green); }
.breadcrumb-list a:hover { text-decoration: underline; }

/* ============================================================
   PAGE HERO TEXT
   ============================================================ */
.page-hero-text {
  font-size: 1.05rem; color: var(--text-light);
  max-width: 640px; line-height: 1.75; margin-top: 12px;
}

/* ============================================================
   NAV ACTIVE STATE
   ============================================================ */
.nav-link--active { color: var(--green) !important; background: var(--green-light) !important; }

/* ============================================================
   CONTACTS PAGE — layout
   ============================================================ */
.contacts-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.contacts-info { display: flex; flex-direction: column; gap: 20px; }
.contacts-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }

.contact-block {
  background: var(--white); border-radius: var(--radius);
  padding: 24px 28px; box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: 16px;
}
.contact-block-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-block-body { flex: 1; }
.contact-block-body h3 { font-size: 0.95rem; margin-bottom: 8px; color: var(--navy); }
.contact-block-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 6px; }
.contact-block-body p:last-child { margin-bottom: 0; }
.contact-phone-link {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 1rem; color: var(--navy);
}
.contact-phone-link:hover { color: var(--green); }

/* ============================================================
   CONTACTS PAGE — directions
   ============================================================ */
.directions-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start;
}
.directions-content { display: flex; flex-direction: column; gap: 28px; }
.direction-item { display: flex; align-items: flex-start; gap: 20px; }
.direction-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-light); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.direction-body h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy); }
.direction-body p { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; }

@media (max-width: 900px) {
  .contacts-layout { grid-template-columns: 1fr; }
  .directions-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   LIBRARY PAGE — books grid
   ============================================================ */
.library-books-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  max-width: 760px; margin: 0 auto;
}
.book-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.book-card-img {
  position: relative; aspect-ratio: 3/4; background: var(--green-mid); overflow: hidden;
}
.book-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.book-card:hover .book-card-img img { transform: scale(1.04); }
.book-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--green); color: var(--white);
  font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 50px;
  z-index: 1;
}
.book-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.book-tag {
  display: inline-block;
  background: var(--green-light); color: var(--green-dark);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 50px; margin-bottom: 10px;
}
.book-card-body h3 { font-size: 1.1rem; margin-bottom: 10px; }
.book-card-body p { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; flex: 1; }

@media (max-width: 600px) {
  .library-books-grid { grid-template-columns: 1fr; max-width: 360px; }
}
