/* ============================================
   CSS-переменные
   ============================================ */
:root {
  /* Тёмные блоки */
  --dark-bg-body: #191d23;
  --dark-bg-section: #1f242c;
  --dark-bg-card: #262b34;
  --dark-bg-card-hover: #2d3340;

  /* Светлые блоки */
  --light-bg-section: #f4f6f8;
  --light-bg-card: #ffffff;
  --light-bg-card-hover: #f0f2f5;

  /* Текст на тёмных */
  --dark-text-primary: #ffffff;
  --dark-text-secondary: #c8cdd5;
  --dark-text-muted: #ffffff;
  --dark-text-heading: #ffffff;

  /* Текст на светлых */
  --light-text-primary: #1a1d23;
  --light-text-secondary: #3d4450;
  --light-text-muted: #6b7382;
  --light-text-heading: #191d23;

  /* Кнопки */
  --btn-bg: #c19a5b;
  --btn-hover: #a88143;
  --btn-active: #8b6b32;
  --btn-text: #ffffff;

  /* Границы */
  --dark-border: #323843;
  --light-border: #dde1e6;

  /* Акценты */
  --accent-gold: #c19a5b;

  /* Иконки */
  --icon-filter-dark: brightness(0) invert(1);
  --icon-filter-light: none;

  /* Прочее */
  --border-radius: 0;
  --box-shadow: none;
  --transition-fast: 0.3s ease;
}

/* ============================================
   Шрифты
   ============================================ */
@font-face {
  font-family: "Roboto Slab";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/RobotoSlab-Bold.woff2") format("woff2"),
       url("../fonts/RobotoSlab-Bold.woff") format("woff");
}
@font-face {
  font-family: "Roboto Slab";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/RobotoSlab-Regular.woff2") format("woff2"),
       url("../fonts/RobotoSlab-Regular.woff") format("woff");
}
@font-face {
  font-family: "Roboto Slab";
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/RobotoSlab-Light.woff2") format("woff2"),
       url("../fonts/RobotoSlab-Light.woff") format("woff");
}
@font-face {
  font-family: "Roboto Slab";
  font-weight: 100;
  font-display: swap;
  src: url("../fonts/RobotoSlab-Thin.woff2") format("woff2"),
       url("../fonts/RobotoSlab-Thin.woff") format("woff");
}

/* ============================================
   Сброс и базовые стили
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page {
  font-family: "Roboto Slab", serif;
  background-color: var(--dark-bg-body);
  color: var(--text-primary);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   Типографика
   ============================================ */
a,
a:visited {
  color: var(--btn-text);
}
a:hover {
  color: var(--accent-gold);
}

h1, h2, h3 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
}
h4 {
  text-align: center;
  color: var(--text-primary);
}

/* ============================================
   Базовый класс кнопок
   ============================================ */
.main-btn,
.main-tel,
.promotions__button-more,
.promotions__link,
.promotions__item-sign-up a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  color: var(--btn-text);
  background: var(--btn-bg);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.main-btn:hover,
.main-tel:hover,
.promotions__button-more:hover,
.promotions__link:hover,
.promotions__item-sign-up a:hover {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  box-shadow: none;
  transform: none;
}

.main-btn:active,
.main-tel:active,
.promotions__button-more:active,
.promotions__item-sign-up a:active {
  background: var(--btn-active);
  transform: none;
}

.main-btn::before {
  display: none;
}

button.main-btn {
  font-family: inherit;
  line-height: 1.2;
}

/* ============================================
   Телефонная кнопка
   ============================================ */
.main-tel {
  width: auto;
  height: auto;
  background-image: none;
  margin-left: 0;
  position: relative;
}
.main-tel span {
  display: inline-block;
}
.main-tel::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('../img/svg/phone-left.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;
  position: static;
  animation: none;
  filter: var(--icon-filter);
}
.main-tel:hover::before {
  animation: none;
}

/* ============================================
   Навигация
   ============================================ */
.navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.navigation .main-btn {
  height: auto;
  min-height: 54px;
}

/* ============================================
   Шапка
   ============================================ */
.page-header {
  background: var(--bg-section);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/jpg/desktop/yankovskaya.png') no-repeat 70% 80% / contain;
  z-index: 2;
  opacity: 0.8;
}
.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-header-overlay);
  z-index: 1;
}
.header {
  text-align: left;
  position: relative;
  z-index: 2;
}
.master-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--text-heading);
}
.servant-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--text-muted);
  font-weight: 300;
}
.header-info {
  font-size: 1.2rem;
  max-width: 500px;
  margin: 0 0 50px;
  color: var(--text-primary);
  line-height: 1.2;
  text-align: left;
  padding: 35px 45px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-left: 4px solid var(--accent-gold);
  font-weight: 500;
}
.header-info::before,
.header-info::after {
  content: '✦';
  position: absolute;
  font-size: 2rem;
  background: var(--bg-card);
  padding: 5px;
  border-radius: var(--border-radius);
  color: var(--accent-gold);
}
.header-info::before {
  top: -15px;
  left: -15px;
}
.header-info::after {
  bottom: -15px;
  right: -15px;
}

/* ============================================
   Основной контент
   ============================================ */
.page-main {
  padding: 80px 0;
}

/* ============================================
   Фоновые обёртки
   ============================================ */
.background-wrapper {
  padding: 80px 0;
  margin: 80px 0;
  border-radius: var(--border-radius);
  background: var(--bg-section);
}

/* ============================================
   О враче
   ============================================ */
.about-doctor {
  text-align: center;
  padding: 40px 20px;
}
.about-doctor__title {
  font-size: 2.5rem;
  margin-bottom: 30px;
}
.about-doctor__info,
.about-doctor__credo {
  padding: 20px 30px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  position: relative;
}
.about-doctor__info {
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
  border-top: 3px solid var(--border-accent);
}
.about-doctor__info::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border-accent);
}
.about-doctor__credo {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--accent-gold);
  font-weight: 700;
  font-style: italic;
  border: 1px solid var(--border-color);
}
.about-doctor__credo::before {
  content: '✦';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--accent-gold);
  background: var(--bg-card);
  padding: 0 15px;
}
.about-doctor__education {
  font-size: 1rem;
  text-align: left;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0;
  line-height: 1.2;
}

/* ============================================
   Этапы операции (аккордеон)
   ============================================ */
.operation-stages {
  text-align: center;
}
.operation-stages__title {
  font-size: 2.5rem;
  margin-bottom: 60px;
}
.operation-stages__list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}
.operation-stages__item {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  overflow: hidden;
}
.operation-stages__item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}
.operation-stages__item-header,
.promotions__item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  cursor: pointer;
}
.operation-stages__item-title {
  font-size: 1.4rem;
  margin: 0;
  color: var(--text-heading);
  flex: 1;
  padding-right: 20px;
}

/* Кнопка аккордеона */
.operation-stages__button,
.promotions__button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius);
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.operation-stages__button::before,
.operation-stages__button::after,
.promotions__button::before,
.promotions__button::after {
  content: '';
  position: absolute;
  background: var(--accent-gold);
  transition: all var(--transition-fast);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.operation-stages__button::before,
.promotions__button::before {
  width: 16px;
  height: 2px;
}
.operation-stages__button::after,
.promotions__button::after {
  width: 2px;
  height: 16px;
}
.operation-stages__button:hover,
.promotions__button:hover {
  background: var(--border-accent);
  transform: none;
}
.operation-stages__button:hover::before,
.operation-stages__button:hover::after,
.promotions__button:hover::before,
.promotions__button:hover::after {
  background: var(--btn-text);
}

.operation-stages__info {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  opacity: 0;
}

/* Активное состояние */
.operation-stages__item.active,
.promotions__item.active {
  border-color: var(--border-accent);
}
.operation-stages__item.active .operation-stages__info {
  padding: 0 30px 25px;
  max-height: 500px;
  opacity: 1;
}
.operation-stages__item.active .operation-stages__button,
.promotions__item.active .promotions__button {
  transform: rotate(45deg);
  background: var(--border-accent);
}
.operation-stages__item.active .operation-stages__button::after,
.promotions__item.active .promotions__button::after {
  height: 0;
}
.operation-stages__item.active .operation-stages__button::before,
.operation-stages__item.active .operation-stages__button::after,
.promotions__item.active .promotions__button::before,
.promotions__item.active .promotions__button::after {
  background: var(--btn-text);
}

/* ============================================
   Акции
   ============================================ */
.background-wrapper--promotions {
  position: relative;
  overflow: hidden;
}
.promotions {
  text-align: center;
  position: relative;
  z-index: 2;
}
.promotions__title {
  font-size: 2.5rem;
  margin-bottom: 60px;
  display: inline-block;
  position: relative;
}
.promotions__title::after,
.feedback__title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--accent-gold);
}
.promotions__list {
  list-style: none;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.promotions__item {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  overflow: hidden;
}
.promotions__item:hover {
  border-color: var(--border-accent);
}
.promotions__item-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-fast);
}
.promotions__item-header:hover {
  background: var(--bg-card-hover);
}
.promotions__item-title {
  font-size: 1.4rem;
  flex: 1;
  padding-right: 20px;
  text-align: left;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-heading);
}
.promotions__content {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  opacity: 0;
  background: var(--bg-card);
}
.promotions__item.active .promotions__content {
  padding: 0 30px 30px;
  max-height: 5000px;
  opacity: 1;
}
.promotions__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-align: center;
  margin: 20px 0 15px;
  padding: 15px;
  background: var(--bg-card-hover);
  border-radius: var(--border-radius);
  display: inline-block;
  width: 100%;
  border: 1px solid var(--border-color);
  position: relative;
}
.promotions__price::before {
  content: '✦';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: var(--accent-gold);
}
.promotions__info {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 10px;
  text-align: left;
}
.promotions__list-included {
  list-style: none;
  margin-bottom: 20px;
  text-align: left;
}
.promotions__item-included {
  padding: 8px 0 8px 30px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.5;
}
.promotions__item-included::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 1.1rem;
}
.promotions__description {
  margin: 20px 0;
}
.promotions__description-text {
  text-align: justify;
  margin-bottom: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: 1rem;
}
.promotions__description-hidden {
  display: none;
  margin-top: 15px;
}
.promotions__description-hidden.show {
  display: block;
}
.promotions__sign-up {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}
.promotions__list-sign-up {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.promotions__item-sign-up {
  flex: 1;
  min-width: 140px;
}

/* Иконки соцсетей */
.promotions__item-sign-up--vk a::before,
.promotions__item-sign-up--tg a::before,
.promotions__item-sign-up--max a::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;
  filter: var(--icon-filter);
}
.promotions__item-sign-up--vk a::before {
  background-image: url('../img/svg/logo/vk_logo.svg');
}
.promotions__item-sign-up--tg a::before {
  background-image: url('../img/svg/logo/telegram_logo.svg');
}
.promotions__item-sign-up--max a::before {
  background-image: url('../img/svg/logo/MAX_logo.svg');
}
.promotions__date {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-card);
  display: inline-block;
  padding: 10px 25px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

/* ============================================
   Галерея "До/После"
   ============================================ */
.results {
  padding: 40px 0;
  background: var(--bg-section);
}
.results__photo h2,
.results__title,
#results {
  text-align: center;
  color: var(--text-heading);
}
.results__photo h2 {
  margin-bottom: 40px;
  font-size: 32px;
}
.products__gallery {
  max-width: 1200px;
  width: 100%;
  margin-bottom: 20px;
}
.products__item {
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  width: 100%;
  margin: 0 auto;
  transition: all var(--transition-fast);
}
.product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-heading);
  font-weight: 600;
  text-align: center;
}
.product-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 15px;
  font-style: italic;
}
.product-card__link img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

/* Слайдер */
.swiper-before_after {
  padding: 20px 0 50px;
}
.swiper-before_after .swiper-wrapper {
  align-items: center;
}
.swiper-before_after .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--transition-fast);
}
.swiper-slide-active .product-card {
  border-color: var(--border-accent);
}

/* ============================================
   Отзывы
   ============================================ */
.feedback {
  padding: 40px 0;
  background: var(--bg-section);
}
.feedback__title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  padding-bottom: 15px;
  position: relative;
}
.feedback-result {
  position: relative;
  width: 100%;
  padding: 20px 0 60px;
  max-width: 900px;
  margin: 0 auto;
}
.swiper-reviews {
  width: 100%;
  height: auto;
  padding: 10px 0;
}
.feedback-item {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
}
.feedback-item.swiper-slide {
  opacity: 0.7;
  transform: scale(0.95);
}
.feedback-item.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}
.feedback-item__review {
  display: block;
  text-decoration: none;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}
.feedback-item__review img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}
.feedback-item__review:hover img {
  border-color: var(--border-accent);
}
.feedback-item.swiper-slide-active::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius);
  z-index: -1;
}

/* Пагинация Swiper */
.swiper-reviews .swiper-pagination-bullet,
.swiper-before_after .swiper-pagination-bullet {
  background: var(--border-color);
  opacity: 0.7;
  transition: all var(--transition-fast);
  border-radius: 0;
  transform: none;
}
.swiper-reviews .swiper-pagination-bullet-active,
.swiper-before_after .swiper-pagination-bullet-active {
  background: var(--accent-gold);
  opacity: 1;
  transform: none;
}
.swiper-reviews .swiper-pagination-bullet:hover,
.swiper-before_after .swiper-pagination-bullet:hover {
  background: var(--accent-gold);
  opacity: 0.9;
}
.swiper-reviews .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  margin: 0 6px;
}
.swiper-before_after .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
}
.swiper-reviews .swiper-pagination {
  bottom: 20px;
}
.swiper-before_after .swiper-pagination {
  bottom: 0;
}

/* Кнопки навигации Swiper */
.swiper-reviews .swiper-button-next,
.swiper-reviews .swiper-button-prev {
  width: 55px;
  height: 55px;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  color: var(--accent-gold);
  transition: all var(--transition-fast);
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;
  border: 1px solid var(--border-color);
}
.swiper-reviews .swiper-button-next:after,
.swiper-reviews .swiper-button-prev:after {
  font-size: 22px;
  font-weight: bold;
}
.swiper-reviews .swiper-button-next:hover,
.swiper-reviews .swiper-button-prev:hover {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--border-accent);
}
.swiper-reviews .swiper-button-prev { left: 20px; }
.swiper-reviews .swiper-button-next { right: 20px; }

/* ============================================
   Футер
   ============================================ */
.page-footer {
  background: var(--dark-bg-body);
  color: var(--text-primary);
}
.background-wrapper--footer-info {
  background: transparent;
  padding: 60px 0 0;
}
.page-footer__about-clinic {
  padding-bottom: 40px;
}
.contacts__title {
  font-size: 2rem;
  margin-bottom: 20px;
}
.contacts__about-clinic {
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.page-footer__map-navigation { height: 400px; }
.page-footer__map {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.page-footer__buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}
.page-footer__buttons .main-btn,
.page-footer__buttons .main-tel {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 14px 24px;
  line-height: 1.2;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  box-sizing: border-box;
}

/* ============================================
   Привязка блоков к тёмной/светлой схеме
   ============================================ */
.page-header {
  --bg-section: var(--dark-bg-section);
  --bg-card: var(--dark-bg-card);
  --bg-card-hover: var(--dark-bg-card-hover);
  --text-primary: var(--dark-text-primary);
  --text-secondary: var(--dark-text-secondary);
  --text-muted: var(--dark-text-muted);
  --text-heading: var(--dark-text-heading);
  --border-color: var(--dark-border);
  --border-accent: var(--accent-gold);
  --icon-filter: var(--icon-filter-dark);
}

.background-wrapper--about {
  --bg-section: var(--light-bg-section);
  --bg-card: var(--light-bg-card);
  --bg-card-hover: var(--light-bg-card-hover);
  --text-primary: var(--light-text-primary);
  --text-secondary: var(--light-text-secondary);
  --text-muted: var(--light-text-muted);
  --text-heading: var(--light-text-heading);
  --border-color: var(--light-border);
  --border-accent: var(--accent-gold);
  --icon-filter: var(--icon-filter-light);
  margin: 0;
}

.background-wrapper--promotions {
  --bg-section: var(--dark-bg-section);
  --bg-card: var(--dark-bg-card);
  --bg-card-hover: var(--dark-bg-card-hover);
  --text-primary: var(--dark-text-primary);
  --text-secondary: var(--dark-text-secondary);
  --text-muted: var(--dark-text-muted);
  --text-heading: var(--dark-text-heading);
  --border-color: var(--dark-border);
  --border-accent: var(--accent-gold);
  --icon-filter: var(--icon-filter-dark);
}

.background-wrapper--stages {
  --bg-section: var(--light-bg-section);
  --bg-card: var(--light-bg-card);
  --bg-card-hover: var(--light-bg-card-hover);
  --text-primary: var(--light-text-primary);
  --text-secondary: var(--light-text-secondary);
  --text-muted: var(--light-text-muted);
  --text-heading: var(--light-text-heading);
  --border-color: var(--light-border);
  --border-accent: var(--accent-gold);
  --icon-filter: var(--icon-filter-light);
}
.background-wrapper--stages .operation-stages__button {
  background: var(--bg-card);
}
.background-wrapper--stages .operation-stages__button::before,
.background-wrapper--stages .operation-stages__button::after {
  background: var(--accent-gold);
}

.results {
  --bg-section: var(--dark-bg-section);
  --bg-card: var(--dark-bg-card);
  --bg-card-hover: var(--dark-bg-card-hover);
  --text-primary: var(--dark-text-primary);
  --text-secondary: var(--dark-text-secondary);
  --text-muted: var(--dark-text-muted);
  --text-heading: var(--dark-text-heading);
  --border-color: var(--dark-border);
  --border-accent: var(--accent-gold);
  --icon-filter: var(--icon-filter-dark);
}

.feedback {
  --bg-section: var(--light-bg-section);
  --bg-card: var(--light-bg-card);
  --bg-card-hover: var(--light-bg-card-hover);
  --text-primary: var(--light-text-primary);
  --text-secondary: var(--light-text-secondary);
  --text-muted: var(--light-text-muted);
  --text-heading: var(--light-text-heading);
  --border-color: var(--light-border);
  --border-accent: var(--accent-gold);
  --icon-filter: var(--icon-filter-light);
}
.feedback .swiper-button-next,
.feedback .swiper-button-prev {
  background: var(--bg-card);
  color: var(--accent-gold);
  border-color: var(--border-color);
}

.page-footer {
  --bg-section: var(--dark-bg-body);
  --bg-card: var(--dark-bg-card);
  --bg-card-hover: var(--dark-bg-card-hover);
  --text-primary: var(--dark-text-primary);
  --text-secondary: var(--dark-text-secondary);
  --text-muted: var(--dark-text-muted);
  --text-heading: var(--dark-text-heading);
  --border-color: var(--dark-border);
  --border-accent: var(--accent-gold);
  --icon-filter: var(--icon-filter-dark);
}

.background-wrapper--about .main-btn,
.background-wrapper--about .main-tel,
.background-wrapper--stages .main-btn,
.background-wrapper--stages .main-tel,
.feedback .main-btn,
.feedback .main-tel,
.page-footer .main-btn,
.page-footer .main-tel {
  background: var(--btn-bg);
  color: var(--btn-text);
}

/* ============================================
   Липкое меню
   ============================================ */
.sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(25, 29, 35, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-accent);
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}
.sticky-bar--visible {
  transform: translateY(0);
}
.sticky-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sticky-bar__title {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
.sticky-bar .main-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* ============================================
   Адаптивность
   ============================================ */

/* Планшеты */
@media (max-width: 1023px) {
  .container { padding: 0 15px; }
  .master-title { font-size: 2.8rem; }
  .servant-title { font-size: 1.3rem; }
  .page-header, .page-main { padding: 60px 0; }
  .header-info { font-size: 1rem; padding: 30px 35px; margin-bottom: 40px; }

  .about-doctor { padding: 20px 15px; }
  .about-doctor__title,
  .operation-stages__title,
  .feedback__title { font-size: 2rem; }
  .about-doctor__credo { font-size: 1.2rem; }

  .operation-stages__item-header { padding: 20px 25px; }
  .operation-stages__item-title { font-size: 1.3rem; }
  .operation-stages__info { padding: 0 25px; }
  .operation-stages__item.active .operation-stages__info { padding: 0 25px 20px; }

  .results { padding: 30px 0; }
  .results__photo h2 { font-size: 28px; margin-bottom: 30px; }

  .feedback { padding: 30px 0; }
  .feedback-result { padding: 15px 0 50px; max-width: 700px; }
  .feedback-item__review { max-width: 400px; }
  .feedback-item__review img { max-height: 400px; }

  .swiper-reviews .swiper-button-next,
  .swiper-reviews .swiper-button-prev { width: 48px; height: 48px; }
  .swiper-reviews .swiper-button-next:after,
  .swiper-reviews .swiper-button-prev:after { font-size: 20px; }
  .swiper-reviews .swiper-pagination-bullet { width: 12px; height: 12px; }

  .page-header::before {
    background-image: url('../img/jpg/tablet/yankovskaya.png');
    background-position: 70% 100%;
  }
  .page-header::after { background: var(--bg-header-overlay-tablet); }

  .swiper-before_after { padding: 15px 0 40px; }
  .product-card { padding: 15px; }
  .product-card__link img { height: auto; }

  .navigation { gap: 15px; margin-top: 25px; }
  .navigation .main-btn,
  .navigation .main-tel { padding: 12px 20px; font-size: 0.9rem; }
  .main-tel::before { width: 22px; height: 22px; }

  .promotions__title { font-size: 2rem; margin-bottom: 50px; }
  .promotions__item-title { font-size: 1.3rem; }
  .promotions__item-header { padding: 20px 25px; }
  .promotions__content { padding: 0 25px; }
  .promotions__item.active .promotions__content { padding: 0 25px 25px; }
  .promotions__price { font-size: 1.8rem; }
  .promotions__price::before { left: 15px; font-size: 1.5rem; }
  .promotions__item-sign-up a { padding: 12px 20px; font-size: 0.9rem; }
  .promotions__item-sign-up--vk a::before,
  .promotions__item-sign-up--tg a::before,
  .promotions__item-sign-up--max a::before { width: 22px; height: 22px; }

  /* Планшеты: кнопки акций 300px */
  .promotions__link {
    width: 300px;
  }
  .promotions__list-sign-up {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .promotions__item-sign-up {
    width: 300px;
    flex: none;
  }
  .promotions__item-sign-up a {
    width: 100%;
  }
}

/* Мобильные */
@media (max-width: 767px) {
  .container { padding: 0 10px; }
  .master-title { max-width: 300px; font-size: 2.2rem; }
  .servant-title { font-size: 1.1rem; }
  .header-info { font-size: 1rem; padding: 25px 20px; margin-bottom: 30px; line-height: 1.1; }
  .header-info::before,
  .header-info::after { display: none; }
  .page-header, .page-main { padding: 40px 0; }

  .about-doctor { padding: 15px 10px; }
  .about-doctor__title,
  .operation-stages__title,
  .feedback__title { font-size: 1.8rem; }
  .about-doctor__info,
  .about-doctor__credo { padding: 18px 20px; margin-left: 10px; margin-right: 10px; }
  .about-doctor__info { font-size: 1.2rem; }
  .about-doctor__credo { font-size: 1.2rem; }
  .about-doctor__credo::before { display: none; }

  .operation-stages__item-header { padding: 18px 20px; }
  .operation-stages__item-title { font-size: 1.2rem; padding-right: 15px; }
  .operation-stages__button { width: 35px; height: 35px; }
  .operation-stages__button::before { width: 14px; }
  .operation-stages__button::after { height: 14px; }
  .operation-stages__info { padding: 0 20px; font-size: 0.95rem; }
  .operation-stages__item.active .operation-stages__info { padding: 0 20px 18px; }
  .background-wrapper { padding: 40px 0; margin: 40px 0; }

  .page-footer__map-navigation { height: 300px; }
  .page-footer__buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .page-footer__buttons .main-btn,
  .page-footer__buttons .main-tel {
    width: 100%;
    justify-content: center;
  }

  .results { padding: 15px 0; }
  .results__photo h2 { font-size: 24px; margin-bottom: 20px; }
  .product-card { padding: 12px; }
  .product-card h3 { font-size: 1.1rem; }
  .product-card p { font-size: 0.85rem; }
  .swiper-before_after { padding: 10px 0 35px; }
  .swiper-before_after .swiper-pagination-bullet { width: 10px; height: 10px; }

  .feedback { padding: 15px 0; }
  .feedback__title::after { display: none; }
  .feedback-result { padding: 10px 0 40px; max-width: 100%; }
  .feedback-item__review { max-width: 450px; }
  .swiper-reviews .swiper-button-next,
  .swiper-reviews .swiper-button-prev { display: none; }
  .swiper-reviews .swiper-pagination { bottom: 10px; }
  .swiper-reviews .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0 4px; }
  .feedback-item.swiper-slide-active::before { inset: -5px; }

  .page-header::before {
    background-image: url('../img/jpg/mobile/yankovskaya.png');
    background-size: auto 300px;
    background-position: right top;
  }
  .page-header::after { background: var(--bg-header-overlay-mobile); }

  .navigation { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 20px; }
  .navigation .main-btn,
  .navigation .main-tel { justify-content: center; padding: 12px 20px; font-size: 0.9rem; width: 100%; }
  .main-tel { margin-left: 0; }
  .main-tel::before { width: 20px; height: 20px; }

  .promotions__title { font-size: 1.8rem; margin-bottom: 40px; }
  .promotions__list { gap: 20px; }
  .promotions__item-header { padding: 18px 20px; }
  .promotions__item-title { font-size: 1.1rem; padding-right: 15px; }
  .promotions__button { width: 38px; height: 38px; }
  .promotions__content { padding: 0 20px; }
  .promotions__item.active .promotions__content { padding: 0 20px 20px; }
  .promotions__price { font-size: 1.5rem; padding: 12px; }
  .promotions__price::before { display: none; }
  .promotions__date { font-size: 0.95rem; padding: 8px 20px; }

  /* Мобильные: кнопки акций на всю ширину */
  .promotions__link {
    width: 100%;
  }
  .promotions__list-sign-up {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .promotions__item-sign-up {
    width: 100%;
    flex: none;
  }
  .promotions__item-sign-up a {
    width: 100%;
  }

  /* Липкое меню */
  .sticky-bar__title { font-size: 0.85rem; }
  .sticky-bar .main-btn { padding: 8px 16px; font-size: 0.8rem; }
  .sticky-bar__inner { padding: 8px 15px; gap: 10px; }
}


/* Десктоп */
@media (min-width: 768px) {
  .navigation { flex-direction: row; justify-content: flex-start; }
}

/* Очень маленькие */
@media (max-width: 480px) {
  .navigation { gap: 10px; }
  .navigation .main-btn,
  .navigation .main-tel { padding: 10px 16px; font-size: 0.85rem; }
  .main-tel::before { width: 18px; height: 18px; }
}

/* Большие десктопы */
@media (min-width: 1440px) {
  .feedback-result { max-width: 1000px; }
  .feedback-item__review { max-width: 500px; }
  .feedback-item__review img { max-height: 550px; }
}

.sticky-bar .main-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  border: 1px solid transparent;
}
.sticky-bar .main-btn:hover {
  border: 1px solid #ffffff;
}

/* ============================================
   Стили для amoCRM формы
   ============================================ */
#amoforms_iframe_1726754 {
  opacity: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}
#amoforms_iframe_1726754.amo-form-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  position: fixed !important;
}

#amo-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 99998;
  cursor: pointer;
}