/*
Theme Name: Vita
Author: Сергей Круглов
Author URI: https://kruglov.net
*/

:root {
  --color-brand-navy:  #0E4096;
  --color-brand-deep:  #1B3892;
  --color-brand-cyan:  #0EBAE5;
  --color-brand-green: #22A745;
  --gradient-brand: linear-gradient(135deg, #1B3892 0%, #0EBAE5 55%, #22A745 100%);
  --color-primary: #0E4096;
  --color-ink:           #1A1F2E;
  --color-ink-secondary: #556070;
  --color-ink-tertiary:  #8F9AA5;
  --color-border:        #DDE2E8;
  --color-surface:       #F5F7FA;
  --color-surface-alt:   #FFFFFF;
  --color-success-bg:   #EBF7EF;
  --color-success-text: #1A7A3E;
  --color-warning-bg:   #FDF3E0;
  --color-warning-text: #A26210;
  --color-error-bg:     #FCEAEA;
  --color-error-text:   #CC3838;
  --color-info-bg:      #EAF2FC;
  --color-info-text:    #1D5FAD;
  --font-sans: 'Golos Text', Arial, sans-serif;
  --text-display: clamp(2rem, 1rem + 2vw, 2.875rem);
  --text-h1: clamp(1.5rem, 0.8rem + 1.5vw, 2.125rem);
  --text-h2: clamp(1.25rem, 0.8rem + 0.8vw, 1.625rem);
  --text-h3: clamp(1.125rem, 1rem + 0.3vw, 1.25rem);
  --text-body-lg: clamp(1rem, 0.9rem + 0.2vw, 1.125rem);
  --text-body: 1rem;
  --text-body-sm: 0.875rem;
  --text-label: 0.75rem;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;
  --container-width: 1200px;
  --content-width:   700px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(14, 64, 150, 0.16);
  --shadow-card-hover: 0 2px 4px rgba(16, 24, 40, 0.05), 0 16px 40px -12px rgba(14, 64, 150, 0.22);
  --shadow-popover: 0 4px 12px rgba(16, 24, 40, 0.06), 0 12px 32px -12px rgba(14, 64, 150, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-surface-alt);
  line-height: 1.5;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease-out;
}

/* Телефоны: на десктопах не кликабельны, звонок только с мобильных.
   Кнопки (.btn, .mobile-cta__btn) остаются кликабельными. */
a[href^="tel:"]:not(.btn):not(.mobile-cta__btn) {
  pointer-events: none;
  cursor: default;
}

@media (max-width: 767px) {
  a[href^="tel:"]:not(.btn):not(.mobile-cta__btn) {
    pointer-events: auto;
    cursor: pointer;
  }
}

/* Top bar */
.site-header {
  display: contents;
}

.topbar {
  background: #2B57A3;
  color: #fff;
  font-size: var(--text-body-sm);
  padding: var(--space-3) 0;
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.topbar__hours {
  opacity: 0.85;
}

.topbar__phones {
  display: flex;
  gap: var(--space-5);
  margin-left: auto;
}

.topbar__phone a {
  color: #fff;
  font-weight: 600;
}

.topbar__city {
  opacity: 0.7;
  font-size: 0.75rem;
  margin-right: var(--space-1);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: var(--color-surface-alt);
  box-shadow: 0 1px 4px rgba(14, 64, 150, 0.06);
  z-index: 100;
}

.admin-bar .header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  .admin-bar .header {
    top: 0;
  }

  .admin-bar .site-header {
    top: 0;
  }
}

.header__inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: var(--space-4);
}

.header__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: var(--space-2) 0;
  flex-shrink: 0;
}

.header__logo img {
  display: block;
  max-height: 40px;
  width: auto;
}

.header__tagline {
  font-size: 0.75rem;
  color: var(--color-ink-secondary);
  line-height: 1.3;
  text-align: center;
}

.header__messengers {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.header__messenger {
  display: flex;
  transition: opacity 0.15s;
}

.header__messenger:hover {
  opacity: 0.7;
}

.header__messenger img {
  display: block;
  border-radius: 50%;
}

.header__nav {
  margin-left: auto;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}

.header__menu {
  display: flex;
  align-items: stretch;
  list-style: none;
  gap: var(--space-6);
}

.header__menu a {
  color: var(--color-ink);
  font-size: var(--text-body);
  font-weight: 600;
  padding: var(--space-2) 0;
  position: relative;
  transition: color 0.15s;
}

.header__menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width 0.2s ease-out, left 0.2s ease-out;
}

.header__menu a:hover,
.header__menu .current-menu-item > a {
  color: var(--color-primary);
}

.header__menu a:hover::after,
.header__menu .current-menu-item > a::after {
  width: 100%;
  left: 0;
}

.header__menu .menu-item-has-children {
  position: relative;
  display: flex;
  align-items: center;
}

.header__menu > li {
  display: flex;
  align-items: center;
}

.header__menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  list-style: none;
  background: var(--color-surface-alt);
  border: none;
  box-shadow: var(--shadow-popover);
  border-radius: var(--radius-sm);
  padding: var(--space-2) 0;
  min-width: 180px;
  z-index: 10;
}

.header__menu .menu-item-has-children:hover .sub-menu {
  display: block;
}

.header__menu .sub-menu a {
  display: block;
  padding: var(--space-2) var(--space-4);
  white-space: nowrap;
}

.header__menu .sub-menu a::after {
  display: none;
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: #0c357a;
}

/* Mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.08);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
}

.mobile-cta__inner {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.mobile-cta__btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 52px;
  padding: 6px 8px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}

.mobile-cta__btn--samara {
  background: var(--color-brand-green);
}

.mobile-cta__btn--tolyatti {
  background: var(--color-brand-deep);
}

.mobile-cta__label {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-cta__city {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
}

.mobile-cta__icon {
  flex: 0 0 52px;
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: 10px;
  text-decoration: none;
}

.mobile-cta__icon img {
  width: 36px;
  height: 36px;
  display: block;
}

/* Sections */
.section {
  padding: var(--space-7) 0;
}

/* Full-bleed тёмная секция сразу после main (hero): фон идёт встык
   со скруглённой карточкой hero — возвращаем просвет цвета страницы */
main + .pricing--dark,
main + .reviews--dark {
  margin-top: var(--space-7);
}

/* Компактный заголовок страницы (h1 + breadcrumbs) — в 2 раза ниже обычной секции */
.section--page-head {
  padding: var(--space-5) 0;
}

.section--page-head .section__title {
  margin-bottom: var(--space-2);
}

.section--page-head .breadcrumbs {
  margin-top: var(--space-2);
}

.section--page-head .breadcrumbs + .doctors__grid,
.section--page-head .breadcrumbs + .price-page__intro {
  margin-top: var(--space-4);
}

/* Breadcrumbs (Yoast SEO) */
.breadcrumbs {
  margin-top: var(--space-3);
  text-align: center;
}

.breadcrumbs__inner {
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
  line-height: 1.5;
  word-break: break-word;
}

.breadcrumbs__inner a {
  color: var(--color-ink-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.breadcrumbs__inner a:hover {
  color: var(--color-primary);
  border-bottom-color: currentColor;
}

.breadcrumbs__inner .breadcrumb_last {
  color: var(--color-ink);
  font-weight: 500;
}

/* Section head: title + breadcrumbs spacing */
.section__title + .breadcrumbs {
  margin-top: var(--space-3);
}

.breadcrumbs + .doctors__grid,
.breadcrumbs + .price-page__intro {
  margin-top: var(--space-5);
}

.doctor-single__info .breadcrumbs {
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
  text-align: left;
}

/* Карточка врача — крошки вынесены наверх секции */
.section--page-head > .container > .breadcrumbs:first-child {
  margin-top: 0;
  margin-bottom: var(--space-5);
  text-align: left;
}

@media (max-width: 767px) {
  .breadcrumbs__inner {
    font-size: 0.8125rem;
  }
}

/* Dark sections — светлые крошки */
.section--dark .breadcrumbs__inner,
.pricing--dark .breadcrumbs__inner,
.reviews--dark .breadcrumbs__inner {
  color: rgba(255, 255, 255, 0.75);
}

.section--dark .breadcrumbs__inner a,
.pricing--dark .breadcrumbs__inner a,
.reviews--dark .breadcrumbs__inner a {
  color: rgba(255, 255, 255, 0.85);
}

.section--dark .breadcrumbs__inner a:hover,
.pricing--dark .breadcrumbs__inner a:hover,
.reviews--dark .breadcrumbs__inner a:hover {
  color: #fff;
}

.section--dark .breadcrumbs__inner .breadcrumb_last,
.pricing--dark .breadcrumbs__inner .breadcrumb_last,
.reviews--dark .breadcrumbs__inner .breadcrumb_last {
  color: #fff;
}

/* Page content — Gutenberg / произвольный HTML (виджет Продокторов и т.п.) */
.page-content {
  padding-top: var(--space-6);
}

.section + .page-content {
  padding-top: 0;
}

.page-content .container {
  max-width: calc(var(--content-width) + var(--space-5) * 2);
}

.page-content .container > *:first-child {
  margin-top: 0;
}

.page-content h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.31;
  margin: 0 0 var(--space-4);
}

.page-content h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.4;
  margin: var(--space-6) 0 var(--space-3);
}

.page-content p {
  font-size: var(--text-body);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
  color: var(--color-ink);
}

.page-content ul,
.page-content ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
  font-size: var(--text-body);
  line-height: 1.6;
}

.page-content li {
  margin-bottom: var(--space-2);
}

.page-content li::marker {
  color: var(--color-primary);
  font-weight: 600;
}

.page-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  text-decoration-thickness: 2px;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.page-content strong {
  font-weight: 700;
}

/* Реквизиты — карточка без внешней рамки, только тень */
.req-card {
  background: var(--color-surface-alt);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  margin: 0 0 var(--space-4);
}

.req-card__title {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 var(--space-2);
}

.req-card__list {
  margin: 0;
}

.req-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border);
}

.req-card__row:first-child {
  border-top: none;
}

.req-card__row dt {
  color: var(--color-ink-secondary);
  font-size: var(--text-body);
  flex-shrink: 0;
}

.req-card__row dd {
  margin: 0;
  font-weight: 600;
  font-size: var(--text-body);
  text-align: right;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.req-card__sub {
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-secondary);
  margin: var(--space-5) 0 0;
}

@media (max-width: 767px) {
  .req-card {
    padding: var(--space-5);
  }

  .req-card__row {
    flex-direction: column;
    gap: var(--space-1);
  }

  .req-card__row dd {
    text-align: left;
  }
}

/* ProDoctorov виджет — центрируем и не даём прижаться влево */
.page-content #pd_widget_big[data-new] {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Fallback: если виджет по какой-то причине окажется вне .page-content */
.main > #pd_widget_big[data-new] {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Отзывы: стек виджетов Продокторов + Яндекс — единообразный вид, узкая колонка для чтения */
.reviews-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.reviews-stack #pd_widget_big[data-new] {
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Яндекс-виджет — приводим карточку к стилю Продокторов */
.reviews-stack .yandex-widget {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 800px;
  background: #fff;
  border: none;
  border-radius: 16px !important;
  box-shadow: var(--shadow-card) !important;
  box-sizing: border-box;
}

.reviews-stack .yandex-widget iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 13px !important;
  box-sizing: border-box;
}

.reviews-stack .yandex-widget__link {
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
  font-family: 'YS Text', sans-serif;
  font-size: 10px;
  color: #b3b3b3;
  text-decoration: none;
}

@media (max-width: 767px) {
  .reviews-stack {
    gap: var(--space-5);
  }

  .reviews-stack .yandex-widget {
    height: 600px;
  }
}

.section__title {
  font-size: var(--text-h2);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-5);
}

.section__text {
  font-size: var(--text-body-lg);
  color: var(--color-ink-secondary);
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto var(--space-7);
  line-height: 1.6;
}

.btn--lg {
  height: 56px;
  padding: 0 var(--space-7);
  font-size: var(--text-body);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: var(--space-7) 0;
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  max-width: calc(var(--container-width) - var(--space-5) * 2);
  margin: var(--space-6) auto 0;
}

.hero__bg {
  position: absolute;
  inset: -10px;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1.5px);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, var(--overlay-alpha, 0.25));
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__left {
  max-width: 60%;
  text-align: center;
  padding-right: var(--space-4);
}

.hero__right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  right: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__photo {
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__right-bottom {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: stretch;
}

.hero__caption {
  padding: var(--space-3) var(--space-4);
  background: rgba(95, 67, 52, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  text-align: right;
}

.hero__caption-text {
  font-size: var(--text-body-sm);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: var(--space-1);
  opacity: 0.95;
}

.hero__caption-author {
  font-size: var(--text-body-sm);
  font-weight: 600;
  line-height: 1.4;
}

.hero__caption-role {
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.hero__title {
  font-size: clamp(1.5rem, 0.9rem + 1.5vw, 2.375rem);
  font-weight: 700;
  line-height: 1.17;
  margin-bottom: var(--space-3);
}

.hero__subtitle {
  font-size: var(--text-body-lg);
  opacity: 0.9;
  margin-bottom: var(--space-7);
}

.hero__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: 500px;
  margin: 0 auto var(--space-6);
}

.hero__list li {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: var(--space-4);
  max-width: 500px;
  margin-inline: auto;
}

.hero__actions:has(.btn + .btn) {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero__actions .btn {
  height: auto;
  min-height: 48px;
  padding: 12px 16px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
}

.hero__actions .btn--ghost {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.hero__actions .btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.hero__right-bottom .pd_widget_column {
  text-align: right;
  pointer-events: auto;
}

.hero__right-bottom .pd_widget_column a {
  color: #fff;
}

/* Services */
.services {
  background: var(--color-surface-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.service-card {
  background: var(--color-surface-alt);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

a.service-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.service-card__title {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.service-card__text {
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
  line-height: 1.6;
}

.services__cta {
  text-align: center;
  padding: var(--space-6);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.services__cta-text {
  font-size: var(--text-body);
  color: var(--color-ink-secondary);
  margin-bottom: var(--space-4);
}

.services__phones {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  align-items: center;
  font-size: var(--text-body);
}

.services__phones a {
  font-weight: 600;
}

/* Features */
.features {
  background: var(--color-surface);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.feature-card {
  background: var(--color-surface-alt);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.feature-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.feature-card__head .feature-card__icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-card__head .feature-card__title {
  margin-bottom: 0;
}

/* Вариант Б: иконка без плашки — тонкий inline-значок в цвете бренда. */
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--color-primary);
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-card__icon .icon {
  width: 22px;
  height: 22px;
}

.feature-card__title {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feature-card__text {
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
  line-height: 1.6;
}

/* Doctors */
.doctors {
  background: var(--color-surface-alt);
}

.doctors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  justify-content: center;
}

.doctor-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3);
}

.doctor-card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface);
  margin-bottom: var(--space-4);
  transition: box-shadow 0.3s ease-out;
}

a.doctor-card__photo {
  cursor: pointer;
}

.doctor-card:hover .doctor-card__photo {
  box-shadow: 0 0 0 6px rgba(14, 64, 150, 0.12),
              0 14px 28px rgba(14, 64, 150, 0.18);
}

.doctor-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-out;
}

.doctor-card:hover .doctor-card__img {
  transform: scale(1.04);
}

.doctor-card__name {
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.doctor-card__role {
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
  margin-bottom: var(--space-2);
}

.doctor-card__link {
  font-size: var(--text-body-sm);
  font-weight: 600;
}

.doctors__all {
  text-align: center;
  margin-top: var(--space-7);
}

/* Doctor single */
.doctor-single__header {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
  align-items: flex-start;
}

.doctor-single__photo {
  width: 280px;
  flex-shrink: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.doctor-single__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-single__name {
  font-size: var(--text-h1);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.doctor-single__role {
  font-size: var(--text-body-lg);
  color: var(--color-ink-secondary);
}

.doctor-single__content {
  margin-bottom: var(--space-6);
  max-width: var(--content-width);
}

.doctor-single__prodoctorov {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: nowrap;
}

.doctor-single__prodoctorov-text {
  font-size: var(--text-body);
  color: var(--color-ink-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.doctor-single__prodoctorov-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  transition: opacity 0.15s;
}

.doctor-single__prodoctorov-link:hover {
  opacity: 0.75;
}

.doctor-single__prodoctorov-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 380px) {
  .doctor-single__prodoctorov {
    gap: var(--space-2);
  }

  .doctor-single__prodoctorov-logo {
    height: 22px;
  }

  .doctor-single__prodoctorov-text {
    font-size: var(--text-body-sm);
  }
}

.doctor-single__education h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-5);
}

.doctor-single__education p {
  font-size: var(--text-body);
  margin-bottom: var(--space-3);
  color: var(--color-ink-secondary);
}

.doctor-single__education strong {
  color: var(--color-ink);
}

.doctor-single__messengers {
  margin-top: var(--space-7);
  padding: var(--space-6);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.doctor-single__messengers p {
  font-size: var(--text-body-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.doctor-single__messenger-links {
  display: flex;
  gap: var(--space-4);
}

@media (max-width: 767px) {
  .doctor-single__header {
    flex-direction: column;
  }

  .doctor-single__photo {
    width: 200px;
  }

  .doctor-single__messenger-links {
    flex-direction: column;
  }
}

/* Licenses */
.licenses {
  background: var(--color-surface);
}

.licenses__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.license-card {
  aspect-ratio: 3 / 4;
  background: var(--color-surface-alt);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.license-card--link:hover {
  box-shadow: var(--shadow-card-hover);
}

.license-card--link {
  display: block;
  cursor: zoom-in;
}

/* Licenses: карусель с выглядывающим следующим слайдом */
.licenses-carousel {
  position: relative;
  margin-bottom: var(--space-5);
}

.licenses-carousel__viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: 4px 4px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.licenses-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.licenses-carousel__track {
  display: flex;
  gap: var(--space-4);
}

.licenses-carousel__slide {
  flex: 0 0 calc((100% - 4 * var(--space-4)) / 4.5);
  min-width: 0;
  scroll-snap-align: start;
  cursor: zoom-in;
}

.licenses-carousel__slide:hover {
  box-shadow: var(--shadow-card-hover);
}

/* Затенение справа намекает, что дальше есть ещё изображения */
.licenses-carousel__fade {
  position: absolute;
  top: 0;
  bottom: 12px;
  width: 72px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.licenses-carousel__fade--right {
  right: 0;
  background: linear-gradient(90deg, rgba(245, 247, 250, 0) 0%, var(--color-surface) 85%);
}

.licenses-carousel__fade--left {
  left: 0;
  background: linear-gradient(270deg, rgba(245, 247, 250, 0) 0%, var(--color-surface) 85%);
}

.licenses-carousel:not(.is-end) .licenses-carousel__fade--right {
  opacity: 1;
}

.licenses-carousel:not(.is-start) .licenses-carousel__fade--left {
  opacity: 1;
}

.licenses-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.licenses-carousel__nav[hidden] {
  display: none;
}

.licenses-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface-alt);
  color: var(--color-ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease-out, opacity 0.15s ease-out;
}

.licenses-carousel__btn:hover {
  background: var(--color-surface);
}

.licenses-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.licenses-carousel__counter {
  min-width: 56px;
  text-align: center;
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .licenses-carousel__slide {
    flex-basis: calc((100% - 2 * var(--space-4)) / 2.5);
  }
}

@media (max-width: 767px) {
  .licenses-carousel__slide {
    flex-basis: calc((100% - var(--space-4)) / 1.5);
  }

  .licenses-carousel__fade {
    width: 56px;
  }
}

/* Lightbox для лицензий */
.vita-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 18, 38, 0.86);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0.2s;
}

.vita-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.vita-lightbox__figure {
  margin: 0;
  max-width: min(920px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  touch-action: pan-y;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.vita-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.vita-lightbox__caption {
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  max-width: 70ch;
}

.vita-lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease-out;
}

.vita-lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.vita-lightbox__close {
  top: 16px;
  right: 16px;
}

.vita-lightbox__prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.vita-lightbox__next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  .vita-lightbox {
    padding: 12px;
  }

  .vita-lightbox__prev {
    left: 4px;
  }

  .vita-lightbox__next {
    right: 4px;
  }
}

.licenses__note {
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Section headers */
.section__head {
  max-width: var(--content-width);
  margin: 0 auto var(--space-5);
  text-align: center;
}

.section__overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section__overline::before,
.section__overline::after {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.35;
}

/* Buttons on dark */
.btn--white {
  background: #fff;
  color: var(--color-primary);
}

.btn--white:hover {
  background: #eef3ff;
  color: var(--color-primary);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

/* Dark sections */
.section--dark {
  color: #fff;
}

/* Pricing */
.pricing--dark {
  background: linear-gradient(150deg, #0C2A66 0%, #12489B 55%, #0E7FB8 100%);
  position: relative;
  overflow: hidden;
}

.pricing--dark::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 186, 229, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.pricing--dark .section__title {
  color: #fff;
}

.pricing--dark .section__text {
  color: rgba(255, 255, 255, 0.85);
}

.pricing--dark .section__overline {
  color: #8FD9FF;
}

.pricing--dark .section__overline::before,
.pricing--dark .section__overline::after {
  background: rgba(255, 255, 255, 0.55);
}

.pricing__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: stretch;
  margin-bottom: var(--space-6);
}

.price-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(8, 25, 60, 0.25);
  padding: var(--space-6);
}

.price-card--featured {
  background: linear-gradient(165deg, #14367F 0%, #0E4096 58%, #0C5E9E 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(14, 64, 150, 0.45);
}

.price-card__name {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.price-card__price {
  font-size: clamp(1.6rem, 1rem + 1.2vw, 2.2rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

.price-card__price-note {
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
  margin-bottom: var(--space-4);
}

.price-card--featured .price-card__price {
  color: #fff;
}

.price-card--featured .price-card__name {
  color: #fff;
}

.price-card--featured .price-card__price-note {
  color: rgba(255, 255, 255, 0.85);
}

.price-card__included {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.price-card--featured .price-card__included {
  border-top-color: rgba(255, 255, 255, 0.28);
}

.price-card__included-label {
  font-size: var(--text-body-sm);
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: var(--space-3);
}

.price-card--featured .price-card__included-label {
  color: #fff;
}

.price-card__included-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.price-card__included-list li {
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
  line-height: 1.5;
  padding-left: var(--space-5);
  position: relative;
}

.price-card--featured .price-card__included-list li {
  color: rgba(255, 255, 255, 0.92);
}

.price-card__included-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-success-text);
  font-weight: 700;
}

.price-card--featured .price-card__included-list li::before {
  color: #fff;
}

.pricing__night-note {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  font-size: var(--text-body);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: var(--space-3) var(--space-6);
  max-width: var(--content-width);
  margin: 0 auto var(--space-4);
  white-space: pre-line;
}

.pricing__more {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: var(--text-body);
}

.pricing__more a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  transition: border-color 0.15s;
}

.pricing__more a:hover {
  border-color: #fff;
}

/* Process */
.process__grid {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-7);
}

.process-step::before {
  content: '';
  position: absolute;
  left: 29px;
  top: 58px;
  bottom: 8px;
  width: 0;
  border-left: 2px dashed rgba(14, 64, 150, 0.30);
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step:last-child::before {
  display: none;
}

.process-step__num {
  grid-column: 1;
  grid-row: 1 / span 2;
  justify-self: start;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-surface-alt);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: var(--text-body);
  font-weight: 700;
}

.process-step__title {
  grid-column: 2;
  font-size: var(--text-h3);
  font-weight: 600;
  padding-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.process-step__text {
  grid-column: 2;
  font-size: var(--text-body);
  color: var(--color-ink-secondary);
  line-height: 1.6;
}

/* CTA call */
.cta-call__box {
  text-align: center;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
}

.cta-call__box--split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-7);
  text-align: left;
  background: linear-gradient(150deg, #0C2A66 0%, #12489B 60%, #0E7FB8 100%);
  padding: var(--space-7) var(--space-8);
}

.cta-call__title {
  font-size: var(--text-h1);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.cta-call__box--split .cta-call__title {
  font-size: var(--text-h2);
  margin-bottom: var(--space-3);
}

.cta-call__text {
  font-size: var(--text-body-lg);
  opacity: 0.92;
  max-width: var(--content-width);
  margin: 0 auto var(--space-6);
  line-height: 1.6;
}

.cta-call__box--split .cta-call__text {
  margin: 0;
  max-width: 560px;
}

.cta-call__phone {
  display: inline-block;
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}

.cta-call__box--split .cta-call__phone {
  font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem);
}

.cta-call__phone:hover {
  opacity: 0.85;
}

.cta-call__hint {
  margin-top: var(--space-3);
  font-size: var(--text-body-sm);
  opacity: 0.85;
}

.cta-call__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.cta-call__side .cta-call__hint {
  margin-top: 0;
  margin-bottom: var(--space-3);
}

.cta-call__btn {
  margin-top: var(--space-5);
  min-width: 220px;
}

/* FAQ */
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-surface-alt);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item__question {
  cursor: pointer;
  font-size: var(--text-body);
  font-weight: 600;
  padding: var(--space-5);
  padding-right: var(--space-8);
  list-style: none;
  position: relative;
  transition: color 0.15s;
}

.faq-item__question:hover {
  color: var(--color-primary);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '';
  position: absolute;
  right: var(--space-5);
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease-out;
}

.faq-item[open] .faq-item__question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item__answer {
  padding: var(--space-5);
  padding-top: 0;
  font-size: var(--text-body);
  color: var(--color-ink-secondary);
  line-height: 1.6;
}

.faq__note {
  text-align: center;
  margin-top: var(--space-6);
  font-size: var(--text-body);
  color: var(--color-ink-secondary);
}

.faq__phone {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Reviews */
.reviews--dark {
  background: linear-gradient(150deg, #0C2A66 0%, #12489B 55%, #0E7FB8 100%);
}

.reviews--dark .section__title {
  color: #fff;
}

.reviews--dark .section__text {
  color: rgba(255, 255, 255, 0.85);
}

.reviews--dark .section__overline {
  color: #8FD9FF;
}

.reviews--dark .section__overline::before,
.reviews--dark .section__overline::after {
  background: rgba(255, 255, 255, 0.55);
}

.reviews__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

/* SEO content */
.seo-content--band {
  background: var(--color-surface);
}

.seo-content__title {
  font-size: var(--text-h2);
  font-weight: 700;
  margin: 0;
}

.seo-content__body {
  max-width: var(--content-width);
  margin: 0 auto;
  font-size: var(--text-body-lg);
  line-height: 1.7;
  color: var(--color-ink);
}

.seo-content__body h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  margin: var(--space-7) 0 var(--space-4);
}

.seo-content__body h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-3);
}

.seo-content__body h4,
.seo-content__body h5 {
  font-size: var(--text-body);
  font-weight: 600;
  margin: var(--space-5) 0 var(--space-2);
}

.seo-content__body p {
  margin-bottom: var(--space-4);
}

.seo-content__body ul,
.seo-content__body ol {
  margin: 0 0 var(--space-4) var(--space-5);
}

.seo-content__body li {
  margin-bottom: var(--space-2);
}

.seo-content__body blockquote {
  border: none;
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-5);
  margin: var(--space-5) 0;
  color: var(--color-ink-secondary);
  font-style: italic;
}

.seo-content__body blockquote p {
  margin-bottom: 0;
}

.seo-content__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-5) 0;
}

.seo-content__author {
  max-width: var(--content-width);
  margin: var(--space-6) auto 0;
  text-align: center;
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
}

/* Price page */
.price-page__intro {
  max-width: var(--content-width);
  margin: 0 auto var(--space-7);
  font-size: var(--text-body-lg);
  line-height: 1.6;
  color: var(--color-ink-secondary);
}

.price-group {
  max-width: var(--content-width);
  margin: 0 auto var(--space-8);
}

.price-group__title {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.price-group__note {
  margin-bottom: var(--space-4);
  color: var(--color-ink-secondary);
}

.price-group__note p {
  margin-bottom: var(--space-2);
}

.price-group__list {
  list-style: none;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.price-group__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-alt);
}

.price-group__item:nth-child(even) {
  background: var(--color-surface);
}

.price-group__name {
  color: var(--color-ink);
}

.price-group__price {
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #0C2A66 0%, #12489B 58%, #0E7FB8 100%);
  color: #fff;
}

.footer::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 186, 229, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.footer__top-line {
  height: 3px;
  background: var(--gradient-brand);
}

.footer__main {
  position: relative;
  z-index: 1;
  padding: var(--space-8) 0 var(--space-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr 1.1fr;
  gap: var(--space-6) var(--space-7);
}

.footer__col--brand {
  min-width: 0;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.footer__logo img {
  display: block;
  max-height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-size: 0.75rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}

.footer__desc {
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-4);
  max-width: 320px;
}

.footer__messengers {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.footer__messenger {
  display: flex;
  border-radius: 50%;
  overflow: hidden;
  transition: opacity 0.15s, transform 0.15s;
}

.footer__messenger:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.footer__messenger img {
  display: block;
  border-radius: 50%;
}

.footer__title {
  font-size: var(--text-body-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__list a {
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.15s;
}

.footer__list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__phones {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.footer__phone {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__phone-city {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.footer__phone-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  transition: opacity 0.15s;
  pointer-events: none;
  cursor: default;
  text-decoration: none;
}

.footer__phone-number:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .footer__phone-number {
    pointer-events: auto;
    cursor: pointer;
  }

  .footer__phone-number:hover {
    opacity: 0.85;
  }
}

.footer__phone-hint {
  font-size: var(--text-label);
  color: rgba(255, 255, 255, 0.6);
}

.footer__worktime {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
}

.footer__worktime-title {
  display: block;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-1);
}

.footer__worktime p {
  font-size: var(--text-body-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.footer__worktime strong {
  color: #fff;
}

.footer__bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: var(--space-5) 0 var(--space-6);
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.footer__copy p {
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.footer__legal {
  margin-top: var(--space-1);
  font-size: var(--text-label) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  max-width: 560px;
}

.footer__meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer__meta a,
.footer__a11y {
  font-size: var(--text-body-sm);
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.15s, border-color 0.15s;
}

.footer__meta a:hover,
.footer__a11y:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.footer__a11y {
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.footer__disclaimer {
  font-size: var(--text-label);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-4);
}

.footer__subfooter {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.12);
  padding: var(--space-3) 0;
}

.footer__subfooter-inner {
  display: flex;
  justify-content: center;
  font-size: var(--text-label);
  color: rgba(255, 255, 255, 0.5);
}

.footer__subfooter a {
  color: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.15s, border-color 0.15s;
}

.footer__subfooter a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

/* Responsive */
@media (max-width: 1279px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .header__nav {
    display: none;
  }

  .header__toggle {
    display: flex;
    margin-left: auto;
  }

  .mobile-cta {
    display: block;
  }

  .topbar__phones {
    display: none;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .header__nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--color-surface-alt);
    box-shadow: 0 12px 28px rgba(14, 64, 150, 0.14);
    padding: var(--space-3) var(--space-5) var(--space-5);
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .header__nav.is-open .header__menu {
    flex-direction: column;
    gap: 0;
    min-width: 0;
  }

  .header__nav.is-open .header__menu > li {
    border-bottom: 1px solid var(--color-border);
    display: block;
    min-width: 0;
  }

  .header__nav.is-open .header__menu > li:last-child {
    border-bottom: none;
  }

  .header__nav.is-open .header__menu a {
    display: block;
    padding: var(--space-3) 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    min-width: 0;
    line-height: 1.35;
  }

  .header__nav.is-open .header__menu a::after {
    display: none;
  }

  /* Аккордеон: подразделы свёрнуты, раскрываются по тапу. */
  .header__nav.is-open .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .header__nav.is-open .menu-item-has-children > a {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: var(--space-2);
    font-weight: 700;
  }

  .header__nav.is-open .menu-item-has-children .sub-menu {
    display: none;
    flex-basis: 100%;
    position: static;
    border: none;
    box-shadow: none;
    padding: 0 0 var(--space-2) 0;
    margin: 0;
    min-width: 0;
    list-style: none;
  }

  .header__nav.is-open .menu-item-has-children.is-expanded > .sub-menu {
    display: block;
  }

  .header__nav.is-open .menu-item-has-children .sub-menu a {
    font-weight: 600;
    padding: var(--space-2) 0;
    padding-left: var(--space-4);
    color: var(--color-ink);
  }

  .submenu-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .submenu-toggle span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease-out;
  }

  .menu-item-has-children.is-expanded > .submenu-toggle span {
    transform: rotate(-135deg) translateY(-2px);
  }

  .header__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .header__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header__toggle span {
    transition: transform 0.2s ease-out, opacity 0.15s;
  }
}

@media (max-width: 1279px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctors__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .licenses__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-call__box--split {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-7) var(--space-6);
  }

  .cta-call__side {
    align-items: center;
    margin-top: var(--space-4);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7) var(--space-6);
  }

  .footer__col--brand {
    grid-column: 1 / -1;
  }

  .footer__desc {
    max-width: none;
  }
}

@media (max-width: 767px) {
  /* Топбар + шапка уходят вместе: общий sticky-контейнер прячется
   * целиком через transform (не меняет высоту страницы — нет петли
   * скролла и дрожания). По отдельности ничего не схлопывается. */
  .site-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease-out;
  }

  .site-header--hidden {
    transform: translateY(-100%);
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .topbar {
    position: static;
    padding: var(--space-2) 0;
  }

  .admin-bar .topbar {
    top: auto;
  }

  .topbar__inner {
    text-align: center;
    gap: var(--space-1);
  }

  .topbar__hours {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    padding: 0;
    opacity: 1;
  }

  /* Шапка внутри общего контейнера: свой sticky не нужен,
   * relative оставляем как якорь для открытого мобильного меню. */
  .site-header .header {
    position: relative;
    top: auto;
    transition: none;
  }

  .header__messengers {
    display: flex;
    margin-left: auto;
  }

  .header__tagline {
    display: none;
  }

  .header {
    transition: transform 0.3s ease-out;
  }

  .header--hidden {
    transform: translateY(-100%);
  }

  .hero {
    padding: var(--space-6) 0 0;
    margin: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .hero__overlay {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .hero__title {
    font-size: clamp(1.75rem, 1rem + 2vw, 2.375rem);
  }
 
  .hero__left {
  max-width: 500px;
    padding: 0 var(--space-4) var(--space-6);
  }

  .hero__right {
    position: relative;
    width: auto;
    margin-top: var(--space-5);
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
  }

  .hero__photo {
    position: static;
    transform: none;
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    overflow: hidden;
  }

  .hero__list {
    grid-template-columns: 1fr;
  }

  .hero__actions:has(.btn + .btn) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .doctors__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .cta-call__box--split {
    text-align: center;
  }

  .cta-call__box--split .cta-call__text {
    margin: 0 auto;
  }

  .reviews__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .reviews__actions .btn {
    width: 100%;
  }

  .cta-call__box {
    padding: var(--space-6) var(--space-4);
  }

  .pricing__night-note {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
  }

  .cta-call__btn {
    width: 100%;
    min-width: 0;
  }

  .licenses__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__phones {
    flex-direction: column;
    gap: var(--space-2);
  }

  .section {
    padding: var(--space-6) 0;
  }

  .section--page-head {
    padding: var(--space-4) 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  .footer__main {
    padding: var(--space-6) 0;
  }

  .footer__bottom-inner {
    flex-direction: column;
  }

  .footer__logo img {
    max-height: 36px;
  }
}

/* Cookie-баннер */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--color-brand-navy);
  color: #fff;
  box-shadow: 0 -12px 30px -12px rgba(14, 64, 150, 0.55);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.cookie-banner__text {
  margin: 0;
  font-size: var(--text-body-sm);
  line-height: 1.6;
}

.cookie-banner__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__text a:hover {
  color: var(--color-brand-cyan);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cookie-banner__actions .btn {
  font-weight: 600;
}

.cookie-banner .btn--white {
  background: #fff;
  color: var(--color-brand-navy);
}

.cookie-banner .btn--ghost-light {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

.cookie-banner .btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: #fff;
  color: #fff;
}

.cookie-banner .btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }

  .cookie-banner__text {
    line-height: 1.45;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
    min-height: 44px;
  }
}

/* Главная: услуги ссылками-карточками, документы лицензий, отступ стеков отзывов */
a.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.license-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.reviews-stack--gap {
  margin-top: var(--space-7);
}

/* Contacts */
.contacts {
  padding-top: var(--space-5);
}

.contacts__lead {
  margin-bottom: var(--space-6);
}

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-5);
}

.contacts__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.contact-card {
  background: var(--color-surface-alt);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5) var(--space-6);
}

.contact-card__title {
  font-size: var(--text-body-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-secondary);
  margin-bottom: var(--space-3);
}

.contact-card__row {
  font-size: var(--text-body-lg);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.contact-card__row:last-child {
  margin-bottom: 0;
}

.contact-card__phone {
  font-weight: 700;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  white-space: nowrap;
}

.contact-card__sep {
  color: var(--color-ink-tertiary);
  margin: 0 var(--space-1);
}

.contact-card__hint {
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
  line-height: 1.5;
  margin-top: var(--space-1);
}

.contact-card__schedule {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
}

.contact-card__schedule > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-body);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.contact-card__schedule > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-card__schedule dt {
  color: var(--color-ink-secondary);
}

.contact-card__schedule dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.contact-card__messengers {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.contacts__map {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}

.contacts__map iframe {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 520px;
  border: 0;
}

.contacts__route {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-body-sm);
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

@media (max-width: 900px) {
  .contacts__grid {
    grid-template-columns: 1fr;
  }

  .contacts__map iframe {
    min-height: 360px;
  }
}

/* About (О центре) */
.about {
  padding-top: var(--space-5);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-6);
  align-items: start;
  margin-bottom: var(--space-7);
}

.about__text {
  max-width: var(--content-width);
  font-size: var(--text-body);
  line-height: 1.6;
}

.about__lead {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  font-size: var(--text-body-lg);
}

.about__more {
  margin-top: var(--space-4);
  color: var(--color-ink-secondary);
}

.about__chief {
  background: var(--color-surface-alt);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  text-align: center;
}

.about__chief-photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface);
  margin-bottom: var(--space-4);
}

.about__chief-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__chief-name {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.about__chief-role {
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
  margin-bottom: var(--space-2);
}

.about__chief-link {
  font-size: var(--text-body-sm);
  font-weight: 600;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.about__fact {
  background: var(--color-surface-alt);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}

.about__fact-num {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.about__fact-text {
  font-size: var(--text-body-sm);
  color: var(--color-ink-secondary);
  line-height: 1.5;
}

.about__gallery-section {
  background: var(--color-surface);
}

.about__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.about__photo {
  margin: 0;
  display: block;
  text-decoration: none;
  cursor: zoom-in;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  background: var(--color-surface-alt);
  aspect-ratio: 4 / 3;
  transition: box-shadow 0.15s ease-out;
}

.about__photo:hover {
  box-shadow: var(--shadow-card-hover);
}

.about__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__chief {
    max-width: 420px;
  }

  .about__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .about__facts {
    grid-template-columns: 1fr;
  }
}
