/* =============================================
   AuraDent — Основные стили
   Премиальный, современный медицинский дизайн
   Mobile-First (Android, iOS, планшеты, ПК)
   ============================================= */

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

:root {
  /* Typography */
  --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Brand Palette (Turquoise / Teal) */
  --primary: #00adb5;
  --primary-hover: #00969e;
  --primary-dark: #007d84;
  --primary-light: #e6f8fa;
  --primary-subtle: #f0fafc;
  --primary-gradient: linear-gradient(135deg, #00b9c5 0%, #008f9c 100%);
  --primary-glow: rgba(0, 173, 181, 0.25);

  /* Functional Accents */
  --accent-wa: #25D366;
  --accent-wa-hover: #20ba59;
  --accent-wa-gradient: linear-gradient(135deg, #25d366 0%, #1ea951 100%);

  /* Deep Navy Text System (Modern & High Contrast) */
  --navy-950: #061923;
  --navy-900: #09222f;
  --navy-800: #133345;
  --navy-700: #29485b;
  --navy-600: #49687b;
  --navy-500: #6d899b;
  --navy-400: #9ab1bf;
  --navy-300: #c2d4de;
  --navy-200: #dce7ee;
  --navy-100: #edf4f8;
  --navy-50: #f4f8fb;

  /* Classic Grays for compatibility */
  --white: #ffffff;
  --gray-50: #f4f8fb;
  --gray-100: #edf4f8;
  --gray-200: #dce7ee;
  --gray-300: #c2d4de;
  --gray-400: #9ab1bf;
  --gray-500: #6d899b;
  --gray-600: #49687b;
  --gray-700: #29485b;
  --gray-800: #133345;
  --gray-900: #09222f;

  /* Surfaces & Elevation */
  --surface-card: #ffffff;
  --surface-card-border: #e0ecf2;
  --surface-bg-soft: #f2f7fa;

  /* Multi-layered shadows with ambient depth */
  --shadow-xs: 0 1px 2px rgba(9, 34, 47, 0.04);
  --shadow-sm: 0 2px 8px -1px rgba(9, 34, 47, 0.06), 0 1px 3px -1px rgba(9, 34, 47, 0.03);
  --shadow-md: 0 6px 18px -2px rgba(9, 34, 47, 0.08), 0 2px 6px -1px rgba(9, 34, 47, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(9, 34, 47, 0.10), 0 4px 12px -2px rgba(9, 34, 47, 0.05);
  --shadow-card-hover: 0 12px 24px -4px rgba(0, 173, 181, 0.14), 0 4px 10px -2px rgba(9, 34, 47, 0.05);

  /* Border Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Layout */
  --bottom-bar-height: 56px;
  --transition: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-family);
  color: var(--navy-700);
  background: var(--white);
  line-height: 1.55;
  padding-bottom: calc(var(--bottom-bar-height) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

ul {
  list-style: none;
}

/* Headings font styling */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--navy-900);
  letter-spacing: -0.025em;
  font-weight: 800;
}

/* ---- Containers & Sections ---- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 34px 0;
}

/* Section Title inspired by modern ITadis medical polish */
.section-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.025em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 4px;
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 0.86rem;
  color: var(--navy-500);
  margin-bottom: 20px;
  padding-left: 26px;
  line-height: 1.45;
  font-weight: 500;
}

/* Selective text accent */
.text-accent {
  color: var(--primary);
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Modern Pill Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0.1px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 3px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00c4d1 0%, #009aa7 100%);
  box-shadow: 0 5px 16px rgba(0, 173, 181, 0.35);
  transform: translateY(-1px);
}

.btn-wa {
  background: var(--accent-wa-gradient);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.28);
}

.btn-wa:hover {
  background: linear-gradient(135deg, #28e06d 0%, #20b857 100%);
  box-shadow: 0 5px 16px rgba(37, 211, 102, 0.38);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: var(--primary-light);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

/* ---- Compact Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 231, 238, 0.85);
  box-shadow: 0 1px 3px rgba(9, 34, 47, 0.03);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary-light);
  box-shadow: 0 2px 6px rgba(0, 173, 181, 0.15);
}

.logo-text {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy-900);
  letter-spacing: -0.03em;
}

.logo-text span {
  color: var(--primary);
}

.logo-sub {
  font-size: 0.62rem;
  color: var(--navy-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 1.5px;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 12px;
}

.desktop-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-600);
  transition: all var(--transition);
}

.desktop-nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.desktop-nav a.active {
  color: var(--primary-dark);
  background: var(--primary-light);
  font-weight: 700;
}

/* Header Action Buttons (Language Switcher) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

@media (min-width: 768px) {
  .header-actions {
    margin-left: 0;
  }
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--navy-200);
  background: var(--white);
  color: var(--navy-700);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: var(--primary-subtle);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--navy-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 4px;
  min-width: 96px;
  display: none;
  z-index: 200;
}

.lang-dropdown.open {
  display: flex;
  flex-direction: column;
}

.lang-dropdown button {
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-700);
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background var(--transition);
}

.lang-dropdown button:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.lang-dropdown button.active {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-subtle);
}

/* ---- HERO SECTION ---- */
.hero {
  position: relative;
  background: #06232e;
  overflow: hidden;
  color: var(--white);
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 28, 38, 0.94) 0%,
    rgba(8, 45, 58, 0.88) 60%,
    rgba(0, 108, 122, 0.75) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 24px 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 173, 181, 0.18);
  border: 1px solid rgba(126, 232, 237, 0.45);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7ee8ed;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
  text-transform: uppercase;
  width: fit-content;
  backdrop-filter: blur(8px);
}

.hero-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.hero-title {
  font-size: 1.62rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
  line-height: 1.45;
  font-weight: 500;
  max-width: 520px;
}

/* Doctor card in Hero */
.hero-doctor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: rgba(9, 38, 47, 0.68);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(126, 232, 237, 0.32);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  margin-bottom: 12px;
  max-width: 290px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-doctor-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-doctor-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 12%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(0, 173, 181, 0.55);
  display: block;
}

.hero-doctor-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.hero-doctor-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.hero-doctor-role {
  font-size: 0.76rem;
  color: #7ee8ed;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.3;
}

.hero-doctor-mobile {
  display: flex;
}

.hero-doctor-desktop {
  display: none;
}

.hero-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.hero-address svg {
  color: #7ee8ed;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-cta .btn-wa {
  padding: 11px 22px;
  font-size: 0.92rem;
  border-radius: var(--radius-pill);
}

/* ---- 2x2 QUICK BENEFITS & CONTACTS GRID ---- */
.section-quick-grid {
  padding: 14px 0 10px;
  background: var(--surface-bg-soft);
  border-bottom: 1px solid var(--navy-200);
}

.quick-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (min-width: 768px) {
  .quick-grid-2x2 {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.quick-card {
  background: var(--white);
  border: 1px solid var(--surface-card-border);
  border-radius: var(--radius);
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-xs);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  box-sizing: border-box;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.quick-card-link {
  cursor: pointer;
}

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

/* Feature cards: M+ & Accessibility (Row 1 prominence) */
.quick-card-feature {
  padding: 10px 10px;
  background: var(--white);
  border: 1px solid rgba(0, 173, 181, 0.28);
  box-shadow: 0 2px 8px rgba(0, 173, 181, 0.08);
}

.quick-card-feature .quick-card-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-card-feature .quick-icon-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.quick-card-feature .quick-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.15;
}

.quick-card-feature .quick-card-desc {
  font-size: 0.69rem;
  font-weight: 500;
  color: var(--navy-700);
  line-height: 1.25;
  margin-top: 2px;
  display: block;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: normal;
}

.quick-card-icon-wrap.icon-a11y-wrap {
  background: rgba(0, 173, 181, 0.12);
  color: var(--primary-dark);
  border: 1px solid rgba(0, 173, 181, 0.3);
}

/* Compact contact cards: WhatsApp & Phone (Row 2) */
.quick-card-compact {
  padding: 7px 9px;
  background: var(--white);
  border: 1px solid var(--surface-card-border);
}

.quick-card-compact .quick-card-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
}

.quick-card-compact .quick-card-title {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--navy-800);
  line-height: 1.15;
}

.quick-card-compact .quick-card-desc {
  font-size: 0.67rem;
  color: var(--navy-500);
  line-height: 1.2;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-card-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.quick-icon-img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.quick-card-icon-wrap.icon-wa-wrap {
  background: #eafaf1;
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.quick-card-icon-wrap.icon-call-wrap {
  background: rgba(0, 173, 181, 0.12);
  color: var(--primary);
  border: 1px solid rgba(0, 173, 181, 0.25);
}

.quick-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
}

.quick-card-title {
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-card-desc {
  font-size: 0.67rem;
  color: var(--navy-600);
  line-height: 1.25;
  margin-top: 1px;
}

/* ---- SERVICES SECTION ---- */
.services-section {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--surface-card-border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 173, 181, 0.38);
}

.service-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-50);
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.service-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.service-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
}

/* Vibrant turquoise pill badge for service price (as in ITadis) */
.service-price {
  display: inline-flex;
  align-items: center;
  background: var(--primary-gradient);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0, 173, 181, 0.28);
  width: fit-content;
  margin-top: auto;
  letter-spacing: 0.2px;
}

.services-footer {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.services-disclaimer {
  font-size: 0.76rem;
  color: var(--navy-400);
  text-align: center;
}

.btn-toggle-services {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  background: var(--primary-subtle);
  font-size: 0.86rem;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: var(--shadow-xs);
}

.btn-toggle-services:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 173, 181, 0.32);
  transform: translateY(-1px);
}

/* ---- DOCTORS SECTION ---- */
.doctors-section {
  background: var(--surface-bg-soft);
  border-top: 1px solid var(--navy-200);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--surface-card-border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.doctor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 173, 181, 0.35);
}

/* Lead doctor highlight */
.doctor-card-lead {
  border: 1.5px solid rgba(0, 173, 181, 0.45);
  box-shadow: 0 4px 18px rgba(0, 173, 181, 0.12);
  background: linear-gradient(180deg, rgba(230, 248, 250, 0.35) 0%, #ffffff 40%);
}

.doctor-card-lead:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 173, 181, 0.22);
}

.doctor-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  position: relative;
  background: var(--navy-100);
}

.doctor-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  transition: transform 0.35s ease;
}

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

.doctor-info {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doctor-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
  margin-bottom: 4px;
}

.doctor-role {
  font-size: 0.76rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: auto;
}

.doctor-card-lead .doctor-role {
  color: var(--primary-dark);
  font-weight: 800;
}

/* ---- FAQ SECTION ---- */
.faq-section {
  background: var(--white);
  border-top: 1px solid var(--navy-200);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--surface-card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
  border-color: rgba(0, 173, 181, 0.35);
  box-shadow: var(--shadow-sm);
}

.faq-item.open {
  border-color: rgba(0, 173, 181, 0.45);
  background: #f7fcfe;
}

.faq-question {
  width: 100%;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
  text-align: left;
  line-height: 1.35;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  transition: max-height 0.3s ease-in-out;
}

.faq-answer p {
  padding: 0 16px 14px;
  font-size: 0.84rem;
  color: var(--navy-700);
  line-height: 1.55;
}

/* ---- COMPACT CTA BANNER (HOMEPAGE ONLY) ---- */
.cta-compact-section {
  padding: 18px 0 28px;
  background: var(--white);
}

.cta-compact-card {
  background: linear-gradient(135deg, #05333e 0%, #0a4f5f 55%, #087082 100%);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 28px -4px rgba(5, 51, 62, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
}

.cta-compact-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 173, 181, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.cta-compact-text h2 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 4px;
  letter-spacing: -0.025em;
}

.cta-compact-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  font-weight: 500;
}

.cta-compact-action {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cta-compact-action .btn-wa {
  width: 100%;
}

/* ---- COMPACT FOOTER ---- */
.footer {
  background: #061922;
  color: rgba(255, 255, 255, 0.72);
  padding: 22px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-compact-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-logo-img {
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-quick-contacts {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all var(--transition);
}

.footer-contact-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-contact-link .footer-icon {
  color: #7ee8ed;
  transition: color var(--transition);
}

.footer-contact-link:hover .footer-icon {
  color: #ffffff;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  transition: all var(--transition);
  flex-shrink: 0;
}

.footer-social-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  transform: translateY(-1px);
}

.footer-social-wa:hover {
  background: #25D366;
  border-color: #25D366;
}

.footer-social-ig:hover {
  background: #e1306c;
  border-color: #e1306c;
}

.footer-social-phone:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.footer-info-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.footer-address-hours {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-dot-sep {
  color: rgba(255, 255, 255, 0.25);
}

.footer-hours-badge {
  color: #7ee8ed;
  font-weight: 700;
  background: rgba(0, 173, 181, 0.18);
  padding: 1px 7px;
  border-radius: 4px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.48);
}

/* ---- MOBILE APP BOTTOM NAVIGATION BAR (3 TABS ONLY) ---- */
.app-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--surface-card-border);
  box-shadow: 0 -4px 16px rgba(9, 34, 47, 0.05);
  display: flex;
  align-items: stretch;
  z-index: 100;
}

.app-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 6px;
  color: var(--navy-500);
  font-size: 0.72rem;
  font-weight: 600;
  transition: color var(--transition);
  text-align: center;
  user-select: none;
}

.app-tab svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.app-tab:hover, .app-tab.active {
  color: var(--primary);
}

.app-tab.active {
  font-weight: 700;
}

.app-tab.active svg {
  stroke-width: 2.4;
  transform: translateY(-1px);
}

/* ---- Secondary Pages (Gallery & Contacts) ---- */
.page-hero-compact {
  background: linear-gradient(135deg, #eaf6f8 0%, #f4fafb 100%);
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--surface-card-border);
}

.page-hero-title {
  font-size: 1.42rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.2;
  margin-bottom: 2px;
  letter-spacing: -0.025em;
}

.page-hero-sub {
  font-size: 0.86rem;
  color: var(--navy-600);
  font-weight: 500;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .gallery-grid {
    gap: 8px;
  }
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--surface-card-border);
  min-width: 0;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item.large {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 25, 34, 0.94);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.85;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Compact Reviews Section on Gallery Page */
.reviews-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 860px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .reviews-compact-grid {
    gap: 6px;
  }
}

.review-compact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 5px;
  border: 1px solid var(--surface-card-border);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-compact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(0, 173, 181, 0.35);
}

.review-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  margin-bottom: 2px;
}

.review-card-logo img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.review-card-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.2;
  text-align: center;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  width: 100%;
}

.review-card-desc {
  font-size: 0.65rem;
  color: var(--navy-600);
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
  min-height: 2.5em;
  width: 100%;
}

.review-compact-card .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  font-size: 0.67rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  width: 100%;
  white-space: normal;
  word-break: normal;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.15;
  min-height: 32px;
  margin-top: auto;
}

.review-compact-card .btn span {
  display: block;
  text-align: center;
}

@media (min-width: 600px) {
  .reviews-compact-grid {
    gap: 12px;
  }
  .review-compact-card {
    padding: 12px 10px;
    gap: 6px;
  }
  .review-card-logo {
    height: 28px;
  }
  .review-card-logo img {
    width: 24px;
    height: 24px;
  }
  .review-card-title {
    font-size: 0.82rem;
    min-height: auto;
  }
  .review-card-desc {
    font-size: 0.70rem;
    min-height: auto;
  }
  .review-compact-card .btn {
    padding: 7px 10px;
    font-size: 0.74rem;
    white-space: nowrap;
    min-height: 34px;
  }
}

.map-links-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.map-service-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--navy-200);
  background: var(--white);
  color: var(--navy-800);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.map-service-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.map-logo-img {
  width: 17px;
  height: 17px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.btn-google-maps:hover {
  border-color: #4285F4;
  color: #1a73e8;
}

.btn-2gis:hover {
  border-color: #1ea13d;
  color: #1ea13d;
}

.btn-yandex-maps:hover {
  border-color: #FC3F1D;
  color: #FC3F1D;
}

/* Contacts page elements */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-block-modern {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-grid-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Primary compact cards: WhatsApp and Call */
.contact-prime-card {
  background: var(--white);
  border: 1px solid var(--surface-card-border);
  border-radius: var(--radius);
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 78px;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.contact-prime-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.prime-wa:hover {
  border-color: #25D366;
}

.prime-call:hover {
  border-color: var(--primary);
}

.prime-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.prime-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prime-icon.wa-accent {
  background: #eafaf1;
  color: #25D366;
}

.prime-icon.call-accent {
  background: rgba(0, 173, 181, 0.12);
  color: var(--primary);
}

.prime-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.prime-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prime-sub {
  font-size: 0.66rem;
  color: var(--navy-500);
  line-height: 1.2;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prime-phone {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-top: 1px;
  white-space: nowrap;
}

.prime-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  width: 100%;
  text-align: center;
  margin-top: 6px;
  transition: all var(--transition);
}

.btn-wa-mini {
  background: #eafaf1;
  color: #128c7e;
}

.prime-wa:hover .btn-wa-mini {
  background: #25D366;
  color: var(--white);
}

.btn-call-mini {
  background: rgba(0, 173, 181, 0.12);
  color: var(--primary-dark);
}

.prime-call:hover .btn-call-mini {
  background: var(--primary);
  color: var(--white);
}

/* Secondary compact cards: Address & Instagram */
.contact-sub-card {
  background: var(--white);
  border: 1px solid var(--surface-card-border);
  border-radius: var(--radius);
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.contact-sub-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 173, 181, 0.4);
  box-shadow: var(--shadow-sm);
}

.sub-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-icon.addr-accent {
  background: var(--navy-100);
  color: var(--navy-600);
}

.sub-icon.ig-accent {
  background: #fdf2f8;
  color: #db2777;
}

.sub-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  justify-content: center;
}

.sub-label {
  font-size: 0.63rem;
  color: var(--navy-400);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sub-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.25;
  margin-top: 1px;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Working hours: Single compact bar */
.contact-hours-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 173, 181, 0.08);
  border: 1px solid rgba(0, 173, 181, 0.22);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.hours-bar-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.hours-bar-text {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
}

.contact-clinic-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 180px;
  border: 1px solid var(--surface-card-border);
}

/* ---- License Information Block ---- */
.license-block {
  margin-top: 14px;
  background: var(--surface-bg-soft);
  border: 1px solid var(--surface-card-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--transition);
}

.license-block:hover {
  border-color: rgba(0, 173, 181, 0.35);
}

.license-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.license-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 173, 181, 0.12);
  color: var(--primary-dark);
  border: 1px solid rgba(0, 173, 181, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.license-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.license-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
}

.license-desc {
  font-size: 0.72rem;
  color: var(--navy-600);
  line-height: 1.35;
  margin-top: 1px;
}

.license-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--navy-200);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.license-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 540px) {
  .license-block {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 10px;
  }
  .license-btn {
    align-self: flex-start;
  }
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  margin: 12px 0 8px;
  border: 1px solid var(--surface-card-border);
  background: var(--navy-50);
  min-height: 200px;
}

.map-iframe {
  width: 100%;
  height: 200px;
  border: none;
  display: block;
}

/* =============================================
   RESPONSIVE (Tablet & Desktop)
   ============================================= */

@media (min-width: 600px) {
  .hero-title {
    font-size: 1.95rem;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .contact-layout {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
  .cta-compact-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px;
  }
  .cta-compact-action .btn-wa {
    width: auto;
  }
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
  .app-bottom-bar {
    display: none;
  }
  .desktop-nav {
    display: flex;
  }

  .section {
    padding: 46px 0;
  }
  .section-title {
    font-size: 1.55rem;
  }

  .hero {
    min-height: 420px;
  }
  .hero-inner {
    padding: 50px 0 46px;
  }
  .hero-title {
    font-size: 2.25rem;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .doctors-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .doctor-img-wrap {
    aspect-ratio: 4 / 4.8;
  }
  .doctor-name {
    font-size: 0.94rem;
  }
  .doctor-role {
    font-size: 0.8rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .gallery-item.large {
    grid-column: span 2;
  }
}

@media (min-width: 860px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 290px;
    align-items: center;
    gap: 40px;
    padding: 48px 0 44px;
  }

  .hero-left {
    max-width: 620px;
  }

  .hero-doctor-mobile {
    display: none;
  }

  .hero-doctor-desktop {
    display: flex;
    justify-content: center;
  }

  .hero-doctor-desktop .hero-doctor-card {
    flex-direction: column;
    text-align: center;
    padding: 26px 22px;
    background: rgba(9, 38, 47, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(126, 232, 237, 0.38);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    max-width: 290px;
    width: 100%;
    margin-bottom: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .hero-doctor-desktop .hero-doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 173, 181, 0.4);
  }

  .hero-doctor-desktop .hero-doctor-avatar {
    width: 136px;
    height: 136px;
    border: 3.5px solid #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 5px rgba(0, 173, 181, 0.55);
  }

  .hero-doctor-desktop .hero-doctor-name {
    font-size: 1.14rem;
    margin-top: 14px;
  }

  .hero-doctor-desktop .hero-doctor-role {
    font-size: 0.86rem;
    margin-top: 4px;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .hero-title {
    font-size: 2.5rem;
  }
}
