/* ===========================================================================
   ArtSmile — перенос дизайна 1:1 (тёмная тема, акцент #e4bc8b, Manrope)
   =========================================================================== */

:root {
  --bg: #070e17;
  --bg-2: #0d1722; /* карточки */
  --bg-foot: #05090f;
  --accent: #e4bc8b;
  --text: #c0c0c0;
  --muted: #8a93a0;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.12);
  --line-acc: rgba(228, 188, 139, 0.3);
  --container: 1280px;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 55px 0;
}

/* Доступно скринридерам/поисковикам, скрыто визуально (для SEO-заголовков h1 в hero) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 38px;
  border-radius: 30px;
  border: 1px solid transparent;
  font:
    600 15px/1 'Manrope',
    sans-serif;
  cursor: pointer;
  transition: 0.2s;
  text-align: center;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: #d8ad77;
}
.btn--dark {
  background: var(--bg);
  color: var(--white);
}
.btn--dark:hover {
  background: #16202c;
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--line-acc);
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ---------- Заголовок секции + «призрачное» слово ---------- */
.section__head {
  position: relative;
  margin-bottom: 56px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.section__title {
  margin: 0;
  font-size: 38px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.3;
}
.section__ghost {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-58%);
  font-family: 'American Retro', Helvetica, Arial, sans-serif;
  font-size: 60px;
  font-weight: 400;
  text-transform: none;
  color: rgba(228, 188, 139, 0.32);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

/* =====================  ШАПКА  ===================== */
.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__top {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-block: 9px;
}
.logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 26px;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}
.main-nav {
  margin-left: 8px;
}
.main-nav__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.header-contacts {
  margin-left: auto;
}
.main-nav__list a {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.4px;
  transition: 0.2s;
  text-transform: uppercase;
}
.main-nav__list a:hover {
  color: var(--accent);
}

.header-contacts {
  display: flex;
  gap: 26px;
  text-align: right;
  font-size: 13px;
}
.header-contacts__addr {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--text);
}
.header-contacts__addr a {
  color: var(--muted);
  font-size: 12px;
}
.header-contacts__phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.header-contacts__phones a {
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.header-contacts__hours {
  color: var(--muted);
  font-size: 12px;
}

.site-header__services {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
}

/* мобильные действия (звонок + бургер) и сам бургер — скрыты на десктопе */
.header-mobile-actions {
  display: none;
}
.header-call {
  color: var(--white);
  display: inline-flex;
}
.header-call svg {
  width: 24px;
  height: 24px;
}
.burger {
  width: 30px;
  height: 22px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: 0.25s;
}
.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
.services-nav a {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.4px;
  transition: 0.2s;
  text-transform: uppercase;
}
.services-nav a:hover {
  color: var(--accent);
}
.services-nav .current-menu-item > a,
.main-nav__list .current-menu-item > a {
  color: var(--accent);
}

/* ---- выпадающие меню + кареты ---- */
.main-nav__list li,
.services-nav > li,
.sub-menu li {
  position: relative;
}
.menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.menu-item-has-children > a::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
  opacity: 0.85;
}
/* Закрытые подменю — display:none (не в потоке): иначе абсолютные дропдауны/флайауты
   правых пунктов растягивают документ вправо и дают горизонтальный скролл. */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  max-width: 320px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 60;
}
.menu-item:hover > .sub-menu {
  display: block;
}

/* 3-й уровень — флайаут вправо (меню кураторское, 1-й уровень короткий) */
.sub-menu .sub-menu {
  top: -9px;
  left: 100%;
}

/* правые пункты услуг: дропдаун выравниваем вправо, флайаут открываем влево — чтобы не уезжали за экран */
.services-nav > li:nth-last-child(-n + 3) > .sub-menu {
  left: auto;
  right: 0;
}
.services-nav > li:nth-last-child(-n + 3) .sub-menu .sub-menu {
  left: auto;
  right: 100%;
}
/* правый пункт основного меню (Контакты/Клиника) — тоже вправо */
.main-nav__list > li:nth-last-child(-n + 2) > .sub-menu {
  left: auto;
  right: 0;
}
.sub-menu .menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sub-menu .menu-item-has-children > a::after {
  transform: rotate(-45deg);
  margin-top: 0;
}
.sub-menu a {
  display: block;
  padding: 9px 20px;
  color: var(--text);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.sub-menu a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

/* ===================== МОБИЛЬНОЕ МЕНЮ (бургер) ===================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.mobile-menu:not([hidden]) {
  display: block;
}
.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.6);
  opacity: 0;
  transition: opacity 0.28s;
}
.mobile-menu.is-open .mobile-menu__overlay {
  opacity: 1;
}
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(370px, 88vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line-acc);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 22px 30px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__title {
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}
.mobile-menu__close {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu__close:hover {
  color: var(--accent);
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav__list--sec {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.mobile-nav .menu-item {
  position: relative;
}
/* подчёркивание — на строке-ссылке (а не на li-контейнере), иначе у пунктов с подменю двойная линия */
.mobile-nav a {
  display: block;
  padding: 13px 40px 13px 0;
  color: var(--white);
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover {
  color: var(--accent);
}
.mobile-nav__list--sec > .menu-item > a {
  color: var(--muted);
  font-size: 13px;
  padding: 10px 40px 10px 0;
}
.mobile-nav > .mobile-nav__list > .menu-item > a {
  color: var(--white);
  text-transform: uppercase;
  font-size: 14px;
}
.mobile-nav__toggle {
  position: absolute;
  top: 0;
  right: -6px;
  width: 46px;
  height: 48px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav__toggle::before {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -3px;
}
.mobile-nav .menu-item.is-open > .mobile-nav__toggle {
  color: var(--accent);
}
.mobile-nav .menu-item.is-open > .mobile-nav__toggle::before {
  transform: rotate(-135deg);
  margin-top: 3px;
}
/* подменю в мобильном — только аккордеон по клику; hover-правило десктопа нейтрализуем
   (селектор .menu-item > .sub-menu той же специфичности, но ниже по коду -> перебивает :hover) */
.mobile-nav .menu-item > .sub-menu {
  position: static;
  display: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0 0 6px 14px;
}
.mobile-nav .menu-item.is-open > .sub-menu {
  display: block;
}
.mobile-nav .sub-menu a {
  padding: 10px 40px 10px 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: none;
  white-space: normal;
}
.mobile-nav .sub-menu a:hover {
  color: var(--accent);
  background: none;
}
.mobile-nav .menu-item-has-children > a::after {
  display: none;
}

.mobile-menu__foot {
  margin-top: 20px;
  padding-top: 18px;
}
.mobile-menu__phone {
  display: block;
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}
.mobile-menu__foot p {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}
.mobile-menu__cta {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}
body.menu-open {
  overflow: hidden;
}

/* переключение десктоп <-> бургер */
@media (max-width: 1180px) {
  .main-nav,
  .header-contacts,
  .site-header__services {
    display: none;
  }
  .header-mobile-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
  }
  .site-header__top {
    gap: 16px;
  }
}

/* =====================  HERO  ===================== */
.hero {
  padding: 24px 0 40px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
.hero--with-media .hero__inner {
  grid-template-columns: 47% 53%;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
}
.hero__card {
  position: relative;
  color: var(--bg);
  padding: 44px 48px 48px;
  display: flex;
  flex-direction: column;
}
/* карточка + фото — единый блок без зазора (скругления по внешним углам) */
.hero--with-media .hero__card {
  border-radius: 24px 0 0 24px;
}
.hero--with-media .hero__media {
  /* border-radius: 0 24px 24px 0; */
}
/* Интро без фото: тоже белая карточка (иначе тёмный текст сливается с фоном),
   высота по контенту — не занимает лишнего места */
.hero:not(.hero--with-media):not(.hero--bg) .hero__inner {
  background: var(--white);
  border-radius: 24px;
}
.hero:not(.hero--with-media) .hero__card {
  min-height: 0;
  border-radius: 24px;
}

/* Интро с фото-фоном (первая картинка контента) + затемнение для читаемости */
.hero--bg .hero__inner {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  overflow: hidden;
  min-height: 300px;
}
.hero--bg .hero__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(7, 14, 23, 0.88) 0%,
    rgba(7, 14, 23, 0.6) 55%,
    rgba(7, 14, 23, 0.35) 100%
  );
}
.hero--bg .hero__card {
  position: relative;
  z-index: 1;
  justify-content: center;
  color: #fff;
}
.hero--bg .hero__title {
  color: #fff;
}
.hero--bg .hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
}
.hero--bg .breadcrumbs,
.hero--bg .breadcrumbs a,
.hero--bg .breadcrumbs span,
.hero--bg .breadcrumbs .breadcrumb_last,
.hero--bg .breadcrumbs span:last-child {
  color: rgba(255, 255, 255, 0.75);
}
.hero .breadcrumbs {
  color: #8a8a8a;
  font-size: 14px;
  margin-bottom: 40px;
}
.hero .breadcrumbs a {
  color: #8a8a8a;
}
.hero .breadcrumbs .breadcrumb_last,
.hero .breadcrumbs span:last-child {
  color: #8a8a8a;
}
.hero__title {
  font-size: 34px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--bg);
  margin: 0 0 18px;
}
.hero:not(.hero--with-media) .hero__title {
  max-width: 60%;
}
.hero__subtitle {
  color: #3a3a3a;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 26px;
}
.hero:not(.hero--with-media) .hero__subtitle {
  max-width: 52%;
}
.hero__cta {
  margin-top: auto;
  align-self: flex-start;
}
.hero__media {
  /* border-radius: 24px; */
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =====================  ЦЕНЫ  ===================== */
.section--prices {
  padding-top: 72px;
}
.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.price-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: 16px;
  padding: 18px 26px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: 0.2s;
}
.price-list__name {
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  transition: 0.2s;
}
.price-list__value {
  border: 1px solid var(--line-acc);
  border-radius: 22px;
  padding: 7px 22px;
  color: var(--white);
  white-space: nowrap;
  font-weight: 600;
  transition: 0.2s;
}
/* hover: подсветка строки и заливка пилюли цены */
a.price-list__item:hover {
  border-color: var(--accent);
}
a.price-list__item:hover .price-list__name {
  color: var(--white);
}
a.price-list__item:hover .price-list__value {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* страница общего прайса /price/ — категории боксами */
.price-cat {
  border: 1px solid var(--line-acc);
  border-radius: var(--radius);
  padding: 30px 36px;
  margin-bottom: 28px;
}
.price-cat__title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-acc);
  text-transform: none;
}
.price-cat .price-list__item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 16px 4px;
  margin: 0;
}
.price-cat .price-list__item:last-child {
  border-bottom: 0;
}
.price-cat a.price-list__item:hover .price-list__name {
  color: var(--white);
}
@media (max-width: 600px) {
  .price-cat {
    padding: 22px 18px;
  }
}

/* =====================  ПРЕИМУЩЕСТВА (полноширинная плашка)  ===================== */
.section--advantages {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  padding: 56px 0;
}
.section--advantages::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('../img/adv-pattern.svg') no-repeat center / cover;
  opacity: 0.5;
}
.advantages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.advantage__icon {
  width: 64px;
  height: 64px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a2433;
  margin-bottom: 18px;
}
.advantage__icon svg {
  width: 32px;
  height: 32px;
}
.advantage__title {
  color: #1a2433;
  text-transform: none;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.advantage__text {
  color: #50442f;
  font-size: 14px;
  margin: 0;
  max-width: 240px;
}

/* =====================  ТЕЛО (контент)  ===================== */
.section--body {
  padding-top: 20px;
}

/* Простая контентная страница (fallback index.php): хлебные крошки + заголовок + тело */
.section--page {
  padding: 36px 0 64px;
}
.section--page .breadcrumbs {
  color: #8a8a8a;
  font-size: 14px;
  display: block;
  margin-bottom: 22px;
}
.section--page .breadcrumbs a {
  color: #8a8a8a;
}
.page-article {
  max-width: 980px;
}
.page-title {
  color: var(--white);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section--page .entry-content {
  font-size: 15.5px;
  line-height: 1.7;
}
.section--page .entry-content h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 44px 0 18px;
}
.section--page .entry-content h3 {
  font-size: 18px;
  margin: 26px 0 10px;
}
.section--page .entry-content p {
  margin: 0 0 16px;
}
.section--page .entry-content ul {
  margin: 0 0 18px;
}
.section--page .entry-content li {
  margin-bottom: 8px;
}
.entry-content {
  color: #f1f1f1;
  font-size: 15px;
  line-height: 1.5;
}
.entry-content h2 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 38px;
  font-weight: 400;
  line-height: 1.3;
  margin: 28px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.entry-content h3 {
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  margin: 24px 0 12px;
}
.entry-content p {
  margin: 0 0 14px;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 14px;
  padding-left: 28px;
}
.entry-content li {
  margin-bottom: 4px;
}
.entry-content a {
  color: var(--accent);
  text-decoration: underline;
}
/* Прайс-карточки внутри тела не должны наследовать подчёркивание ссылок */
.entry-content a.price-list__item {
  text-decoration: none;
  color: inherit;
}
/* Картинки тела — блоки-figure. Ширину задаём ФИГУРЕ (по классу выравнивания),
   img = 100% с !important (бьём возможный инлайн width:503px из старого контента). */
.entry-content figure {
  margin: 0 0 24px;
}
.entry-content figure.alignright {
  float: right;
  width: 46%;
  max-width: 46%;
  margin: 4px 0 24px 36px;
}
.entry-content figure.alignleft {
  float: left;
  width: 46%;
  max-width: 46%;
  margin: 4px 36px 24px 0;
}
.entry-content figure img {
  width: 100% !important;
  height: auto !important;
  border-radius: 16px;
  display: block;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.entry-content::after {
  content: '';
  display: block;
  clear: both;
}
.entry-content strong,
.entry-content b {
  color: #e6e6e6;
}

/* Блок «Читайте также» — перелинковка лендингов */
.section--related {
  padding-top: 0;
}
.related-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
@media (max-width: 700px) {
  .related-links {
    grid-template-columns: 1fr;
  }
}
.related-links__item {
  margin: 0;
}
.related-links__item a {
  display: inline-block;
  color: #f1f1f1;
  text-decoration: none;
  border-bottom: 1px solid rgba(228, 188, 139, 0.4);
  padding: 4px 0;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.related-links__item a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Блок «Этапы» (SCF-блок artsmile/steps) */
.steps-block {
  margin: 40px 0;
  clear: both;
}
.steps-block .section__head {
  margin-bottom: 30px;
}
/* заголовок блока не должен наследовать рамку/отступы от .entry-content h2 */
.steps-block .section__title {
  border: 0;
  padding: 0;
  margin: 0;
}
.step__title {
  border: 0;
  padding: 0;
}
.entry-content .steps,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  margin-bottom: 24px;
}
.step__title {
  color: var(--white);
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}
.step__num {
  color: var(--accent);
}
.step__text {
  color: #f1f1f1;
  font-size: 15px;
  line-height: 1.5;
}
.step__text p {
  margin: 0 0 8px;
}

/* =====================  CTA (полноширинная плашка)  ===================== */
.section--cta {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  padding: 54px 0;
}
.section--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url('../img/adv-pattern.svg') no-repeat center / cover;
  opacity: 0.5;
}
.cta__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 50px;
  align-items: center;
  color: var(--bg);
}
.cta__title {
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--bg);
  margin: 0 0 12px;
}
.cta__lead {
  color: #4a3a26;
  margin: 0 0 24px;
  max-width: 560px;
}
.cta-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta-form__input {
  flex: 1 1 180px;
  padding: 14px 22px;
  border: none;
  border-radius: 30px;
  background: #fff;
  color: #222;
  font:
    400 15px 'Manrope',
    sans-serif;
}
.cta-form__row .btn {
  flex: 0 0 auto;
}
.cta-form__consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  color: #4a3a26;
  font-size: 13px;
  cursor: pointer;
}
.cta-form__consent input {
  width: 18px;
  height: 18px;
  accent-color: #1a2433;
  flex: 0 0 auto;
}
.cta__phones {
  margin-top: 24px;
}
.cta__phones a {
  display: block;
  color: var(--bg);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.cta__media img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* ----- форма записи (CF7): общий вид ----- */
.appoint-form .wpcf7-form-control-wrap {
  display: block;
}
.appoint-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.appoint-form input[type='text'],
.appoint-form input[type='tel'] {
  width: 100%;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 30px;
  background: #fff;
  color: #222;
  font:
    400 15px 'Manrope',
    sans-serif;
}
.appoint-form input::placeholder {
  color: #8a8a8a;
}
.appoint-form .wpcf7-submit {
  grid-column: 1 / -1;
  padding: 15px 34px;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  background-color: var(--bg);
  color: #fff;
  font:
    700 15px 'Manrope',
    sans-serif;
  /* только цвет — иначе background-position спиннера анимируется и «выезжает» слева */
  transition: background-color 0.2s;
}
.appoint-form .wpcf7-submit:hover {
  background-color: #0f1722;
}

/* согласие — сразу под кнопкой, чекбокс по верхнему краю текста */
.appoint-form .wpcf7-form-control-wrap[data-name='consent'] {
  margin-top: 14px;
}
.appoint-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}
.appoint-form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin: 0;
}
.appoint-form .wpcf7-acceptance input {
  margin: 2px 0 0;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #1a2433;
}
.appoint-form .wpcf7-list-item-label {
  font-size: 13px;
  line-height: 1.45;
  color: #4a3a26;
}
/* CTA (бежевый фон): согласие тёмным, чтобы не сливалось */
.section--cta .appoint-form .wpcf7-list-item-label,
.section--cta .appoint-form .wpcf7-list-item-label a {
  color: var(--bg);
}
.section--cta .appoint-form .wpcf7-list-item-label a {
  text-decoration: underline;
  font-weight: 600;
}

/* валидация без «прыжков»: штатные сообщения/спиннер CF7 скрыты (показываем тост),
   у невалидных полей — только красная рамка (не двигает соседей) */
.wpcf7-spinner,
.wpcf7-response-output,
.appoint-form .wpcf7-not-valid-tip {
  display: none !important;
}
.appoint-form input.wpcf7-not-valid,
.appoint-form .wpcf7-not-valid input {
  border-color: #c0392b !important;
}

/* тост-сообщение формы (фиксированный — верстку не сдвигает) */
.appoint-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  max-width: 92vw;
  z-index: 1100;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    transform 0.25s,
    visibility 0.25s;
  pointer-events: none;
}
.appoint-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.appoint-toast--ok {
  background: #2e7d52;
}
.appoint-toast--err {
  background: #c0392b;
}

/* ----- прелоадер в кнопке отправки (CF7 вешает .submitting на форму).
   У <input> нет ::after, поэтому спиннер — SVG-фон (с собственной анимацией вращения). ----- */
.wpcf7-form.submitting .wpcf7-submit {
  color: transparent !important;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linecap='round' stroke-dasharray='80 130'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 24px 24px !important;
}
/* на бежевых кнопках (модалка/контакты) — тёмный спиннер.
   repeat/position/size повторяем здесь: базовое `background: var(--accent)` (шорткат)
   идёт ниже по коду и сбрасывал no-repeat → спиннер тайлился. */
.appoint-modal .wpcf7-form.submitting .wpcf7-submit,
.legal-card--form .wpcf7-form.submitting .wpcf7-submit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%231a1a1a' stroke-width='5' stroke-linecap='round' stroke-dasharray='80 130'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}

/* ----- модалка статуса (успех/ошибка) ----- */
.status-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.status-modal:not([hidden]) {
  display: flex;
}
.status-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(3px);
}
.status-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.status-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s;
}
.status-modal__close:hover {
  color: var(--accent);
}
.status-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  margin-bottom: 18px;
  font-size: 32px;
  font-weight: 700;
}
.status-modal.is-ok .status-modal__icon {
  background: rgba(46, 125, 82, 0.16);
  color: #3fae73;
}
.status-modal.is-ok .status-modal__icon::before {
  content: '\2713';
}
.status-modal.is-err .status-modal__icon {
  background: rgba(192, 57, 43, 0.16);
  color: #e05c4e;
}
.status-modal.is-err .status-modal__icon::before {
  content: '\2715';
}
.status-modal__title {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--white);
}
.status-modal__text {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.status-modal__ok {
  min-width: 150px;
  justify-content: center;
}
@media (max-width: 480px) {
  .status-modal__dialog {
    padding: 34px 22px 26px;
  }
}

/* ----- 404 (класс error-page, НЕ error404 — иначе совпал бы с body.error404) ----- */
.section--404 {
  padding: 60px 0 90px;
}
.error-page {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}
.error-page__ghost {
  font-family: 'American Retro', Helvetica, sans-serif;
  font-size: clamp(120px, 22vw, 240px);
  line-height: 1;
  color: rgba(228, 188, 139, 0.14);
  margin-bottom: -20px;
  pointer-events: none;
}
.error-page__title {
  font-size: clamp(26px, 4vw, 40px);
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 16px;
}
.error-page__text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 auto 30px;
  max-width: 540px;
}
.error-page__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.error-page__links {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.error-page__links a {
  color: var(--accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.error-page__links a:hover {
  color: var(--white);
}

/* ----- модальное окно записи ----- */
.appoint-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.appoint-modal:not([hidden]) {
  display: flex;
}
.appoint-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(3px);
}
.appoint-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.appoint-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s;
}
.appoint-modal__close:hover {
  color: var(--accent);
}
.appoint-modal__title {
  font-size: 23px;
  font-weight: 700;
  margin: 0;
}
.appoint-modal__service {
  color: var(--accent);
  font-size: 14px;
  line-height: 1.4;
  margin: 8px 0 0;
}
.appoint-modal__form {
  margin-top: 22px;
}
body.appoint-open {
  overflow: hidden;
}

/* форма внутри модалки (тёмный фон): поля в столбик, кнопка-акцент */
.appoint-modal .appoint-form__row {
  grid-template-columns: 1fr;
}
.appoint-modal .appoint-form .wpcf7-submit {
  background-color: var(--accent);
  color: #1a1a1a;
}
.appoint-modal .appoint-form .wpcf7-submit:hover {
  background-color: #e9c89a;
}
.appoint-modal .appoint-form .wpcf7-list-item-label {
  color: var(--muted);
}
.appoint-modal .appoint-form .wpcf7-acceptance input {
  accent-color: var(--accent);
}

/* =====================  ВРАЧИ  ===================== */
.doctors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.doctor {
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.doctor__link {
  color: inherit;
}
.doctor__photo img {
  border-radius: 14px;
  width: 100%;
  object-fit: cover;
}
.doctor__name {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 700;
  margin: 16px 0 6px;
}
.doctor__position {
  color: var(--text);
  font-size: 13px;
  margin: 0 0 4px;
}
.doctor__exp {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}
.doctor__btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 26px;
  font-size: 14px;
}

/* архив врачей */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .doctors-grid {
    grid-template-columns: 1fr;
  }
}
.doctor--card .doctor__photo img {
  aspect-ratio: 4/5;
}

/* карточка врача: hero-мета + bio + дипломы */
.doctor-meta {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doctor-meta li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 15px;
}
.doctor-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero--doctor .hero__media--doctor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* border-radius: var(--radius); */
}
.doctor-bio {
  /* max-width: 900px; */
}
.cert__item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-acc);
  background: #fff;
}
.cert__item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  background: #fff;
}

/* =====================  РАБОТЫ (архив)  ===================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}
.work-card {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-card__img {
  display: block;
}
.work-card__img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
  cursor: zoom-in;
}
.work-card__img:hover img {
  transform: scale(1.08);
}
.work-card__cap {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.work-card__name {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 15px;
}
.work-card__service {
  color: var(--muted);
  font-size: 13px;
}

/* =====================  СТАТЬИ (блог)  ===================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 960px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
.art-card {
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.art-card__link {
  color: inherit;
  display: block;
}
.art-card__img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.art-card__title {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  margin: 18px 18px 10px;
}
.art-card__link:hover .art-card__title {
  color: var(--accent);
}
.art-card__foot {
  margin-top: auto;
  padding: 0 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.art-card__date {
  color: var(--muted);
  font-size: 13px;
}
.art-card__more {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.art-card__more:hover {
  text-decoration: underline;
}

/* статья (single) */
.article-narrow {
  max-width: none;
}
.article__title {
  font-size: clamp(28px, 4vw, 42px);
  margin: 14px 0 10px;
}
.article__meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.article__cover {
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
}
.article__cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* пагинация */
.pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line-acc);
  border-radius: 10px;
  color: var(--text);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}

/* =====================  ОТЗЫВЫ  ===================== */
.reviews,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
.review {
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: 16px;
  padding: 26px;
}
.review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.review__author {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 15px;
}
.review__rating {
  color: #f0c14b;
  letter-spacing: 1px;
}
.review__service {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}
.review__text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* =====================  ГАЛЕРЕЯ (работы)  ===================== */
.gallery__item {
  margin: 0;
}
.gallery__item a {
  display: block;
  overflow: hidden;
  border-radius: 16px;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  transition: transform 0.45s ease;
}
.gallery__item a:hover img {
  transform: scale(1.1);
}

/* =====================  ПОДУСЛУГИ  ===================== */
.subservice {
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: 0.2s;
}
.subservice:hover {
  border-color: var(--accent);
}
.subservice__img {
  display: block;
  overflow: hidden;
}
.subservice__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.subservice:hover .subservice__img img {
  transform: scale(1.08);
}
.subservice__title {
  padding: 18px 18px 0;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 16px;
}
.subservice__btn {
  margin: auto 18px 18px;
  align-self: flex-start;
  padding: 10px 26px;
  font-size: 13px;
}

/* =====================  СЛАЙДЕР (Splide)  ===================== */
.splide {
  position: relative;
}
.splide__arrow {
  width: 44px;
  height: 44px;
  opacity: 1;
  background: #fff;
  border: none;
  border-radius: 50%;
}
.splide__arrow:hover {
  background: var(--accent);
}
.splide__arrow svg {
  width: 15px;
  height: 15px;
  fill: #1a2433;
}
.splide__arrow:hover svg {
  fill: #fff;
}
.splide__arrow:disabled {
  opacity: 0.4;
}
.splide__slide .doctor,
.splide__slide .review {
  height: 100%;
}

/* Вариант 1 (по умолчанию): стрелки сверху-справа, в выделенной зоне над слайдами.
   padding-top слайдера = место под стрелки с отступами и от заголовка, и от слайдов. */
.js-slider:not(.splide--side) {
  padding-top: 70px;
}
.section--doctors .section__head,
.section--reviews .section__head,
.section--subservices .section__head {
  margin-bottom: 30px;
}
.splide__arrows {
  position: absolute;
  top: 8px;
  right: 0;
  display: flex;
  gap: 12px;
}
.splide__arrow--prev,
.splide__arrow--next {
  position: static;
  transform: none;
}

/* Вариант 2 (для «Работ»): стрелки по бокам, по центру слайдов */
.splide--side .splide__arrows {
  position: static;
}
.splide--side .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.splide--side .splide__arrow--prev {
  left: 12px;
}
.splide--side .splide__arrow--next {
  right: 12px;
}

/* =====================  ГЛАВНАЯ  ===================== */
/* hero — на весь экран, контент по центру, прозрачная шапка поверх */
.home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s;
}
/* затемняющий скрим под прозрачной шапкой — чтобы текст читался поверх любого фото hero */
.home .site-header:not(.is-stuck)::before {
  content: '';
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 200%;
  background: linear-gradient(to bottom, rgba(6, 12, 20, 0.75), rgba(6, 12, 20, 0));
  pointer-events: none;
  z-index: -1;
}
.home .site-header.is-stuck {
  position: fixed;
  background: var(--bg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #0a121d center / cover no-repeat;
  text-align: center;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 14, 23, 0.72);
}
.home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.home-hero__pre {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 14px;
  margin: 0 0 18px;
}
.home-hero__logo {
  max-width: 560px;
  width: 80%;
  margin: 0 auto 18px;
}
.home-hero__logo-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 64px;
  color: #fff;
  margin: 0 0 14px;
}
.home-hero__sub {
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 14px;
  margin: 0 0 34px;
}
.home-hero__btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero--doctor .hero__inner {
  grid-template-columns: 2fr 1fr;
}

/* рассрочка — широкий баннер-картинка */
.section--installment {
  padding: 30px 0;
}
.inst-banner {
  display: block;
  border-radius: 24px;
  overflow: hidden;
}
.inst-banner img {
  width: 100%;
  display: block;
}

/* С чем помочь */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.svc-card {
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--white);
  transition: 0.2s;
}
.svc-card:hover {
  border-color: var(--accent);
}
.svc-card__img {
  display: block;
  overflow: hidden;
}
.svc-card__img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.svc-card:hover .svc-card__img img {
  transform: scale(1.06);
}
.svc-card__title {
  padding: 16px 18px 0;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
}
.svc-card__btn {
  margin: 14px 18px 18px;
  align-self: flex-start;
  padding: 9px 22px;
  font-size: 13px;
}
.svc-form {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  color: var(--bg);
}
.svc-form__title {
  color: var(--bg);
  text-transform: uppercase;
  font-size: 18px;
  margin: 0 0 16px;
}
.svc-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.svc-form input[type='text'],
.svc-form input[type='tel'] {
  padding: 12px 18px;
  border: none;
  border-radius: 24px;
  background: #fff;
  color: #222;
  font:
    400 14px 'Manrope',
    sans-serif;
}
.svc-form__consent {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #4a3a26;
  align-items: flex-start;
}
.svc-form__consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--bg);
}
.svc-form {
  justify-content: space-between;
}
.svc-form__lead {
  color: #4a3a26;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.svc-form__btn {
  align-self: flex-start;
}

/* контакты */
.contacts-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: 16px;
  padding: 28px;
}
.contact-card__icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-acc);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.contact-card__icon svg {
  width: 22px;
  height: 22px;
}
.contact-card a,
.contact-card p {
  color: var(--white);
  font-size: 18px;
  margin: 0;
}
.contact-card__phones a {
  display: block;
}
.contacts-map {
  border-radius: 20px;
  overflow: hidden;
}
.contacts-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* Контакты — юридические данные: реквизиты-таблица + форма обратной связи */
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
}
@media (max-width: 860px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}
.legal-card {
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: var(--radius);
  padding: 30px 32px;
}
.legal-card__title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
}
.requisites {
  width: 100%;
  border-collapse: collapse;
}
.requisites th,
.requisites td {
  text-align: left;
  vertical-align: top;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  font-size: 14px;
}
.requisites th {
  color: var(--muted);
  width: 42%;
  padding-right: 16px;
}
.requisites td {
  color: var(--text);
}
.requisites tr:last-child th,
.requisites tr:last-child td {
  border-bottom: 0;
}
.legal-card--form .appoint-form__row {
  grid-template-columns: 1fr;
}
.legal-card--form .appoint-form .wpcf7-submit {
  background-color: var(--accent);
  color: #1a1a1a;
}
.legal-card--form .appoint-form .wpcf7-submit:hover {
  background-color: #e9c89a;
}
.legal-card--form .appoint-form .wpcf7-list-item-label {
  color: var(--muted);
}
.legal-card--form .appoint-form .wpcf7-acceptance input {
  accent-color: var(--accent);
}
/* документы (О нас) */
.docs-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.docs-gallery__item {
  display: block;
  border: 1px solid var(--line-acc);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.docs-gallery__item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s;
}
.docs-gallery__item:hover img {
  transform: scale(1.05);
}
/* О нас — hero: тёмный фон, заголовок + линия-разделитель, слева текст, справа слайдер */
.about-hero {
  padding: 46px 0 64px;
}
.about-hero .breadcrumbs {
  margin-bottom: 10px;
}
.about-hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: 0.5px;
  margin: 0 0 26px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.about-hero__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-hero__body {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
.about-hero__intro {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 30px;
}
.about-hero__intro p {
  margin: 0 0 14px;
}
.about-hero__intro p:last-child {
  margin-bottom: 0;
}
.about-hero__slider .splide__slide img {
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

/* «Мы находимся рядом» — гео-лендинги */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .geo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .geo-grid {
    grid-template-columns: 1fr;
  }
}
.geo-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line-acc);
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  transition: 0.2s;
}
.geo-card:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.geo-card__pin {
  color: var(--accent);
  flex: 0 0 auto;
  display: inline-flex;
}
.geo-card__pin svg {
  width: 22px;
  height: 22px;
}

/* =====================  ФУТЕР  ===================== */
.site-footer {
  background: var(--bg-foot);
  padding: 50px 0 0;
  /* margin-top: 40px; */
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 40px;
}
.footer-col__title {
  color: var(--white);
  text-transform: uppercase;
  font-size: 15px;
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 9px;
}
.footer-col a {
  color: var(--muted);
  font-size: 14px;
  transition: 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-col p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 8px;
}
.footer-phones a {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.site-footer__bottom {
  border-top: 1px solid var(--line);
}
.site-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer__bottom a {
  color: var(--muted);
}

/* =====================  АДАПТИВ (черновой)  ===================== */
@media (max-width: 1024px) {
  .advantages,
  .doctors,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews {
    grid-template-columns: 1fr;
  }
  .cta__grid {
    grid-template-columns: 1fr;
  }
  /* поля формы в столбик на мобильных (как в модалке) */
  .appoint-form__row {
    grid-template-columns: 1fr;
  }
  .hero--with-media .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__title,
  .hero__subtitle {
    max-width: 100%;
  }
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .inst {
    grid-template-columns: 1fr;
  }
  .contacts-cards {
    grid-template-columns: 1fr;
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}
@media (max-width: 600px) {
  .advantages,
  .doctors,
  .gallery {
    grid-template-columns: 1fr;
  }
  .section__title {
    font-size: 28px;
  }
  .hero__card {
    padding: 30px 24px;
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .site-footer__bottom-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ===================== МОБИЛЬНАЯ ДОВОДКА ===================== */
@media (max-width: 768px) {
  /* Заголовки секций: ghost по центру НАД заголовком, оба по центру, мельче */
  .section__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
    margin-bottom: 30px;
  }
  .section__ghost {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    order: -1;
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1;
    margin: 0 0 2px;
    white-space: normal;
  }
  .section__title {
    font-size: 24px;
    line-height: 1.25;
  }

  /* hero (карточка + фото) при вертикальной стопке: верхние/нижние скругления */
  .hero--with-media .hero__card {
    border-radius: 20px 20px 0 0;
  }
  .hero--with-media .hero__media {
    /* border-radius: 0 0 20px 20px; */
  }
  .hero__card {
    padding: 28px 22px;
  }
  .hero__title {
    font-size: 26px;
  }
  .hero:not(.hero--with-media) .hero__title,
  .hero:not(.hero--with-media) .hero__subtitle {
    max-width: 100%;
  }
  .hero:not(.hero--with-media) .hero__card {
    min-height: 0;
  }
  .about-hero__title {
    font-size: 28px;
  }
  .about-hero__body {
    gap: 24px;
  }

  /* Цены — компактно и читаемо */
  .price-list__item {
    padding: 13px 16px;
    gap: 12px;
  }
  .price-list__name {
    font-size: 13px;
  }
  .price-list__value {
    padding: 6px 14px;
    font-size: 13px;
  }

  /* «С чем поможем» — горизонтальный слайдер (свайп) */
  .svc-grid {
    display: flex !important;
    flex-wrap: nowrap;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .svc-grid > * {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
  }
}

/* =====================  Соцсети в футере  ===================== */
.footer-email {
  margin: 10px 0 0;
}
.footer-email a {
  color: #cfcfcf;
}
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-socials__item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cfcfcf;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.footer-socials__item:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.footer-socials__item svg {
  width: 18px;
  height: 18px;
}

/* =====================  Плавающий виджет связи  ===================== */
.contact-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.contact-widget__items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
}
.contact-widget.is-open .contact-widget__items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.contact-widget__item,
.contact-widget__trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease;
}
.contact-widget__item svg,
.contact-widget__trigger svg {
  width: 28px;
  height: 28px;
}
.contact-widget__item:hover {
  transform: scale(1.1);
}
.cw--whatsapp {
  background: #25d366;
}
.cw--telegram {
  background: #29a9eb;
}
.cw--viber {
  background: #7360f2;
}
.cw--vk {
  background: #0077ff;
}
.cw--instagram {
  background: radial-gradient(
    circle at 30% 110%,
    #fdf497 0%,
    #fd5949 45%,
    #d6249f 70%,
    #285aeb 100%
  );
}
.cw--email {
  background: #5a6573;
}
.cw--phone {
  background: var(--accent);
}

/* Тригер */
.contact-widget__trigger {
  background: var(--accent);
  border: 0;
  cursor: pointer;
  position: relative;
  animation: cw-pulse 2.2s infinite;
}
.contact-widget__trigger .contact-widget__close {
  position: absolute;
  font-size: 30px;
  line-height: 1;
  opacity: 0;
  transform: rotate(-90deg);
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.contact-widget.is-open .contact-widget__trigger {
  animation: none;
}
.contact-widget.is-open .contact-widget__trigger svg {
  opacity: 0;
}
.contact-widget.is-open .contact-widget__trigger .contact-widget__close {
  opacity: 1;
  transform: rotate(0);
}
@keyframes cw-pulse {
  0% {
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 0.35),
      0 0 0 0 rgba(228, 188, 139, 0.6);
  }
  70% {
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 0.35),
      0 0 0 18px rgba(228, 188, 139, 0);
  }
  100% {
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 0.35),
      0 0 0 0 rgba(228, 188, 139, 0);
  }
}
@media (max-width: 768px) {
  .contact-widget {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }
  .contact-widget__item,
  .contact-widget__trigger {
    width: 46px;
    height: 46px;
  }
  .contact-widget__item svg,
  .contact-widget__trigger svg {
    width: 22px;
    height: 22px;
  }
  .contact-widget__trigger .contact-widget__close {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contact-widget__trigger {
    animation: none;
  }
}

/* =====================  Заголовки на мобильных (компактнее, но крупнее текста)  ===================== */
@media (max-width: 768px) {
  .hero__title,
  .section__title,
  .cta__title,
  .page-title,
  .about-hero__title {
    font-size: 26px;
    padding-bottom: 0;
  }
  .about-hero__title {
    padding-bottom: 18px;
  }
  .page-title {
    padding-bottom: 18px;
  }
  .entry-content h2,
  .section--page .entry-content h2,
  .entry-content h1 {
    font-size: 22px;
  }
  .entry-content h3,
  .section--page .entry-content h3 {
    font-size: 17px;
  }
  .price-cat__title,
  .legal-card__title {
    font-size: 20px;
  }
  .article__title {
    font-size: 24px;
  }
}

.grecaptcha-badge {
  position: absolute;
  right: -9999px;
  bottom: -99999px;
  display: none;
  opacity: 0;
  visibility: hidden;
}

/* =====================  Уведомление о cookie  ===================== */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 980;
  padding: 0 0 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.cookie-consent.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.cookie-consent__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 30px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
}
.cookie-consent__text {
  flex: 1 1 auto;
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-consent__text p {
  margin: 0;
}
.cookie-consent__link {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  text-decoration: underline;
}
.cookie-consent__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
}
.cookie-consent__btn {
  white-space: nowrap;
}
/* виджет связи поднимаем, чтобы не перекрывался плашкой */
body.cookie-open .contact-widget {
  bottom: 140px;
}
@media (max-width: 768px) {
  .cookie-consent {
    padding: 0 0 12px;
  }
  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 18px;
  }
  .cookie-consent__actions .cookie-consent__btn {
    flex: 1;
  }
  body.cookie-open .contact-widget {
    bottom: 190px;
  }
}
