/* ============================================================
   АГРЕГАТОР СТОМАТОЛОГИЙ МИНСКА — Гибридный стиль
   Чистый медицинский + уютный доверительный + премиум акценты
   ============================================================ */

:root {
  /* Палитра — гибрид: медицинский чистый + тёплые доверительные тона */
  --primary: #0E7C86;
  --primary-dark: #0A5F67;
  --primary-light: #E0F2F4;
  --accent: #F4A261;
  --accent-dark: #E76F51;
  --ink: #1F2A33;
  --ink-soft: #5A6B78;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FA;
  --bg-mint: #E8F6F7;
  --line: #E3EAEE;
  --white: #FFFFFF;

  /* Типографика */
  --font-head: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Отступы и радиусы */
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;

  /* Тени */
  --shadow-sm: 0 2px 10px rgba(31, 42, 51, 0.06);
  --shadow-md: 0 8px 30px rgba(31, 42, 51, 0.10);
  --shadow-lg: 0 20px 50px rgba(31, 42, 51, 0.14);

  /* Контейнер */
  --container: 1200px;
}

/* ============================================================
   БАЗА
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }

.section-head { max-width: 720px; margin-bottom: 48px; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title { font-size: clamp(28px, 4vw, 40px); color: var(--ink); }

.section-sub { color: var(--ink-soft); font-size: 17px; margin-top: 14px; }

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}

.logo__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
}

.nav { display: flex; gap: 8px; }

.nav a {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}

.nav a:hover { color: var(--primary); background: var(--bg-mint); }

.header__cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
}

.header__cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.header__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }

.header__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--bg-mint) 0%, var(--bg-soft) 55%, var(--bg) 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 88px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2EC4B6;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(46, 196, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0); }
}

.hero__title {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__title .grad {
  background: linear-gradient(120deg, var(--primary), var(--accent-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}

.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn--ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-2px); }

.hero__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero__stat { display: flex; flex-direction: column; }

.hero__stat-value { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--primary); }

.hero__stat-label { font-size: 13px; color: var(--ink-soft); }

.hero__media { position: relative; }

.hero__img {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.hero__card {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__card--rating { top: -18px; left: -18px; }
.hero__card--rating .hero__card-ico { color: #F4A261; }
.hero__card--safety { bottom: 24px; right: -14px; }
.hero__card--safety .hero__card-ico { color: var(--primary); }

.hero__card-ico { font-size: 26px; }

.hero__card-title { font-family: var(--font-head); font-size: 16px; font-weight: 700; }

.hero__card-sub { font-size: 12px; color: var(--ink-soft); }

/* ============================================================
   ПОЛОСА ДОВЕРИЯ / ЛОГОТИПЫ
   ============================================================ */
.trustbar { background: var(--ink); color: #fff; padding: 22px 0; }

.trustbar__inner { display: flex; align-items: center; gap: 28px; overflow: hidden; white-space: nowrap; }

.trustbar__title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #9FB0BC; }

.trustbar__items { display: flex; gap: 28px; font-family: var(--font-head); font-weight: 700; font-size: 16px; color: #DCE6EC; }

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature__ico {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-size: 26px;
  background: var(--bg-mint);
  margin-bottom: 18px;
}

.feature__title { font-size: 18px; margin-bottom: 8px; }

.feature__text { color: var(--ink-soft); font-size: 14.5px; }

/* ============================================================
   КАТАЛОГ КЛИНИК
   ============================================================ */
.catalog { background: var(--bg-soft); }

.catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.search-box { position: relative; flex: 1; min-width: 260px; }

.search-box input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  transition: border-color 0.2s;
}

.search-box input:focus { outline: none; border-color: var(--primary); }

.search-box .search-ico {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--ink-soft);
}

.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.2s;
}

.filter-chip:hover { border-color: var(--primary); color: var(--primary); }

.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.clinics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.clinic-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.clinic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.clinic-card__top { padding: 22px 22px 0; }

.clinic-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

.clinic-card__name { font-size: 19px; margin-bottom: 4px; }

.clinic-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF6EB;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.clinic-card__type { font-size: 12.5px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }

.clinic-card__addr {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.clinic-card__addr .ico { flex-shrink: 0; }

.clinic-card__addr a { color: var(--primary); font-weight: 500; }

.clinic-card__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 22px; }

.clinic-card__tag {
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-mint);
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: 999px;
}

.clinic-card__foot {
  margin-top: auto;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.clinic-card__phone { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--ink); }

.clinic-card__link {
  color: var(--primary);
  font-weight: 600;
  font-size: 13.5px;
  border-bottom: 1.5px dashed transparent;
  transition: border-color 0.2s;
}

.clinic-card__link:hover { border-color: var(--primary); }

.catalog__empty { display: none; text-align: center; padding: 60px 0; color: var(--ink-soft); }

.catalog__empty.show { display: block; }

.catalog__empty .emoji { font-size: 48px; margin-bottom: 12px; }

/* ============================================================
   ЦЕНЫ
   ============================================================ */
.prices-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.prices-table th, .prices-table td { padding: 16px 22px; text-align: left; }

.prices-table thead th {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prices-table tbody tr { border-bottom: 1px solid var(--line); transition: background 0.2s; }

.prices-table tbody tr:hover { background: var(--bg-mint); }

.prices-table tbody tr:last-child { border-bottom: none; }

.prices-table td:last-child { font-family: var(--font-head); font-weight: 700; color: var(--primary-dark); white-space: nowrap; }

.prices-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--bg-mint);
  border-left: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

/* ============================================================
   ТУРИЗМ / ПОЧЕМУ МИНСК
   ============================================================ */
.tourism { background: linear-gradient(160deg, var(--bg-mint), var(--bg)); }

.tourism__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.tourism__img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.tourism__points { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }

.tourism__point { display: flex; gap: 14px; align-items: flex-start; }

.tourism__point-ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  font-size: 18px;
}

.tourism__point-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; }

.tourism__point-text { color: var(--ink-soft); font-size: 14px; }

/* ============================================================
   КАК РАБОТАЕТ
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }

.step { position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; }

.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}

.step__title { font-size: 17px; margin-bottom: 6px; }

.step__text { color: var(--ink-soft); font-size: 14px; }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews { background: var(--bg-soft); }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.review__stars { color: var(--accent); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }

.review__text { font-size: 14.5px; color: var(--ink); margin-bottom: 18px; }

.review__author { display: flex; align-items: center; gap: 12px; }

.review__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
}

.review__name { font-weight: 600; font-size: 14px; }

.review__meta { font-size: 12px; color: var(--ink-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); overflow: hidden; }

.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-align: left;
}

.faq-item__q .plus {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--primary);
  transition: transform 0.25s;
}

.faq-item.open .plus { transform: rotate(45deg); }

.faq-item__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

.faq-item__a-inner { padding: 0 24px 20px; color: var(--ink-soft); font-size: 14.5px; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  overflow: hidden;
  padding: 72px 0;
}

.cta::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.cta::after {
  content: "";
  position: absolute;
  left: -80px; bottom: -140px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(244, 162, 97, 0.18);
}

.cta__inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }

.cta__title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }

.cta__sub { color: rgba(255, 255, 255, 0.85); font-size: 17px; margin-bottom: 32px; }

.cta .btn--accent { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }

.cta__hint { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer { background: var(--ink); color: #B9C6CF; padding: 48px 0 32px; }

.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }

.footer .logo { color: #fff; }

.footer__about { font-size: 13.5px; margin-top: 16px; max-width: 300px; line-height: 1.7; }

.footer__col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }

.footer__col a { display: block; font-size: 14px; margin-bottom: 10px; color: #B9C6CF; transition: color 0.2s; }

.footer__col a:hover { color: var(--accent); }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ============================================================
   МОДАЛКА
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(31, 42, 51, 0.6);
  backdrop-filter: blur(4px);
}

.modal.open { display: flex; }

.modal__card {
  background: var(--white);
  border-radius: var(--r-lg);
  max-width: 420px;
  width: 100%;
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal__ico { font-size: 52px; margin-bottom: 12px; }

.modal__title { font-size: 22px; margin-bottom: 10px; }

.modal__text { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 24px; }

.modal__btn { background: var(--primary); color: #fff; width: 100%; padding: 14px; border-radius: var(--r-md); font-weight: 600; transition: background 0.2s; }

.modal__btn:hover { background: var(--primary-dark); }

/* ============================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ (Intersection Observer)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__badge-dot { animation: none; }
  * { transition: none !important; animation: none !important; }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid, .clinics-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tourism__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero__inner { grid-template-columns: 1fr; padding: 48px 0 64px; }
  .hero__media { order: -1; }
  .hero__card--rating { left: 12px; top: -14px; }
  .hero__card--safety { right: 12px; }
  .nav { display: none; }
  .header__burger { display: flex; }
  .header__cta { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .features-grid, .clinics-grid, .reviews-grid, .steps { grid-template-columns: 1fr; }
  .prices-table { display: block; overflow-x: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .trustbar__inner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}
