:root {
  color-scheme: light;
  --bg: #f4f5f3;
  --surface: #ffffff;
  --surface-2: #ebece8;
  --ink: #1b1f1e;
  --muted: #626a66;
  --line: #d9ddd7;
  --accent: #2d5c55;
  --accent-dark: #173d38;
  --accent-soft: #dfe9e5;
  --warm: #a87642;
  --shadow: 0 24px 70px rgba(27, 31, 30, 0.12);
  --header-bg: rgba(244, 245, 243, 0.9);
  --header-bg-solid: rgba(255, 255, 255, 0.96);
  --field-bg: #fbfbf8;
  --panel-bg: rgba(255, 255, 255, 0.94);
  --ribbon-bg: rgba(27, 31, 30, 0.86);
  --ribbon-ink: #fff;
  --inverse-bg: #1b1f1e;
  --inverse-ink: #fff;
  --section-band: rgba(235, 236, 232, 0.82);
  --page-art:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0)),
    #f4f5f3;
  --radius: 8px;
  --max: 1180px;
}

body[data-theme="sky"] {
  --bg: #ccefff;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-2: rgba(218, 242, 252, 0.78);
  --ink: #17323c;
  --muted: #4f6670;
  --line: rgba(79, 126, 143, 0.22);
  --accent: #287995;
  --accent-dark: #15566e;
  --accent-soft: rgba(210, 239, 249, 0.82);
  --warm: #866841;
  --header-bg: rgba(217, 244, 255, 0.82);
  --header-bg-solid: rgba(244, 252, 255, 0.94);
  --field-bg: #f7fcff;
  --panel-bg: rgba(255, 255, 255, 0.9);
  --section-band: rgba(218, 242, 252, 0.58);
  --page-art:
    radial-gradient(ellipse at 12% 12%, rgba(255, 255, 255, 0.95) 0 14%, transparent 32%),
    radial-gradient(ellipse at 74% 8%, rgba(255, 255, 255, 0.76) 0 12%, transparent 34%),
    radial-gradient(ellipse at 52% 30%, rgba(255, 255, 255, 0.55) 0 10%, transparent 28%),
    linear-gradient(180deg, #c3edff 0%, #eafaff 48%, #f7fdff 100%);
}

body[data-theme="cosmic"] {
  --bg: #050b19;
  --surface: rgba(16, 22, 38, 0.88);
  --surface-2: rgba(24, 33, 54, 0.86);
  --ink: #f7f8fb;
  --muted: #b9c0ce;
  --line: rgba(167, 182, 219, 0.22);
  --accent: #8aa4ff;
  --accent-dark: #28396e;
  --accent-soft: rgba(55, 67, 112, 0.7);
  --warm: #d7bb86;
  --header-bg: rgba(16, 21, 34, 0.88);
  --header-bg-solid: rgba(23, 29, 43, 0.96);
  --field-bg: #111827;
  --panel-bg: rgba(23, 29, 43, 0.94);
  --ribbon-bg: rgba(247, 248, 251, 0.1);
  --inverse-bg: #080d1a;
  --inverse-ink: #fff;
  --section-band: rgba(9, 15, 30, 0.72);
  --page-art:
    radial-gradient(circle at 14% 18%, rgba(109, 134, 255, 0.3), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(215, 187, 134, 0.18), transparent 22%),
    radial-gradient(circle at 45% 72%, rgba(81, 108, 220, 0.17), transparent 34%),
    radial-gradient(circle at 12% 82%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 66% 46%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 76%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    linear-gradient(135deg, #050b19 0%, #11162c 46%, #060912 100%);
}

body[data-theme="violet"] {
  --bg: #120d27;
  --surface: rgba(25, 18, 47, 0.86);
  --surface-2: rgba(42, 30, 75, 0.8);
  --ink: #fbf7ff;
  --muted: #d6cce8;
  --line: rgba(220, 199, 255, 0.22);
  --accent: #b793ff;
  --accent-dark: #5a3fa0;
  --accent-soft: rgba(83, 57, 139, 0.72);
  --warm: #f0c785;
  --header-bg: rgba(18, 13, 39, 0.86);
  --header-bg-solid: rgba(28, 19, 55, 0.94);
  --field-bg: rgba(17, 12, 34, 0.9);
  --panel-bg: rgba(28, 19, 55, 0.94);
  --ribbon-bg: rgba(255, 255, 255, 0.12);
  --inverse-bg: #0c081a;
  --inverse-ink: #fff;
  --section-band: rgba(25, 18, 47, 0.68);
  --page-art:
    radial-gradient(ellipse at 12% 80%, rgba(75, 220, 185, 0.36), transparent 28%),
    radial-gradient(ellipse at 72% 18%, rgba(185, 115, 255, 0.42), transparent 34%),
    linear-gradient(105deg, transparent 0 20%, rgba(125, 255, 220, 0.18) 30%, rgba(177, 102, 255, 0.26) 44%, transparent 60%),
    linear-gradient(155deg, rgba(35, 18, 79, 0.92), rgba(12, 8, 26, 0.98) 62%, #05030b 100%);
}

body[data-theme="black"] {
  --bg: #080a0d;
  --surface: rgba(18, 22, 27, 0.9);
  --surface-2: rgba(23, 28, 35, 0.88);
  --ink: #f7f7f5;
  --muted: #aeb5bb;
  --line: #2b323a;
  --accent: #a4c9c1;
  --accent-dark: #1f3d39;
  --accent-soft: #1d2b2c;
  --warm: #d3af75;
  --header-bg: rgba(8, 10, 13, 0.88);
  --header-bg-solid: rgba(18, 22, 27, 0.96);
  --field-bg: #0d1117;
  --panel-bg: rgba(18, 22, 27, 0.94);
  --ribbon-bg: rgba(247, 247, 245, 0.1);
  --inverse-bg: #050607;
  --inverse-ink: #fff;
  --section-band: rgba(12, 15, 18, 0.75);
  --page-art:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 260px),
    #080a0d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-art);
  background-attachment: fixed;
  background-size: cover;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  top: 0 !important;
}

body::before {
  background: var(--page-art);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body[data-theme="cosmic"]::after,
body[data-theme="violet"]::after {
  content: "";
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

body[data-theme="cosmic"]::after {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px);
  background-position:
    0 0,
    42px 68px;
  background-size:
    92px 92px,
    138px 138px;
}

body[data-theme="violet"]::after {
  background:
    linear-gradient(94deg, transparent 7%, rgba(75, 255, 198, 0.12) 24%, rgba(191, 116, 255, 0.2) 42%, transparent 72%),
    linear-gradient(112deg, transparent 20%, rgba(80, 207, 255, 0.1) 38%, rgba(252, 155, 255, 0.14) 58%, transparent 82%);
}

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

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

.design-panel {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(27, 31, 30, 0.12);
  display: grid;
  gap: 14px;
  left: 16px;
  padding: 12px;
  position: fixed;
  top: 92px;
  width: 144px;
  z-index: 35;
}

.design-panel[data-side="right"] {
  left: auto;
  right: 16px;
}

.design-panel.is-collapsed {
  align-items: center;
  border-radius: 999px;
  min-height: 48px;
  padding: 6px;
  width: auto;
}

.design-toggle {
  align-items: center;
  background: var(--accent-dark);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
}

.design-toggle svg,
.panel-side svg {
  height: 15px;
  width: 15px;
}

.design-content {
  display: grid;
  gap: 14px;
}

.design-panel.is-collapsed .design-content {
  display: none;
}

.design-group {
  display: grid;
  gap: 7px;
}

.design-group span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.design-group button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  min-height: 30px;
  padding: 0 8px;
  text-align: left;
}

.design-group button.is-active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.panel-side {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  min-height: 32px;
  padding: 0 8px;
}

.copyright-ribbon {
  background: var(--ribbon-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  bottom: 14px;
  color: var(--ribbon-ink);
  font-size: 0.72rem;
  left: 50%;
  padding: 7px 12px;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  z-index: 25;
}

.skiptranslate iframe,
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
  display: none !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

body > .skiptranslate {
  display: none !important;
}

body.protect-copy {
  -webkit-user-select: none;
  user-select: none;
}

body.protect-copy input,
body.protect-copy textarea,
body.protect-copy select {
  -webkit-user-select: text;
  user-select: text;
}

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

.site-header {
  align-items: center;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  min-height: 74px;
  padding: 12px 34px;
  position: fixed;
  right: 0;
  top: 0;
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
  z-index: 30;
}

.site-header.is-scrolled {
  background: var(--header-bg-solid);
  box-shadow: 0 12px 34px rgba(27, 31, 30, 0.08);
}

body[data-theme="cosmic"] .site-header {
  background: rgba(16, 21, 34, 0.9);
}

body[data-theme="cosmic"] .site-header.is-scrolled {
  background: rgba(23, 29, 43, 0.96);
}

body[data-theme="black"] .site-header {
  background: rgba(8, 10, 13, 0.9);
}

body[data-theme="black"] .site-header.is-scrolled {
  background: rgba(18, 22, 27, 0.96);
}

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

.brand-mark {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  width: 40px;
}

.brand-mark img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 3px;
}

.main-nav {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 0.92rem;
  gap: 24px;
  justify-content: center;
}

.main-nav a {
  padding: 9px 0;
}

.main-nav a:hover {
  color: var(--accent);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.social-block {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 4px 5px 4px 12px;
}

.social-block span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  white-space: nowrap;
}

.icon-link,
.button {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  justify-content: center;
}

.icon-link {
  border: 1px solid var(--line);
  color: var(--muted);
  height: 38px;
  width: 38px;
}

.icon-link:hover {
  background: var(--surface);
  color: var(--accent-dark);
}

.instagram-link {
  background: var(--inverse-bg);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.instagram-link:hover {
  background: var(--accent-dark);
  color: #fff;
}

.floating-translate {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(27, 31, 30, 0.14);
  display: grid;
  gap: 8px;
  padding: 8px;
  position: fixed;
  right: 18px;
  top: 92px;
  width: 190px;
  z-index: 36;
}

.floating-translate.is-dragging {
  cursor: grabbing;
}

.translate-handle,
.translate-control {
  align-items: center;
  border-radius: var(--radius);
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
}

.translate-handle {
  background: var(--accent-dark);
  border: 0;
  color: #fff;
  cursor: grab;
  font-weight: 700;
  justify-content: center;
  padding: 0 12px;
}

.translate-control {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0 10px;
}

.translate-handle svg,
.translate-control svg {
  color: var(--muted);
  height: 15px;
  width: 15px;
}

.translate-handle svg {
  color: #fff;
}

.translate-control select {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  min-width: 0;
  width: 100%;
}

.translate-native {
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 0;
}

.translate-native .goog-te-gadget {
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.translate-native .goog-te-gadget span,
.translate-native .goog-logo-link {
  display: none;
}

svg {
  stroke-width: 1.85;
}

.icon-link svg,
.button svg,
.services-grid svg,
.feature-list svg,
.charity-panel svg,
.contact-list svg,
.site-footer svg {
  height: 15px;
  width: 15px;
}

.button {
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 670;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  transition:
    transform 160ms ease,
    border-color 160ms ease;
  white-space: nowrap;
}

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

.button-dark {
  background: var(--accent-dark);
  color: #fff;
}

body[data-theme="sky"] .button-dark,
body[data-theme="sky"] .design-toggle,
body[data-theme="sky"] .translate-handle,
body[data-theme="sky"] .design-group button.is-active {
  background: #15566e;
  border-color: #15566e;
}

body[data-theme="cosmic"] .button-dark,
body[data-theme="cosmic"] .design-toggle,
body[data-theme="cosmic"] .translate-handle,
body[data-theme="cosmic"] .design-group button.is-active {
  background: #28396e;
  border-color: #28396e;
}

body[data-theme="violet"] .button-dark,
body[data-theme="violet"] .design-toggle,
body[data-theme="violet"] .translate-handle,
body[data-theme="violet"] .design-group button.is-active {
  background: #5a3fa0;
  border-color: #5a3fa0;
}

body[data-theme="black"] .button-dark,
body[data-theme="black"] .design-toggle,
body[data-theme="black"] .translate-handle,
body[data-theme="black"] .design-group button.is-active {
  background: #1f3d39;
  border-color: #1f3d39;
}

.button-light {
  background: var(--surface);
  color: var(--ink);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.button-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  padding: 128px 34px 36px;
}

.hero-inner,
.section,
.facts-band,
.site-footer {
  margin: 0 auto;
  max-width: var(--max);
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  min-height: 640px;
}

.eyebrow {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  letter-spacing: 0;
  margin: 0;
}

.hero h1 {
  font-size: 3.25rem;
  line-height: 1.03;
  max-width: 690px;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
  margin: 24px 0 0;
  max-width: 650px;
}

.hero-actions,
.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-media {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 0.58fr;
  position: relative;
}

body[data-layout="portrait"] .hero-inner {
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 0.82fr);
}

body[data-layout="portrait"] .hero-copy {
  order: 2;
}

body[data-layout="portrait"] .hero-media {
  order: 1;
}

body[data-layout="portrait"] .hero-media {
  grid-template-columns: 1fr;
}

body[data-layout="portrait"] .hero-side-photo {
  display: none;
}

body[data-layout="portrait"] .hero-main-photo {
  aspect-ratio: 3 / 4;
}

body[data-layout="gallery"] .hero-inner {
  grid-template-columns: 1fr;
  min-height: auto;
}

body[data-layout="gallery"] .hero-copy {
  margin: 0 auto;
  max-width: 850px;
  text-align: center;
}

body[data-layout="gallery"] .hero-media {
  grid-template-columns: 1.2fr 0.8fr;
  margin: 0 auto;
  max-width: 920px;
}

body[data-layout="gallery"] .hero-main-photo {
  aspect-ratio: 16 / 10;
}

body[data-layout="gallery"] .hero-side-photo {
  height: auto;
}

body[data-layout="compact"] .hero {
  padding-top: 104px;
}

body[data-layout="compact"] .hero-inner {
  gap: 32px;
  min-height: 430px;
}

body[data-layout="compact"] .hero h1 {
  font-size: 2.38rem;
}

body[data-layout="compact"] .hero-side-photo {
  display: none;
}

body[data-layout="compact"] .hero-media {
  grid-template-columns: 1fr;
}

body[data-layout="compact"] .facts-band div,
body[data-layout="compact"] .services-grid article,
body[data-layout="compact"] .reviews-grid article {
  min-height: auto;
}

.hero-main-photo,
.hero-side-photo img,
.doctor-panel img,
.doctor-profile img,
.photo-grid img,
.case-grid img,
.address-card img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.hero-main-photo {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-side-photo {
  align-self: end;
  background: var(--surface);
  border-radius: var(--radius);
  height: 62%;
  overflow: hidden;
}

.rating-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  bottom: 24px;
  box-shadow: 0 18px 50px rgba(27, 31, 30, 0.14);
  left: 24px;
  min-width: 190px;
  padding: 18px;
  position: absolute;
}

.rating-card span,
.facts-band span,
.doctor-note span,
.case-grid span,
.map-card span,
.address-card span {
  color: var(--warm);
  display: block;
  font-size: 0.76rem;
  font-weight: 780;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.rating-card strong {
  display: block;
  font-size: 2.1rem;
  line-height: 1;
}

.rating-card p {
  color: var(--muted);
  margin: 8px 0 0;
}

.facts-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
}

.facts-band div {
  background: var(--surface);
  min-height: 96px;
  padding: 22px;
}

.facts-band strong {
  display: block;
  font-size: 1rem;
  line-height: 1.32;
}

.section {
  padding: 88px 34px;
}

.section h2 {
  font-size: 2.24rem;
  line-height: 1.14;
}

.section p {
  color: var(--muted);
  line-height: 1.68;
}

.section-head {
  margin-bottom: 34px;
  max-width: 800px;
}

.split-section,
.route-section,
.appointment-section,
.contacts-section,
.charity-section {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.section-copy p:last-child,
.route-copy p {
  font-size: 1.02rem;
}

.doctor-profile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(260px, 0.64fr);
  overflow: hidden;
}

.doctor-profile img {
  min-height: 420px;
  object-position: center top;
}

.doctor-profile div {
  align-self: end;
  padding: 28px;
}

.doctor-profile span {
  color: var(--warm);
  display: block;
  font-size: 0.76rem;
  font-weight: 780;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.doctor-profile strong {
  display: block;
  font-size: 1.38rem;
}

.trust-row,
.technology-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-row span,
.technology-list span {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
}

.trust-row span {
  font-size: 0.88rem;
  font-weight: 650;
}

.technology-list {
  margin-top: 18px;
}

.technology-list span {
  font-size: 0.9rem;
  font-weight: 650;
}

.technology-list svg {
  color: var(--accent);
  height: 15px;
  width: 15px;
}

.doctor-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
  overflow: hidden;
}

.doctor-panel img {
  min-height: 360px;
}

.doctor-note {
  align-self: end;
  padding: 28px;
}

.doctor-note strong {
  display: block;
  font-size: 1.34rem;
}

.services-section,
.tech-section,
.features-section,
.gallery-section,
.work-section,
.reviews-section {
  max-width: none;
  padding-left: max(34px, calc((100vw - var(--max)) / 2 + 34px));
  padding-right: max(34px, calc((100vw - var(--max)) / 2 + 34px));
}

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

.services-grid article,
.tech-grid article,
.features-card,
.specialists-card,
.reviews-grid article,
.request-form,
.address-card,
.case-grid article,
.gallery-category figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.services-grid article {
  min-height: 218px;
  padding: 24px;
}

.services-grid svg {
  color: var(--accent);
  margin-bottom: 22px;
}

.services-grid h3,
.specialists-card h3,
.reviews-grid strong {
  margin: 0;
}

.services-grid h3 {
  font-size: 1.08rem;
}

.services-grid p {
  margin-bottom: 0;
}

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

.tech-grid article {
  overflow: hidden;
}

.tech-grid img {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  object-fit: cover;
  width: 100%;
}

.tech-grid div {
  padding: 22px;
}

.tech-grid span {
  color: var(--warm);
  display: block;
  font-size: 0.76rem;
  font-weight: 780;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tech-grid h3 {
  font-size: 1.08rem;
  margin: 0;
}

.tech-grid p {
  margin-bottom: 0;
}

.page-links-section {
  max-width: none;
  padding-left: max(34px, calc((100vw - var(--max)) / 2 + 34px));
  padding-right: max(34px, calc((100vw - var(--max)) / 2 + 34px));
}

.page-links-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-links-grid a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 220px;
  padding: 24px;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.page-links-grid a:hover {
  border-color: rgba(45, 92, 85, 0.36);
  transform: translateY(-2px);
}

.page-links-grid svg {
  color: var(--accent);
  height: 20px;
  margin-bottom: 24px;
  width: 20px;
}

.page-links-grid span {
  display: block;
  font-size: 1.08rem;
  font-weight: 750;
}

.page-links-grid p {
  margin-bottom: 0;
}

.features-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.features-card,
.specialists-card {
  padding: 26px;
}

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

.feature-list span {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 9px;
  line-height: 1.36;
}

.feature-list svg {
  color: var(--accent);
  flex: 0 0 auto;
}

.specialists-card h3 + p {
  margin-top: 8px;
}

.gallery-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  max-width: none;
}

.gallery-category {
  margin-top: 42px;
}

.gallery-category:first-of-type {
  margin-top: 0;
}

.gallery-category-head {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 56px minmax(0, 1fr);
  margin-bottom: 18px;
  max-width: 860px;
}

.gallery-category-head > span {
  align-items: center;
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--surface);
  display: inline-flex;
  font-weight: 760;
  height: 44px;
  justify-content: center;
}

.gallery-category-head h3 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0;
}

.gallery-category-head p {
  margin: 8px 0 0;
}

.photo-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-grid figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  overflow: hidden;
}

.photo-grid .photo-wide {
  grid-column: span 2;
}

.photo-grid img {
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
}

.photo-grid .photo-tall {
  grid-row: span 2;
}

.photo-grid .photo-tall img {
  aspect-ratio: 3 / 4;
}

.photo-grid figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 12px 14px;
}

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

.case-grid article {
  overflow: hidden;
}

.case-grid img {
  background: var(--surface-2);
  aspect-ratio: 1 / 1;
}

.case-grid div {
  padding: 20px;
}

.case-grid p {
  margin-bottom: 0;
}

.route-section {
  background: var(--surface-2);
  max-width: none;
  padding-left: max(34px, calc((100vw - var(--max)) / 2 + 34px));
  padding-right: max(34px, calc((100vw - var(--max)) / 2 + 34px));
}

.map-card {
  background: var(--inverse-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--inverse-ink);
  justify-self: end;
  max-width: 430px;
  overflow: hidden;
  width: 100%;
}

.map-frame {
  aspect-ratio: 16 / 10;
  border: 0;
  display: block;
  width: 100%;
}

.map-card-footer {
  padding: 18px;
}

.map-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.charity-section {
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  max-width: none;
  padding-left: max(34px, calc((100vw - var(--max)) / 2 + 34px));
  padding-right: max(34px, calc((100vw - var(--max)) / 2 + 34px));
}

.charity-section .eyebrow {
  color: #d8bd8d;
}

.charity-section p {
  color: rgba(255, 255, 255, 0.76);
}

.charity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.charity-panel div {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  min-height: 170px;
  padding: 22px;
}

.charity-panel svg {
  color: #d8bd8d;
  margin-bottom: 22px;
}

.charity-panel strong,
.charity-panel span {
  display: block;
}

.charity-panel strong {
  font-size: 1.02rem;
}

.charity-panel span {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.52;
  margin-top: 9px;
}

.reviews-section .section-head p {
  margin-bottom: 0;
}

.reviews-grid article {
  min-height: 190px;
  padding: 24px;
}

.reviews-grid strong {
  display: block;
  font-size: 1.08rem;
}

.reviews-grid p {
  margin-bottom: 0;
}

.request-form {
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 26px;
}

.request-form label {
  color: var(--ink);
  display: grid;
  font-size: 0.92rem;
  font-weight: 650;
  gap: 8px;
}

.request-form input,
.request-form select,
.request-form textarea {
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

.request-form textarea {
  min-height: 116px;
  resize: vertical;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(45, 92, 85, 0.13);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-list a {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 11px;
  min-height: 54px;
  padding: 13px 15px;
}

.contact-list a:hover {
  border-color: rgba(45, 92, 85, 0.34);
  color: var(--accent-dark);
}

.address-card {
  overflow: hidden;
}

.address-card img {
  aspect-ratio: 16 / 9;
}

.address-card div {
  padding: 24px;
}

.address-card strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.35;
}

.address-card a {
  color: var(--accent);
  display: inline-block;
  font-weight: 680;
  margin-top: 16px;
}

.site-footer {
  align-items: center;
  background: var(--inverse-bg);
  color: var(--inverse-ink);
  display: flex;
  justify-content: space-between;
  max-width: none;
  padding: 30px max(34px, calc((100vw - var(--max)) / 2 + 34px));
}

.site-footer > a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.62);
  margin-top: 5px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero-inner,
  .split-section,
  .route-section,
  .appointment-section,
  .contacts-section,
  .charity-section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-media,
  .map-card {
    justify-self: stretch;
  }

  .services-grid,
  .tech-grid,
  .page-links-grid,
  .photo-grid,
  .case-grid,
  .reviews-grid,
  .charity-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-panel {
    bottom: 12px;
    left: 50%;
    top: auto;
    transform: translateX(-50%);
    width: min(420px, calc(100vw - 24px));
  }

  .design-panel.is-collapsed {
    width: auto;
  }

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

  .design-group span {
    grid-column: 1 / -1;
  }

  .floating-translate {
    right: 12px;
    top: 82px;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 66px;
    padding: 10px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    height: 38px;
    width: 38px;
  }

  .brand small {
    display: none;
  }

  .header-actions .icon-link,
  .social-block span {
    display: none;
  }

  .social-block {
    background: transparent;
    border: 0;
    padding: 0;
  }

  .header-actions .button {
    min-height: 40px;
    padding: 0 13px;
  }

  .hero {
    padding: 102px 18px 26px;
  }

  .hero h1 {
    font-size: 2.15rem;
    line-height: 1.08;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-actions,
  .route-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .route-actions .button {
    width: 100%;
  }

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

  .hero-main-photo {
    aspect-ratio: 4 / 3;
  }

  .hero-side-photo {
    display: none;
  }

  .rating-card {
    bottom: 14px;
    left: 14px;
    min-width: 164px;
    padding: 14px;
  }

  .rating-card strong {
    font-size: 1.68rem;
  }

  .facts-band,
  .services-grid,
  .tech-grid,
  .page-links-grid,
  .features-layout,
  .feature-list,
  .photo-grid,
  .case-grid,
  .reviews-grid,
  .charity-panel,
  .doctor-panel,
  .doctor-profile {
    grid-template-columns: 1fr;
  }

  .section,
  .services-section,
  .features-section,
  .work-section,
  .page-links-section,
  .route-section,
  .reviews-section,
  .charity-section {
    padding: 66px 18px;
  }

  .section h2 {
    font-size: 1.78rem;
  }

  .facts-band {
    margin-left: 18px;
    margin-right: 18px;
  }

  .facts-band div {
    min-height: auto;
    padding: 18px;
  }

  .doctor-panel img {
    min-height: 280px;
  }

  .doctor-profile img {
    min-height: 320px;
  }

  .gallery-head {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .photo-grid .photo-large {
    grid-row: auto;
  }

  .photo-grid .photo-wide,
  .photo-grid .photo-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .design-panel {
    position: fixed;
  }

  .design-group {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-panel:not(.is-collapsed) {
    max-height: 58vh;
    overflow: auto;
    width: min(360px, calc(100vw - 24px));
  }

  .floating-translate {
    bottom: 12px;
    left: 12px;
    right: auto;
    top: auto;
    width: min(220px, calc(100vw - 24px));
  }

  .request-form {
    padding: 22px;
  }

  .site-footer {
    padding: 26px 18px;
  }
}

@media (max-width: 430px) {
  .brand > span:not(.brand-mark) {
    display: none;
  }

  .hero h1 {
    font-size: 1.86rem;
  }

  .button {
    white-space: normal;
  }
}
