/*
Theme Name: MRT Clinic Catalog
Theme URI: https://mrt-clinic-poisk.ru
Author: NeiroThemes
Author URI: https://neirothemes.ru
Description: Профессиональная WordPress-тема для каталога МРТ-клиник с поиском, фильтрами, карточками клиник и онлайн-записью.
Version: 2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mrt-clinic-catalog
Tags: catalog, clinic, medical, mrt, responsive, custom-logo, custom-menu
*/

/* ════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════ */
:root {
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-500: #3b82f6;
  --blue-600: #1a56db;
  --blue-700: #1e40af;
  --blue-900: #1e3a8a;

  --green-50:  #ecfdf5;
  --green-500: #10b981;
  --green-600: #059669;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;

  --red-500: #ef4444;

  --purple-50:  #f5f3ff;
  --purple-500: #8b5cf6;

  --orange-50:  #fff7ed;
  --orange-500: #f97316;

  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  --white: #ffffff;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-2xl: 28px;
  --radius-full: 999px;

  --shadow-sm:  0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:  0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg:  0 12px 32px rgba(15,23,42,.10), 0 4px 8px rgba(15,23,42,.04);
  --shadow-xl:  0 20px 48px rgba(15,23,42,.12), 0 8px 16px rgba(15,23,42,.06);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ════════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 8px rgba(15,23,42,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  line-height: 1;
}
.logo-brand { color: var(--blue-600); }
.logo-suffix { color: var(--gray-700); }

/* Nav */
.header-nav { margin-left: auto; }
.nav-list {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}
.nav-list a:hover {
  background: var(--gray-100);
  color: var(--blue-600);
  text-decoration: none;
}

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

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.header-phone:hover { color: var(--blue-600); text-decoration: none; }
.header-phone svg { flex-shrink: 0; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.btn-cta:hover { background: var(--blue-700); transform: translateY(-1px); }

/* Burger */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.burger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ════════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-900) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(59,130,246,.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30,64,175,.4) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow-chip--dark {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--blue-600);
}

.hero-text { color: var(--white); max-width: 720px; }

.hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 16px 0 20px;
}

.hero-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
}

/* Search box */
.search-box {
  width: 100%;
  max-width: 740px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 8px;
  box-shadow: var(--shadow-xl);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 10px 16px;
}

.search-icon { color: var(--gray-400); flex-shrink: 0; }

.search-field select {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--gray-700);
  cursor: pointer;
  min-width: 0;
}

.search-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-200);
  flex-shrink: 0;
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.search-btn:hover { background: var(--blue-700); transform: translateY(-1px); }

.search-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 8px;
  flex-wrap: wrap;
}
.tag-label { font-size: 0.8rem; color: var(--gray-400); font-weight: 500; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: background var(--transition), color var(--transition);
}
.tag:hover { background: var(--blue-50); color: var(--blue-600); text-decoration: none; }

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 40px;
  color: var(--white);
  gap: 2px;
}
.stat strong { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.stat span   { font-size: 0.8rem; color: rgba(255,255,255,.7); white-space: nowrap; }

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   FILTERS BAR
═══════════════════════════════════════ */
.filters-bar-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 64px;
  z-index: 90;
}

.filters-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters-bar::-webkit-scrollbar { display: none; }

.filters-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-chips { display: flex; gap: 8px; flex: 1; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  transition: all var(--transition);
  cursor: pointer;
}
.chip:hover { border-color: var(--blue-300, #93c5fd); color: var(--blue-600); background: var(--blue-50); }
.chip--active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.sort-wrap { margin-left: auto; flex-shrink: 0; }
.sort-select {
  padding: 7px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
  outline: none;
}

/* ════════════════════════════════════════
   CATALOG LAYOUT
═══════════════════════════════════════ */
.site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 256px 1fr;
  gap: 28px;
  align-items: start;
}

/* ASIDE */
.catalog-aside {
  position: sticky;
  top: 128px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aside-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.aside-widget h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.aside-list { display: flex; flex-direction: column; gap: 8px; }
.aside-list label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: color var(--transition);
}
.aside-list label:hover { color: var(--blue-600); }
.aside-list em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--gray-400);
}
.aside-list input[type="checkbox"] { accent-color: var(--blue-600); width: 15px; height: 15px; }

/* Price range */
.price-range { display: flex; flex-direction: column; gap: 12px; }
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-inputs input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-700);
  outline: none;
  width: 0;
}
.price-inputs input:focus { border-color: var(--blue-500); }
.price-inputs span { color: var(--gray-400); font-size: 0.85rem; }

.range-slider {
  width: 100%;
  accent-color: var(--blue-600);
  cursor: pointer;
}

.btn-apply-filters {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-apply-filters:hover { background: var(--blue-700); }

/* CATALOG HEADER */
.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.catalog-count { font-size: 0.9rem; color: var(--gray-500); }
.catalog-count strong { color: var(--gray-900); }

.view-switcher { display: flex; gap: 4px; }
.view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--gray-400);
  transition: all var(--transition);
  border: 1.5px solid transparent;
}
.view-btn:hover { background: var(--gray-100); color: var(--gray-600); }
.view-btn--active { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-600); }

/* ════════════════════════════════════════
   CLINIC CARDS
═══════════════════════════════════════ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.clinic-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.clinic-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.clinic-card:hover .card-img { transform: scale(1.04); }

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(15,23,42,.75);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  color: var(--gray-400);
  transition: color var(--transition), background var(--transition);
}
.card-fav:hover { color: var(--red-500); background: var(--white); }

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.25;
}

.open-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.open-badge--open  { background: var(--green-50);  color: var(--green-600); }
.open-badge--closed{ background: #fef2f2;           color: var(--red-500); }

.open-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.open-badge--open  .open-dot { background: var(--green-500); }
.open-badge--closed .open-dot { background: var(--red-500); }

.card-address {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.card-address svg { flex-shrink: 0; color: var(--gray-400); }

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars {
  display: flex;
  gap: 2px;
  color: var(--gray-300);
}
.star--full { color: var(--amber-400); }
.star--half { color: var(--amber-400); opacity: 0.55; }
.card-rating strong { font-size: 0.9rem; font-weight: 700; color: var(--gray-800); }
.review-count { font-size: 0.8rem; color: var(--gray-400); }

.card-services {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.service-tag {
  padding: 3px 10px;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--blue-100);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
}

.card-price-info { display: flex; flex-direction: column; }
.price-label { font-size: 0.72rem; color: var(--gray-400); line-height: 1; }
.price-value { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); line-height: 1.2; }
.price-sub   { font-size: 0.72rem; color: var(--gray-400); margin-top: 2px; }

.card-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.card-cta-btn:hover { background: var(--blue-700); transform: translateY(-1px); text-decoration: none; }

/* ════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  transition: all var(--transition);
  padding: 0 6px;
}
.page-btn:hover:not(:disabled) { border-color: var(--blue-500); color: var(--blue-600); background: var(--blue-50); }
.page-btn--active { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-dots { color: var(--gray-400); padding: 0 4px; }

/* ════════════════════════════════════════
   WHY SECTION
═══════════════════════════════════════ */
.why-section {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 80px 24px;
}

.section-inner { max-width: 1280px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 14px 0 12px;
  color: var(--gray-900);
}
.section-header p { font-size: 1.05rem; color: var(--gray-500); max-width: 520px; margin: 0 auto; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--transition), transform var(--transition);
}
.why-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}
.why-icon--blue   { background: var(--blue-50);   color: var(--blue-600); }
.why-icon--green  { background: var(--green-50);  color: var(--green-600); }
.why-icon--purple { background: var(--purple-50); color: var(--purple-500); }
.why-icon--orange { background: var(--orange-50); color: var(--orange-500); }

.why-item h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.why-item p  { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

/* ════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(59,130,246,.25) 0%, transparent 60%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-text p { color: rgba(255,255,255,.75); font-size: 1rem; }

.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: var(--white);
  color: var(--blue-700);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); text-decoration: none; }

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 13px 28px;
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  transition: background var(--transition);
}
.btn-cta-outline:hover { background: rgba(255,255,255,.18); text-decoration: none; }

/* ════════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding-top: 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--gray-500); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gray-300); }

/* ════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1080px) {
  .catalog-layout { grid-template-columns: 220px 1fr; }
}

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-aside  { position: static; display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .hero-stats { flex-wrap: wrap; }
  .stat { padding: 14px 24px; }
  .stat-divider:nth-child(4) { display: none; }
}

@media (max-width: 768px) {
  .header-nav    { display: none; }
  .header-phone  { display: none; }
  .burger-btn    { display: flex; }

  .search-form {
    flex-direction: column;
    gap: 4px;
  }
  .search-divider { display: none; }
  .search-btn { width: 100%; justify-content: center; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
  .hero-inner { padding: 40px 16px 32px; }
  .site-main  { padding: 20px 16px 48px; }

  .catalog-grid { grid-template-columns: 1fr; }

  .hero-stats { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .stat { padding: 14px 20px; flex-shrink: 0; }

  .footer-nav { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   LIST VIEW MODE
═══════════════════════════════════════ */
.catalog-grid--list {
  grid-template-columns: 1fr;
}
.catalog-grid--list .clinic-card {
  flex-direction: row;
}
.catalog-grid--list .card-img-wrap {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: auto;
}
.catalog-grid--list .card-body {
  flex: 1;
}

/* ════════════════════════════════════════
   SINGLE CLINIC PAGE
═══════════════════════════════════════ */
.single-clinic-main { padding-top: 40px; }

.single-clinic {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.single-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.single-img-wrap { border-radius: var(--radius-xl); overflow: hidden; }
.single-img      { width: 100%; height: 100%; object-fit: cover; }

.single-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.single-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.single-address {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-500);
  font-size: 0.9rem;
}
.single-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  color: var(--amber-500);
  font-weight: 700;
}
.single-rating .review-count { color: var(--gray-400); font-size: 0.85rem; font-weight: 400; }
.single-price { font-size: 1rem; color: var(--gray-600); }
.single-price strong { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); }
.single-phone {
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-600);
}
.single-hours { font-size: 0.875rem; color: var(--gray-500); }
.single-cta   { align-self: flex-start; }

.single-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
  color: var(--gray-700);
}

@media (max-width: 700px) {
  .single-top { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   MOBILE NAV OPEN
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .header-nav.nav--open {
    display: block;
    position: fixed;
    inset: 64px 0 0;
    background: var(--white);
    z-index: 999;
    padding: 16px;
    border-top: 1px solid var(--gray-200);
    overflow-y: auto;
  }
  .nav--open .nav-list {
    flex-direction: column;
    gap: 4px;
  }
  .nav--open .nav-list a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }
}
