/* -------- БАЗА -------- */

:root {
  /* Темная тема */
  --color-bg: #0E1419;
  --color-bg-soft: #1A1F26;
  --color-text-main: #E2E2E0;
  --color-text-secondary: #A8A8A8;

  --color-accent: #C8B08E;
  --color-accent-soft: #A89878;

  --color-border: #E2E2E0;
  --color-danger: #861211;

  --header-height: 120px;
  --container-width: 1400px;
  --transition-fast: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  min-height: 100vh;
}

/* Заголовки */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  margin: 0;
}

/* Утилиты */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* -------- КНОПКИ -------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 0;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-danger);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(134, 18, 17, 0.35);
  position: relative;
  overflow: hidden;
  animation: btnSway 6s ease-in-out infinite;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: btnShimmer 3s ease-in-out infinite;
}

.btn--primary:hover {
  background-color: #b01817;
  box-shadow: 0 10px 25px rgba(176, 24, 23, 0.45);
}

@keyframes btnShimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes btnSway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(0.5deg);
  }
  75% {
    transform: rotate(-0.5deg);
  }
}

.btn--ghost {
  background-color: transparent;
  border-color: rgba(226, 226, 224, 0.5);
  color: var(--color-text-main);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* -------- ШАПКА -------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(14, 20, 25, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 226, 224, 0.1);
  transition: all 0.4s ease;
}

.header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
  transition: height 0.4s ease;
}

/* Лого */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.logo__img {
  height: 80px;
  width: auto;
  display: block;
  transition: height 0.4s ease;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__title {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo__subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-secondary);
}

/* Навигация */

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 16px;
  text-transform: uppercase;
}

/* Скрываем кнопку внутри навигации на десктопе */
.nav .header__actions {
  display: none;
}

.nav__link {
  text-decoration: none;
  color: var(--color-text-secondary);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
  transition: width var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-text-main);
}

.nav__link:hover::after {
  width: 100%;
}

/* Кнопка в шапке */

.header__actions {
  display: flex;
  align-items: center;
}

/* Бургер для мобильной версии */

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1000;
}

.burger span {
  width: 24px;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Меняем крестик на стрелку закрытия (>) */
.burger--active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 4px);
  width: 16px;
}

.burger--active span:nth-child(2) {
  transform: translateX(0);
  width: 20px;
}

.burger--active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -4px);
  width: 16px;
}

/* -------- SCROLL STACKING EFFECT -------- */

main {
  position: relative;
  padding-top: var(--header-height);
}

section {
  position: relative;
  top: 0;
  background: transparent;
  will-change: auto;
}

/* -------- HERO -------- */

.hero {
  min-height: calc(100vh - var(--header-height));
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: var(--header-height);
  background: var(--color-bg);
  will-change: transform;
  z-index: 1;
}

/* сетка: текст + картинка */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: stretch;
  max-width: none;
  margin: 0;
  padding: 0 0 0 calc((100vw - var(--container-width)) / 2 + 40px);
}

.hero__image {
  position: relative;
  width: 50vw;
  height: 100%;
  min-height: calc(100vh - var(--header-height));
  margin-right: 0;
}

/* сама картинка + обрезка по диагонали */
.hero__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("img/metod/FUE_DOCtor.webp") center center / cover no-repeat;
  /* диагональный срез слева, можно менять проценты под нужный угол */
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

/* Плашка с именем врача вдоль диагональной линии */
.hero__doctor-name {
  position: absolute;
  left: calc(4% - 2px);
  top: 50%;
  transform-origin: left center;
  transform: rotate(-82deg) translateX(-50%);
  background: var(--color-bg);
  color: var(--color-text-main);
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  z-index: 2;
  overflow: hidden;
  width: 120vh;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero__doctor-name-scroll {
  display: flex;
  animation: scroll-text 30s linear infinite;
  will-change: transform;
}

.hero__doctor-name-scroll span {
  padding: 0 20px;
  display: inline-block;
}

@keyframes scroll-text {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Левая колонка */

.hero__content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  padding-left: 0;
}

.hero__tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 0;
  border: 1px solid rgba(199, 154, 106, 0.5);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 14px;
}

.hero__title {
  font-size: 38px;
  line-height: 1.18;
  margin-bottom: 16px;
}

.hero__text {
  margin: 0 0 20px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.hero__cta-btn {
  width: 100%;
  display: flex;
  margin-bottom: 20px;
}

/* Бенефиты */

.hero__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.hero-benefit {
  padding-left: 18px;
  border-left: 1px solid rgba(226, 226, 224, 0.3);
}

.hero-benefit:first-child {
  border-left: none;
  padding-left: 0;
}

.hero-benefit__value {
  display: block;
  font-weight: 700;
  font-size: 18px;
}

.hero-benefit__label {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* -------- О ВРАЧЕ -------- */

.about-doctor,
.method-fue,
.results {
  position: relative;
  top: auto;
}

.about-doctor {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: 60px 0 40px 0;
  background: var(--color-bg-soft);
  z-index: 2;
}

.about-doctor__inner {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 80px;
  align-items: start;
}

/* Левая колонка - фото и статистика */

.about-doctor__image-wrapper {
  position: sticky;
  top: calc(var(--header-height) + 40px);
}

.about-doctor__collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 180px);
  gap: 12px;
  margin-bottom: 0;
}

.about-doctor__collage-item {
  overflow: hidden;
  position: relative;
  background: var(--color-bg);
  border: 1px solid rgba(226, 226, 224, 0.05);
}

/* Bento Grid Layout с диагональными срезами */
.about-doctor__collage-item--large {
  clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%);
}

.about-doctor__collage-item--medium {
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.about-doctor__collage-item--small {
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}

/* Специфичное позиционирование для бенто-сетки */
.about-doctor__collage-item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.about-doctor__collage-item:nth-child(2) {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}

.about-doctor__collage-item:nth-child(3) {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
}

.about-doctor__collage-item:nth-child(4) {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.about-doctor__collage-item:nth-child(5) {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
}

.about-doctor__collage-item:nth-child(6) {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}

.about-doctor__collage-item:nth-child(7) {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}

.about-doctor__collage-item:nth-child(8) {
  grid-column: 3 / 5;
  grid-row: 3 / 5;
}

.about-doctor__collage-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(10%);
  transition: filter 0.4s ease, transform 0.6s ease;
}

.about-doctor__collage-item:hover .about-doctor__collage-photo {
  filter: grayscale(0%);
  transform: scale(1.1);
}


/* Правая колонка - контент */

.about-doctor__content {
  padding-top: 0;
}

.about-doctor__tagline {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(199, 154, 106, 0.5);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.about-doctor__title {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.about-doctor__subtitle {
  font-size: 16px;
  color: var(--color-danger);
  margin-bottom: 20px;
  font-weight: 600;
}

.about-doctor__text {
  margin-bottom: 24px;
}

.about-doctor__text p {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.about-doctor__text p:last-child {
  margin-bottom: 0;
}

.about-doctor__education {
  margin-bottom: 24px;
  padding: 20px;
  background: var(--color-bg);
  border-left: 3px solid var(--color-danger);
}

.about-doctor__education-title {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--color-text-main);
  font-weight: 600;
}

.about-doctor__education-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-doctor__education-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--color-text-secondary);
  font-size: 15px;
  border-bottom: 1px solid rgba(226, 226, 224, 0.08);
}

.about-doctor__education-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-doctor__education-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-danger);
  font-size: 16px;
  line-height: 1;
}

.about-doctor__achievements {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-doctor__achievement {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.about-doctor__achievement-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-danger);
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

/* -------- МЕТОД FUE -------- */

.method-fue {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 60px 0 40px 0;
  background: var(--color-bg);
  z-index: 3;
}

.method-fue__header {
  text-align: center;
  margin-bottom: 40px;
}

.method-fue__content {
  margin-top: 40px;
}

.method-fue__tagline {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid rgba(199, 154, 106, 0.5);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.method-fue__title {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 0;
  color: var(--color-text-main);
}

/* Галерея изображений - горизонтальная прокрутка */

.method-fue__gallery {
  position: relative;
  margin-bottom: 60px;
  overflow: hidden;
}

.method-fue__gallery-track {
  display: flex;
  gap: 20px;
  will-change: transform;
}

.method-fue__gallery-item {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  background: var(--color-bg-soft);
  border: 1px solid rgba(226, 226, 224, 0.05);
  transition: all 0.4s ease;
}

.method-fue__gallery-item:hover {
  border-color: var(--color-danger);
  box-shadow: 0 8px 24px rgba(134, 18, 17, 0.2);
}

.method-fue__gallery-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Описание метода */

.method-fue__description {
  margin-bottom: 30px;
}

.method-fue__description-title {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--color-text-main);
}

.method-fue__description p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.method-fue__description p:last-child {
  margin-bottom: 0;
}

/* Преимущества */

.method-fue__advantages {
  margin-bottom: 0;
}

.method-fue__advantages-title {
  font-size: 32px;
  margin-bottom: 32px;
  color: var(--color-text-main);
}

.method-fue__advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.method-fue__advantage {
  padding: 28px;
  background: var(--color-bg-soft);
  border-left: 3px solid var(--color-danger);
  transition: all 0.3s ease;
  position: relative;
}

.method-fue__advantage:hover {
  background: rgba(134, 18, 17, 0.05);
  transform: translateX(4px);
}

.method-fue__advantage-marker {
  width: 8px;
  height: 8px;
  background: var(--color-danger);
  margin-bottom: 16px;
  box-shadow: 0 0 12px rgba(134, 18, 17, 0.6);
}

.method-fue__advantage-title {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

.method-fue__advantage-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

.method-fue__cta {
  text-align: center;
  margin-top: 40px;
}

/* -------- PLACEHOLDER SECTION -------- */

.placeholder-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  background: var(--color-bg-soft);
  border-bottom: 8px solid var(--color-text-main);
  z-index: 2;
}

.placeholder-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.placeholder-title {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.placeholder-text {
  font-size: 18px;
  color: var(--color-text-secondary);
  opacity: 0.7;
}

/* -------- КАСТОМНЫЙ КУРСОР -------- */

.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-accent);
  border-radius: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.2s ease;
  transform: translate(-50%, -50%);
}
/* -------- РЕЗУЛЬТАТЫ -------- */

.results {
  position: relative;
  top: auto;
  padding: 80px 0 80px 0;
  background: var(--color-bg-soft);
  z-index: 4;
}

.results__inner {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 80px;
  align-items: start;
}

/* Левая колонка — текст и плашка */

.results__content {
  padding-top: 0;
}

.results__tagline {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(199, 154, 106, 0.5);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.results__title {
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.results__text {
  margin-bottom: 24px;
}

.results__text p {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.results__text p:last-child {
  margin-bottom: 0;
}

.results__stats {
  display: flex;
  gap: 40px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid rgba(226, 226, 224, 0.16);
  border-bottom: 1px solid rgba(226, 226, 224, 0.16);
}

.results__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.results__stat-number {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-danger);
  font-family: 'Lora', serif;
}

.results__stat-label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.results__cta {
  width: 100%;
  margin-top: 8px;
}

/* Правая колонка — сетка 2x2 */

.results__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Базовая карточка */

.results__case {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.results__case-caption {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(226, 226, 224, 0.18);
  flex-shrink: 0;
  min-height: 40px;
  display: flex;
  align-items: flex-start;
}

/* Выравнивание размера всех слайдеров */

.results__case .ba-slider {
  aspect-ratio: 16 / 10;
  width: 100%;
  height: auto;
  flex: 1;
}

/* Адаптив */

@media (max-width: 1200px) {
  .results__inner {
    grid-template-columns: 420px 1fr;
    gap: 60px;
  }
}

@media (max-width: 1024px) {
  .results {
    padding: 64px 0 64px 0;
  }

  .results__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .results__gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .results__gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .results__title {
    font-size: 32px;
  }

  .results__stats {
    gap: 30px;
  }

  .results__stat-number {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .results {
    padding: 50px 0 50px 0;
  }

  .results__title {
    font-size: 28px;
  }

  .results__text p {
    font-size: 15px;
  }

  .results__stats {
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    margin: 24px 0;
  }

  .results__stat-number {
    font-size: 26px;
  }

  .results__stat-label {
    font-size: 12px;
  }
}

/* ------- BEFORE / AFTER SLIDER ------- */

.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid rgba(226, 226, 224, 0.15);
  cursor: ew-resize;
  user-select: none;
  transition: all 0.3s ease;
}

.ba-slider:hover {
  border-color: var(--color-danger);
  box-shadow: 0 4px 20px rgba(134, 18, 17, 0.15);
  transform: translateY(-2px);
}

.ba-slider__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-slider__image--before {
  z-index: 1;
}

.ba-slider__overlay {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  will-change: width;
}

.ba-slider__image--after {
  position: absolute;
  inset: 0;
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 100%;
  z-index: 3;
  pointer-events: none; /* двигаем по всей области, а не только за ручку */
}

.ba-slider__handle-line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
}

.ba-slider__handle-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Лейблы ДО/ПОСЛЕ */

.ba-slider__label {
  position: absolute;
  top: 14px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  z-index: 4;
}

.ba-slider__label--before {
  left: 16px;
}

.ba-slider__label--after {
  right: 16px;
}

/* состояние при перетаскивании */

.ba-slider--active {
  cursor: grabbing;
}

/* -------- ЭТАПЫ ПЕРЕСАДКИ -------- */

.stages {
  position: relative;
  padding: 80px 0;
  background: var(--color-bg);
  z-index: 5;
}

.stages__header {
  text-align: center;
  margin-bottom: 60px;
}

.stages__tagline {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(199, 154, 106, 0.5);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

.stages__title {
  font-size: 42px;
  line-height: 1.2;
  margin: 0;
  color: var(--color-text-main);
  max-width: 900px;
  margin: 0 auto;
}

.stages__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* Отдельный этап */

.stage {
  padding: 28px 20px;
  background: var(--color-bg-soft);
  border: 1px solid rgba(226, 226, 224, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-danger), #b01817);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage:hover {
  background: var(--color-bg);
  border-color: var(--color-danger);
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(134, 18, 17, 0.2);
}

.stage:hover::before {
  transform: scaleX(1);
}

.stage__number {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-danger), #b01817);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  font-family: 'Lora', serif;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.stage:hover .stage__number {
  opacity: 0.4;
  transform: scale(1.1);
}

.stage__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px 0;
  color: var(--color-text-main);
  font-family: 'Lora', serif;
  min-height: 44px;
}

.stage__description {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Кнопка в конце */

.stages__cta {
  text-align: center;
  padding-top: 20px;
}

/* Адаптив для этапов */

@media (max-width: 1400px) {
  .stages__grid {
    gap: 16px;
  }

  .stage {
    padding: 24px 16px;
  }

  .stage__number {
    font-size: 48px;
  }

  .stage__title {
    font-size: 16px;
    min-height: 42px;
  }

  .stage__description {
    font-size: 12px;
  }
}

@media (max-width: 1200px) {
  .stages {
    padding: 64px 0;
  }

  .stages__title {
    font-size: 36px;
  }

  .stages__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .stage {
    padding: 28px 20px;
  }

  .stage__title {
    font-size: 17px;
    min-height: auto;
  }

  .stage__description {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .stages {
    padding: 50px 0;
  }

  .stages__header {
    margin-bottom: 40px;
  }

  .stages__title {
    font-size: 32px;
  }

  .stages__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stage {
    padding: 24px 20px;
  }

  .stage__number {
    font-size: 48px;
  }

  .stage__title {
    font-size: 18px;
  }

  .stage__description {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .stages__title {
    font-size: 28px;
  }

  .stage__number {
    font-size: 40px;
  }
}

/* -------- FOOTER -------- */

.footer {
  position: relative;
  padding: 48px 0 20px 0;
  background: var(--color-bg-soft);
  border-top: 1px solid rgba(226, 226, 224, 0.1);
  z-index: 6;
}

/* Первая строка: логотип + колонки */

.footer__top {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(226, 226, 224, 0.1);
}

/* Логотип */

.footer__col--logo {
  display: flex;
  align-items: center;
}

.footer__col--logo .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__col--logo .logo__img {
  height: auto;
  width: auto;
  display: block;
}

.footer__col--logo .logo__text {
  flex-direction: column;
  gap: 2px;
}

.footer__col--logo .logo__title {
  font-size: 16px;
  white-space: nowrap;
}

.footer__col--logo .logo__subtitle {
  font-size: 10px;
  white-space: nowrap;
}

/* Заголовки колонок */

.footer__title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-main);
  margin: 0 0 12px 0;
  font-family: 'Lora', serif;
}

/* Навигация */

.footer__nav,
.footer__contacts,
.footer__docs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  position: relative;
  width: fit-content;
}

.footer__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-danger);
  transition: width 0.3s ease;
}

.footer__link:hover {
  color: var(--color-danger);
  transform: translateX(4px);
}

.footer__link:hover::after {
  width: 100%;
}

/* Вторая строка: copyright */

.footer__bottom {
  padding-top: 20px;
  text-align: center;
}

.footer__copyright {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin: 0;
  opacity: 0.6;
}

/* Адаптив для footer */

@media (max-width: 1200px) {
  .footer__top {
    grid-template-columns: 240px repeat(3, 1fr);
    gap: 50px;
  }
}

@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
  }

  .footer__col--logo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 16px 0;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 24px;
  }

  .footer__col--logo {
    grid-column: auto;
  }

  .footer__title {
    margin-bottom: 10px;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 32px 0 16px 0;
  }

  .footer__top {
    gap: 24px;
  }

  .footer__bottom {
    padding-top: 16px;
  }

  .footer__copyright {
    font-size: 11px;
  }
}

/* -------- АДАПТИВ -------- */

/* Адаптив для секции "О враче" */
@media (max-width: 1024px) {
  .about-doctor__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-doctor__image-wrapper {
    position: static;
  }

  .about-doctor__collage {
    grid-template-rows: repeat(4, 140px);
  }
}

@media (max-width: 768px) {
  .about-doctor {
    padding: 40px 0 30px 0;
  }

  .about-doctor__collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 160px);
    gap: 10px;
  }

  .about-doctor__collage-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .about-doctor__collage-item:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  .about-doctor__collage-item:nth-child(3) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .about-doctor__collage-item:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .about-doctor__collage-item:nth-child(5) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }

  .about-doctor__collage-item:nth-child(6) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .about-doctor__collage-item:nth-child(7) {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
  }

  .about-doctor__collage-item:nth-child(8) {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
  }

  .about-doctor__title {
    font-size: 28px;
  }

  .about-doctor__text p {
    font-size: 15px;
  }

  .about-doctor__education {
    padding: 16px;
  }

  .about-doctor__education-list li {
    font-size: 14px;
  }

  .about-doctor__achievement {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .about-doctor {
    padding: 30px 0 20px 0;
  }

  .about-doctor__collage {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, 200px);
    gap: 8px;
  }

  .about-doctor__collage-item:nth-child(1),
  .about-doctor__collage-item:nth-child(2),
  .about-doctor__collage-item:nth-child(3),
  .about-doctor__collage-item:nth-child(4),
  .about-doctor__collage-item:nth-child(5),
  .about-doctor__collage-item:nth-child(6),
  .about-doctor__collage-item:nth-child(7),
  .about-doctor__collage-item:nth-child(8) {
    grid-column: 1 / 2;
  }

  .about-doctor__collage-item:nth-child(1) { grid-row: 1 / 2; }
  .about-doctor__collage-item:nth-child(2) { grid-row: 2 / 3; }
  .about-doctor__collage-item:nth-child(3) { grid-row: 3 / 4; }
  .about-doctor__collage-item:nth-child(4) { grid-row: 4 / 5; }
  .about-doctor__collage-item:nth-child(5) { grid-row: 5 / 6; }
  .about-doctor__collage-item:nth-child(6) { grid-row: 6 / 7; }
  .about-doctor__collage-item:nth-child(7) { grid-row: 7 / 8; }
  .about-doctor__collage-item:nth-child(8) { grid-row: 8 / 9; }

  .about-doctor__title {
    font-size: 24px;
  }

  .about-doctor__subtitle {
    font-size: 14px;
  }

  .about-doctor__text p {
    font-size: 14px;
  }

  .about-doctor__education {
    padding: 14px;
  }

  .about-doctor__education-title {
    font-size: 15px;
  }

  .about-doctor__education-list li {
    font-size: 13px;
    padding: 6px 0;
    padding-left: 18px;
  }

  .about-doctor__achievement {
    font-size: 13px;
    gap: 12px;
  }

  .about-doctor__achievement-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  /* Метод FUE на мобильных */
  .method-fue {
    padding: 40px 0 30px 0;
  }

  .method-fue__header {
    margin-bottom: 30px;
  }

  .method-fue__title {
    font-size: 28px;
  }

  .method-fue__gallery-item {
    width: 240px;
    height: 240px;
  }

  .method-fue__description-title {
    font-size: 24px;
  }

  .method-fue__description p {
    font-size: 14px;
  }

  .method-fue__advantages-title {
    font-size: 24px;
  }

  .method-fue__advantages-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .method-fue__advantage {
    padding: 20px;
  }

  .method-fue__advantage-title {
    font-size: 16px;
  }

  .method-fue__advantage-text {
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-soft);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 60px 30px;
    border-left: 1px solid rgba(226, 226, 224, 0.1);
    transform: translateX(0);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }

  .nav--active {
    right: 0;
  }

  .nav__link {
    padding: 20px 0;
    border-bottom: 1px solid rgba(226, 226, 224, 0.1);
    text-align: center;
    width: 100%;
    font-size: 18px;
  }

  .nav__link:last-child {
    border-bottom: none;
  }

  .header__actions {
    display: none;
  }

  /* Кнопка внутри меню */
  .nav .header__actions {
    display: block;
    position: static;
    width: 100%;
    background: transparent;
    padding: 0;
    margin-top: 30px;
    transform: none;
    transition: none;
  }

  .nav .header__actions .btn {
    width: 100%;
  }

  .burger {
    display: flex;
  }


  /* Hero - мобильная версия */
  .hero {
    position: relative;
    top: 0;
    min-height: auto;
    height: auto;
    padding: 0;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 !important;
    max-width: 100%;
  }

  /* 1. Фото сверху */
  .hero__image {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    order: 1;
    margin: 0;
  }

  .hero__image::before {
    clip-path: none;
    background-position: center center;
  }

  /* 2. Бегущая строка под фото */
  .hero__doctor-name {
    position: static;
    transform: none;
    width: 100%;
    order: 2;
    padding: 16px 0;
    overflow: hidden;
  }

  .hero__doctor-name-scroll {
    display: flex;
    animation: scroll-mobile 30s linear infinite;
  }

  @keyframes scroll-mobile {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* 3. Контент ниже */
  .hero__content {
    order: 3;
    max-width: 100%;
    padding: 40px 20px !important;
  }

}

@media (max-width: 600px) {
  .header__inner {
    height: 72px;
  }

  .container {
    padding: 0 20px;
  }

  .logo__img {
    height: 60px;
  }

  .logo__title {
    font-size: 16px;
  }

  .logo__subtitle {
    font-size: 10px;
  }

  .btn {
    width: 100%;
    font-size: 13px;
    padding: 12px 20px;
  }

  /* Hero для маленьких экранов */
  .hero__image {
    height: 50vh;
    min-height: 300px;
  }

  .hero__content {
    padding: 30px 20px !important;
  }

  .hero__title {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .hero__text {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .hero__tagline {
    font-size: 10px;
    padding: 5px 10px;
    margin-bottom: 12px;
  }

  .hero__benefits {
    margin-top: 20px;
    gap: 12px;
    flex-wrap: nowrap;
  }

  .hero-benefit {
    padding-left: 12px;
    border-left-width: 1px;
  }

  .hero-benefit:first-child {
    padding-left: 0;
  }

  .hero-benefit__value {
    font-size: 14px;
  }

  .hero-benefit__label {
    font-size: 10px;
    white-space: nowrap;
  }

  .hero__doctor-name {
    padding: 12px 0;
    font-size: 13px;
  }

}
