:root {
  --primary: #0c8f8f;
  --primary-dark: #087172;
  --primary-soft: #e7fbfb;
  --secondary: #123b62;
  --accent: #f4b544;
  --danger: #e95656;
  --white: #ffffff;
  --body: #5b6b7c;
  --heading: #082c4c;
  --muted: #eef5f9;
  --border: #dce8ef;
  --shadow: 0 22px 60px rgba(8, 44, 76, 0.12);
  --shadow-soft: 0 12px 35px rgba(8, 44, 76, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body);
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 9999;
  background: var(--secondary);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.topbar__inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.topbar a {
  color: var(--white);
  font-weight: 700;
}

.divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.28);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 232, 239, 0.75);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.96);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand__mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid rgba(12, 143, 143, 0.12);
  box-shadow: 0 12px 24px rgba(12, 143, 143, 0.18);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__text strong {
  color: var(--heading);
  font-size: 17px;
}

.brand__text small {
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  margin-top: 3px;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-menu a {
  color: var(--heading);
  font-weight: 750;
  font-size: 15px;
  position: relative;
  padding-block: 30px;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 22px;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 99px;
  transition: width 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
  width: 100%;
}

.nav-toggle {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--primary-soft);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 99px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), #14b8b8);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(12, 143, 143, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 20px 40px rgba(12, 143, 143, 0.34);
}

.btn--outline {
  color: var(--heading);
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.btn--outline:hover {
  color: var(--primary-dark);
  border-color: rgba(12, 143, 143, 0.32);
}

.btn--full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 92px 0 88px;
  background:
    radial-gradient(circle at 10% 10%, rgba(12, 143, 143, 0.12), transparent 28%),
    linear-gradient(135deg, #f4fbfd 0%, #ffffff 48%, #ebfafa 100%);
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero__shape--one {
  width: 420px;
  height: 420px;
  right: -130px;
  top: 80px;
  background: rgba(12, 143, 143, 0.09);
}

.hero__shape--two {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: 180px;
  background: rgba(244, 181, 68, 0.18);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 9px 13px;
  border-radius: 999px;
}

.section-kicker--light {
  color: #bffafa;
  background: rgba(255, 255, 255, 0.12);
}

.hero h1,
.section h2 {
  color: var(--heading);
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 18px 0;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 74px);
  max-width: 820px;
}

.hero__lead {
  font-size: 18px;
  max-width: 650px;
  color: #536779;
  margin: 0 0 24px;
}

.hero__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero__badges span {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--heading);
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(8, 44, 76, 0.05);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.doctor-card {
  position: relative;
  max-width: 440px;
  margin-left: auto;
  border-radius: 34px;
  background: var(--white);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(220, 232, 239, 0.82);
}

.doctor-card__glow {
  position: absolute;
  inset: 18px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(12, 143, 143, 0.2), rgba(244, 181, 68, 0.18));
  filter: blur(38px);
  z-index: 0;
}

.doctor-card__image,
.doctor-card__content {
  position: relative;
  z-index: 1;
}

.doctor-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  background: #f2fbfc;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.doctor-card__content {
  margin-top: -42px;
  margin-inline: 22px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.doctor-card__tag {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.doctor-card h2 {
  color: var(--heading);
  margin: 0 0 8px;
  line-height: 1.1;
  font-size: 28px;
}

.doctor-card p {
  margin: 4px 0;
}

.hero-info {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.hero-info article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(220, 232, 239, 0.85);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 24px;
}

.hero-info h3 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: 18px;
}

.hero-info p {
  margin: 0;
  font-size: 15px;
}

.hero-info a {
  color: var(--primary-dark);
  font-weight: 850;
}

.section {
  padding: 105px 0;
}

.trust-strip {
  padding: 52px 0;
  background: var(--secondary);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-item {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item strong {
  display: block;
  color: var(--white);
  font-size: 31px;
  line-height: 1;
  margin-bottom: 8px;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
}

.about__grid,
.experience__grid,
.appointment__grid,
.faq__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.about__media {
  position: relative;
}

.about__image-card {
  border-radius: 34px;
  background: linear-gradient(135deg, var(--primary-soft), #fef9ed);
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about__floating-card {
  position: absolute;
  right: -20px;
  bottom: 24px;
  width: min(320px, 82%);
  padding: 22px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
}

.about__floating-card span {
  color: var(--primary-dark);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.about__floating-card strong {
  display: block;
  color: var(--heading);
  line-height: 1.35;
  margin-top: 6px;
}

.section h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.about__content p,
.experience__content p,
.appointment__content p,
.section-heading p,
.complex-care p {
  font-size: 17px;
}

.profile-list {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.profile-list div {
  padding: 16px 18px;
  border-radius: 16px;
  background: #f7fbfd;
  border: 1px solid var(--border);
}

.profile-list span,
.appointment__cards span {
  display: block;
  color: var(--primary-dark);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 900;
  margin-bottom: 5px;
}

.profile-list strong,
.appointment__cards strong {
  color: var(--heading);
}

.expertise {
  background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
}

.section-heading {
  text-align: center;
  max-width: 710px;
  margin: 0 auto 48px;
}

.section-heading--left {
  text-align: left;
  margin: 0;
}

.expertise__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 12px 35px rgba(8, 44, 76, 0.05);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(12, 143, 143, 0.08);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(12, 143, 143, 0.32);
}

.service-card__icon {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 25px;
  margin-bottom: 20px;
}

.service-card h3,
.timeline h3,
.appointment-form h3,
.footer h3 {
  color: var(--heading);
  margin: 0 0 10px;
}

.service-card p {
  margin: 0;
}

.experience {
  background:
    radial-gradient(circle at 100% 20%, rgba(12, 143, 143, 0.12), transparent 26%),
    #ffffff;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: 22px;
  background: #f8fcfd;
  border: 1px solid var(--border);
}

.timeline__item > span {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 8px solid var(--primary);
  box-shadow: 0 8px 18px rgba(12, 143, 143, 0.22);
}

.timeline__item h3 {
  font-size: 18px;
}

.timeline__item p {
  margin: 0;
}

.complex-care {
  padding-block: 84px;
}

.complex-care__box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(8, 44, 76, 0.92), rgba(8, 113, 114, 0.92)),
    url("../img/pattern.svg");
  color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.complex-care h2 {
  color: var(--white);
}

.complex-care__list {
  display: grid;
  gap: 12px;
}

.complex-care__list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.complex-care__list span::before {
  content: "✓";
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--accent);
  color: #2b1c00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex: 0 0 auto;
}

.appointment {
  background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
}

.appointment__cards {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.appointment__cards div {
  padding: 18px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(8, 44, 76, 0.04);
}

.appointment__cards a {
  color: var(--primary-dark);
}

.appointment-form {
  padding: 34px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.appointment-form p {
  margin-top: 0;
}

.appointment-form label {
  display: block;
  color: var(--heading);
  font-weight: 850;
  margin: 14px 0 7px;
}

.appointment-form input,
.appointment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 15px;
  background: #f8fcfd;
  color: var(--heading);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.appointment-form input:focus,
.appointment-form textarea:focus {
  border-color: rgba(12, 143, 143, 0.55);
  box-shadow: 0 0 0 4px rgba(12, 143, 143, 0.12);
}

.appointment-form button {
  margin-top: 18px;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0 !important;
  color: var(--primary-dark);
  font-weight: 800;
}

.faq__grid {
  align-items: start;
}

.accordion {
  display: grid;
  gap: 14px;
}

.accordion__item {
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(8, 44, 76, 0.05);
  overflow: hidden;
}

.accordion__item button {
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--heading);
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.accordion__item button::after {
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.accordion__item.is-open button::after {
  content: "−";
}

.accordion__panel {
  display: none;
  padding: 0 22px 20px;
}

.accordion__item.is-open .accordion__panel {
  display: block;
}

.accordion__panel p {
  margin: 0;
}

.footer {
  padding: 70px 0 24px;
  background: #061f36;
  color: rgba(255, 255, 255, 0.75);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.9fr;
  gap: 44px;
}

.footer .brand__text strong,
.footer h3 {
  color: var(--white);
}

.footer .brand__text small,
.footer a {
  color: #bffafa;
}

.footer a {
  display: block;
  margin: 8px 0;
  font-weight: 750;
}

.footer p {
  max-width: 420px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 16px;
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 0.12s;
}

.reveal--delay-2 {
  transition-delay: 0.22s;
}

.reveal--delay-3 {
  transition-delay: 0.32s;
}

@media (max-width: 1080px) {
  .nav-cta {
    display: none;
  }

  .hero__grid,
  .about__grid,
  .experience__grid,
  .appointment__grid,
  .faq__grid,
  .complex-care__box {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    margin-inline: auto;
  }

  .hero-info,
  .expertise__grid,
  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .topbar__left {
    display: none;
  }

  .navbar {
    min-height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    inset: 116px 16px auto 16px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-menu a:hover,
  .nav-menu a.is-active {
    background: var(--primary-soft);
  }

  .nav-menu a::after {
    display: none;
  }

  .hero {
    min-height: unset;
    padding: 68px 0;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .section {
    padding: 76px 0;
  }

  .about__floating-card {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero__badges,
  .hero__actions {
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero-info,
  .expertise__grid,
  .trust-strip__grid {
    grid-template-columns: 1fr;
  }

  .hero-info article {
    grid-template-columns: 1fr;
  }

  .card-icon {
    margin-bottom: 12px;
  }

  .doctor-card,
  .appointment-form {
    padding: 20px;
    border-radius: 24px;
  }

  .doctor-card__content {
    margin-inline: 0;
    margin-top: 16px;
  }

  .service-card,
  .timeline__item {
    padding: 22px;
  }

  .complex-care__box {
    padding: 26px;
    border-radius: 26px;
  }

  .footer__bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
