/* ===== Р‘Р°Р·РѕРІС‹Рµ СЃС‚РёР»Рё ===== */
:root {
  --color-bg: #f8f5f2;
  --color-surface: #ffffff;
  --color-text: #1f1f1f;
  --color-text-muted: #66615c;
  --color-accent: #8a645f;
  --color-accent-hover: #75514d;
  --color-border: #e7dfd8;
  --color-link: #1a5fb4;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space-unit: 8px;
  --space-xs: calc(var(--space-unit) * 1);
  --space-sm: calc(var(--space-unit) * 2);
  --space-md: calc(var(--space-unit) * 3);
  --space-lg: calc(var(--space-unit) * 4);
  --space-xl: calc(var(--space-unit) * 6);
  --space-2xl: calc(var(--space-unit) * 8);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --max-width: 1120px;
}

/* ===== РљР»СЋС‡РµРІС‹Рµ РєР°РґСЂС‹ РґР»СЏ РґРёРЅР°РјРёРєРё ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes lineIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes lineInCenter {
  from { transform: translateX(-50%) scaleX(0); }
  to { transform: translateX(-50%) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .hero-content,
  .hero-buttons,
  .section,
  .section.visible h2::after,
  .section.visible .service,
  .section#reviews.visible .reviews-intro,
  .section#reviews.visible .reviews-cta,
  .section-intro.visible #history-heading,
  .section-intro.visible .history-content--story p,
  .section-intro.visible .history-content--mission p,
  .section-intro.visible .mission-heading {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .section.visible h2::after {
    transform: translateX(-50%) scaleX(1) !important;
  }

  .section-intro.visible .history-content p:hover {
    transform: none !important;
  }
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Глобальное выравнивание текстовых параграфов по ширине */
.doctor-card p:not(.doctor-role):not(.doctor-card-more),
.service p,
.case-panel p,
.review-card p,
.about-text p,
.contacts-desc,
.price-intro,
.price-note,
.doctors-intro,
.case-header p,
.doctor-extra ul li,
.reviews-text,
.footer-disclaimer {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

body.cookie-banner-visible {
  padding-bottom: var(--cookie-banner-offset, 0px);
}

body > * {
  max-width: 100%;
}

/* Р РѕРІРЅС‹Рµ РѕС‚СЃС‚СѓРїС‹ РјРµР¶РґСѓ СЃРѕСЃРµРґРЅРёРјРё Р°Р±Р·Р°С†Р°РјРё Сѓ РїСЂСЏРјС‹С… РґРµС‚РµР№ .container (Р±РµР· СЃР±СЂРѕСЃР° РІР»РѕР¶РµРЅРЅС‹С… Р±Р»РѕРєРѕРІ) */
main > section:not(.hero) > .container > p + p {
  margin-top: var(--space-md);
}

html::-webkit-scrollbar:horizontal,
body::-webkit-scrollbar:horizontal,
*::-webkit-scrollbar:horizontal {
  height: 0;
}

* {
  box-sizing: border-box;
}

/* РЎСЃС‹Р»РєР° В«РџРµСЂРµР№С‚Рё Рє СЃРѕРґРµСЂР¶РёРјРѕРјСѓВ» РґР»СЏ SEO Рё РґРѕСЃС‚СѓРїРЅРѕСЃС‚Рё (РІРёРґРЅР° РїСЂРё С„РѕРєСѓСЃРµ СЃ РєР»Р°РІРёР°С‚СѓСЂС‹) */
.skip-link {
  position: absolute;
  top: 0;
  left: var(--space-md);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-140%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(var(--space-md));
  outline: 2px solid #fff;
  outline-offset: 2px;
}

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

.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== РЁР°РїРєР° ===== */
.site-header {
  background: #fff;
  border-bottom: 2px solid #c9a227;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--color-border);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(31, 31, 31, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  padding: 14px 0 0;
  gap: 10px var(--space-lg);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  max-width: 360px;
}

.brand-logo {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  display: block;
  border: 2px solid #c9a227;
  box-sizing: border-box;
}

.header-brand:hover .brand-name {
  color: var(--color-accent);
}

.brand-name {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.15;
  transition: color 0.2s ease;
}

.header-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text);
}

.header-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  white-space: nowrap;
}

.header-meta-item::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.header-meta-item-location::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 6.5-9 12-9 12S3 16.5 3 10a9 9 0 1 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.header-meta-item-phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.86 19.86 0 0 1-8.63-3.07A19.5 19.5 0 0 1 5.15 12.8 19.86 19.86 0 0 1 2.08 4.09 2 2 0 0 1 4.06 2h3a2 2 0 0 1 2 1.72c.12.89.33 1.77.61 2.62a2 2 0 0 1-.45 2.11L8 9.59a16 16 0 0 0 6.41 6.41l1.14-1.22a2 2 0 0 1 2.11-.45c.85.28 1.73.49 2.62.61A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E");
}

.header-meta-item-hours::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a645f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 3'/%3E%3C/svg%3E");
}

.header-meta-item-phone,
.header-meta-item-phone:hover,
.header-meta-item-phone:focus,
.header-meta-item-phone:visited {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.header-meta-item-hours {
  color: var(--color-text-muted);
  font-weight: 500;
}

.header-meta-item-location,
.header-meta-item-location:hover,
.header-meta-item-location:focus,
.header-meta-item-location:visited {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.header-meta-messengers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.header-meta-messenger {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.header-meta-messenger:hover {
  transform: translateY(-1px);
  border-color: var(--color-accent);
}

.header-meta-messenger-tg {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.8 4.6 18.5 20c-.2.9-.8 1.1-1.5.7l-4.3-3.2-2.1 2c-.2.2-.4.4-.9.4l.3-4.6 8.4-7.6c.4-.3-.1-.5-.5-.2L7.5 13.9l-4.5-1.4c-1-.3-1-.9.2-1.4L20.6 4.1c.8-.3 1.5.2 1.2 1.5Z' fill='%232299ea'/%3E%3C/svg%3E");
}

.header-meta-messenger-max {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23007bff'/%3E%3Cpath d='M7 16V8h2l3 4 3-4h2v8h-2v-4.6L12 15l-3-3.6V16Z' fill='white'/%3E%3C/svg%3E");
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  gap: var(--space-xs) 24px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--color-border);
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ===== РЎРµРєС†РёРё ===== */
.section {
  padding: var(--space-2xl) 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section.visible h2::after {
  animation: lineInCenter 0.5s ease-out 0.2s both;
  transform-origin: center;
}

.section.visible .service {
  animation: fadeInUp 0.45s ease-out both;
}

.section.visible .service:nth-child(1) { animation-delay: 0.08s; }
.section.visible .service:nth-child(2) { animation-delay: 0.16s; }
.section.visible .service:nth-child(3) { animation-delay: 0.24s; }
.section.visible .service:nth-child(4) { animation-delay: 0.32s; }
.section.visible .service:nth-child(5) { animation-delay: 0.4s; }
.section.visible .service:nth-child(6) { animation-delay: 0.48s; }

.section#reviews.visible .reviews-intro {
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.section#reviews.visible .reviews-cta {
  animation: fadeInUp 0.5s ease-out 0.25s both;
}

.section-intro {
  background: var(--color-surface);
  text-align: center;
}

.section-intro .history-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: justify;
}

.section-intro .history-content p {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
  transition: transform 0.35s ease;
}

.section-intro .history-content p:last-child {
  margin-bottom: 0;
}

.intro-emphasis {
  color: inherit;
  font-weight: inherit;
  background: none;
  padding: 0;
  box-decoration-break: initial;
  -webkit-box-decoration-break: initial;
}

.section-intro.visible #history-heading {
  animation: fadeInUp 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.06s both;
}

.section-intro.visible .history-content--story p:nth-child(1) {
  animation: fadeInUp 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.14s both;
}

.section-intro.visible .history-content--story p:nth-child(2) {
  animation: fadeInUp 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.28s both;
}

.section-intro.visible .history-content--story p:nth-child(3) {
  animation: fadeInUp 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.42s both;
}

.section-intro.visible .mission-heading {
  animation: fadeInUp 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.48s both;
}

.section-intro.visible .mission-heading::after {
  animation-delay: 0.52s;
}

.section-intro.visible .history-content--mission p:nth-child(1) {
  animation: fadeInUp 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.58s both;
}

.section-intro.visible .history-content--mission p:nth-child(2) {
  animation: fadeInUp 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.72s both;
}

@media (hover: hover) and (pointer: fine) {
  .section-intro.visible .history-content p:hover {
    transform: translateY(-2px);
  }
}

/* РўРѕР»СЊРєРѕ РѕС‚СЃС‚СѓРї СЃРІРµСЂС…Сѓ вЂ” СЂР°Р·РјРµСЂ/РїРѕРґС‡С‘СЂРєРёРІР°РЅРёРµ РєР°Рє Сѓ .section h2 */
.section-intro .mission-heading {
  margin: var(--space-2xl) 0 var(--space-lg);
}

.section-alt {
  background: var(--color-surface);
}

.section h2 {
  font-size: 1.625rem;
  font-weight: 700;
  margin: 0 0 var(--space-lg);
  color: var(--color-text);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: var(--space-sm);
  text-align: center;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav a:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== Hero ===== */
.hero {
  min-height: 76vh;
  position: relative;
  overflow: hidden;
  background-color: #1a1918;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

/* Фото через <img> + object-fit — на мобильных обычно ровнее, чем background-image */
.hero-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: inherit;
  box-sizing: border-box;
}

.hero-content {
  position: relative;
  color: #fff;
  max-width: 40rem;
  width: 100%;
  padding: 0 var(--space-md) clamp(28px, 5vh, 56px);
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.25s both;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  margin: 0 0 var(--space-md);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.hero-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
  line-height: 1.3;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: 0;
  width: 100%;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-buttons .button {
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Кнопки hero: светлые с тёмным текстом (веб и мобильная) */
.hero-buttons .button-outline,
.hero-buttons button.button-outline {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 31, 31, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.hero-buttons a.button-outline,
.hero-buttons a.button-outline:visited {
  color: var(--color-text);
}

.hero-buttons .button-outline:hover,
.hero-buttons button.button-outline:hover {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.hero-buttons a.button-outline:hover {
  color: #fff;
}

.button-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.95);
  border-radius: 999px;
}

.button-outline:hover {
  background: #fff;
  color: var(--color-text);
  transform: translateY(-2px);
}

/* РљРЅРѕРїРєРё */
button {
  background: var(--color-accent);
  border: none;
  padding: 14px 22px;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

button:active {
  transform: translateY(0);
}

/* ===== РћСЃРЅРѕРІР°С‚РµР»СЊ РєР»РёРЅРёРєРё (#about) ===== */
.about {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  justify-content: flex-start;
}

.about-photo {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.about-photo img {
  max-width: 400px;
}

.about img:hover {
  transform: scale(1.015);
}

.about-text {
  flex: 1;
  min-width: 0;
  max-width: 680px;
}

.about-text p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  text-align: justify;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ===== РќР°С€Рё СЃРїРµС†РёР°Р»РёСЃС‚С‹ (#doctors) ===== */
.doctors-intro {
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: center;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.doctor-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(31, 31, 31, 0.12);
  border-color: rgba(138, 100, 95, 0.22);
}

.doctor-card:focus-within {
  border-color: rgba(138, 100, 95, 0.35);
}

.doctor-card h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1.0625rem;
  color: var(--color-text);
  text-align: center;
}

.doctor-card .doctor-role {
  margin: 0 0 var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-accent);
  font-weight: 600;
  text-align: center;
}

.doctor-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: center;
}

.doctor-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.doctor-card-visual {
  margin-bottom: var(--space-md);
  transform: translateZ(0);
}

/* Крупнее главное фото и миниатюры — меньше субъективной «зернистости» при масштабировании */
.doctor-card-main {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-sm);
  display: block;
  background: var(--color-border);
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.doctor-card:hover .doctor-card-main {
  transform: translateZ(0) scale(1.02);
}

.doctor-card-more {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: auto;
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent) !important;
  text-decoration: none;
}

.doctor-card-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.doctor-card-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.booking-modal[hidden] {
  display: none;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.6);
}

.booking-modal-dialog {
  position: relative;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.booking-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.06);
  color: var(--color-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.booking-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 44px 14px 16px;
  box-sizing: border-box;
}

.booking-modal-iframe {
  width: 100%;
  height: min(620px, calc(100vh - 96px));
  min-height: 360px;
  border: 0;
  display: block;
}

body.booking-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .booking-modal {
    padding: max(8px, env(safe-area-inset-top, 0px))
      max(8px, env(safe-area-inset-right, 0px))
      max(8px, env(safe-area-inset-bottom, 0px))
      max(8px, env(safe-area-inset-left, 0px));
  }

  .booking-modal-dialog {
    width: calc(
      100vw - max(
        16px,
        calc(env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px))
      )
    );
    max-width: 100%;
    max-height: calc(
      100vh - max(
        16px,
        calc(env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px))
      )
    );
    max-height: calc(
      100dvh - max(
        16px,
        calc(env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px))
      )
    );
    border-radius: 12px;
  }

  .booking-modal-body {
    padding: 52px 12px max(14px, env(safe-area-inset-bottom, 0px));
  }

  .booking-modal-iframe {
    min-height: 260px;
    height: min(620px, calc(100vh - 108px));
    height: min(620px, calc(100dvh - 108px));
  }

  .booking-modal-close {
    top: 10px;
    right: max(10px, env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    font-size: 1.45rem;
  }
}

@media (max-width: 640px) and (max-height: 520px) {
  .booking-modal-body {
    padding-top: 48px;
  }

  .booking-modal-iframe {
    min-height: 200px;
    height: min(420px, calc(100vh - 96px));
    height: min(420px, calc(100dvh - 96px));
  }
}

.doctor-card-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-sm);
  justify-content: center;
}

.doctor-card-thumb {
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg);
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transform: translateZ(0);
}

.doctor-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.doctor-card-thumb:hover {
  border-color: var(--color-border);
}

.doctor-card-thumb.is-active {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(138, 100, 95, 0.35);
}

.doctor-card-thumb:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .doctor-card {
    transition: none;
  }

  .doctor-card:hover {
    transform: none;
  }

  .doctor-card-main {
    transition: none;
  }

  .doctor-card:hover .doctor-card-main {
    transform: translateZ(0);
  }
}

/* ===== РЈСЃР»СѓРіРё ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.service {
  background: var(--color-surface);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(138, 100, 95, 0.95), rgba(138, 100, 95, 0.15));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  border-color: rgba(139, 107, 122, 0.25);
}

.service h3 {
  margin: 0 0 var(--space-sm);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

.service p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  text-align: center;
}

/* ===== Р¦РµРЅС‹ ===== */
.price-intro {
  margin: 0 auto var(--space-lg);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  max-width: 640px;
  text-align: center;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: stretch;
}

.price-block {
  margin-bottom: 0;
  padding: var(--space-lg);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  height: 100%;
}

.price-category {
  margin: 0 0 var(--space-sm);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-accent);
  text-align: center;
}

/* Р“РѕСЂРёР·РѕРЅС‚Р°Р»СЊРЅР°СЏ РїСЂРѕРєСЂСѓС‚РєР° Р±Р»РѕРєР° С†РµРЅ РЅР° СѓР·РєРёС… СЌРєСЂР°РЅР°С… */
.price-table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding-right: 0;
  flex: 1;
}

.price-block.is-collapsible .price-table-scroll {
  max-height: 224px;
  mask-image: linear-gradient(to bottom, #000 0 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0 82%, transparent 100%);
}

.price-block.is-expanded .price-table-scroll {
  max-height: 720px;
  mask-image: none;
  -webkit-mask-image: none;
}

.price-toggle {
  margin-top: var(--space-md);
  align-self: center;
  border: 1px solid rgba(138, 100, 95, 0.18);
  background: rgba(138, 100, 95, 0.08);
  color: var(--color-accent);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.price-toggle:hover {
  background: rgba(138, 100, 95, 0.14);
  border-color: rgba(138, 100, 95, 0.28);
  transform: translateY(-1px);
}

.price-table {
  width: 100%;
  min-width: 0;
  max-width: none;
  border-collapse: collapse;
  font-size: 0.9375rem;
  table-layout: fixed;
}

.price-table td {
  padding: var(--space-sm) var(--space-md) var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.price-table td:last-child {
  white-space: nowrap;
  text-align: right;
  color: var(--color-text);
  font-weight: 500;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-note {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
  text-align: center;
}

.price-note a {
  color: var(--color-link);
  text-decoration: none;
}

.price-note a:hover {
  text-decoration: underline;
}

/* ===== Р¦РµРЅС‚СЂРёСЂРѕРІР°РЅРёРµ Р±Р»РѕРєРѕРІ РЅР° СЃС‚СЂР°РЅРёС†Рµ РїРѕР»РёС‚РёРєРё ===== */
/* Без fade-in для .section: иначе при открытии /privacy-policy#… IntersectionObserver может не успеть — весь текст остаётся с opacity:0 */
#policy-main .section {
  opacity: 1;
  transform: none;
}

#policy-main .container > h1 {
  text-align: center;
}

#policy-main .price-intro {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#policy-main .price-grid {
  margin-left: auto;
  margin-right: auto;
}

#policy-main .price-grid .price-block:last-child {
  grid-column: 1 / -1;
}

#policy-main .price-block,
#policy-main .price-category,
#policy-main .price-block p {
  text-align: center;
}

#policy-main .section h2::after {
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}

#policy-main .section h2::after,
#policy-main .section.visible h2::after {
  animation: lineInCenter 0.5s ease-out 0.2s both;
  transform-origin: center;
}

#policy-main .policy-phone-link {
  white-space: nowrap;
}

/* ===== РћС‚Р·С‹РІС‹ (СЃСЃС‹Р»РєР° РЅР° РЇРЅРґРµРєСЃ.РљР°СЂС‚С‹) ===== */
.reviews-intro {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: none;
  font-weight: 600;
  color: #335a76;
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--space-xl);
  align-items: start;
}

.reviews-widget-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid #c9a227;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.reviews-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.reviews-widget-brand {
  font-size: 0.95rem;
}

.reviews-widget-source {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.reviews-widget-source-link {
  text-decoration: none;
}

.reviews-widget-source-link:hover {
  text-decoration: underline;
}

.reviews-widget-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.reviews-widget-score {
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  color: #111827;
}

.reviews-widget-stars {
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 1.05rem;
}

.reviews-widget-meta {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.reviews-widget-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.reviews-widget-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  color: #334155;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  background: #f8fafc;
}

.reviews-widget-action-primary {
  background: #1d9bf0;
  border-color: #1d9bf0;
  color: #fff;
}

.reviews-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: 0;
  padding-top: 0;
}

.reviews-copy .reviews-intro {
  margin: 0 0 var(--space-xs);
}

#reviews.section {
  padding-bottom: var(--space-lg);
}

#reviews h2::after {
  background: #c9a227;
  width: 56px;
}

.reviews-text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.reviews-selected {
  margin-top: var(--space-lg);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.review-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.review-card-head strong {
  font-size: 0.95rem;
}

.review-card-head span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.review-card-source-link {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.review-card-source-link:hover {
  text-decoration: underline;
}

.review-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.review-card-link {
  display: inline-flex;
  margin-top: var(--space-sm);
  font-size: 0.86rem;
  color: var(--color-link);
  text-decoration: none;
}

.review-card-link:hover {
  text-decoration: underline;
}

.reviews-cta {
  margin-top: var(--space-md);
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  padding-top: 0;
  width: 100%;
}

.btn-reviews-yandex {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--space-xs) var(--space-md);
  background: #fc3f1d;
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid rgba(201, 162, 39, 0.4);
  font-weight: 600;
  font-size: 0.8125rem;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 14px rgba(252, 63, 29, 0.35), 0 0 0 1px rgba(201, 162, 39, 0.15);
}

.btn-reviews-yandex:hover {
  background: #e63818;
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.7);
  box-shadow: 0 6px 18px rgba(252, 63, 29, 0.4), 0 0 0 1px rgba(201, 162, 39, 0.25);
}

.btn-reviews-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 0.9rem;
  letter-spacing: 0;
  color: #ffeb3b;
  line-height: 1;
}

.btn-reviews-star-partial {
  display: inline-block;
  width: 0.9em;
  overflow: hidden;
  vertical-align: -0.05em;
}

.btn-reviews-text {
  font-weight: 600;
}

.reviews-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* РћС‚СЃС‚СѓРї РїСЂРё РїСЂРѕРєСЂСѓС‚РєРµ Рє СЏРєРѕСЂСЏРј вЂ” СЃРµРєС†РёСЏ РЅРµ СѓРµР·Р¶Р°РµС‚ РїРѕРґ С€Р°РїРєСѓ */
#main,
#history,
#mission-heading,
#about,
#doctors,
#services,
#works-preview,
#price,
#reviews,
#contacts {
  scroll-margin-top: 100px;
}

/* ===== Р‘Р»РѕРє В«РќР°С€Рё СЂР°Р±РѕС‚С‹В» (РїСЂРµРІСЊСЋ) ===== */
.section-works-preview {
  background: var(--color-surface);
}

.works-preview-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.works-preview-header > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.works-preview-header h2 {
  margin: 0;
}

.works-preview-intro {
  max-width: 100%;
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  text-align: center;
}

@media (min-width: 801px) {
  .works-preview-header > div {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .works-preview-intro {
    white-space: nowrap;
  }
}

.works-preview-all {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.works-preview-all:hover {
  color: var(--color-accent);
}

.works-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.works-preview-grid--6 {
  grid-template-columns: repeat(3, 1fr);
}

.works-preview-grid--1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 24rem;
  margin-inline: auto;
}

.works-preview-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.works-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.works-preview-card:hover .works-preview-card-img-wrap img {
  transform: scale(1.04);
}

.works-preview-card-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg);
}

.works-preview-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.works-preview-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-md) var(--space-md) var(--space-sm);
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.25) 50%, transparent);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-sm);
}

.works-preview-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.works-preview-card-count {
  font-size: 0.75rem;
  opacity: 0.9;
}

.works-preview-card-name {
  font-size: 1rem;
  font-weight: 700;
}

.works-preview-card-meta {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.95;
}

.works-preview-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
  color: var(--color-text);
  text-align: center;
}

.works-preview-card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* ===== РЎС‚СЂР°РЅРёС†Р° РіР°Р»РµСЂРµРё (gallery.html) ===== */
.gallery-page.section {
  opacity: 1;
  transform: none;
  transition: none;
}

.gallery-page {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.gallery-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
}

.gallery-back {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.gallery-back:hover {
  color: var(--color-accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.gallery-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.gallery-case-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 28rem;
  margin-inline: auto;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item--video video {
  object-fit: contain;
  background: var(--color-bg);
}

.gallery-item figcaption {
  padding: var(--space-md);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ===== РЎС‚СЂР°РЅРёС†Р° РєРµР№СЃР° ===== */
.case-page {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.case-breadcrumbs {
  margin-bottom: var(--space-sm);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.case-breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.case-breadcrumbs a:hover {
  color: var(--color-accent);
}

.case-header {
  margin-bottom: var(--space-xl);
}

.case-header h1 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.case-header p {
  max-width: 760px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.case-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 340px;
  gap: var(--space-xl);
  align-items: start;
}

.case-thumbs {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.case-thumb {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.case-thumb:hover,
.case-thumb.is-active {
  border-color: rgba(138, 100, 95, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.case-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.case-main {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.case-main img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.case-main figcaption {
  padding: var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.case-page .case-main {
  max-width: min(100%, 26rem);
  margin-inline: auto;
  width: 100%;
}

.case-page .case-main figcaption {
  text-align: center;
}

.case-page .case-main img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.doctor-page .case-layout {
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: var(--space-xl);
}

.doctor-layout-with-thumbs {
  grid-template-columns: 100px minmax(280px, 480px) minmax(0, 1fr);
}

.doctor-page .case-main {
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
}

.doctor-page .case-main img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.doctor-page .doctor-extra {
  margin-top: var(--space-xl);
}

.doctor-page .doctor-extra h2 {
  text-align: left;
  font-size: 1.0625rem;
  margin: var(--space-xl) 0 var(--space-sm);
}

.doctor-page .doctor-extra h2::after {
  display: none;
}

.doctor-page .doctor-extra ul {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.doctor-page .doctor-extra ul li {
  margin-bottom: 0.4rem;
}

.doctor-page.visible .doctor-extra h2::after {
  animation: lineIn 0.5s ease-out 0.2s both;
}

/* Галерея работ врача */
.doctor-works {
  margin-top: var(--space-2xl);
}

.doctor-works h2 {
  text-align: left;
}

.doctor-works h2::after {
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
}

.doctor-page.visible .doctor-works h2::after {
  animation: lineIn 0.5s ease-out 0.2s both;
}

.doctor-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.doctor-works-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doctor-works-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.doctor-works-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lightbox-trigger img {
  transition: transform 0.3s ease;
}

.lightbox-trigger:hover img {
  transform: scale(1.04);
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  cursor: zoom-out;
}

.lightbox-photo-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  line-height: 0;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.65);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 48px);
}

.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.lightbox-prev,
.lightbox-next {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.26);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
    gap: 0;
    justify-content: center;
  }

  .lightbox-img {
    max-width: 100vw;
    max-height: calc(100vh - 80px);
    border-radius: var(--radius-sm);
  }

  .lightbox-prev,
  .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    font-size: 24px;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
    flex-shrink: 0;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-photo-wrap {
    max-height: calc(100vh - 80px);
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-trigger img {
    transition: none;
  }
}

.case-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

.case-panel h2 {
  margin: 0 0 var(--space-md);
  font-size: 1.125rem;
}

.case-panel p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
}

.case-panel p:last-of-type {
  margin-bottom: 0;
}

.case-badge {
  align-self: center;
  display: inline-flex;
  margin-bottom: var(--space-md);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(138, 100, 95, 0.1);
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 600;
}

.case-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.case-actions .btn-contact-primary,
.case-actions .btn-contact-secondary,
.case-actions .btn-route {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-xl);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}

.case-back:hover {
  color: var(--color-accent);
}

/* ===== РљРѕРЅС‚Р°РєС‚С‹ ===== */
.section-contacts .contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}

.contacts-intro {
  text-align: center;
}

.contacts-label {
  margin: 0 0 var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.contacts-title {
  margin: 0 0 var(--space-md);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  text-align: center;
}

.section-contacts .contacts-title::after {
  display: none;
}

.contacts-desc {
  margin: 0 0 var(--space-md);
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: center;
}

.contacts-meta {
  margin: 0 0 var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text);
  text-align: center;
}

.contacts-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.contacts-intro-brand {
  display: none;
}

@media (min-width: 801px) {
  .section-contacts .contacts-grid {
    max-width: 1140px;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: stretch;
  }

  .contacts-intro {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    height: 100%;
  }

  .contacts-intro-brand {
    display: block;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
  }

  .contacts-brand-photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: clamp(240px, 30vw, 360px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  .section-contacts .contacts-form-card {
    height: 100%;
    box-sizing: border-box;
  }
}

.btn-contact-primary,
.btn-contact-secondary,
.btn-route {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-contact-primary {
  border: 2px solid var(--color-link);
  background: transparent;
  color: var(--color-link);
}

.btn-open-form-mobile {
  display: none;
}

.btn-contact-secondary,
.btn-route {
  border: 2px solid var(--color-link);
  background: transparent;
  color: var(--color-link);
}

.btn-contact-secondary:hover,
.btn-contact-primary:hover,
.btn-route:hover {
  background: var(--color-link);
  color: #fff;
  transform: translateY(-1px);
}

/* РЎС‚СЂР°РЅРёС†Р° В«РЎРїР°СЃРёР±РѕВ» РїРѕСЃР»Рµ РѕС‚РїСЂР°РІРєРё С„РѕСЂРјС‹ */
.thank-you-section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.thank-you-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.thank-you-title {
  margin: 0 0 var(--space-md);
  font-size: 1.5rem;
  color: var(--color-text);
}
.thank-you-text {
  margin: 0 0 var(--space-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.contacts-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  padding-bottom: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: visible;
  min-width: 0;
}

.contacts-form-card--yandex .yandex-form-iframe {
  display: block;
  min-height: 380px;
  height: 420px;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: none;
}

.request-form .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: -6px;
}

.form-required {
  color: var(--color-accent);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: justify;
  text-align-last: left;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-submit {
  margin-top: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.form-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: none;
}

input,
textarea {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 112px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139, 107, 122, 0.15);
}

.form-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0;
  line-height: 1.5;
}

.form-note code {
  background: var(--color-bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75em;
}

/* ===== РљР°СЂС‚Р° (РЅР° РІСЃСЋ С€РёСЂРёРЅСѓ) ===== */
.map-section {
  padding: 0;
  background: #fff;
}

.map-wrap {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.map-wrap--full {
  margin-top: 0;
  padding-top: var(--space-xl);
  border-top: 0;
  width: 100%;
  max-width: none;
  background: #fff;
}

.map-wrap--full .map-title.container {
  width: 92%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--space-md);
  margin-bottom: var(--space-md);
  text-align: center;
}

.map-wrap--full .map-container {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.map-wrap--full .map-container iframe {
  height: 420px;
  border-radius: 0;
}

.map-wrap--full .map-caption.container {
  width: 92%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-md) var(--space-md) var(--space-xl);
  text-align: center;
}

.map-title {
  margin: 0 0 var(--space-md);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: var(--radius-lg);
}

.map-caption {
  margin: var(--space-sm) 0 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.map-caption a {
  color: var(--color-link);
  text-decoration: none;
}

.map-caption a:hover {
  text-decoration: underline;
}

/* ===== РџРѕРґРІР°Р» ===== */
footer {
  padding: var(--space-lg) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  max-width: 720px;
  margin: 0 auto;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-disclaimer {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  text-align: center;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
  max-width: 38rem;
}

.footer-policy {
  margin: 0;
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xs) var(--space-md);
  width: 100%;
  max-width: 38rem;
  justify-items: center;
  text-align: center;
  align-self: center;
}

.footer-policy a {
  color: var(--color-text-muted);
  text-decoration: none;
  line-height: 1.45;
  text-align: center;
}

.footer-policy a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-policy-label {
  margin: var(--space-sm) 0 0;
  width: 100%;
  max-width: 38rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  align-self: center;
}

@media (max-width: 520px) {
  .footer-policy {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(640px, calc(100% - 24px));
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  padding: 16px 44px 16px 18px;
  z-index: 1200;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #2a2a2a;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.cookie-banner-link {
  display: inline-flex;
  align-items: center;
  color: #1a5fb4;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.cookie-banner-link:hover {
  color: #124a8f;
}

.cookie-banner-button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #3f312d 0%, #1f1917 100%);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner-button:hover {
  filter: brightness(1.05);
}

.cookie-banner-button:focus-visible {
  outline: 2px solid #1a5fb4;
  outline-offset: 2px;
}

.cookie-banner-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #8a8a8a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 3px 6px;
  z-index: 1;
}

.cookie-banner-close:hover {
  color: #4c4c4c;
}

@media (max-width: 900px) {
  .cookie-banner {
    width: calc(100% - 14px);
    bottom: 10px;
    padding: 14px 40px 14px 14px;
  }

  .cookie-banner-text {
    font-size: 0.92rem;
  }

  .cookie-banner-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cookie-banner-link {
    font-size: 0.9rem;
  }

  .cookie-banner-button {
    font-size: 0.92rem;
    padding: 10px 18px;
  }
}

/* ===== РђРґР°РїС‚РёРІ ===== */
@media (max-width: 900px) {
  .header-inner {
    display: flex;
    padding: var(--space-md) 0;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .nav-toggle {
    display: flex;
    order: 3;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    flex: none;
    margin-right: 0;
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-xs);
    order: 5;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .header-brand {
    order: 1;
    max-width: none;
    width: 100%;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .header-meta {
    order: 2;
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% - 56px);
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-md);
    justify-content: center;
  }

  .header-meta-item {
    min-width: 0;
  }

  .header-meta-item-hours {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .nav-menu a {
    padding: var(--space-md) var(--space-md);
    margin: 0 calc(-1 * var(--space-md));
    border-radius: 0;
  }

  .hero {
    min-height: clamp(440px, 62vh, 680px);
  }

  .hero-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 22px var(--space-md) max(6px, env(safe-area-inset-bottom, 0px));
    padding-top: 32px;
    box-sizing: border-box;
    background: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
  }

  .hero-buttons .button,
  .hero-buttons button {
    width: 100%;
    max-width: 248px;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 0.875rem;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
  }
}

@media (max-width: 1100px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .price-block {
    min-height: 0;
  }

  .price-table-scroll {
    overflow-x: hidden;
  }

  .price-table {
    table-layout: fixed;
    min-width: 0;
  }

  .price-table td:first-child {
    width: 72%;
  }

  .price-table td:last-child {
    width: 28%;
    white-space: nowrap;
    min-width: 0;
    word-break: normal;
    overflow-wrap: normal;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  .price-table td.price-value-note {
    white-space: normal;
    font-size: 0.8125rem;
    line-height: 1.35;
  }

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

  .gallery-case-grid--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .case-layout {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .case-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .section {
    padding: var(--space-xl) 0;
  }

  .hero-content {
    padding: 36px var(--space-sm) max(4px, env(safe-area-inset-bottom, 0px));
    padding-top: 36px;
  }

  .hero {
    min-height: clamp(420px, 58vh, 620px);
  }

  .hero-points {
    flex-direction: column;
    align-items: center;
  }

  .hero-points span {
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    text-align: center;
  }

  .works-preview-grid {
    grid-template-columns: 1fr;
  }

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

  .about {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .about-photo {
    transform: none;
    width: 100%;
  }

  .about img {
    max-width: 100%;
  }

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

  .reviews {
    flex-direction: column;
  }

  .reviews-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: start;
  }

  .reviews-selected {
    grid-template-columns: 1fr;
  }

  .review {
    min-width: 0;
  }

  .section-contacts .contacts-grid {
    grid-template-columns: 1fr;
  }

  .section-contacts.is-form-collapsed .contacts-form-card--yandex {
    display: none;
  }

  .contacts-form-card {
    padding: var(--space-lg);
  }

  .contacts-form-card--yandex .yandex-form-iframe {
    min-height: 900px;
    height: 900px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
    border-radius: var(--radius-sm);
  }

  .contacts-actions {
    grid-template-columns: 1fr;
  }

  .btn-open-form-mobile {
    display: inline-flex;
    width: 100%;
  }

  .case-layout {
    grid-template-columns: 1fr;
  }

  .case-thumbs {
    flex-direction: row;
  }

  .case-thumb {
    flex: 1;
  }

  .doctor-page {
    padding-top: var(--space-lg);
  }

  .doctor-page .case-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: var(--space-lg);
  }


  .doctor-page .case-breadcrumbs {
    margin-bottom: var(--space-md);
    font-size: 0.8125rem;
    text-align: center;
  }

  .doctor-page .case-header {
    margin-bottom: var(--space-lg);
    text-align: center;
  }

  .doctor-page .case-header h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
    line-height: 1.08;
    margin-bottom: var(--space-sm);
  }

  .doctor-page .case-header p {
    font-size: 1.02rem;
    line-height: 1.5;
    text-align: center;
    hyphens: none;
  }

  .doctor-page .case-main {
    width: min(100%, 440px);
    max-width: 440px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .doctor-page .case-main img {
    aspect-ratio: 4 / 5;
    object-position: center top;
  }

  .doctor-page .case-panel {
    padding: var(--space-lg);
    width: min(100%, 440px);
    max-width: 440px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .doctor-works {
    margin-top: var(--space-xl);
  }

  .doctor-works h2 {
    text-align: center;
  }

  .doctor-works h2::after {
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
  }

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

  .map-container iframe,
  .map-wrap--full .map-container iframe {
    height: 320px;
  }

  .price-toggle {
    align-self: center;
  }

  .header-meta-messenger {
    width: 20px;
    height: 20px;
    background-size: 14px 14px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 96%;
    padding: 0 var(--space-sm);
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .header-meta {
    font-size: 0.875rem;
  }

  .doctor-page .case-header h1 {
    font-size: clamp(1.7rem, 9vw, 2rem);
    letter-spacing: -0.02em;
  }

  .doctor-page .case-header p {
    font-size: 0.95rem;
  }

  .doctor-page .case-main figcaption {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
  }

  .doctor-page .case-panel {
    padding: var(--space-md);
  }

  .doctor-page .case-panel p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .doctor-works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .header-nav {
    gap: 0;
  }

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

  .price-table td {
    padding: var(--space-xs) var(--space-sm) var(--space-xs) 0;
    font-size: 0.875rem;
  }

  .price-table td:first-child {
    width: 70%;
  }

  .price-table td:last-child {
    width: 30%;
    font-size: 0.84rem;
  }

  .price-table td.price-value-note {
    font-size: 0.78rem;
  }

  #policy-main .policy-phone-link {
    display: block;
    margin: 6px 0;
  }
}

/* РћС‡РµРЅСЊ СѓР·РєРёРµ СЌРєСЂР°РЅС‹ (РЅР°РїСЂРёРјРµСЂ 320вЂ“360px) */
@media (max-width: 360px) {
  body {
    font-size: 15px;
  }

  .container {
    width: 94%;
    padding: 0 var(--space-xs);
  }

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

  .hero-buttons .button,
  .hero-buttons button {
    max-width: 100%;
  }

  .map-wrap--full .map-caption.container,
  .map-wrap--full .map-title.container {
    width: 94%;
    padding-left: var(--space-xs);
    padding-right: var(--space-xs);
  }

  .contacts-form-card--yandex .yandex-form-iframe {
    min-height: 980px;
    height: 980px;
  }
}

/* РџРѕРґРїРёСЃСЊ РїРѕРґ С„РѕСЂРјРѕР№: РїРѕ С†РµРЅС‚СЂСѓ, РєР°Рє РЅРёР¶РЅРёР№ Р±Р»РѕРє РЇРЅРґРµРєСЃ.Р¤РѕСЂРј РІ iframe */
.contacts-form-card .form-note {
  margin-top: var(--space-lg);
  margin-bottom: 0;
  text-align: center;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.65;
}

.contacts-form-card .form-note a {
  white-space: nowrap;
}


