:root {
  --bg-primary: #0B0F1F;
  --bg-secondary: #0F1535;

  /* Обновлённые цвета блоков из второго кода */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-border-hover: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);

  --gradient-primary: linear-gradient(135deg, #667EEA, #764BA2);
  --gradient-accent: linear-gradient(135deg, #FF6B6B, #FF8E8E);
  --gradient-hero: linear-gradient(135deg, #667EEA, #8B5CF6);

  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.6);
  --accent: #8B5CF6;
  --purple: #8B5CF6;
  --blue: #3B82F6;
  --radius-md: 24px;
  --radius-lg: 28px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-xxl: 80px;
  --font-family: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== ОБНОВЛЁННЫЙ GLASS ЭФФЕКТ ИЗ ВТОРОГО КОДА ===== */
.glass {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(255, 255, 255, 0.01) 50%,
      rgba(0, 0, 0, 0.2) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.02) 40%,
      transparent 100%);
  pointer-events: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.glass::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.03) 50%,
      transparent 70%);
  pointer-events: none;
}

.glass:hover {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0.02) 50%,
      rgba(0, 0, 0, 0.25) 100%);
  border-color: rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.glass:hover::before {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.04) 40%,
      transparent 100%);
}

/* White Glass для отделений — оставлен как есть */
.glass-white {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-white:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-xxl) 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 15, 31, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-sm) 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.nav {
  display: none;
  gap: var(--space-lg);
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav a:hover {
  color: var(--text-primary);
}

.btn {
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.5);
}

/* Hero */
.hero {
  padding: calc(var(--space-xxl) + 80px) 0 var(--space-xxl);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(102, 126, 234, 0.15);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: var(--text-secondary);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.4
  }
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero-title span {
  background: linear-gradient(135deg, #667EEA, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.btn-hero-primary {
  background: linear-gradient(135deg, #667EEA, #8B5CF6);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.stat-card {
  padding: var(--space-md);
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667EEA, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Section Title */
.section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Departments - WHITE */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.department-card {
  padding: var(--space-lg);
  text-align: center;
}

.department-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}

.department-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--bg-primary);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  padding: var(--space-lg);
}

.service-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: linear-gradient(135deg, #667EEA, #764BA2);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667EEA, #764BA2);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.service-price {
  font-weight: 700;
  font-size: 1.2rem;
}

.service-price .old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.95rem;
  margin-left: 8px;
}

/* Offers - 6 blocks */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.offer-card {
  padding: var(--space-lg);
}

.offer-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.offer-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.offer-price {
  font-weight: 700;
  font-size: 1.1rem;
}

/* Special Offers - WHITE CARDS */
.special-offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.special-offer-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  color: var(--bg-primary);
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.special-offer-card:hover {
  background: white;
  transform: translateY(-6px);
}

.offer-percent {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: var(--space-sm);
}

.special-offer-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.special-offer-card p {
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.offer-btn {
  background: var(--blue);
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
}

/* Doctor */
.doctor-card {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.doctor-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.doctor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667EEA, #764BA2);
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.doctor-info h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.doctor-info .position {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

.doctor-stats {
  margin: var(--space-md) 0;
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.doctor-stats .stat {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667EEA, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.doctor-stats .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.doctor-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.doctor-tag {
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* Specialists */
.specialists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.specialist-card {
  padding: var(--space-lg);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.specialist-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.specialist-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(139, 92, 246, 0.3));
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.specialist-name {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.specialist-spec {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.specialist-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: auto;
}

/* Locations */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.location-card p {
  min-height: 48px;
}

.locations-grid {
  align-items: stretch;
}

.location-card {
  padding: var(--space-lg);
}

.location-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.location-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.location-card a {
  color: #8B9FFF;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(251, 191, 36, 0.2);
  color: #FBBF24;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-top: var(--space-sm);
}

.hours {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hours strong {
  color: #4ADE80;
  font-weight: 700;
}

.map-container {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.faq-question {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s;
  color: var(--text-muted);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: #FF6B6B;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s;
  padding: 0 var(--space-lg);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 var(--space-lg) var(--space-md);
}

.faq-answer p {
  color: var(--text-secondary);
}

/* CTA */
.cta {
  text-align: center;
}

.cta-card {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-xl);
}

.cta-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.cta h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.cta p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: var(--space-lg);
}

/* Gallery Carousel */
.gallery-carousel {
  position: relative;
  margin: var(--space-xl) 0;
}

.gallery-carousel img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--bg-primary);
  transition: var(--transition);
}

.gallery-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
  left: 20px;
}

.gallery-nav.next {
  right: 20px;
}

/* Articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.article-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--bg-primary);
}

.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.article-content {
  padding: var(--space-md);
}

.article-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.article-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.article-tag {
  display: inline-block;
  background: rgba(102, 126, 234, 0.1);
  color: var(--purple);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-top: var(--space-sm);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.project-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--bg-primary);
}

.project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-content {
  padding: var(--space-lg);
}

.project-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.project-card p {
  color: rgba(0, 0, 0, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.project-link {
  color: var(--purple);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Footer */
.footer {
  background: rgba(15, 21, 53, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-xxl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-xl);
}

.footer-brand h2 {
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  font-weight: 800;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-icon {
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.social-icon:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-phone {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-sm);
}

@media (max-width: 1024px) {

  .hero-content,
  .departments-grid,
  .services-grid,
  .offers-grid,
  .special-offers-grid,
  .specialists-grid,
  .locations-grid,
  .articles-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {

  .hero-content,
  .services-grid,
  .offers-grid,
  .special-offers-grid,
  .specialists-grid,
  .locations-grid,
  .articles-grid,
  .projects-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .departments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */

@media (max-width: 768px) {

  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Header */

  .header-content {
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .nav a {
    font-size: 14px;
  }

  .btn-primary {
    width: 100%;
  }

  /* Hero */

  .hero {
    padding-top: 180px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
  }

  .hero-image img {
    height: 280px;
  }

  /* Doctor */

  .doctor-header {
    flex-direction: column;
    text-align: center;
  }

  .doctor-avatar {
    width: 100px;
    height: 100px;
    font-size: 2rem;
  }

  /* Specialists */

  .specialist-header {
    flex-direction: column;
    text-align: center;
  }

  .specialist-avatar {
    margin: 0 auto;
  }

  /* Карта */

  .map-container {
    height: 300px;
  }

  /* Галерея */

  .gallery-carousel img {
    height: 250px;
  }

  /* Footer */

  .footer {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }
}
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}