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

:root {
  --accent: #4baec0;
  --accent-dark: #238fa2;
  --accent-soft: #e9f8fb;
  --accent-pale: #f6fcfd;
  --text: #102d35;
  --muted: #64777d;
  --line: #d7edf2;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(23, 128, 147, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(75, 174, 192, 0.18);
  backdrop-filter: blur(16px);
}

.brand img {
  display: block;
  width: 184px;
  max-width: 34vw;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 14px;
  font-weight: 600;
  color: #2f5962;
}

.nav-links a,
.header-phone {
  transition: color 180ms ease;
}

.nav-links a:hover,
.header-phone:hover {
  color: var(--accent-dark);
}

.header-phone {
  color: var(--accent-dark);
  font-weight: 800;
  white-space: nowrap;
}

.section-pad {
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  align-items: center;
  gap: clamp(40px, 6vw, 86px);
  min-height: min(820px, calc(100vh - 86px));
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12% -18% auto auto;
  width: 48vw;
  height: 48vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(75, 174, 192, 0.2), rgba(75, 174, 192, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 730px;
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0;
  font-weight: 800;
  max-width: 100%;
}

.hero p {
  max-width: 650px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: clamp(16px, 1.65vw, 20px);
  line-height: 1.68;
  font-weight: 500;
}

.primary-button,
.doctor-info button,
.doctor-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(75, 174, 192, 0.28);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.primary-button:hover,
.doctor-info button:hover,
.doctor-link-button:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 18px 34px rgba(75, 174, 192, 0.32);
}

.hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 560px;
}

.hero-photo-frame {
  position: absolute;
  inset: 42px 0 0 54px;
  min-height: 490px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(75, 174, 192, 0.24);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, rgba(75, 174, 192, 0.02), rgba(75, 174, 192, 0.12));
  pointer-events: none;
}

.hero-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 490px;
  object-fit: cover;
  object-position: 52% 52%;
}

.clinic-slide span,
.doctor-photo span {
  position: relative;
  z-index: 1;
  color: var(--accent-dark);
  font-weight: 800;
}

.surgery-card {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  width: min(370px, 74%);
  padding: 30px;
  border-radius: 8px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 24px 48px rgba(35, 143, 162, 0.24);
}

.surgery-card img {
  display: block;
  width: 270px;
  max-width: 100%;
}

.orbital {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(75, 174, 192, 0.18);
}

.orbital-one {
  right: 18px;
  top: 72px;
  width: 94px;
  height: 94px;
}

.orbital-two {
  left: 12px;
  bottom: 38px;
  width: 64px;
  height: 64px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(20px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  transform: translateY(-42px);
  box-shadow: 0 18px 42px rgba(75, 174, 192, 0.12);
}

.stat-item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  min-height: 128px;
  padding: 24px;
  background: var(--white);
}

.stat-item strong {
  color: var(--accent);
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1;
  font-weight: 800;
}

.stat-item span {
  color: #365e66;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 700;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-heading h2,
.about-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 800;
}

.section-heading p,
.about-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
}

.directions-section {
  padding-top: clamp(28px, 3vw, 46px);
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}

.direction-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 112px;
  padding: 22px 72px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--accent-pale));
  color: #204a53;
  font-size: 17px;
  font-weight: 800;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.direction-card::after {
  content: "→";
  display: grid;
  place-items: center;
  position: absolute;
  right: 22px;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.direction-card:hover {
  transform: translateY(-4px);
  border-color: rgba(75, 174, 192, 0.68);
  box-shadow: 0 18px 36px rgba(75, 174, 192, 0.13);
}

.direction-card:hover::after {
  transform: translate(4px, -50%);
  background: var(--accent);
  color: var(--white);
}

.specialists-section {
  background: linear-gradient(180deg, var(--accent-pale), #ffffff);
}

.row-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.carousel-actions {
  display: flex;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--accent-dark);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.icon-button span {
  display: block;
  margin-top: -4px;
  font-size: 34px;
  line-height: 1;
}

.carousel-shell {
  overflow: hidden;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 26px;
}

.carousel-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.carousel-track::-webkit-scrollbar,
.clinic-track::-webkit-scrollbar {
  display: none;
}

.doctor-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 340px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(75, 174, 192, 0.1);
}

.doctor-photo {
  display: grid;
  place-items: center;
  min-height: 100%;
  background:
    linear-gradient(150deg, rgba(75, 174, 192, 0.12), rgba(255, 255, 255, 0.24)),
    radial-gradient(circle at 50% 38%, #ffffff 0 16%, #d8f4f8 17% 34%, #b9e9f0 35% 100%);
}

.doctor-photo-real {
  background: var(--accent-soft);
}

.doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: 50% 22%;
}

.doctor-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 28px;
}

.doctor-info h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.doctor-direction {
  align-self: flex-start;
  margin: 0;
  color: var(--accent-dark);
  font-size: 16px;
  font-weight: 800;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.doctor-direction:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.doctor-info span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}

.doctor-info button,
.doctor-link-button {
  align-self: flex-start;
  min-height: 46px;
  margin-top: 6px;
  padding: 0 18px;
  font-size: 13px;
}

.doctor-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.58fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, #ffffff, var(--accent-pale));
}

.doctor-page-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.02;
  font-weight: 800;
}

.doctor-page-specialty {
  display: inline-flex;
  margin-top: 22px;
  color: var(--accent-dark);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
  font-weight: 800;
}

.doctor-page-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.doctor-page-facts span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #204a53;
  font-size: 14px;
  font-weight: 800;
}

.doctor-page-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.doctor-page-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
}

.doctor-page-content {
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 72px);
}

.doctor-page-content h2 {
  margin: 0 0 28px;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.08;
  font-weight: 800;
}

.doctor-page-lead {
  max-width: 980px;
  margin: 0 0 clamp(36px, 5vw, 62px);
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.75;
  font-weight: 500;
}

.doctor-work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doctor-work-list li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--accent-pale));
}

.doctor-work-list strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.doctor-work-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 1.16fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.about-copy {
  max-width: 630px;
}

.clinic-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  box-shadow: var(--shadow);
}

.clinic-actions {
  position: absolute;
  z-index: 2;
  right: 18px;
  top: 18px;
}

.clinic-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.clinic-slide {
  display: grid;
  place-items: center;
  min-height: 480px;
  margin: 0;
  scroll-snap-align: start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1)),
    repeating-linear-gradient(90deg, rgba(75, 174, 192, 0.12) 0 1px, transparent 1px 72px),
    linear-gradient(145deg, #ffffff, #dff6fa);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: 42px clamp(20px, 5vw, 72px);
  background: var(--accent);
  color: var(--white);
}

.footer-copyright {
  grid-column: 1 / -1;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  font-weight: 600;
  opacity: 0.78;
}

.footer-brand img {
  width: 230px;
  max-width: 100%;
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.86;
}

address {
  display: grid;
  gap: 10px;
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
}

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

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.social-links svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links a[aria-label="TikTok"] svg {
  fill: currentColor;
  stroke: none;
}

.social-links a:hover {
  background: var(--white);
  color: var(--accent-dark);
}

.direction-page-main {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 86px);
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.direction-page-main h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.02;
  font-weight: 800;
}

.direction-page-main p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 500;
}

.direction-related {
  margin-top: clamp(42px, 6vw, 72px);
}

.direction-related h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .about-section,
  .doctor-page-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-visual {
    min-height: 470px;
  }

  .hero-photo-frame {
    inset: 36px 0 0 42px;
    min-height: 410px;
  }

  .hero-photo-frame img {
    min-height: 410px;
  }

  .carousel-track {
    grid-auto-columns: calc((100% - 24px) / 2);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .carousel-track {
    grid-auto-columns: min(82vw, 360px);
  }

  .doctor-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .doctor-photo {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .doctor-photo img {
    min-height: 0;
  }

  .doctor-info {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: auto;
    padding: 14px 18px;
    gap: 14px;
  }

  .brand img {
    width: 142px;
  }

  .header-phone {
    display: none;
  }

  .section-pad {
    padding: 56px 18px;
  }

  .hero {
    gap: 34px;
    padding-top: 50px;
  }

  .hero p {
    margin: 22px 0 28px;
  }

  .hero h1 {
    font-size: clamp(34px, 9.5vw, 42px);
    line-height: 1.08;
    max-width: 340px;
  }

  .hero-content p {
    max-width: 340px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .hero-photo-frame {
    inset: 28px 0 0 28px;
    min-height: 310px;
  }

  .hero-photo-frame img {
    min-height: 310px;
  }

  .surgery-card {
    width: min(260px, 76%);
    padding: 20px;
  }

  .surgery-card img {
    width: 220px;
  }

  .stats {
    grid-template-columns: 1fr;
    margin: 0 18px;
    transform: translateY(-24px);
  }

  .stat-item {
    justify-content: flex-start;
    min-height: 96px;
  }

  .direction-card {
    min-height: 82px;
    padding-right: 66px;
  }

  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-track {
    grid-auto-columns: 88%;
  }

  .clinic-slide {
    min-height: 330px;
  }

  .social-links {
    flex-wrap: wrap;
  }
}

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