:root {
  --hospital-blue: #30358e;
  --hospital-blue-light: #4248c5;
  --hospital-violet: #5b60ed;
  --hospital-lavender: #eeedff;
  --hospital-cyan: #00d3e8;
  --hospital-red: #e00000;
  --text: #111111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  min-height: 120px;
  background: #fff;
}

.site-nav {
  min-height: 120px;
  padding: 12px 5.3%;
}

.navbar-brand {
  padding: 0;
  margin: 0;
}

.brand-image {
  display: block;
  width: 250px;
  height: auto;
}

.site-nav .navbar-nav {
  gap: clamp(24px, 4vw, 58px);
}

.site-nav .nav-link {
  padding: 8px 0;
  color: #171717;
  font-size: 16px;
}

.appointment-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.appointment-button {
  display: block;
  min-width: 133px;
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--hospital-blue);
  color: white;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.08;
  text-align: left;
}

.appointment-button:hover,
.appointment-button:focus-visible {
  background: #242971;
  color: #fff;
}

.account-links {
  color: #1893ad;
  font-size: 9px;
  text-decoration: underline;
}

.hero {
  position: relative;
  height: clamp(410px, 52.9vw, 760px);
  overflow: hidden;
  background: #fff;
}

.hero-carousel {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  height: 100%;
}

.hero-carousel .carousel-item {
  background: #fff;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-carousel .carousel-item:last-child .hero-image {
  padding: 8%;
  object-fit: contain;
}

.service-rail {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr .45fr;
  width: 25.1%;
  height: 91.1%;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18%;
  color: white;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.2;
  transition: filter .18s ease;
}

.service-link:hover,
.service-link:focus-visible {
  color: #fff;
  filter: brightness(1.12);
}

.service-link i {
  flex: 0 0 auto;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.maternity {
  background: var(--hospital-blue);
}

.laboratory {
  background: var(--hospital-blue-light);
}

.cardiology {
  background: var(--hospital-violet);
}

.more-services {
  justify-content: center;
  padding: 8px;
  background: #a2a4f4;
  text-align: center;
}

.emergency-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 77px;
  width: 85.5%;
  margin-left: 14.5%;
  padding: 12px 4.8% 12px 2.8%;
  background: var(--hospital-red);
  color: white;
}

.emergency-bar strong {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
}

.emergency-bar a {
  font-size: clamp(13px, 1.5vw, 16px);
}

.intro-section {
  padding: 43px 2.4% 36px;
  background: #fff;
}

.reception-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.37 / 1;
  object-fit: cover;
}

.intro-copy {
  padding: 0 4.5% 0 2.5%;
}

.intro-copy h1 {
  max-width: 580px;
  margin: 0 0 10px;
  font-size: clamp(24px, 2.55vw, 31px);
  font-weight: 700;
  line-height: 1.2;
}

.intro-copy p {
  max-width: 600px;
  margin: 0;
  font-size: clamp(15px, 1.65vw, 18px);
  line-height: 1.35;
}

.specialties {
  background: var(--hospital-lavender);
  color: var(--hospital-blue);
}

.specialties-inner {
  padding-top: 49px;
  padding-bottom: 45px;
}

.specialties h2 {
  margin: 0 0 64px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}

.specialty-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.specialty-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.25;
}

.specialty-item i {
  flex: 0 0 auto;
  font-size: 46px;
  line-height: 1;
}

.contact-section {
  min-height: 430px;
  background: var(--hospital-blue);
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 10%;
  padding-top: 83px;
  padding-bottom: 72px;
}

.contact-invitation h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 3.25vw, 38px);
  font-weight: 700;
  line-height: 1.2;
}

.contact-invitation > p {
  margin: 0 0 38px;
  font-size: 17px;
  line-height: 1.35;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 220px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 11px;
  font-size: 16px;
}

.contact-button i {
  font-size: 20px;
}

.call-button {
  background: var(--hospital-cyan);
  color: var(--hospital-blue);
}

.email-button {
  background: #fff;
  color: #111;
}

.contact-button:hover,
.contact-button:focus-visible {
  filter: brightness(.94);
}

.contact-details {
  margin: 0;
  font-style: normal;
}

.detail-block {
  margin-bottom: 30px;
}

.detail-block h3 {
  margin: 0 0 10px;
  color: var(--hospital-cyan);
  font-size: 16px;
  font-weight: 400;
}

.detail-block p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

@media (max-width: 991.98px) {
  .site-header,
  .site-nav {
    min-height: 96px;
  }

  .site-nav {
    padding: 10px 4%;
  }

  .brand-image {
    width: 218px;
  }

  .site-nav .navbar-nav {
    align-items: stretch !important;
    gap: 6px;
    padding: 14px 0 8px;
  }

  .appointment-item {
    align-items: flex-start;
    margin-top: 6px;
  }

  .account-links {
    padding-left: 2px;
  }

  .service-link {
    gap: 8px;
    padding-right: 10%;
    padding-left: 12%;
  }

  .intro-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .specialties h2 {
    margin-bottom: 44px;
  }

  .specialty-list {
    gap: 18px;
  }

  .specialty-item {
    gap: 9px;
  }

  .specialty-item i {
    font-size: 38px;
  }

  .contact-inner {
    gap: 6%;
    padding-top: 62px;
    padding-bottom: 52px;
  }

  .contact-actions {
    gap: 14px;
  }
}

@media (max-width: 767.98px) {
  .site-header,
  .site-nav {
    min-height: 82px;
  }

  .brand-image {
    width: min(205px, 61vw);
  }

  .navbar-toggler {
    padding: 7px 9px;
    border-color: #d5d5d5;
  }

  .hero {
    height: auto;
    overflow: visible;
  }

  .hero-carousel {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 5993 / 4235;
  }

  .hero-image {
    object-fit: cover;
  }

  .service-rail {
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 86px;
    width: 100%;
    height: auto;
  }

  .service-link {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 7px 3px;
    font-size: clamp(10px, 3vw, 13px);
    text-align: center;
  }

  .service-link i {
    font-size: 27px;
  }

  .more-services {
    font-size: 12px;
  }

  .emergency-bar {
    min-height: 66px;
    width: 100%;
    margin-left: 0;
    padding: 12px 5%;
  }

  .emergency-bar strong {
    font-size: 23px;
  }

  .emergency-bar a {
    font-size: clamp(11px, 3.1vw, 14px);
    text-align: right;
  }

  .intro-section {
    padding: 28px 5% 34px;
  }

  .intro-section .row {
    --bs-gutter-y: 22px;
  }

  .reception-image {
    aspect-ratio: 2 / 1;
  }

  .intro-copy {
    padding: 0 10px;
  }

  .intro-copy h1 {
    font-size: 26px;
  }

  .intro-copy p {
    font-size: 16px;
  }

  .specialties-inner {
    padding: 34px 7% 36px;
  }

  .specialties h2 {
    margin-bottom: 30px;
    font-size: 26px;
  }

  .specialty-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .specialty-item {
    gap: 9px;
    font-size: 14px;
  }

  .specialty-item i {
    font-size: 34px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 43px 8% 35px;
  }

  .contact-invitation h2 {
    font-size: 31px;
  }

  .contact-invitation > p {
    margin-bottom: 24px;
    font-size: 15px;
  }

  .contact-actions {
    gap: 12px;
  }

  .contact-button {
    flex: 1 1 175px;
    min-width: 0;
    font-size: 14px;
  }

  .detail-block {
    margin-bottom: 22px;
  }

  .detail-block p {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
}