:root {
  --font-main: 'Roboto', sans-serif;
  --font-condensed: 'Roboto Condensed', sans-serif;
    --primary: #13C5DD;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
    --white: #ffffff;
  }

  a {
    text-decoration: none;
  }

  @media (max-width: 440px) {
    .hero-main-text {
      display: flex !important;
      flex-direction: column;
      align-items: center;     /* горизонтальное центрирование */
      justify-content: flex-end;
      text-align: center;      /* выравнивание текста */
      padding: 2rem 1rem;
    }
  
    .hero-main-text h1 {
      text-align: center;
      margin-bottom: 0.5rem;   /* немного отступа снизу */
      font-size: 1.4rem;
      color: #fff;
    }
  
    .hero-main-text p {
      text-align: center;
      font-size: 1rem;
      color: #fff;
    }

    .med-hero h1 {
      color: var(--primary);
      text-align: left;
      font-size: 2.8rem;
      margin-bottom: 1rem;
    }
  }
  
  
  
  
  /* Base styles */
  body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
  }
  
  h1, h2, h3 {
    color: var(--primary);
    margin-bottom: 1rem;
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }
  
  p { margin-bottom: 1rem; }
  ul { padding-left: 1.2rem; }
  
  /* Layout */
  .med-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
  }
  
  .med-section {
    padding: 4rem 0;
  }
  
  .med-light-bg {
    background-color: var(--light);
  }
  
  /* Header */

  .med-hero {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
  }

  .med-header,
.med-hero {
  position: relative;
  z-index: 2;
}
  .med-header {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    position: relative;
    top: 0;
    z-index: 1000;
    color: var(--white);
  }
  
  .med-logo img {
    height: 80px; /* увеличенный размер логотипа */
    max-height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    transition: height 0.3s ease;
  }
  
  /* Для адаптивности на меньших экранах */
  @media (max-width: 992px) {
    .med-logo img {
      height: 60px;
    }
  }
  
  @media (max-width: 576px) {
    .med-logo img {
      height: 50px;
    }
  }
  
  
  .med-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  
  .med-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: color 0.3s;
  }
  
  .med-nav a:hover {
    color: var(--primary);
  }
  



  
  /* Hero section */

  .med-hero .med-subtitle {
    font-size: 2rem; /* было 1.5rem */
    margin-bottom: 1rem;
  }
  
  .med-hero-text {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--white);
  
  }

  .texthosp {
    color: var(--primary);
  }

  .med-video-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-condensed);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .med-video-btn:hover {
    background-color: #2e6fbf; /* темнее primary */
  }
  
  .med-video-btn i {
    font-size: 1.2rem;
  }

  .med-hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .med-hero-wrapper {
    position: relative;
    overflow: hidden;
  }
  
  
.med-hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
  pointer-events: none;
}

.med-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 29, 77, 0.2); /* синий полупрозрачный */
  z-index: 1;
}
  
  .med-hero {
    text-align: left;
    position: relative;
    z-index: 2;
    color: var(--white);
  }
  
  .med-hero h1 {
    color: var(--primary);
    text-align: left; /* или просто убери text-align: center, если он был задан */
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .med-hero h1,
.med-subtitle,
.med-btn,
.med-hospital-overlay h3 {
  font-family: var(--font-condensed);
}
  
  .med-hero p,
  .med-hero .med-subtitle {
    color: var(--white);
  }
  

  .med-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-family: var(--font-condensed);
  }
  
/* About page specific background */
.med-hero--about {
  background-image: url('bgab.JPG'); /* Замените на ваш путь */
}

/* Для экранов шире 768px — десктоп */
@media (min-width: 769px) {
  .med-hero--about {
    background-image: url('bg-about-desc.JPG'); /* десктоп */
  }
}
  
.about-subtitle {
  color: white;
}

  .med-hero .med-container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
  }

  .med-hero-content-box {
    background: rgba(0, 0, 0, 0.2); /* тёмная полупрозрачная подложка */
    padding: 2rem 2.5rem;
    border-radius: 1rem;
    margin: 0;
    backdrop-filter: blur(5px);
    max-width: 750px;
  }

  /* Только для госпитальных страниц */
.med-hero--quseir .med-hero-content-box {
  max-width: 500px;
  background-position: right center; /* или чуть точнее, например 75% center */

}
    /* Только для госпитальных страниц */
.med-hero--hurghada .med-hero-content-box {
  max-width: 500px;
  background-position: right center; /* или чуть точнее, например 75% center */

}
  /* Buttons */
  .med-btn,
  .med-btn-transparent {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
    font-family: inherit;
    font-size: 1rem;
    text-decoration: none;
  }
  
  .med-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
  }
  
  .med-btn:hover {
    background-color: var(--secondary);
  }
  
  .med-btn-transparent {
    background: rgba(19, 197, 221, 0.1);
    border: 2px solid var(--primary);
    color: var(--primary);
  }
  
  .med-btn-transparent:hover {
    background: var(--primary);
    color: var(--white);
  }
  
  /* Кнопки в карточках госпиталей */
  .med-btn-small {
    background: rgba(19, 197, 221, 0.1); /* Полупрозрачный голубой фон */
    border: 2px solid var(--primary); /* Граница голубого цвета */
    color: var(--primary); /* Голубой текст */
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    text-decoration: none;
  }
  
  .med-btn-small:hover {
    background: var(--primary); /* Голубой фон при наведении */
    color: var(--white); /* Белый текст при наведении */
  }
  
  #about h2.center {
    font-size: 3rem; /* увеличиваем размер шрифта */
    color: var(--primary); /* голубой цвет, как на баннере */
    text-align: left; /* выравнивание по центру */
    margin-bottom: 2rem; /* отступ снизу */
  }

  #about {
    background-color: var(--light);
  }
  
  
  /* Forms */
  .med-form {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .med-form input,
  .med-form textarea {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    width: 100%;
  }
  
  .med-form textarea {
    height: 120px;
  }
  
  /* Services grid */
  .med-services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 2rem;
  }
  
  .med-service,
  .med-hospital-block,
  .med-news-block,
  .med-testimonial {
    background: var(--white);
    
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
  }
  
  .med-service:hover,
  .med-hospital-block:hover,
  .med-news-block:hover {
    transform: translateY(-5px);
  }
  
  /* Hospital cards */
  .med-hospitals-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 2rem;
  }
  
  .med-hospital-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
  }
  
  .med-hospital-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  }
  
  .med-hospital-image-wrapper {
    position: relative;
    overflow: hidden;
  }
  
  .med-hospital-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
    display: block;
  }
  
  .med-hospital-card:hover img {
    transform: scale(1.07);
  }
  
  .med-hospital-overlay {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 40%, rgba(0, 0, 0, 0) 100%);
    color: white;
    transform: translateY(70%);
    transition: transform 0.4s ease;
  }
  
  .med-hospital-card:hover .med-hospital-overlay {
    transform: translateY(0%);
  }

  .med-hospital-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-family: var(--font-condensed);
  }

  
.med-hospital-overlay p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.4s ease, max-height 0.3s ease;
}
  
  .med-hospital-content {
    padding: 1.5rem;
  }
  .med-hospital-card:hover .med-hospital-overlay p {
    opacity: 1;
    max-height: 200px;
    margin-top: 0.5rem;
  }
  
  .med-hospital-overlay .med-btn-small {
    margin-top: 1rem;
    display: inline-block;
  }
  
  .med-hospital-overlay::before {
    content: "🏥"; /* medical icon emoji */
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .med-hospital-card:hover .med-hospital-overlay::before {
    opacity: 1;
    transform: translateY(0);
  }
  .med-hospital-note {
    text-align: left;
    font-size: 1.1rem;
    color: var(--dark);
    margin-top: 2rem;
    max-width: 800px;
  }


  #operation-hours {
    background: linear-gradient(135deg, #EFF5F9 0%, #ffffff 100%);
    padding: 4rem 0;
  }
  
  .med-hours-box {
    display: flex;
    align-items: center;
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    padding: 2rem 3rem;
    border: 1px solid rgba(19, 197, 221, 0.2);
    transition: transform 0.3s ease;
    max-width: 800px;
    width: 90%;
  }
  .med-hours-icon {
    margin-right: 2rem;
  }

  .med-hours-icon img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    display: block;
  }
  .pulse-icon {
    animation: pulse 2s infinite ease-in-out;
  }

  .med-hours-content h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 700;
    animation: fadeInUp 0.6s ease both;
  }
  
  .med-hours-content p {
    font-size: 1.15rem;
    color: var(--dark);
    line-height: 1.7;
    animation: fadeInUp 0.8s ease both;
    animation-delay: 0.15s;
  }
  
  #operation-hours .med-container {
    display: flex;
    justify-content: center;
  }
  
  #comprehensive-care {
    background-color: var(--white);
    padding: 4rem 0;
  }

  #comprehensive-care .med-container {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
  }

  #comprehensive-care h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
  }

  #comprehensive-care p {
    font-size: 1.2rem;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 800px;
  }


  .med-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .med-feature {
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    width: calc(25% - 1.5rem);
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    background-color: #EFF5F9; /* по умолчанию */
    color: #1D2A4D; /* тёмный текст */
  }

/* Hover эффект */
.med-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Иконки */
.med-feature i {
  font-size: 2.8rem;
  background-color: #fff;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  line-height: 70px;
  display: inline-block;
  text-align: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #13C5DD; /* фирменный голубой */
}

  /* Чередование фонов карточек */
.med-feature:nth-child(3n + 1) {
  background-color: #EFF5F9; /* светло-голубой */
}

.med-feature:nth-child(3n + 2) {
  background-color: #13C5DD; /* голубой */
}

.med-feature:nth-child(3n + 3) {
  background-color: #354F8E; /* тёмно-синий */
}



.med-feature-text {
    background-color: rgba(255, 255, 255, 0.8); /* Полупрозрачный белый фон */
    border-radius: 8px;
    padding: 0.5rem;
}

/* Заголовки */
.med-feature-text h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #1D2A4D; /* единый тёмный цвет */
}




/* Адаптив */
@media (max-width: 1200px) {
  .med-feature {
    width: calc(50% - 1.5rem);
  }
}

@media (max-width: 768px) {
  .med-feature {
    width: calc(50% - 1.5rem);
  }


}

@media (max-width: 480px) {
  .med-feature {
    width: 100%;
  }
}

  
  

/* Общий стиль полей */
.med-form input[type="text"],
.med-form input[type="email"],
.med-form input[type="tel"],
.med-form input[type="file"],
.med-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: white;
}

/* Формат строк с двумя полями */
.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-row input {
  flex: 1;
}

/* Табы госпиталей */
.hospital-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0.5rem;
  background-color: #f9f9f9;
}

.hospital-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background-color: transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.hospital-tab.active {
  background-color: #13C5DD;
  color: white;
}

/* Галочка рядом с текстом */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
}



#services {
    padding: 80px 20px;
    background-color: #f5f9fc;
  }
  
  #services h2 {
    font-size: 36px;
    margin-bottom: 50px;
    color: #1D2A4D;
  }
  
  .med-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .med-service {
    position: relative;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    transition: filter 0.3s ease-in-out;
    cursor: pointer;
    background-color: transparent; /* Убираем фон */
  }
  
  .med-service img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Заполняет весь блок */
    transition: opacity 0.3s ease-in-out;
  }
  
  .med-service::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0); /* Изначально полностью прозрачный */
    transition: background-color 0.3s ease;
    z-index: 1; /* Поверх фона, но под overlay */
    pointer-events: none;
  }
  
  .med-service:hover::before {
    background-color: rgba(0, 0, 0, 0.4); /* Затемнение при ховере */
  }
  
  .service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 12px 16px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    text-decoration: none;
    z-index: 2;
    overflow: hidden;
    transition: max-height 0.4s ease;
    max-height: 50px;
  }
  
  .med-service:hover .service-overlay {
    max-height: 200px;
  }
  
  .service-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .service-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1D2A4D;
  }
  
  .service-arrow {
    font-size: 20px;
    color: #1D2A4D;
    transition: transform 0.3s ease;
  }
  
  .med-service:hover .service-arrow {
    transform: translateX(5px);
  }
  
  .service-description {
    font-size: 14px;
    color: #333;
    margin-top: 10px;
    display: none;
  }
  
  .med-service:hover .service-description {
    display: block;
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    .service-title h3 {
      font-size: 15px;
    }


  
    .service-arrow {
      font-size: 18px;
    }
  }
  

  #insurance {
    padding: 80px 20px;
    background-color: #EFF5F9;
  }
  
  #insurance h2 {
    font-size: 32px;
    color: #1D2A4D;
    margin-bottom: 20px;
    text-align: left;
  }
  
  .insurance-description {
    font-size: 18px;
    color: #354F8E;
    max-width: 800px;
    line-height: 1.6;
  }
  


  /* Анимация вылета контента в hero */
.med-hero .med-container {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.med-hospital-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.med-hospital-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.med-hours-icon i {
  font-size: 2.5rem;
  color: var(--primary);
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}

.med-feature {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.med-feature.visible {
  opacity: 1;
  transform: translateY(0);
}
.med-service {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.med-service.visible {
  opacity: 1;
  transform: scale(1);
}
.med-insurance-section {
  background-color: #fff;
  position: relative;
  z-index: 1;
}

.med-insurance-overlay {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0;
  position: relative;
  z-index: 2;
}

.med-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.med-insurance-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap; /* для адаптива */
}

.med-insurance-content {
  flex: 1 1 60%;
  text-align: left;
  max-width: 800px;
}

.med-insurance-content h2 {
  font-size: 2.5rem;
  color: var(--primary, #1D2A4D);
  margin-bottom: 1rem;
}

.med-insurance-content p {
  font-size: 1.2rem;
  color: #1D2A4D;
}

.med-insurance-image {
  flex: 1 1 35%;
  text-align: right;
}

.med-insurance-image img {
  max-width: 70%;
  height: auto;
  display: block;
}
.med-testimonials-stories {
  background-color: #EFF5F9;
  padding: 5rem 0;
}

.med-stories-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-top: 2rem;
  scroll-snap-type: x mandatory;
}

.med-story-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  flex: 0 0 250px;
  scroll-snap-align: start;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.med-story-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
}

.med-story-info {
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  color: #1D2A4D;
}
.med-stories-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.med-stories-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
  flex-grow: 1;
}

.med-story-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.med-story-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.med-story-info {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: #1D2A4D;
  background-color: #EFF5F9;
}

/* Навигационные кнопки */
.med-stories-nav {
  background: rgba(19, 197, 221, 0.8);
  color: white;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.med-stories-nav:hover {
  background: rgba(19, 197, 221, 1);
}

.med-stories-nav.prev {
  margin-right: 1rem;
}

.med-stories-nav.next {
  margin-left: 1rem;
}

/* Скроем кнопки на маленьких экранах */
@media (max-width: 600px) {
  .med-stories-nav {
    display: none;
  }
}


.med-news-section {
  background-color: #fff;
  padding: 4rem 1rem;
}

.med-news-section h2 {
  text-align: center;
  color: #1D2A4D;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.med-news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.med-news-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.med-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.med-news-image-wrapper {
  position: relative;
}

.med-news-image-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.med-news-date-flag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: #13C5DD;
  color: #fff;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.med-news-content {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.med-news-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1D2A4D;
}

.med-news-content p {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.med-news-btn {
  align-self: flex-start;
  background-color: #354F8E;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.med-news-btn:hover {
  background-color: #2c3e73;
}

.med-news-all-btn-wrapper {
  text-align: center;
  margin-top: 2.5rem;
}

.med-news-all-btn {
  background-color: #13C5DD;
  color: #fff;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.med-news-all-btn:hover {
  background-color: #0baec2;
}

.med-news-card:nth-child(even) {
  background-color: #EFF5F9; /* Светло-голубой */
}

.med-news-card:nth-child(odd) {
  background-color: #ffffff; /* Белый */
}



.med-footer {
  background-color: #1D2A4D;
  color: #EFF5F9;
  padding: 3rem 1rem 1.5rem;
  font-size: 0.95rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-left {
  max-width: 220px;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: #EFF5F9;
  font-style: italic;
  font-size: 0.95rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav h4,
.footer-contact h4,
.footer-social h4 {
  margin-bottom: 0.6rem;
  color: #13C5DD;
  font-size: 1.05rem;
}

.footer-nav ul li {
  margin: 0.3rem 0;
}

.footer-nav ul li a {
  color: #EFF5F9;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav ul li a:hover {
  color: #13C5DD;
}

.footer-contact p {
  margin: 0.4rem 0 1rem;
  line-height: 1.4;
}

.footer-social .social-icons a {
  display: inline-block;
  margin-right: 0.8rem;
  color: #EFF5F9;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer-social .social-icons a:hover {
  color: #13C5DD;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #ccc;
}


.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.med-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  padding: 0; /* убираем внутренние отступы */
  margin: 0; /* убираем внешние отступы */
}

.med-form input,
.med-form textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

.med-form textarea {
  resize: vertical;
  min-height: 150px;
}



.med-btn:hover {
  background-color: #0eaec3;
}

.med-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .med-map {
    height: 300px;
  }
}

.appointment-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Десктоп — текст слева, форма справа */
@media (min-width: 768px) {
  .appointment-content {
    flex-direction: row;
  }

  .appointment-text {
    flex: 1;
  }

  .appointment-form {
    flex: 1;
  }
}


/* Мобильная адаптация — текст над формой */
@media (max-width: 767px) {
  .appointment-content {
    flex-direction: column;
  }

  .appointment-text {
    width: 100%;
    padding-right: 20px;
  }


}

.appointment-text {
  width: 100%;
  padding-right: 20px;
}


.med-video-modal {
  display: none; /* по умолчанию скрыто */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999; /* выше всех элементов на странице */
  background-color: rgba(0, 0, 0, 0.7); /* затемнение фона */
  justify-content: center;
  align-items: center;
}

.med-video-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background-color: #000;
  padding: 1rem;
  border-radius: 8px;
}

.med-video-modal-content iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

.med-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10000;
}








/* Общие стили */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1D2A4D;
  background-color: #fff;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  margin: 2rem 0;
  color: #1D2A4D;
}

.service-block {
  padding: 4rem 0;
}

.service-block.white {
  background-color: #fff;
}

.service-block.blue {
  background-color: #EFF5F9;
}

.service-block.dark {
  background-color: #13C5DD0F;
}

.service-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.service-inner.left .service-image {
  order: 0;
}

.service-inner.right .service-image {
  order: 1;
}

.service-inner.left .service-content {
  order: 1;
}

.service-inner.right .service-content {
  order: 0;
}

.service-image {
  flex: 1 1 45%;
  height: 300px; /* или 280px, можно подогнать под дизайн */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* сохраняет пропорции, но обрезает лишнее */
  border-radius: 10px;
}

.service-content {
  flex: 1 1 50%;
}

.service-content h2 {
  font-size: 1.8em;
  margin-bottom: 1rem;
  color: #1D2A4D;
}

.service-content p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #1D2A4D;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background-color: #354F8E;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #1D2A4D;
}

.appointment-section {
  background-color: #1D2A4D;
  color: #fff;
  padding: 5rem 2rem;
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: #EFF5F9;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  color: #1D2A4D;
  text-align: center;
}

.form-wrapper h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.form-wrapper p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #354F8E;
}

.appointment-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-row input,
.form-row select {
  flex: 1 1 48%;
  min-width: 0;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  background-color: #fff;
  box-sizing: border-box;
}

.appointment-form textarea {
  resize: vertical;
  min-height: 120px;
}

.appointment-form .btn-primary {
  align-self: center;
  margin-top: 1rem;
  background-color: #13C5DD;
  color: #fff;
  border: none;
  padding: 0.9rem 2rem;
  font-weight: 600;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.appointment-form .btn-primary:hover {
  background-color: #0DAEC2;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
  }

  .form-row input,
  .form-row select {
    flex: 1 1 100%;
    padding: 0.6rem 0.8rem; /* уменьшенная высота */
    font-size: 1rem;
    height: auto;
  }

  .appointment-form input,
  .appointment-form select,
  .appointment-form textarea {
    padding: 0.6rem 0.8rem; /* уменьшенный вертикальный отступ */
    font-size: 1rem;
    line-height: 1.4;
  }

  .appointment-form textarea {
    min-height: 100px;
  }

  .appointment-form button[type="submit"] {
    padding: 0.8rem 1rem;
    font-size: 1rem;
    width: 100%;
  }

  .hospital-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hospital-tab {
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
  }
}





/* ОБЩЕЕ */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #1D2A4D;
  background-color: #fff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1, h2, h3, h4 {
  margin-top: 0;
  color: #1D2A4D;
}

p {
  margin-bottom: 1em;
}

/* HERO */
.about-hero {
  padding: 4rem 0;
  background: url('bgab.JPG') center center / cover no-repeat;
  position: relative;
  color: #fff;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* затемнение для читаемости */
  z-index: 1;
}


.about-hero .container {
  position: relative;
  z-index: 2; /* поверх затемнения */
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

.about-hero h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.about-hero h2 {
  font-size: 2rem;
  color: #13C5DD;
  margin-bottom: 1.5rem;
}

.about-hero p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* FEATURES */
.features-section {
  background-color: #fff;
  padding: 40px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}

.feature-item img {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
}

/* MISSION & VISION */
.mission-vision-section {
  background-color: #EFF5F9;
  padding: 60px 0;
}

.mv-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.mv-box {
  flex: 1;
  min-width: 280px;
  background: #fff;
  padding: 30px;
  border-left: 5px solid #13C5DD;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* HOSPITALS */
.hospital-section {
  background-color: #fff;
  padding: 60px 0;
}

.hospital-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.hospitals-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.hospital-card {
  flex: 1;
  min-width: 300px;
  background-color: #EFF5F9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.hospital-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 15px;
}

.hospital-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.btn-primary {
  display: inline-block;
  padding: 10px 25px;
  margin-top: 10px;
  background-color: #13C5DD;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: #0faac1;
}

/* BOARD MEMBERS */
.leadership-section {
  background-color: #EFF5F9;
  padding: 60px 0;
}

.leadership-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.leaders-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.leader-card {
  flex: 1;
  min-width: 280px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.leader-card img {
  display: block;
  margin: 0 auto 15px;
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 50%;
}


.leader-card h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.leader-card p {
  font-weight: 600;
  color: #354F8E;
  margin-bottom: 10px;
}

.leader-card span {
  display: block;
  font-size: 14px;
  color: #555;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
  .mv-wrapper, .hospitals-wrapper, .leaders-wrapper {
    flex-direction: column;
  }

  .about-hero h1 {
    font-size: 36px;
  }

  .about-hero h2 {
    font-size: 22px;
  }
}





/* Общие стили */
body {
  font-family: 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  color: #1D2A4D;
  background-color: #EFF5F9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #1D2A4D;
}

/* Hero */
.hospital-hero {
  position: relative;
  background-image: url('imaghosp/IMG_0393.JPG');
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  padding: 100px 0;
  text-align: center;
  overflow: hidden; /* чтобы ::before не вылезал */
}

.hospital-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* затемнение */
  z-index: 1;
}


.hospital-hero .container {
  position: relative;
  z-index: 2; /* чтобы текст был поверх затемнения */
}

.hospital-hero-title {
  font-size: 48px;
  margin-bottom: 20px;
}

.hospital-hero-subtitle {
  font-size: 24px;
  font-weight: 300;
}

/* About */
.hospital-about .hospital-description {
  font-size: 18px;
  line-height: 1.7;
  max-width: 900px;
  text-align: center;
}

/* Services Grid */
.hospital-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.hospital-service-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 30px 20px;
  font-size: 18px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hospital-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

@media (max-width: 440px) {
  .hospital-services-grid {
    grid-template-columns: 1fr; /* одна колонка — 100% ширины */
  }
}


/* Contact */
.hospital-contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.hospital-map img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hospital-contact-info p {
  font-size: 18px;
  margin: 10px 0;
}

/* CTA */
.hospital-cta {
  background: linear-gradient(to right, #354F8E, #13C5DD);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hospital-cta-inner h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hospital-cta-inner p {
  font-size: 18px;
  margin-bottom: 30px;
}

.hospital-cta-button {
  background-color: white;
  color: #1D2A4D;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.hospital-cta-button:hover {
  background-color: #EFF5F9;
}

/* Form */
.hospital-form {
  background-color: #EFF5F9;
  padding: 80px 0;
}

.hospital-form-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hospital-form-container h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.hospital-form-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hospital-form-inner input,
.hospital-form-inner select,
.hospital-form-inner textarea {
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

.hospital-form-inner textarea {
  resize: vertical;
  height: 120px;
}

.hospital-form-inner button {
  background-color: #13C5DD;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.hospital-form-inner button:hover {
  background-color: #0fa1b8;
}

/* Адаптив */
@media (max-width: 768px) {
  .hospital-contact-grid {
    flex-direction: column;
  }

  .hospital-hero-title {
    font-size: 36px;
  }

  .hospital-cta-inner h2 {
    font-size: 28px;
  }

  .section-title {
    font-size: 26px;
  }
}







.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #1D2A4D;
}

/* Hero Section */
.hospital-hero {
  background-image: url('imaghosp/IMG_0393.JPG'); /* путь к изображению */
  background-size: cover;
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hospital-hero-title {
  font-size: 48px;
  margin-bottom: 20px;
}

.hospital-hero-subtitle {
  font-size: 24px;
  font-weight: 300;
}

/* About */
.hospital-about .hospital-description {
  max-width: 900px;
  margin: auto;
  font-size: 18px;
}

/* Services */
.hospital-services {
  background-color: #EFF5F9;
}

.hospital-services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.hospital-service-card {
  background-color: white;
  color: #1D2A4D;
  padding: 20px 30px;
  border-radius: 8px;
  font-weight: 500;
  flex: 1 1 250px;
  max-width: 30%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  transition: 0.3s ease;
}

.hospital-service-card:hover {
  background-color: #13C5DD;
  color: white;
}

/* Gallery */
.gallery-swiper .swiper-slide {
  text-align: center;
}

.gallery-swiper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Modal styles */
.image-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
}

.image-modal .close-btn {
  position: absolute;
  top: 30px;
  right: 50px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}


/* Contact */
.hospital-contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.hospital-map img {
  max-width: 100%;
  border-radius: 8px;
  width: 500px;
  height: auto;
}

.hospital-contact-info {
  font-size: 18px;
  line-height: 1.8;
  max-width: 500px;
}

/* CTA */
.hospital-cta {
  background-color: #1D2A4D;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.hospital-cta h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hospital-cta p {
  font-size: 20px;
  margin-bottom: 30px;
}

.hospital-cta-button {
  display: inline-block;
  background-color: #13C5DD;
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.hospital-cta-button:hover {
  background-color: #0e9bb3;
}

/* Booking Form */
.hospital-form {
  background-color: #EFF5F9;
  padding: 60px 20px;
}

.hospital-form-container {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.hospital-form-container h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
}

.hospital-form-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hospital-form-inner input,
.hospital-form-inner select,
.hospital-form-inner textarea {
  padding: 14px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.hospital-form-inner textarea {
  min-height: 120px;
  resize: vertical;
}

.hospital-form-inner button {
  background-color: #354F8E;
  color: white;
  padding: 15px;
  font-size: 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.hospital-form-inner button:hover {
  background-color: #1D2A4D;
}

/* Адаптивность */
@media (max-width: 768px) {
  .hospital-services-grid {
    flex-direction: column;
    align-items: center;
  }

  .hospital-service-card {
    max-width: 100%;
  }

  .hospital-contact-grid {
    flex-direction: column;
  }

  .hospital-map img {
    width: 100%;
  }
}








.med-intro {
  background-color: #ffffff;
  padding: 3rem 0;
}

.med-intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.med-intro-text {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #1D2A4D;
  font-family: 'Roboto', sans-serif;
}




.med-medical-tourism {
  padding: 2rem 0;
  background-color: #fff;
}

.med-medical-tourism .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.med-medical-tourism h2 {
  font-size: 2.5rem;
  color: #1D2A4D;
  margin-bottom: 1.5rem;
}

.med-medical-tourism p {
  font-size: 1.15rem;
  color: #1D2A4D;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}




/* General Container */
.service-detail-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.service-detail-hero {
  background-color: #EFF5F9;
  padding: 60px 0 40px;
  text-align: center;
}

.service-detail-hero h1 {
  font-size: 2.5em;
  color: #1D2A4D;
}

.service-detail-subtitle {
  font-size: 1.2em;
  color: #354F8E;
  margin-top: 10px;
  margin-bottom: 30px;
}

.service-detail-main-image img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Content Section */
.service-detail-content {
  padding: 60px 0;
  background-color: #fff;
}

.service-detail-content .service-detail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.service-detail-text {
  flex: 1 1 55%;
}

.service-detail-text h2 {
  font-size: 2em;
  color: #1D2A4D;
  margin-bottom: 20px;
}

.service-detail-text p,
.service-detail-text ul {
  font-size: 1.1em;
  line-height: 1.7;
  color: #1D2A4D;
  margin-bottom: 1.2rem;
}

.service-detail-text ul {
  padding-left: 20px;
  list-style: disc;
}

.btn-service-book {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #13C5DD;
  color: white;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.service-detail-side-image {
  flex: 1 1 40%;
}

.service-detail-side-image img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 400px;
}

/* Doctor Card */
.service-doctor-card {
  background-color: #EFF5F9;
  padding: 60px 0;
}

.doctor-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.doctor-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
}

.doctor-info h4 {
  font-size: 1.4em;
  color: #1D2A4D;
  margin-bottom: 5px;
}

.doctor-info p {
  font-weight: bold;
  color: #354F8E;
  margin-bottom: 10px;
}

.doctor-info span {
  font-size: 1em;
  color: #1D2A4D;
}


.video-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 280px;
  height: 158px;
  z-index: 9999;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.video-widget video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-expand-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .video-widget {
    width: 180px;
    height: 100px;
    bottom: 15px;
    right: 15px;
  }
}


.hospital-hero-quseir {
  position: relative;
  background-image: url('imaghosp/IMG_4655.JPG');
  background-size: cover;
  color: white;
  padding: 100px 0;
  position: relative;
}

.hospital-hero-quseir .hospital-hero-title,
.hospital-hero-quseir .hospital-hero-subtitle {
  color: #ffffff;
}


.med-hero--hurghada {
  background-image: url('imaghosp/IMG_0393.JPG'); /* замените на нужный путь */
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  padding: 120px 0;
  color: white;
  
}

.med-hero--hurghada::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* затемнение фона */
  z-index: 1;
}

.med-hero--hurghada .med-container {
  position: relative;
  z-index: 2;
}

.med-hero--hurghada .hospital-hero-title {
  font-size: 48px;
  margin-bottom: 16px;
  color: white;
}

.med-hero--hurghada .hospital-hero-subtitle {
  font-size: 22px;
  font-weight: 300;
  color: white;
}

.hospital-hero-quseir .container {
  display: block;
}

.hospital-hero-quseir {
  text-align: left;
}

.hospital-hero-quseir .hospital-hero-title,
.hospital-hero-quseir .hospital-hero-subtitle {
  margin-left: 40px; /* можно изменить по вкусу */
  max-width: 700px;   /* чтобы текст не растягивался */
}

.med-hero--quseir {
  position: relative;
  background-image: url('imaghosp/IMG_4655.JPG');
  background-size: cover;
  color: white;
  padding: 100px 0;
  position: relative;
}

.footer-contact a {
  color: inherit;          /* Наследует цвет от родителя (обычно белый или серый в футере) */
}













/* === Header === */
.news-header {
  background: url('images/news-header-bg.jpg') center/cover no-repeat;
  padding: 100px 0;
  color: #fff;
  text-align: center;
  position: relative;
}

.news-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.news-header .container {
  position: relative;
  z-index: 2;
}

.news-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.news-header .subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* === News Section === */
.news-section {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.news-card {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 400px;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card.alt {
  flex-direction: row-reverse;
}

.news-image {
  flex: 1 1 40%;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  flex: 1 1 60%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.news-content p {
  margin-bottom: 1.5rem;
  color: #444;
}

/* === Button === */
.btn {
  display: inline-block;
  padding: 10px 25px;
  margin-top: 10px;
  background-color: #13C5DD;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.3s;
  width: 90px;
}

.btn:hover {
  background-color: #00627c;
  color: #fff;
}

/* === Footer === */
.footer {
  background: #00627c;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.95rem;
  margin-top: 60px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .news-card,
  .news-card.alt {
    flex-direction: column;
    height: auto;
  }

  .news-content {
    padding: 1.5rem;
  }

  .news-header h1 {
    font-size: 2.2rem;
  }

  .news-header .subtitle {
    font-size: 1rem;
  }
}











.news-single {
  padding: 60px 0;
  font-size: 1.1rem;
  color: #333;
}

.news-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #00627c;
  font-weight: 700;
}

.news-featured-image img {
  width: 100%;
  max-width: 800px; /* или 600px — зависит от твоего дизайна */
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.news-meta {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 30px;
}

.news-meta p {
  margin: 0.2rem 0;
}

.news-body p {
  margin-bottom: 1.5rem;
  max-width: 800px;
}

/* Gallery */
.news-gallery {
  margin-top: 40px;
}

.news-gallery h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #00627c;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}


.news-article-text {
  margin: 0 auto;
  padding: 0 20px;
}

.news-article-text p {
  max-width: none; /* сбрасывает ограничения от глобального стиля */
  line-height: 1.6;
  margin-bottom: 1em;
}



.breadcrumbs {
  font-size: 14px;
  padding: 10px 0;
}

.breadcrumbs .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumbs a {
  color: #0077cc;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  color: #555;
}

.contact-link {
  color: black;
  text-decoration: none;
}
.contact-link:hover,
.contact-link:focus {
  color: black;
  text-decoration: underline;
}







/* Бургер кнопка — по умолчанию скрыта */
.burger-btn {
  display: none;
  background: none;
  font-size: 2rem;
  color: var(--white);
  border: none;
  cursor: pointer;
  z-index: 2100;
}

/* Мобильное меню */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: #e6f4fa; /* нежно-голубой */
  color: #000;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  z-index: 2000;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  color: #000;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid #cce5f0;
}

.mobile-actions .med-btn,
.mobile-actions .med-btn-transparent {
  width: auto;
  max-width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  margin-top: 1rem;
}

.mobile-contact {
  margin-top: 2rem;
  font-size: 1rem;
}

.mobile-contact a {
  color: #fff;
  text-decoration: none;
}

/* Адаптивное переключение */
@media (max-width: 768px) {
  .med-nav,
  .med-header-buttons {
    display: none;
  }

  .burger-btn {
    display: block;
  }
}

.mobile-hospitals-contact {
  margin-top: 2rem;
  font-size: 1rem;
  color: #000;
}

.mobile-hospitals-contact a {
  color: #000;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.mobile-hospitals-contact p:nth-child(3) {
  margin-top: 1rem;
}


/* Мобильная адаптация */
@media (max-width: 768px) {
  .med-insurance-content-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .med-insurance-image {
    display: flex;
    justify-content: center;
    width: 50%;
    margin-top: 1rem;
  }

  .med-insurance-image img {
    max-width: 80%;
  }

  #insurance h2 {
    font-size: 25px;
  }
}











/* Адаптивность */
@media (max-width: 768px) {
  .med-intro {
    padding: 2.5rem 1.5rem;
  }

  .med-hero h1 {
    font-size: 35px;
    padding-bottom: 20px;
    text-align: left;
  }

  .med-intro-text {
    font-size: 1rem;
    line-height: 1.6;
  }

}

@media (max-width: 480px) {
  .med-intro {
    padding: 2rem 1rem;
  }

  .med-intro-text {
    font-size: 0.95rem;
  }
}


/* ≤440px — маленькие телефоны */
@media (max-width: 440px) {
  /* Контейнер с отступами */
  .med-hero {
    padding: 1.5rem 1rem;
    text-align: left;
  }

  .med-hero-content-box {
    max-width: 100%;
    margin: 0 auto;
  }

  .med-hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    text-align: left;
    max-width: 250px;
  }

  .med-subtitle {
    margin-bottom: 1.2rem;
    color: #555; /* если надо чуть светлее */
    text-align: left;
  }

  .med-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  .med-hero-buttons a,
  .med-hero-buttons button {
    width: 100%;
    max-width: 320px;
    padding: 0.9rem 1rem;
    font-size: 1.1rem;
    border-radius: 6px;
  }

  .med-hero .med-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
}

  /* Подправим иконку в кнопке */
  .med-video-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    vertical-align: middle;
  }


}



@media (max-width: 440px) {
  /* Скрыть весь текст внутри блока */
  .med-hero-content-box {
    display: none;
  }

  /* Центрировать фон и сделать его не повторяющимся, масштабируемым */
  .med-hero.med-hero--hurghada {
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
  }
}





/* Показываем только на экранах до 440px */
.med-hero-mobile-text {
  display: none;
}

@media (max-width: 440px) {
  .med-hero-mobile-text {
    display: block;
    padding: 2rem 1rem;
    background-color: #f0f8ff; /* нежно-голубой или замени на нужный */
    text-align: left;
  }

  .med-hero-mobile-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #003366;
  }

  .med-hero-mobile-subtitle {
    font-size: 1rem;
    color: #333;
  }
}



@media (max-width: 440px) {
  .hospital-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hospital-service-card {
    width: 100%;
    min-height: auto; /* убираем фиксированную минимальную высоту */
    height: auto;     /* автоматическая высота по содержимому */
    display: block;   /* чтобы не растягивались искусственно */
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
  }
}



/* Адаптив для планшетов и ниже */
@media (max-width: 768px) {
  .hospital-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hospital-service-card {
    width: 100%;
    min-height: auto; /* убираем фиксированную минимальную высоту */
    height: auto;     /* автоматическая высота по содержимому */
    display: block;   /* чтобы не растягивались искусственно */
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
  }
  }







@media (min-width: 441px) {
  .med-hero-content-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
  }

  .hospital-hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
  }

  .hospital-hero-subtitle {
    font-size: 1.0rem;
    color: #fff;
  }

  .med-hero--hurghada .hospital-hero-title {
    font-size: 30px;
  }

  .med-hero--hurghada .hospital-hero-subtitle {
    font-size: 20px;
  }

 
}

@media (max-width: 440px) {
  .med-hero-content-box {
    padding: 2rem 1rem;
    text-align: left;
  }

  .hospital-hero-title {
    font-size: 1.4rem;
    color: #fff;
  }

  .hospital-hero-subtitle {
    font-size: 1rem;
    color: #fff;
  }


}






/* Стили для статической шапки */
.static-header {
  background-color: white;
  position: relative;
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.static-header .med-nav a,
.static-header .med-btn-header {
  color: #1D2A4D;
}

.static-header .burger-btn {
  color: #1D2A4D;
}















.contact-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-form-block, .contact-info-block {
  flex: 1 1 400px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.contact-form button {
  width: 100%;
}

.hospital-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  text-align: left; /* Контент по левому краю */
}

.hospital-card h3 {
  margin-bottom: 10px;
  color: #1D2A4D;
}

.hospital-card p,
.hospital-card a {
  color: #1D2A4D;
  text-decoration: none; /* Убираем подчеркивание */
  line-height: 1.5;
  display: block;
  margin-bottom: 5px;
}

.hospital-card a:hover {
  text-decoration: underline;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 8px;
}




.hospital-hours {
  margin-top: 20px;
  font-size: 0.95rem;
}

.hospital-hours ul {
  list-style: none;
  padding: 0;
}

.hospital-hours li {
  margin-bottom: 4px;
  color: #1D2A4D;
}




.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  border-radius: 10px;
  position: relative;
}

.modal-content h2 {
  margin-bottom: 1rem;
}

.modal .close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 24px;
  cursor: pointer;
}








