:root {
  --graphite: #232323;
  --graphite-soft: #333331;
  --ink: #2b2b28;
  --muted: #6f6b63;
  --line: #e7e0d4;
  --champagne: #c7a76a;
  --champagne-dark: #a88647;
  --cream: #f8f5ef;
  --warm-gray: #efebe4;
  --white: #ffffff;
  --sage: #e7ede8;
  --shadow: 0 18px 45px rgba(35, 35, 35, .1);
  --shadow-dark: 0 24px 70px rgba(0, 0, 0, .28);
  --radius: 8px;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

body.is-locked {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 999;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--graphite);
  background: var(--champagne);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 239, .92);
  border-bottom: 1px solid rgba(199, 167, 106, .32);
  backdrop-filter: blur(18px);
}

.header__inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-grid;
  grid-template-columns: 48px auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--graphite);
}

.brand__text {
  display: grid;
  line-height: 1.05;
  min-width: 0;
}

.brand__text span {
  color: var(--graphite);
  font-size: 22px;
  font-weight: 800;
}

.brand__text small {
  margin-top: 4px;
  color: var(--champagne-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.nav a {
  position: relative;
  color: var(--graphite-soft);
  font-size: 14px;
  font-weight: 650;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--champagne);
  transition: transform .22s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border: 1px solid var(--champagne);
  border-radius: var(--radius);
  color: var(--graphite);
  background: linear-gradient(135deg, #e8d3a2, var(--champagne));
  box-shadow: 0 12px 28px rgba(199, 167, 106, .22);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(199, 167, 106, .28);
}

.button--small {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 12px;
}

.button--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .52);
  background: rgba(255, 255, 255, .08);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

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

.button--route {
  margin-top: 24px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(35, 35, 35, .18);
  border-radius: var(--radius);
  color: var(--graphite);
  background: var(--white);
}

.menu-toggle span:not(.visually-hidden) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

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

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

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

.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  min-height: calc(86svh - var(--header-height));
  isolation: isolate;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  z-index: -3;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(20, 20, 19, .86) 0%, rgba(20, 20, 19, .58) 46%, rgba(20, 20, 19, .24) 100%),
    linear-gradient(180deg, rgba(35, 35, 35, .12), rgba(35, 35, 35, .72));
}

.hero::after {
  content: "";
  position: absolute;
  left: max(20px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  width: min(360px, 42vw);
  height: 1px;
  background: linear-gradient(90deg, var(--champagne), transparent);
}

.hero__content {
  padding: 92px 0 112px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--champagne-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ead6a9;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero h1,
.section h2 {
  margin: 0;
  color: inherit;
  font-size: 54px;
  line-height: 1.05;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  letter-spacing: .02em;
}

.hero__phrase {
  max-width: 720px;
  margin: 24px 0 0;
  color: #f2dfb4;
  font-size: 32px;
  line-height: 1.18;
  font-weight: 700;
}

.hero__lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 19px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__phone {
  display: inline-block;
  margin-top: 22px;
  color: rgba(255, 255, 255, .88);
  font-size: 18px;
  font-weight: 750;
}

.section {
  padding: 96px 0;
}

.intro-band {
  padding: 42px 0;
  background: var(--graphite);
  color: var(--white);
}

.intro-band__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 46px;
  align-items: center;
}

.intro-band h2 {
  max-width: 480px;
  font-size: 30px;
}

.intro-band p {
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: 17px;
}

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

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.about__media {
  position: relative;
}

.about__media::before {
  content: "";
  position: absolute;
  inset: 22px -20px -20px 24px;
  border: 1px solid var(--champagne);
  border-radius: var(--radius);
}

.about__media img {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about__content h2,
.section-head h2,
.prices h2,
.contacts h2,
.appointment h2 {
  color: var(--graphite);
  font-size: 42px;
  line-height: 1.12;
}

.about__content p,
.section-head p,
.prices p,
.contacts p,
.appointment p {
  color: var(--muted);
  font-size: 17px;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.about__facts div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.about__facts strong {
  display: block;
  color: var(--graphite);
  font-size: 28px;
  line-height: 1;
}

.about__facts span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head--row {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(260px, .55fr);
  gap: 32px;
  align-items: end;
}

.directions,
.services {
  background: var(--cream);
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid--services {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid rgba(199, 167, 106, .28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 30px rgba(35, 35, 35, .05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 167, 106, .64);
  box-shadow: var(--shadow);
}

.service-card svg {
  width: 34px;
  height: 34px;
  color: var(--champagne-dark);
}

.service-card h3 {
  margin: 22px 0 10px;
  color: var(--graphite);
  font-size: 18px;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-card a {
  margin-top: auto;
  padding-top: 18px;
  color: var(--champagne-dark);
  font-size: 13px;
  font-weight: 800;
}

.advantages {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(35, 35, 35, .96), rgba(35, 35, 35, .78)),
    url("assets/clinic-2.jpg") center / cover;
}

.advantages__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: center;
}

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

.advantages p {
  color: rgba(255, 255, 255, .72);
  font-size: 17px;
}

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

.advantage-list div {
  min-height: 92px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(234, 214, 169, .24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .92);
}

.advantage-list span {
  color: var(--champagne);
  font-weight: 800;
}

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

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.doctor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 38px rgba(35, 35, 35, .07);
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  background: var(--warm-gray);
}

.doctor-card__body {
  display: grid;
  min-height: 238px;
  padding: 22px;
}

.doctor-card h3 {
  margin: 0 0 10px;
  color: var(--graphite);
  font-size: 20px;
  line-height: 1.22;
}

.doctor-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.doctor-card span {
  margin-top: 16px;
  color: var(--champagne-dark);
  font-size: 13px;
  font-weight: 750;
}

.link-button {
  justify-self: start;
  align-self: end;
  margin-top: 20px;
  padding: 0;
  border: 0;
  color: var(--graphite);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.link-button::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 4px;
  background: var(--champagne);
}

.tabs {
  display: grid;
  grid-template-columns: minmax(240px, .36fr) minmax(0, .64fr);
  gap: 24px;
  align-items: start;
}

.tab-list {
  display: grid;
  gap: 8px;
}

.tab {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--graphite);
  background: var(--white);
  text-align: left;
  font-weight: 700;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.tab:hover,
.tab:focus-visible,
.tab.is-active {
  color: var(--graphite);
  border-color: var(--champagne);
  background: #f5ead4;
}

.tab-panel {
  display: none;
  min-height: 100%;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.tab-panel.is-active {
  display: block;
}

.tab-panel h3 {
  margin: 0 0 14px;
  color: var(--graphite);
  font-size: 28px;
}

.tab-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.prices {
  background: var(--sage);
}

.prices__grid {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.15fr);
  gap: 46px;
  align-items: start;
}

.price-board {
  padding: 24px;
  border: 1px solid rgba(199, 167, 106, .3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
}

.tab-list--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.tab-list--compact .tab {
  min-height: 42px;
  font-size: 13px;
}

.price-board .tab-panels,
.price-board .tab-panel {
  min-height: 0;
}

.price-board .tab-panel {
  max-height: 680px;
  overflow: auto;
  box-shadow: none;
  background: var(--white);
}

.price-panel-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.price-panel-head h3 {
  margin: 0;
  color: var(--graphite);
  font-size: 28px;
  line-height: 1.2;
}

.price-panel-head span {
  color: var(--champagne);
  font-weight: 800;
  font-size: 13px;
}

.price-table {
  display: grid;
  gap: 8px;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto);
  gap: 16px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px solid rgba(231, 224, 212, .86);
}

.price-row:last-child {
  border-bottom: 0;
}

.price-row span {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.35;
}

.price-row strong {
  justify-self: end;
  color: var(--champagne-dark);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}

.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: repeat(2, 250px);
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--warm-gray);
}

.gallery-item--large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.documents {
  background: var(--cream);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.document-card {
  display: grid;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(35, 35, 35, .07);
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.document-card:hover,
.document-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--champagne);
  box-shadow: var(--shadow);
}

.document-card__image {
  height: 260px;
  padding: 14px;
  background: var(--warm-gray);
}

.document-card__image img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
  object-position: top center;
  box-shadow: 0 8px 22px rgba(35, 35, 35, .12);
}

.document-card__body {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.document-card__body strong {
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.25;
}

.document-card__body small {
  color: var(--champagne-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.appointment {
  color: var(--white);
  background: var(--graphite);
}

.appointment__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 54px;
  align-items: start;
}

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

.appointment p {
  color: rgba(255, 255, 255, .72);
}

.appointment__phone {
  display: inline-block;
  margin-top: 18px;
  color: var(--champagne);
  font-size: 24px;
  font-weight: 800;
}

.appointment-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(234, 214, 169, .24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

.bot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.appointment-form label {
  display: grid;
  gap: 8px;
}

.appointment-form label span {
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  font-weight: 750;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, .1);
  outline: 0;
}

.appointment-form select option {
  color: var(--graphite);
}

.appointment-form textarea {
  resize: vertical;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: var(--champagne);
}

.appointment-form input[aria-invalid="true"],
.appointment-form select[aria-invalid="true"],
.appointment-form textarea[aria-invalid="true"] {
  border-color: #f1a7a7;
  box-shadow: 0 0 0 3px rgba(241, 167, 167, .12);
}

.form-error {
  min-height: 17px;
  color: #ffd1d1;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.form-error:empty {
  min-height: 0;
}

.form-full {
  grid-column: 1 / -1;
}

.consent {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.consent input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--champagne);
}

.consent .form-error {
  grid-column: 2;
}

.button[disabled] {
  cursor: progress;
  opacity: .72;
  transform: none;
  box-shadow: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #f2dfb4;
  font-weight: 750;
}

.form-status:not(:empty) {
  padding: 14px 16px;
  border: 1px solid rgba(242, 223, 180, .38);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .09);
}

.form-status.is-success {
  color: #f6f0df;
  border-color: rgba(199, 167, 106, .7);
  background: rgba(199, 167, 106, .18);
}

.form-status.is-error {
  color: #ffe1e1;
  border-color: rgba(241, 167, 167, .72);
  background: rgba(241, 167, 167, .14);
}

.form-status.is-info {
  color: #f2dfb4;
}

.contacts {
  background: var(--cream);
}

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: stretch;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-list a,
.contact-list div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-list span {
  color: var(--champagne-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-list strong {
  color: var(--graphite);
  font-size: 16px;
}

.map-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--warm-gray);
  box-shadow: var(--shadow);
}

.map-card__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--warm-gray);
}

.map-card__fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 28px;
  color: var(--graphite);
  text-align: center;
  background: var(--warm-gray);
}

.map-card.is-map-ready .map-card__fallback {
  display: none;
}

.map-card__fallback strong,
.map-card__fallback span,
.map-card__fallback a {
  display: block;
}

.map-card__fallback strong {
  font-size: 18px;
}

.map-card__fallback span {
  max-width: 320px;
  color: var(--muted);
}

.map-card__fallback a {
  margin-top: 4px;
  color: var(--champagne-dark);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-card__caption {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--champagne);
  border-radius: var(--radius);
  background: rgba(35, 35, 35, .92);
  color: var(--white);
  box-shadow: var(--shadow-dark);
  backdrop-filter: blur(10px);
}

.map-card__caption img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.map-card__caption strong,
.map-card__caption span {
  display: block;
}

.map-card__caption strong {
  font-size: 16px;
}

.map-card__caption span {
  margin-top: 3px;
  color: var(--champagne);
  font-size: 13px;
  line-height: 1.35;
}

.clinic-map-marker {
  position: relative;
  width: 66px;
  height: 78px;
  transform: translate(-33px, -78px);
  transform-origin: 33px 78px;
}

.clinic-map-marker::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5px;
  width: 56px;
  height: 56px;
  border: 2px solid var(--champagne);
  border-radius: 50%;
  background: var(--graphite);
  box-shadow: 0 16px 32px rgba(35, 35, 35, .28);
}

.clinic-map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid var(--champagne);
  border-bottom: 2px solid var(--champagne);
  background: var(--graphite);
  box-shadow: 8px 8px 18px rgba(35, 35, 35, .18);
}

.clinic-map-marker img {
  position: absolute;
  top: 4px;
  left: 50%;
  z-index: 1;
  width: 52px;
  height: 52px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--graphite);
  object-fit: contain;
}

.site-footer {
  padding: 56px 0 28px;
  color: rgba(255, 255, 255, .74);
  background: #171716;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr .95fr .85fr;
  gap: 34px;
}

.brand--footer .brand__text span {
  color: var(--white);
}

.footer__grid h2 {
  margin: 0 0 16px;
  color: var(--champagne);
  font-size: 14px;
  text-transform: uppercase;
}

.footer__grid a,
.footer__grid p {
  display: block;
  margin: 0 0 10px;
}

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

.modal,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open,
.lightbox.is-open {
  display: flex;
}

.modal__backdrop,
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .68);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  overflow: auto;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-dark);
}

.modal__close,
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: var(--graphite);
  background: var(--champagne);
  font-size: 28px;
  line-height: 1;
}

.modal__content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 34px;
}

.modal__content img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center 18%;
}

.doctor-details h2 {
  margin: 0 46px 10px 0;
  color: var(--graphite);
  font-size: 30px;
  line-height: 1.15;
}

.doctor-details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.doctor-details h3 {
  margin: 22px 0 10px;
  color: var(--graphite);
  font-size: 17px;
}

.doctor-details ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.doctor-details li + li {
  margin-top: 5px;
}

.lightbox__figure {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: 0;
}

.lightbox__figure img {
  width: 100%;
  max-height: calc(100svh - 120px);
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--graphite);
}

.lightbox__figure figcaption {
  margin-top: 12px;
  color: var(--white);
  text-align: center;
}

@media (max-width: 1180px) {
  .nav {
    gap: 14px;
  }

  .header__phone span {
    display: none;
  }

  .card-grid--services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 74px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav,
  .header__actions {
    display: none;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .brand {
    grid-template-columns: 42px auto;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand__text span {
    font-size: 19px;
  }

  .brand__text small {
    font-size: 9px;
  }

  .mobile-panel {
    position: fixed;
    left: 14px;
    right: 14px;
    top: calc(var(--header-height) + 10px);
    z-index: 120;
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .98);
    box-shadow: var(--shadow-dark);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
  }

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

  .mobile-panel__nav {
    display: grid;
    gap: 4px;
  }

  .mobile-panel__nav a {
    padding: 12px 4px;
    color: var(--graphite);
    font-weight: 750;
  }

  .mobile-panel__phone {
    color: var(--champagne-dark);
    font-weight: 850;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding: 76px 0 86px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero__phrase {
    font-size: 27px;
  }

  .section {
    padding: 72px 0;
  }

  .intro-band__grid,
  .about__grid,
  .advantages__grid,
  .prices__grid,
  .appointment__grid,
  .contacts__grid,
  .section-head--row {
    grid-template-columns: 1fr;
  }

  .about__content h2,
  .section-head h2,
  .prices h2,
  .contacts h2,
  .appointment h2 {
    font-size: 34px;
  }

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

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

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

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

  .gallery-item,
  .gallery-item--large {
    grid-row: auto;
    height: 280px;
  }

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

@media (max-width: 620px) {
  html {
    scroll-padding-top: 86px;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand__text small {
    max-width: 160px;
    white-space: normal;
  }

  .hero__content {
    padding: 54px 0 70px;
  }

  .hero h1 {
    font-size: 31px;
    line-height: 1.12;
  }

  .hero__phrase {
    font-size: 24px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }

  .intro-band h2,
  .about__content h2,
  .section-head h2,
  .prices h2,
  .contacts h2,
  .appointment h2 {
    font-size: 29px;
  }

  .about__facts,
  .card-grid--services,
  .advantage-list,
  .doctor-grid,
  .documents-grid,
  .tab-list,
  .tab-list--compact,
  .appointment-form,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .doctor-card__body {
    min-height: 0;
  }

  .appointment-form,
  .price-board,
  .tab-panel {
    padding: 20px;
  }

  .price-board .tab-panel {
    max-height: none;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .price-row strong {
    justify-self: start;
    text-align: left;
    white-space: normal;
  }

  .map-card {
    min-height: 430px;
  }

  .modal {
    padding: 12px;
  }

  .modal__dialog {
    max-height: calc(100svh - 24px);
  }

  .modal__content {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .modal__content img {
    max-height: 360px;
  }

  .doctor-details h2 {
    margin-right: 48px;
    font-size: 24px;
  }

  .footer__bottom {
    display: grid;
  }
}

@media (max-width: 390px) {
  .brand__text span {
    font-size: 17px;
  }

  .brand__text small {
    font-size: 8px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero__phrase {
    font-size: 22px;
  }
}
