/* ===================================================
   HALT WELLNESS CENTRE — Main Stylesheet
   Palette: Warm beige, deep navy, warm gold, marble white
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --navy:       #1a2744;
  --navy-light: #243358;
  --gold:       #b8924a;
  --gold-light: #d4aa6a;
  --beige:      #f5f0e8;
  --beige-light:#faf8f4;
  --marble:     #ffffff;
  --stone:      #e8e2d8;
  --text-dark:  #1c1c2e;
  --text-mid:   #4a4a5a;
  --text-light: #8a8a9a;
  --accent:     #3a6b8a;
  --accent-soft:#5a8daa;
  --transition: 0.35s ease;
  --radius:     12px;
  --radius-lg:  24px;
  --shadow-sm:  0 2px 12px rgba(26,39,68,0.08);
  --shadow-md:  0 8px 32px rgba(26,39,68,0.14);
  --shadow-lg:  0 20px 60px rgba(26,39,68,0.18);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--beige-light);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Typography ---------- */
h1 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { font-size: clamp(0.9rem, 1.5vw, 1rem); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.text-center { text-align: center; }

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 90px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 20px rgba(184,146,74,0.35);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184,146,74,0.45);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

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

/* ---------- HEADER ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.9rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#site-header.scrolled {
  background: rgba(26,39,68,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.2);
  padding: 0.6rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(184,146,74,0.5);
  padding: 3px;
  transition: border-color var(--transition);
}
.logo:hover .logo-img { border-color: var(--gold); }

.logo-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}
.logo-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 0.45rem;
}
.logo-tagline {
  display: flex;
  flex-direction: column;
  font-size: 0.62rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  line-height: 1.4;
  white-space: nowrap;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(184,146,74,0.45);
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 0.2rem; }
.main-nav a {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition);
}
.header-phone:hover { color: var(--gold-light); }
.header-phone i { color: var(--gold); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 90vw);
  height: 100vh;
  background: var(--navy);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  transition: right var(--transition);
  box-shadow: -4px 0 24px rgba(0,0,0,0.3);
}
.mobile-nav.open { right: 0; display: flex; }
.mobile-nav a {
  padding: 0.9rem 1rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  border-radius: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.overlay.open { display: block; }

/* ---------- HERO SECTION ---------- */
#hero {
  min-height: 100vh;
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  /* Зливається з темним фоном conditions без розриву */
  margin-bottom: 0;
}

/* Нижній градієнт-перехід з hero у темний фон conditions */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(26,39,68,0.65) 60%,
    var(--navy) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,39,68,0.90) 0%,
    rgba(26,39,68,0.75) 50%,
    rgba(26,39,68,0.45) 100%
  );
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-bg-img {
    object-position: center center;
  }
  .hero-bg {
    /* На мобільному більше затемнення зліва, де текст */
    background: linear-gradient(
      to right,
      rgba(26,39,68,0.92) 0%,
      rgba(26,39,68,0.80) 55%,
      rgba(26,39,68,0.35) 100%
    );
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 120px;
  padding-bottom: 6rem;
}

.hero-clinic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(184,146,74,0.15);
  border: 1px solid rgba(184,146,74,0.4);
  border-radius: 50px;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero-clinic-badge i { font-size: 0.7rem; }

.hero-title {
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-title span { color: var(--gold-light); }

.hero-subtitle-en {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
}

.hero-desc {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.75;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

.hero-stat { text-align: center; }
.hero-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounceY 2s infinite;
}
.scroll-cue i { font-size: 1.2rem; }

@keyframes bounceY {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ---------- ABOUT SECTION ---------- */
#about { background: var(--marble); }

.about-section-header {
  margin-bottom: 3.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-images {
  position: relative;
  height: 500px;
}

.about-img-main {
  position: absolute;
  top: 0; left: 0;
  width: 75%;
  height: 88%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-img-accent {
  position: absolute;
  bottom: 0; right: 0;
  width: 52%;
  height: 55%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 4px solid #fff;
}

.about-badge {
  position: absolute;
  top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  background: var(--navy);
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.about-badge-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}
.about-badge-text {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.3rem;
}

.about-content {}
.about-content .section-title { margin-bottom: 1.2rem; }
.about-content p { color: var(--text-mid); margin-bottom: 1.2rem; }

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.8rem 0 2rem;
}

.pillar {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--beige-light);
  border-radius: var(--radius);
  border: 1px solid var(--stone);
  transition: box-shadow var(--transition);
}
.pillar:hover { box-shadow: var(--shadow-sm); }

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.pillar-body {}
.pillar-letter {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}
.pillar h4 { font-size: 0.88rem; color: var(--navy); margin: 0.1rem 0 0.2rem; }
.pillar p { font-size: 0.78rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* ---------- SERVICES SECTION ---------- */
#services { background: var(--beige-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--stone);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--accent));
  transition: height var(--transition);
  border-radius: 0 0 4px 0;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { height: 100%; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  transition: transform var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }

.service-card h3 { color: var(--navy); margin-bottom: 0.6rem; font-size: 1.05rem; }
.service-card p { color: var(--text-mid); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1rem; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap var(--transition);
}
.service-card:hover .service-link { gap: 0.7rem; }

/* ---------- CHIEF DOCTOR SECTION ---------- */
#chief-doctor { background: var(--navy); overflow: hidden; position: relative; }
#chief-doctor::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(184,146,74,0.06);
  pointer-events: none;
}
#chief-doctor::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(58,107,138,0.1);
  pointer-events: none;
}

.doctor-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.doctor-img-wrap {
  position: relative;
}

.doctor-photo {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  border: 3px solid rgba(184,146,74,0.3);
}

.doctor-card-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: var(--gold);
  color: #fff;
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 24px rgba(184,146,74,0.4);
  line-height: 1.4;
}

.doctor-content .section-label { color: var(--gold-light); }
.doctor-content .section-title { color: #fff; }

.doctor-name { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.doctor-role {
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 500;
  margin: 0.3rem 0 1.5rem;
}

.doctor-bio { color: rgba(255,255,255,0.72); margin-bottom: 1.5rem; line-height: 1.75; }

.doctor-stats {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
  flex-wrap: wrap;
}

.d-stat {
  text-align: center;
  padding: 1.2rem 1.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}
.d-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
}
.d-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.doctor-expertise { margin-bottom: 2rem; }
.doctor-expertise h4 {
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.expertise-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.35rem 0.9rem;
  background: rgba(184,146,74,0.15);
  border: 1px solid rgba(184,146,74,0.3);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--gold-light);
}

/* ---------- DOCTORS TEAM SECTION ---------- */
#doctors { background: var(--marble); }

.team-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--stone);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  background: transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}

.doctor-card {
  background: var(--beige-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stone);
  transition: all var(--transition);
  text-align: center;
}
.doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.doctor-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.doctor-card:hover .doctor-card-img { transform: scale(1.04); }

.doctor-card-body { padding: 1.2rem 1rem; }
.doctor-card-body h3 { font-size: 0.95rem; color: var(--navy); margin-bottom: 0.3rem; }
.doctor-spec {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  display: block;
  margin-bottom: 0.6rem;
}
.doctor-card-body p { font-size: 0.8rem; color: var(--text-light); }

/* ---------- GALLERY SECTION ---------- */
#gallery { background: var(--beige-light); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
}
.gallery-item:first-child {
  grid-row: span 2;
  grid-column: span 1;
}
.gallery-item:nth-child(2) {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.07); }

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,39,68,0.5), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

/* ---------- ADVANTAGES SECTION ---------- */
#advantages { background: var(--marble); }

.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.adv-card {
  padding: 2rem;
  background: var(--beige-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone);
  text-align: center;
  transition: all var(--transition);
}
.adv-card:hover {
  background: var(--navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.adv-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin: 0 auto 1.2rem;
  transition: transform var(--transition);
}
.adv-card:hover .adv-icon { transform: scale(1.1); background: linear-gradient(135deg, var(--gold), var(--gold-light)); }

.adv-card h3 { color: var(--navy); margin-bottom: 0.6rem; font-size: 1rem; transition: color var(--transition); }
.adv-card:hover h3 { color: #fff; }
.adv-card p { color: var(--text-mid); font-size: 0.85rem; line-height: 1.6; transition: color var(--transition); }
.adv-card:hover p { color: rgba(255,255,255,0.7); }

/* ---------- CTA SECTION ---------- */
#cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
#cta::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.cta-content { position: relative; z-index: 1; }
.cta-content .section-label { color: var(--gold-light); }
.cta-content h2 { color: #fff; margin-bottom: 0.8rem; }
.cta-content p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 550px; margin: 0 auto 2rem; }

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.cta-input {
  flex: 1;
  min-width: 180px;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition);
}
.cta-input::placeholder { color: rgba(255,255,255,0.5); }
.cta-input:focus { border-color: var(--gold-light); }

.cta-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ---------- CONTACTS SECTION ---------- */
#contacts { background: var(--beige-light); }

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

.contacts-info {}
.contacts-info .section-title { margin-bottom: 1.2rem; }

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-text h4 { color: var(--navy); font-size: 0.85rem; margin-bottom: 0.25rem; }
.contact-text p, .contact-text a {
  color: var(--text-mid);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.contact-text a:hover { color: var(--gold); }

.working-hours {
  background: var(--marble);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid var(--stone);
}
.working-hours h4 {
  color: var(--navy);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.wh-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--stone);
}
.wh-row:last-child { border-bottom: none; }
.wh-row span:first-child { color: var(--text-mid); }
.wh-row span:last-child { color: var(--navy); font-weight: 600; }

.contacts-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 420px;
  background: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contacts-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.footer-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(184,146,74,0.4);
  padding: 2px;
}
.footer-logo-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; margin-bottom: 1.2rem; }

.social-links { display: flex; gap: 0.7rem; }
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-col ul li a::before {
  content: '→';
  font-size: 0.7rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a:hover::before { opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom span { color: rgba(255,255,255,0.4); }
.footer-bottom a { color: var(--gold-light); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- ABOUT CAROUSEL ---------- */
.about-carousel {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  color: var(--navy);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  transition: all var(--transition);
  opacity: 0.85;
}
.carousel-btn:hover {
  background: var(--gold);
  color: #fff;
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn-prev { left: 0.8rem; }
.carousel-btn-next { right: 0.8rem; }

.carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}
.carousel-dot.active {
  background: #fff;
  width: 22px;
  border-radius: 4px;
}

/* ---------- CONDITIONS FULLWIDTH CAROUSEL ---------- */

/* ── Wave-перехід від hero до conditions ── */
.conditions-section {
  background: var(--navy);
  padding: 0 0 0;
  overflow: hidden;
  position: relative;
}

/* Wave-відступ — залишаємо нульову висоту, перехід вже зроблено через hero-bottom-fade */
.conditions-wave {
  display: none;
}

/* ── Верхній інфо-блок ── */
.conditions-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-end;
  padding: 64px 0 60px;
  overflow: visible;
}

.conditions-header-left {}

.cond-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  position: relative;
  padding-left: 2.2rem;
}
.cond-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5rem;
  height: 2px;
  background: var(--gold);
}

.cond-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  margin: 0;
}

.conditions-header-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  min-width: 0;
  overflow: visible;
}

.cond-desc {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  max-width: 440px;
  margin: 0;
}

/* ── Три лічильники-метрики ── */
.cond-meta {
  display: flex;
  gap: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: nowrap;
  overflow: visible;
}

.cond-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  flex: 1 1 0;
}

.cond-meta-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  white-space: nowrap;
}

.cond-meta-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.45;
  word-break: break-word;
  hyphens: auto;
}

/* ── Divider між header і слайдером ── */
.conditions-header::after {
  content: none;
}

/* ── Full-width slider ── */
.cond-slider-wrap {
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  /* Красива верхня межа — золота лінія */
  border-top: 1px solid rgba(184,146,74,0.25);
}

.cond-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

.cond-slide {
  min-width: 100vw;
  width: 100vw;
  flex-shrink: 0;
  position: relative;
  height: 68vh;
  min-height: 400px;
  overflow: hidden;
}

/* Верхній темний градієнт на фото — зливається з фоном секції */
.cond-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,39,68,0.18) 0%,
    transparent 35%,
    transparent 65%,
    rgba(26,39,68,0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.cond-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Caption на кожному слайді */
.cond-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cond-slide-caption span {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}

.cond-btn {
  position: absolute;
  top: 65%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(26,39,68,0.25);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.35);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition);
  opacity: 0.4;
}
.cond-slider-wrap:hover .cond-btn {
  opacity: 1;
  color: #fff;
  background: rgba(26,39,68,0.65);
  border-color: rgba(184,146,74,0.55);
}
.cond-btn:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.08);
  opacity: 1 !important;
}
.cond-btn-prev { left: 1.2rem; }
.cond-btn-next { right: 1.2rem; }

.cond-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.cond-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.cond-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .conditions-header {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 48px 0 44px;
  }
  .cond-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .cond-meta { gap: 1.2rem; flex-wrap: wrap; }
  .cond-meta-num { font-size: 1.8rem; }
  .cond-meta-item { flex: 1 1 calc(33% - 1rem); min-width: 70px; }
  .cond-slide {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: unset;
    overflow: hidden;
  }
  .cond-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .cond-slide::before {
    display: block;
  }
  .cond-btn {
    width: 34px;
    height: 34px;
    font-size: 0.72rem;
    top: 65%;
    opacity: 0.35;
  }
  .cond-btn-prev { left: 0.4rem; }
  .cond-btn-next { right: 0.4rem; }
  .cond-dots {
    position: absolute;
    bottom: 0.7rem;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
  }
  .conditions-wave { height: 50px; }
}

/* ---------- STATIONAR SECTION ---------- */
#stationar {
  background: var(--beige-light);
  padding: 90px 0;
}

.stationar-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.stationar-lead {
  font-size: 1.12rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 1rem;
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
}

.stationar-content p {
  color: var(--text-mid);
  margin-bottom: 1.5rem;
}

.stationar-features {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 1.8rem 0 2rem;
}

.stat-feat {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--stone);
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-feat:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.stat-feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.stat-feat h4 {
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}
.stat-feat p {
  color: var(--text-light);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.stationar-cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stationar-capacity {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.stationar-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.stationar-num-label {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* Visual side */
.stationar-visual {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Room photo slider */
.room-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--navy);
}

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

.room-slide {
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

.room-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.room-slide img:hover {
  transform: scale(1.03);
}

.room-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(26, 39, 68, 0.75);
  border: 1.5px solid rgba(184, 146, 74, 0.5);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.room-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}
.room-prev { left: 12px; }
.room-next { right: 12px; }

.room-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}

.room-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.room-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.room-counter {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(26, 39, 68, 0.72);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-family: var(--font-body);
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(184,146,74,0.3);
  letter-spacing: 0.04em;
  z-index: 5;
}

.stationar-badge-wrap {
  display: flex;
  gap: 1rem;
}

.stationar-badge {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem;
  background: var(--navy);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  line-height: 1.4;
}
.stationar-badge i {
  color: var(--gold-light);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Responsive stationar */
@media (max-width: 900px) {
  .stationar-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stationar-visual { order: -1; }
}

/* ---------- SERVICES GROUP LABEL ---------- */
.services-group-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.2rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--gold);
}

/* ---------- BACK TO TOP ---------- */
#back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(184,146,74,0.4);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all var(--transition);
}
#back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .about-grid { gap: 3rem; }
  .doctor-grid { gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  .main-nav, .header-phone { display: none; }
  .burger { display: flex; }
  .header-actions .btn-primary { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-images { height: 320px; order: -1; }
  .about-img-main { width: 70%; }

  .doctor-grid { grid-template-columns: 1fr; }
  .doctor-photo { max-width: 280px; margin: 0 auto; }
  .doctor-img-wrap { text-align: center; }
  .doctor-card-badge { right: 0; bottom: -1rem; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-item:first-child { grid-row: auto; grid-column: auto; }
  .gallery-item:nth-child(2) { grid-column: auto; }

  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-map { height: 300px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-item { height: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .doctor-stats { gap: 1rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
}
