/* 
  Медико-диагностический центр «SISTEM»
  Brand Colors:
  - Magenta / Fuchsia: #C81B60 / #D82365
  - Dark Teal / Emerald: #106253 / #0A4338
  - Accent / Sand: #F8F9FA
*/

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

:root {
  --primary-magenta: #C81B60;
  --primary-magenta-hover: #A8124E;
  --primary-magenta-light: #FDF2F6;
  
  --primary-teal: #106253;
  --primary-teal-dark: #0A4338;
  --primary-teal-hover: #0E5447;
  --primary-teal-light: #EBF5F3;

  --text-dark: #0F172A;
  --text-medium: #334155;
  --text-muted: #64748B;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  
  --border-color: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(16, 98, 83, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 98, 83, 0.1);
  --shadow-lg: 0 16px 36px rgba(200, 27, 96, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: #FAFAFB;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-bg-light {
  background-color: var(--bg-light);
}

.tag-pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-magenta-light);
  color: var(--primary-magenta);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-teal-dark);
  margin-top: 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* --- VECTOR SVG ICON STYLES --- */
.svg-icon {
  width: 24px;
  height: 24px;
  stroke: var(--primary-magenta);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

.svg-icon-teal {
  stroke: var(--primary-teal);
}

.svg-icon-lg {
  width: 28px;
  height: 28px;
}

/* --- HEADER & NAV --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-divider {
  color: #CBD5E1;
  font-size: 12px;
  user-select: none;
  margin-left: 16px;
}

.nav-link {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-magenta);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary-magenta);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.phone-quick {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
  line-height: 1.2;
}

.phone-quick a {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary-teal);
  letter-spacing: -0.2px;
}

.phone-quick a:hover {
  color: var(--primary-magenta);
}

.phone-quick span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.btn-magenta {
  background-color: var(--primary-magenta);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(200, 27, 96, 0.28);
}

.btn-magenta:hover {
  background-color: var(--primary-magenta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 27, 96, 0.38);
}

.btn-teal {
  background-color: var(--primary-teal);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(16, 98, 83, 0.22);
}

.btn-teal:hover {
  background-color: var(--primary-teal-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-teal);
  border: 1.5px solid var(--primary-teal);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
}

.mobile-menu-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 22px;
  color: var(--primary-teal);
  cursor: pointer;
  line-height: 1;
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(135deg, #F8FAFC 0%, #EBF5F3 100%);
  padding: 60px 0 70px;
  border-bottom: 1px solid var(--border-color);
}

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

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 420px;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-title-mock {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary-teal-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero-title-mock span {
  color: var(--primary-magenta);
  display: block;
  font-size: 26px;
  margin-top: 6px;
}

.hero-subtitle-mock {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* --- 3-COLUMN HOME GRID --- */
.home-cols-section {
  padding: 56px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.home-cols-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.home-col {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.home-col-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-teal-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-teal);
}

.services-mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-mini-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-mini-card:hover {
  border-color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.service-mini-icon {
  background: transparent;
  padding: 0;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-mini-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

.service-mini-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.service-mini-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.doctors-mini-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doctor-mini-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.doctor-mini-row:hover {
  border-color: var(--primary-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.doctor-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--primary-teal-light);
  flex-shrink: 0;
}

.doc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-teal-dark);
  line-height: 1.3;
}

.doc-spec {
  font-size: 11px;
  color: var(--primary-magenta);
  font-weight: 600;
  margin-top: 2px;
}

.info-mini-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-mini-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.info-mini-row:hover {
  border-color: var(--primary-teal);
}

.info-mini-icon {
  background: var(--primary-teal-light);
  padding: 10px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.info-mini-row h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.info-mini-row p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --- EQUIPMENT GRID --- */
.equip-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.equip-card-interactive {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.equip-card-interactive:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-teal);
}

.equip-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.equip-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  background: var(--primary-magenta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.equip-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-teal-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.equip-card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.equip-click-hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-magenta);
  display: flex;
  align-items: center;
  gap: 4px;
}

.equip-photo-card {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.equip-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-teal);
}

.equip-photo-card .equip-img-wrap {
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  background: #F1F5F9;
}

.equip-photo-card .equip-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.equip-photo-card:hover .equip-img-wrap img {
  transform: scale(1.05);
}

.equip-photo-hint {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-teal);
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.equip-photo-card:hover .equip-photo-hint {
  color: var(--primary-magenta);
}

/* --- HORIZONTAL EQUIPMENT SLIDER --- */
.equip-slider-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-teal) #F1F5F9;
}

.equip-slider-wrapper::-webkit-scrollbar {
  height: 6px;
}

.equip-slider-wrapper::-webkit-scrollbar-track {
  background: #E2E8F0;
  border-radius: var(--radius-pill);
}

.equip-slider-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary-teal);
  border-radius: var(--radius-pill);
}

.equip-slider-track {
  display: flex;
  gap: 20px;
}

.equip-slider-track .equip-photo-card {
  flex: 0 0 310px;
  width: 310px;
}

.slider-arrows-wrap {
  display: flex;
  gap: 8px;
}

.equip-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary-teal-dark);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.equip-arrow-btn:hover {
  background: var(--primary-teal);
  color: #ffffff;
  border-color: var(--primary-teal);
  transform: scale(1.05);
}

/* --- GALLERY SLIDER --- */
.category-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-medium);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.tab-btn.active {
  background: var(--primary-teal);
  color: #ffffff;
  border-color: var(--primary-teal);
  box-shadow: 0 4px 12px rgba(16, 98, 83, 0.2);
}

.slider-container {
  position: relative;
  max-width: 1100px;
  margin: 32px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.slide-item {
  min-width: 100%;
  height: 480px;
  position: relative;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 67, 56, 0.92) 0%, rgba(10, 67, 56, 0.6) 60%, transparent 100%);
  color: #ffffff;
  padding: 32px 36px 24px;
}

.slide-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--primary-magenta);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.slide-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.slide-sub {
  font-size: 14px;
  color: #E2E8F0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-teal-dark);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
  background: #ffffff;
  color: var(--primary-magenta);
}

.slider-btn-prev { left: 20px; }
.slider-btn-next { right: 20px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot-item {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: #CBD5E1;
  cursor: pointer;
  transition: var(--transition);
}

.dot-item.active {
  background: var(--primary-teal);
  width: 24px;
}

/* --- PRICE LIST STYLES (SERVICES PAGE) --- */
.price-search-bar {
  max-width: 600px;
  margin: 0 auto 28px;
  position: relative;
}

.price-search-input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  font-size: 15px;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: var(--transition);
}

.price-search-input:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(16, 98, 83, 0.12);
}

.search-icon-inside {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.category-group-header {
  background: var(--primary-teal);
  color: #ffffff;
  padding: 14px 20px;
  font-size: 17px;
  font-weight: 800;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-top: 24px;
}

.subcategory-header {
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
}

.price-row:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.price-row:hover {
  background: #F8FAFC;
}

.service-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  flex: 1;
  padding-right: 20px;
}

.price-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-magenta);
  white-space: nowrap;
  margin-right: 16px;
}

.btn-book-sm {
  background: var(--primary-teal);
  color: #ffffff;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.btn-book-sm:hover {
  background: var(--primary-teal-hover);
}

/* --- DOCTORS PAGE STYLES --- */
.doctors-compact-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 980px;
  margin: 16px auto 0;
}

.doctor-compact-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: stretch;
  transition: var(--transition);
}

.doctor-compact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-teal);
}

.doctor-compact-img-wrap {
  width: 260px;
  height: 100%;
  min-height: 340px;
  background: #F8FAFC;
  overflow: hidden;
  position: relative;
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-compact-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.doctor-compact-card:hover .doctor-compact-img-wrap img {
  transform: scale(1.02);
}

.doctor-compact-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-compact-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-teal-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.doctor-compact-spec {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-magenta);
  margin-bottom: 12px;
  line-height: 1.4;
}

.doctor-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.doc-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-teal);
  background: var(--primary-teal-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.doctor-compact-summary {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 24px;
}

.doctor-actions-row {
  display: flex;
  gap: 12px;
  width: fit-content;
}

.btn-detail-outline {
  background: transparent;
  border: 1.5px solid var(--primary-teal);
  color: var(--primary-teal);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  text-align: center;
  transition: var(--transition);
}

.btn-detail-outline:hover {
  background: var(--primary-teal);
  color: #ffffff;
}

/* --- CONTACTS PAGE --- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contacts-hero-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.branch-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.branch-card:hover {
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
}

.branch-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.contact-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-2gis {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}

.btn-2gis:hover {
  background: #2E7D32;
  color: #ffffff;
}

.btn-nav-teal {
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
  border: 1px solid var(--primary-teal);
}

.btn-nav-teal:hover {
  background: var(--primary-teal);
  color: #ffffff;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.social-wa { background: #25D366; }
.social-wa:hover { background: #1DA851; transform: translateY(-2px); }
.social-tg { background: #0088cc; }
.social-tg:hover { background: #0077b5; transform: translateY(-2px); }
.social-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-ig:hover { transform: translateY(-2px); opacity: 0.95; }

/* --- MODAL SYSTEM --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 67, 56, 0.65);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card-lg {
  max-width: 760px;
  padding: 0;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary-magenta);
  color: #ffffff;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-teal-dark);
  margin-bottom: 8px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(16, 98, 83, 0.12);
}

.equip-modal-body {
  padding: 32px;
}

.equip-modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.equip-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.equip-spec-item {
  background: var(--bg-light);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.equip-spec-item strong {
  display: block;
  font-size: 12px;
  color: var(--primary-teal-dark);
  margin-bottom: 2px;
}

.equip-spec-item span {
  font-size: 13px;
  color: var(--text-medium);
}

/* --- FOOTER --- */
.footer {
  background: #0A4338;
  color: #F8FAFC;
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1.1fr 1.4fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo-badge {
  background: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #CBD5E1;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #94A3B8;
  flex-wrap: wrap;
  gap: 16px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid,
  .home-cols-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .equip-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .header-inner {
    height: 72px;
  }
  .phone-quick span {
    display: none;
  }
  .header-actions .btn-magenta {
    padding: 8px 16px;
    font-size: 12px;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-nav {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid var(--primary-teal);
    box-shadow: 0 16px 32px rgba(0,0,0,0.14);
    padding: 20px 24px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
  }
  .header-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }
  .nav-item {
    width: 100%;
  }
  .nav-divider {
    display: none;
  }
  .nav-link {
    font-size: 15px;
    padding: 8px 0;
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--border-color);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0;
  }
  .hero-image-wrapper {
    height: 280px;
  }
  .hero-title-mock {
    font-size: 24px;
  }
  .hero-title-mock span {
    font-size: 20px;
  }
  .equip-grid-5 {
    grid-template-columns: 1fr 1fr;
  }
  .slide-item {
    height: 320px;
  }
  .slide-caption-overlay {
    padding: 20px;
  }
  .slide-title {
    font-size: 18px;
  }
  .doctor-compact-card {
    grid-template-columns: 1fr;
  }
  .doctor-compact-img-wrap {
    width: 100%;
    height: 380px;
    max-height: 85vw;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    background: #F8FAFC;
  }
  .doctor-compact-img-wrap img {
    object-position: center 8%;
  }
  .doctor-compact-body {
    padding: 24px;
  }
  .doctor-actions-row {
    width: 100%;
  }
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .equip-specs-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .equip-grid-5 {
    grid-template-columns: 1fr;
  }
  .header-actions .btn-magenta {
    display: none;
  }
}
