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

:root {
  --blue:       #1d4ed8;
  --blue-dark:  #1e3a8a;
  --blue-light: #eff6ff;
  --blue-mid:   #dbeafe;
  --text:       #0f172a;
  --text-2:     #475569;
  --text-3:     #94a3b8;
  --border:     #e2e8f0;
  --surface:    #f8fafc;
  --white:      #ffffff;
  --radius:     12px;
  --shadow-xs:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:  0 4px 12px rgba(0,0,0,.07);
  --shadow-md:  0 8px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

/* ===========================
   TOPBAR
=========================== */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: var(--shadow-xs);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 20px; }

.ministry-logo {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}
.topbar-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}
.site-title { display: flex; flex-direction: column; gap: 2px; }
.site-title-main {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.site-title-sub {
  font-size: 0.72rem;
  color: var(--text-2);
  font-weight: 400;
}

.topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color .15s, border-color .15s, background .15s;
}
.topbar-link:hover { color: var(--blue); border-color: var(--blue); background: var(--blue-light); }

.topbar-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  padding: 8px 16px;
  border-radius: 8px;
  transition: background .15s, transform .1s;
  box-shadow: 0 2px 6px rgba(29,78,216,.3);
}
.topbar-btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

.topbar-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-dark);
  padding: 7px 14px;
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: 8px;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  background: var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(30,58,138,.25);
}
.navbar-inner { display: flex; }
.nav-links { display: flex; }
.nav-links a {
  display: block;
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  letter-spacing: 0.2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,.08);
  border-bottom-color: rgba(255,255,255,.5);
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  background: var(--blue-dark);
  overflow: hidden;
  padding: 80px 0 72px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(29,78,216,.45) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(59,130,246,.2) 0%, transparent 60%);
}
/* Subtle diagonal lines */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.02) 40px,
    rgba(255,255,255,.02) 41px
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 16px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #60a5fa;
  border-radius: 2px;
}
.hero-text h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-text h1 span {
  color: #93c5fd;
}
.hero-text p {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background .15s, transform .1s;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.hero-cta:hover { background: #f0f9ff; transform: translateY(-2px); }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex-shrink: 0;
}
.stat-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  backdrop-filter: blur(4px);
  min-width: 120px;
}
.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===========================
   HERO ACTIONS
=========================== */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: 280px;
}
.hero-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 14px 16px;
  backdrop-filter: blur(4px);
  transition: background .18s, border-color .18s;
  color: var(--white);
}
.hero-action-card:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
}
.hero-action-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.12);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-action-icon svg { width: 18px; height: 18px; }
.hero-action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.hero-action-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}
.hero-action-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,.6);
}
.hero-action-arrow {
  width: 16px; height: 16px;
  color: rgba(255,255,255,.4);
  flex-shrink: 0;
}

/* ===========================
   HOURS STRIP
=========================== */
.hours-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.hours-inner {
  display: flex;
  align-items: stretch;
}
.hours-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  flex: 1;
  border-right: 1px solid var(--border);
  transition: background .15s;
}
.hours-item:last-child { border-right: none; }
.hours-item:hover { background: var(--surface); }
.hours-icon {
  width: 20px;
  height: 20px;
  color: var(--blue);
  flex-shrink: 0;
}
.hours-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue);
  margin-bottom: 3px;
}
.hours-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.hours-sep { display: none; }

/* ===========================
   SECTION
=========================== */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); }

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.section-head p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ===========================
   DOCTORS
=========================== */
.doctors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.doctor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.doctor-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 100%);
}
.doctor-initials {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border: 2.5px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.doctor-meta h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}
.doctor-spec {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 6px;
}
.doctor-ahb {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 2px 10px;
  border-radius: 50px;
}

.doctor-schedule { padding: 0; }
.schedule-header {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 8px 20px;
  background: var(--blue-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue-dark);
  border-bottom: 1px solid var(--border);
}
.schedule-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 9px 20px;
  font-size: 0.83rem;
  border-bottom: 1px solid var(--border);
  transition: background .1s;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row:hover { background: var(--surface); }
.schedule-row span:first-child { color: var(--text); font-weight: 500; }
.schedule-row span:not(:first-child) { color: var(--blue); font-weight: 600; font-size: 0.8rem; }

/* ===========================
   STAFF GRID
=========================== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.staff-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  transition: transform .2s, box-shadow .2s;
}
.staff-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.staff-initials {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.staff-info h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}
.staff-info span {
  font-size: 0.75rem;
  color: var(--text-2);
}

/* ===========================
   AUTHORITY CARDS (İletişim)
=========================== */
.authority-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.authority-card {
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: 10px;
  padding: 14px 16px;
}
.authority-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 5px;
}
.authority-addr {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 8px;
}
.authority-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.authority-tel, .authority-mail {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  transition: color .15s;
}
.authority-tel:hover, .authority-mail:hover { color: var(--blue-dark); text-decoration: underline; }

/* ===========================
   HİZMETLER
=========================== */
.services-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.services-list { display: flex; flex-direction: column; }
.service-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  transition: box-shadow .15s, transform .15s;
}
.service-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: #bfdbfe;
}
.service-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.service-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}
.service-text span {
  font-size: 0.79rem;
  color: var(--text-2);
}

.services-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .15s;
}
.aside-card:hover { box-shadow: var(--shadow-sm); }
.aside-card-icon {
  width: 40px; height: 40px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.aside-card-icon svg { width: 20px; height: 20px; color: var(--blue); }
.aside-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.aside-card p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.65;
}
.aside-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  padding: 6px 14px;
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: 6px;
  transition: background .15s;
}
.aside-link:hover { background: var(--blue-mid); }

/* ===========================
   GALERİ
=========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 10px;
}
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 170px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
  height: 100%;
  min-height: 350px;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29,78,216,0);
  transition: background .25s;
}
.gallery-item:hover .gallery-overlay { background: rgba(29,78,216,.12); }

/* ===========================
   LIGHTBOX
=========================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: white;
  cursor: pointer;
  transition: background .2s;
  border-radius: 50%;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 24px; width: 40px; height: 40px; }
.lb-close svg { width: 18px; height: 18px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-prev svg, .lb-next svg { width: 22px; height: 22px; }
.lb-counter {
  position: absolute;
  bottom: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.7);
  background: rgba(0,0,0,.4);
  padding: 4px 14px;
  border-radius: 50px;
}

/* ===========================
   İLETİŞİM
=========================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: stretch;
}
.contact-info-block {
  display: flex;
  flex-direction: column;
}
.contact-info-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.contact-rows { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:first-child { border-top: 1px solid var(--border); }
.contact-row-icon {
  width: 36px; height: 36px;
  background: var(--blue-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row-icon svg { width: 16px; height: 16px; color: var(--blue); }
.contact-row-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-2);
  margin-bottom: 3px;
}
.contact-row-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
a.contact-row-value { color: var(--blue); }
a.contact-row-value:hover { text-decoration: underline; }

.links-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-2);
  margin-bottom: 10px;
}
.useful-links { display: flex; flex-direction: column; gap: 2px; }
.useful-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: background .15s, color .15s;
}
.useful-links a svg { width: 14px; height: 14px; color: var(--blue); flex-shrink: 0; }
.useful-links a:hover { background: var(--blue-light); color: var(--blue); }

.map-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 340px;
}
.map-block iframe { height: 100%; min-height: 340px; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: #0c1a3a;
  color: rgba(255,255,255,.65);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 52px 24px 44px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { height: 52px; width: auto; filter: brightness(0) invert(1); opacity: .75; }
.footer-brand-text strong { display: block; font-size: 0.88rem; color: var(--white); font-weight: 700; }
.footer-brand-text span { display: block; font-size: 0.75rem; color: rgba(255,255,255,.45); margin-top: 3px; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-col a, .footer-col span {
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding: 14px 24px;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-bottom span { font-size: 0.78rem; color: rgba(255,255,255,.3); }

/* ===========================
   HAMBURGER TOGGLE
=========================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-aside { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; max-width: 100%; }
  .hero-action-card { flex: 1 1 calc(50% - 5px); min-width: 180px; }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Topbar */
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .topbar-right { gap: 8px; flex-wrap: wrap; }
  .topbar-link { display: none; }

  /* Navbar — hamburger */
  .nav-toggle { display: flex; }
  .navbar-inner { position: relative; justify-content: flex-end; padding: 0 24px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--blue-dark);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    z-index: 300;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { padding: 14px 20px; font-size: 0.9rem; border-bottom: none; }
  .nav-links a:hover { background: rgba(255,255,255,.1); border-bottom: none; }

  /* Hero */
  .hero { padding: 52px 0 44px; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-actions { gap: 8px; }
  .hero-action-card { flex: 1 1 calc(50% - 4px); min-width: 140px; padding: 12px 12px; gap: 10px; }

  /* Doctors */
  .doctors-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; }
  .map-block { min-height: 260px; }
  .map-block iframe { min-height: 260px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item--large { grid-column: span 1; grid-row: span 1; min-height: 170px; }

  /* Hours */
  .hours-inner { flex-direction: column; }
  .hours-item { border-right: none; border-bottom: 1px solid var(--border); padding: 14px 20px; }
  .hours-item:last-child { border-bottom: none; }

  /* Services */
  .services-aside { grid-template-columns: 1fr; }

  /* Staff */
  .staff-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-cols { gap: 28px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 520px) {
  /* Topbar */
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .topbar-right { flex-wrap: wrap; width: 100%; }
  .topbar-btn { flex: 1; text-align: center; }

  /* Hero */
  .hero { padding: 40px 0 36px; }
  .hero-text h1 { font-size: 1.55rem; }
  .hero-cta { font-size: 0.85rem; padding: 10px 18px; }
  .hero-actions { flex-direction: column; }
  .hero-action-card { flex: none; width: 100%; }

  /* Sections */
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 32px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Staff */
  .staff-grid { grid-template-columns: 1fr; }

  /* Doctor schedule */
  .schedule-row span:not(:first-child) { font-size: 0.75rem; }

  /* Footer */
  .footer-inner { padding: 36px 24px 28px; }
  .footer-cols { flex-direction: column; gap: 20px; }
}
