:root {
  --navy: #071f3a;
  --navy-2: #102f51;
  --gold: #c7a46a;
  --ink: #142437;
  --muted: #6a7480;
  --line: #e6e0d7;
  --surface: #ffffff;
  --soft: #f8f6f2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--navy) var(--soft);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--surface);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, var(--soft), #f3efe8);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--soft);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d8b97e, var(--gold));
}

::-webkit-scrollbar-corner {
  background: var(--soft);
}

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

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

.container {
  width: min(1480px, calc(100% - 20px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(7, 31, 58, 0.1);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto minmax(210px, 1fr);
  min-height: 82px;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 350px;
}

.brand__logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  object-fit: contain;
}

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

.brand__name {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__subtitle {
  margin-top: 7px;
  color: #6d7278;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #27384b;
  font-size: 16px;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.header-button {
  position: relative;
  justify-self: end;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(7, 31, 58, 0.22);
  border-radius: 6px;
  padding: 0 18px;
  background: rgba(7, 31, 58, 0.92);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-transform: uppercase;
}

.header-button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.header-contacts {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.header-phone {
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--gold);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.mobile-menu:not([hidden]) {
  display: block;
}

.mobile-menu {
  position: fixed;
  z-index: 25;
  top: 0;
  right: 0;
  width: min(320px, calc(100vw - 18px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 14px;
  background: #ffffff;
  box-shadow: 0 18px 52px rgba(7, 31, 58, 0.18);
  transform: translateX(104%);
  transition: transform 240ms cubic-bezier(.2,.7,.2,1);
}

.site-header.is-menu-open .mobile-menu {
  transform: translateX(0);
}

.mobile-menu__head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 8px;
}

.mobile-menu__title {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-menu__close {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(7, 31, 58, 0.14);
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  line-height: 1;
}

.mobile-nav,
.mobile-menu__bottom {
  display: grid;
  padding-right: 16px;
  padding-left: 16px;
}

.mobile-nav {
  gap: 0;
  padding-top: 4px;
  padding-bottom: 14px;
}

.mobile-nav a {
  border-bottom: 1px solid rgba(7, 31, 58, 0.08);
  padding: 13px 0;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
}

.mobile-menu__bottom {
  gap: 10px;
  padding-top: 0;
  padding-bottom: 18px;
}

.mobile-menu__phone {
  color: var(--navy);
  font-size: 17px;
  font-weight: 900;
}

.mobile-menu__button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.24) 45%, transparent 72%);
  pointer-events: none;
  transform: translateX(-120%);
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--surface);
}

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

.hero-content {
  position: absolute;
  top: 48%;
  left: max(10px, calc((100vw - 1480px) / 2 - 12px));
  z-index: 2;
  width: min(940px, 54vw);
  transform: translateY(-50%);
}

.rating-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.rating-badge {
  display: grid;
  min-width: 166px;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid rgba(199, 164, 106, 0.36);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--navy);
  backdrop-filter: blur(12px);
}

.rating-badge:hover {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.9);
}

.rating-badge__brand {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.rating-badge__score {
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.rating-badge__stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.rating-badge__text {
  grid-column: 2;
  color: #586575;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.hero-content h1 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 3.25vw, 60px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.hero-content h1 span:last-child {
  color: var(--gold);
}

.hero-lead {
  max-width: 560px;
  margin: 18px 0 0;
  color: #1f2d3d;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-transform: uppercase;
}

.hero-button--primary {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.hero-button--primary:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.hero-phone {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.hero-phone:hover {
  color: var(--gold);
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.section-button,
.doctor-button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--navy);
  border-radius: 6px;
  padding: 0 22px;
  background: var(--navy);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-button:hover,
.doctor-button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.hero-decor {
  display: inline-flex;
  width: 86px;
  height: 1px;
  align-self: center;
  background: linear-gradient(90deg, var(--gold), rgba(199, 164, 106, 0));
}

.hero-decor::before {
  width: 9px;
  height: 9px;
  align-self: center;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.hero-features {
  display: grid;
  width: min(720px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
}

.hero-feature {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border-right: 1px solid rgba(7, 31, 58, 0.22);
  color: var(--navy);
  text-align: center;
}

.hero-feature:first-child {
  padding-left: 0;
}

.hero-feature:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero-feature svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--navy);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.hero-feature span {
  max-width: 124px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.22;
}

.clinic-ticker {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(199, 164, 106, 0.28);
  border-bottom: 1px solid rgba(199, 164, 106, 0.28);
  background: rgba(7, 31, 58, 0.96);
  color: #ffffff;
}

.clinic-ticker__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  padding: 11px 0;
  will-change: transform;
}

.clinic-ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.clinic-ticker__track span::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.section {
  padding: 82px 0;
}

.section-divider {
  position: relative;
  display: flex;
  width: 100%;
  height: 76px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow: hidden;
  background: var(--surface);
}

.section-divider::before {
  position: absolute;
  inset: 50% 0 auto;
  height: 34px;
  background: radial-gradient(circle, rgba(199, 164, 106, 0.13), rgba(199, 164, 106, 0) 62%);
  content: "";
  transform: translateY(-50%);
}

.section-divider__line {
  position: relative;
  z-index: 1;
  width: min(320px, 28vw);
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 164, 106, 0), rgba(199, 164, 106, 0.48));
}

.section-divider__line:last-child {
  background: linear-gradient(90deg, rgba(199, 164, 106, 0.48), rgba(199, 164, 106, 0));
}

.section-divider__mark {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(199, 164, 106, 0.48);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 0 8px rgba(199, 164, 106, 0.08);
}

.section-divider__mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transform: translateX(0.75px);
}

.section-divider--soft {
  background: var(--soft);
}

.section-divider--dark {
  background: var(--navy);
}

.section-divider--dark .section-divider__mark {
  background: rgba(7, 31, 58, 0.88);
}

.section-heading {
  width: 100%;
  max-width: none;
}

.section-heading p {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 980px;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.08;
}

.services {
  background: var(--surface);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
  background: transparent;
  border: 0;
}

.service-card {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  perspective: 1100px;
  cursor: pointer;
}

.service-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  transform-style: preserve-3d;
}

.service-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  background: var(--surface);
  backface-visibility: hidden;
}

.service-card__back {
  justify-content: center;
  gap: 16px;
  padding: 26px;
  background: var(--navy);
  color: #ffffff;
  transform: rotateY(180deg);
}

.service-card span,
.service-card__number {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
}

.service-card h3,
.service-card__title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.1;
}

.service-card__image {
  width: 100%;
  height: 100%;
  margin: 0;
  background: #f6f1ea;
  object-fit: contain;
}

.service-card p {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
}

.service-card__back p {
  color: #ffffff;
}

.doctors {
  background: var(--soft);
}

.doctors .section-heading h2 {
  max-width: none;
  font-size: clamp(34px, 3.25vw, 54px);
  white-space: nowrap;
}

.doctors-inner {
  display: grid;
  gap: 42px;
}

.doctors-widget {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.doctor-tabs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.doctor-tab {
  border: 1px solid rgba(7, 31, 58, 0.12);
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  color: var(--navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.doctor-tab:hover,
.doctor-tab.is-active {
  border-color: rgba(199, 164, 106, 0.65);
  background: #fffaf2;
}

.doctor-tab:hover {
  transform: translateY(-1px);
}

.doctor-tab span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doctor-tab strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.1;
}

.doctor-profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.doctor-photo {
  background: #f3efe8;
}

.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-info {
  align-self: center;
  padding: 46px;
}

.doctor-info__eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.doctor-info h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 62px);
  line-height: 0.98;
}

.doctor-info dl {
  display: grid;
  gap: 16px;
  margin: 30px 0;
}

.doctor-info dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
}

.doctor-info dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doctor-info dd {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.doctor-description {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.doctor-button {
  margin-top: 28px;
}

.appointment {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #ffffff;
}

.appointment::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(199, 164, 106, 0.16), rgba(199, 164, 106, 0) 34%),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 30%);
  content: "";
  pointer-events: none;
}

.appointment-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.46fr);
  gap: 46px;
  align-items: center;
}

.appointment .section-heading p {
  color: var(--gold);
}

.appointment .section-heading h2 {
  max-width: 760px;
  color: #ffffff;
}

.appointment-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 20px;
  line-height: 1.65;
}

.appointment-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.appointment-points span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(199, 164, 106, 0.38);
  border-radius: 999px;
  padding: 0 16px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appointment-card {
  border: 1px solid rgba(199, 164, 106, 0.4);
  border-radius: 8px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.appointment-card__eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.appointment-card h3 {
  margin: 14px 0 0;
  color: #ffffff;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1;
}

.appointment-card p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.65;
}

.appointment-button {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 6px;
  margin-top: 26px;
  padding: 0 22px;
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.appointment-button:hover {
  background: #d8b97e;
}

.about {
  background: var(--soft);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 58px;
  align-items: center;
}

.about-text {
  display: grid;
  gap: 18px;
  padding-top: 26px;
}

.about-text p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-points span {
  border: 1px solid rgba(199, 164, 106, 0.34);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 260px 210px 240px;
  gap: 12px;
}

.about-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  object-fit: cover;
}

.about-gallery img:first-child {
  grid-row: span 2;
}

.about-gallery img:nth-child(3) {
  grid-column: 1;
}

.about-gallery img:nth-child(4) {
  grid-column: 2;
  grid-row: 2 / span 2;
}

.smile-quest {
  background: #ffffff;
}

.quest-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.46fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.quest-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.quest-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(248, 246, 242, 0.95), rgba(255, 250, 242, 0.95)),
    #f8f6f2;
}

.quest-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 31, 58, 0.1);
}

.quest-progress__bar {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #d8b97e);
  transition: width 260ms ease;
}

.quest-step {
  display: none;
  padding-top: 32px;
}

.quest-step.is-active {
  display: block;
}

.quest-step__count,
.quest-result__eyebrow {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quest-step h3,
.quest-result h3 {
  margin: 12px 0 0;
  color: var(--navy);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
}

.quest-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.quest-option {
  min-height: 116px;
  border: 1px solid rgba(7, 31, 58, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.quest-option:hover {
  border-color: rgba(199, 164, 106, 0.7);
  background: #fffaf2;
  transform: translateY(-2px);
}

.quest-result {
  padding-top: 32px;
}

.quest-result p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.quest-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.quest-submit,
.quest-restart {
  position: relative;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  padding: 0 22px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quest-submit {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.quest-submit:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.quest-restart {
  border: 1px solid rgba(7, 31, 58, 0.18);
  background: #ffffff;
  color: var(--navy);
}

.quest-restart:hover {
  border-color: rgba(199, 164, 106, 0.7);
  color: var(--gold);
}

.contacts {
  background: var(--navy);
  color: #ffffff;
  padding: 64px 0;
}

.contacts-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 30px;
  align-items: stretch;
}

.contacts .section-heading p {
  color: var(--gold);
}

.contacts .section-heading h2 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(40px, 4vw, 64px);
}

.contacts-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacts-list {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

.contacts-list[hidden] {
  display: none;
}

.contacts-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  border-left: 2px solid var(--gold);
  padding: 0 0 0 14px;
}

.contacts-list span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.contacts-list p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.5;
}

.contacts-list a {
  color: #ffffff;
  font-weight: 800;
}

.contacts-list a:hover {
  color: var(--gold);
}

.contacts-button {
  position: relative;
  display: inline-flex;
  width: fit-content;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 6px;
  margin-top: 22px;
  padding: 0 24px;
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contacts-button:hover {
  background: #d8b97e;
}

.contacts-map {
  min-height: 360px;
  max-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(199, 164, 106, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contacts-map iframe,
.contacts-map ymaps {
  width: 100% !important;
  height: 100% !important;
}

.site-footer {
  background:
    radial-gradient(circle at top center, rgba(199, 164, 106, 0.12), rgba(199, 164, 106, 0) 38%),
    #06182e;
  color: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.45fr) minmax(280px, 0.75fr);
  gap: 32px;
  padding: 54px 0 42px;
  align-items: start;
}

.footer-brand__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand__head img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-brand__head strong {
  display: block;
  color: #ffffff;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 0.95;
}

.footer-brand__head span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-brand p {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.7;
}

.footer-nav {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.footer-nav a {
  width: fit-content;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-card {
  border: 1px solid rgba(199, 164, 106, 0.28);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.65;
}

.footer-button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 6px;
  margin-top: 18px;
  padding: 0 18px;
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-button:hover {
  background: #d8b97e;
}

.footer-bottom {
  border-top: 1px solid rgba(199, 164, 106, 0.18);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 22px;
}

.footer-bottom__inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.5;
}

.footer-policy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.footer-policy:hover {
  color: var(--gold);
}

@media (max-width: 980px) {
  .header-inner {
    display: flex;
    min-height: 78px;
    justify-content: space-between;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(7, 31, 58, 0.16);
    border-radius: 6px;
    background: var(--navy);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-header.is-menu-open .menu-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

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

  .site-header.is-menu-open .menu-toggle span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .brand {
    min-width: 0;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-gallery {
    grid-template-rows: 230px 190px 210px;
  }

  .doctors-widget,
  .doctor-profile,
  .appointment-inner,
  .quest-head,
  .contacts-inner {
    grid-template-columns: 1fr;
  }

  .quest-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .doctor-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctors .section-heading h2 {
    white-space: normal;
  }

  .doctor-profile {
    min-height: auto;
  }

  .doctor-photo {
    max-height: 420px;
  }

  .contacts-map {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 18px, 1480px);
  }

  .site-header {
    background: rgba(255, 255, 255, 0.9);
  }

  .header-inner {
    min-height: 74px;
    gap: 8px;
  }

  .header-contacts {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .header-phone {
    display: none;
  }

  .header-button {
    display: none;
  }

  .brand {
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand__logo {
    width: 50px;
    height: 50px;
  }

  .brand__name {
    max-width: none;
    overflow: visible;
    font-size: 13px;
    letter-spacing: 0.02em;
    line-height: 1.08;
    text-overflow: clip;
    white-space: normal;
  }

  .brand__subtitle {
    max-width: none;
    overflow: visible;
    font-size: 9px;
    letter-spacing: 0.13em;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }

  .hero {
    height: auto;
    min-height: 760px;
    background: #f8f6f2;
  }

  .hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2) 42%, rgba(255, 255, 255, 0.74));
    content: "";
  }

  .hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-position: 63% center;
  }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    z-index: 2;
    width: min(100% - 18px, 430px);
    margin: 0 auto;
    padding: 104px 0 48px;
    transform: none;
  }

  .rating-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
  }

  .rating-badge {
    min-width: 0;
    padding: 8px 9px;
  }

  .rating-badge__brand,
  .rating-badge__text {
    font-size: 9px;
  }

  .rating-badge__score {
    font-size: 23px;
  }

  .rating-badge__stars {
    font-size: 10px;
  }

  .hero-content h1 {
    flex-direction: column;
    gap: 0;
    font-size: 36px;
    line-height: 0.98;
    white-space: normal;
  }

  .hero-lead {
    max-width: none;
    margin-top: 16px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.52;
  }

  .hero-actions {
    display: grid;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .hero-button {
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    padding: 0 16px;
    font-size: 11px;
  }

  .hero-phone {
    width: fit-content;
    min-height: auto;
    border-left: 2px solid var(--gold);
    padding-left: 12px;
    font-size: 17px;
  }

  .hero-decor {
    display: none;
  }

  .hero-features {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
  }

  .hero-feature {
    min-height: 76px;
    justify-content: flex-start;
    gap: 10px;
    border: 1px solid rgba(7, 31, 58, 0.1);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.56);
    text-align: left;
    backdrop-filter: blur(8px);
  }

  .hero-feature:first-child {
    padding-left: 12px;
  }

  .hero-feature svg {
    width: 28px;
    height: 28px;
  }

  .hero-feature span {
    max-width: none;
    font-size: 12px;
    line-height: 1.18;
  }

  .section {
    padding: 54px 0;
  }

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

  .service-card {
    min-height: auto;
    aspect-ratio: 1 / 1;
  }

  .doctor-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }

  .doctor-tab {
    width: min(82vw, 300px);
    flex: 0 0 auto;
    padding: 16px;
    scroll-snap-align: start;
  }

  .doctor-tab strong {
    font-size: 22px;
  }

  .doctor-info {
    padding: 28px;
  }

  .doctor-info dl {
    gap: 12px;
  }

  .doctor-info dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .appointment-inner {
    gap: 28px;
  }

  .appointment-lead {
    font-size: 17px;
  }

  .appointment-points {
    display: grid;
    grid-template-columns: 1fr;
  }

  .appointment-points span {
    justify-content: center;
    text-align: center;
  }

  .appointment-card {
    padding: 24px;
  }

  .quest-shell {
    padding: 24px;
  }

  .quest-options {
    grid-template-columns: 1fr;
  }

  .quest-option {
    min-height: 82px;
  }

  .quest-result__actions {
    display: grid;
  }

  .quest-submit,
  .quest-restart {
    width: 100%;
  }

  .about-text p {
    font-size: 16px;
  }

  .about-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .about-gallery img,
  .about-gallery img:first-child,
  .about-gallery img:nth-child(3),
  .about-gallery img:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    height: 230px;
  }

  .contacts-list p {
    font-size: 15px;
  }

  .contacts-list div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-left: 12px;
  }

  .contacts-button {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    text-align: center;
  }

  .contacts-map {
    min-height: 300px;
  }

  .footer-brand__head strong {
    font-size: 26px;
  }

  .footer-brand p {
    font-size: 15px;
  }

  .footer-card {
    padding: 18px;
  }

  .footer-button {
    width: 100%;
  }
}
