@import url("assets/fonts/manrope.css");

/* Яркая палитра: фиолет · розовый · оранж · жёлтый */
:root {
  --bg: #fff8fb;
  --bg-alt: #ffffff;
  --text: #2d1b4e;
  --text-muted: #6b5b7a;
  --purple: #8b5cf6;
  --purple-dark: #7c3aed;
  --pink: #ec4899;
  --pink-soft: #fce7f3;
  --orange: #f97316;
  --orange-soft: #ffedd5;
  --yellow: #fbbf24;
  --yellow-soft: #fef9c3;
  --accent: var(--purple);
  --accent-dark: var(--purple-dark);
  --accent-soft: #ede9fe;
  --gradient-main: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
  --gradient-warm: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  --gradient-soft: linear-gradient(180deg, #faf5ff 0%, #fff8fb 40%, #fff7ed 100%);
  --border: rgba(139, 92, 246, 0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(139, 92, 246, 0.08);
  --shadow-hover: 0 8px 32px rgba(236, 72, 153, 0.14);
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--gradient-soft);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 380px;
  height: 380px;
  background: #ddd6fe;
  top: -100px;
  right: -60px;
}

body::after {
  width: 320px;
  height: 320px;
  background: #fed7aa;
  bottom: 12%;
  left: -80px;
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, 100% - 32px);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--pink), var(--orange)) 1;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--purple-dark);
  background: var(--accent-soft);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--gradient-main);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border: none;
  border-radius: 999px;
  background: var(--gradient-main);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.28);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn:active {
  transform: scale(0.98);
}

.btn--outline {
  background: #fff;
  color: var(--purple-dark);
  border: 2px solid var(--purple);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--accent-soft);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.15);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn--full {
  width: 100%;
}

.link-btn {
  border: none;
  background: none;
  color: var(--pink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
  padding: 0;
}

/* Hero */
.hero {
  padding: 48px 0 28px;
  position: relative;
}

.hero::before,
.hero::after {
  content: none;
  display: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: stretch;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  height: 100%;
}

.hero + .section {
  padding-top: 48px;
}

.hero h1 {
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 .highlight {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  margin: 0;
  background: var(--yellow-soft);
  color: #92400e;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__lead {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 36em;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.hero__stats span {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.hero__social-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
}

.btn--hero-cta {
  padding: 12px 20px;
  font-size: 0.9rem;
}

.btn--hero-social {
  padding: 10px 18px;
  font-size: 0.85rem;
  white-space: nowrap;
}

.share-btn {
  align-self: flex-start;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.share-btn:hover {
  color: var(--pink);
}

.hero__media {
  position: relative;
  align-self: stretch;
  min-height: 100%;
}

.hero__photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 12%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Плейсхолдеры */
.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s;
}

.media-placeholder:hover {
  transform: scale(1.02);
}

.media-placeholder--photo {
  aspect-ratio: 4/3;
  min-height: 200px;
  background: linear-gradient(145deg, #a78bfa 0%, #e879f9 100%);
  border: none;
  box-shadow: var(--shadow);
}

.media-placeholder--video {
  aspect-ratio: 16/9;
  min-height: 120px;
  background: linear-gradient(145deg, #fb923c 0%, #facc15 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.2);
}

.media-placeholder--video-lg {
  aspect-ratio: 16/10;
  min-height: 260px;
  background: linear-gradient(145deg, #8b5cf6 0%, #f472b6 100%);
  border: none;
  box-shadow: var(--shadow);
}

.lessons__video-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.lessons__video-frame {
  width: 100%;
  max-width: min(560px, 100%);
  padding: 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 2px solid #ddd6fe;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.lessons__video-inner {
  width: 100%;
  aspect-ratio: 1920 / 996;
  border-radius: calc(var(--radius-sm) + 2px);
  overflow: hidden;
}

.lessons__video-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  vertical-align: top;
}

.media-placeholder--pdf {
  aspect-ratio: 3/4;
  max-width: 180px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #fde047, #fb923c);
  color: #7c2d12;
  border: none;
}

/* Секции */
.section {
  padding: 64px 0;
  position: relative;
}

.section--alt {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

#about {
  padding-bottom: 28px;
}

#about .achievements {
  margin-bottom: 0;
}

#lessons {
  padding-top: 28px;
}

.section--cta {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, #faf5ff 50%, #fff7ed 100%);
}

.section__title {
  position: relative;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 32px;
  padding-bottom: 14px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}

/* Акцент вместо радужного текста: короткий градиентный бар под заголовком */
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-main);
}

.section__title--gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__subtitle {
  color: var(--text-muted);
  margin: 0 0 40px;
  font-size: 1.05rem;
}

.subsection-title {
  font-size: 1.2rem;
  margin: 40px 0 16px;
  color: var(--purple-dark);
}

.hint {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
}

/* Карточки */
.cards {
  display: grid;
  gap: 20px;
}

.cards--4 {
  grid-template-columns: repeat(4, 1fr);
}

.cards--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 22px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card:nth-child(1) { border-top: 3px solid var(--purple); }
.card:nth-child(2) { border-top: 3px solid var(--pink); }
.card:nth-child(3) { border-top: 3px solid var(--orange); }
.card:nth-child(4) { border-top: 3px solid var(--yellow); }

.card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.15rem;
  margin-bottom: 14px;
  background: var(--accent-soft);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Обо мне и экспертиза */
.credentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.credentials__item {
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.credentials__value {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.credentials__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: stretch;
}

.about__video-frame {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #faf5ff 0%, #fff8fb 55%, #fff7ed 100%);
  border: 2px solid #ddd6fe;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.about__video-frame::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--purple), var(--pink), var(--orange));
  pointer-events: none;
  z-index: 1;
}

.about__video-player {
  flex: 1 1 auto;
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: calc(var(--radius-sm) + 2px);
  object-fit: cover;
  object-position: center;
}

.about__intro {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
}

.about__subtitle {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pink);
}

.edu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.edu-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.edu-list li:last-child {
  border-bottom: none;
}

.edu-list strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 2px;
}

.edu-list span {
  display: block;
}

.edu-list--compact li {
  padding: 8px 0;
}

.edu-list--compact strong {
  display: inline;
  margin-bottom: 0;
}

.about__quote {
  margin: 8px 0 0;
  padding: 20px 24px;
  background: linear-gradient(135deg, #faf5ff, #fdf2f8);
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.adv-cards {
  margin-bottom: 32px;
}

.adv-card {
  padding: 26px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.adv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.adv-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.35rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
}

.adv-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.adv-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  list-style: none;
  padding: 20px 24px;
  margin: 0 0 28px;
  background: linear-gradient(90deg, #faf5ff, #fff7ed);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.achievements li {
  padding: 8px 16px;
  background: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Маршрутная карта занятий */
.route-map {
  position: relative;
  margin-bottom: 36px;
  padding: 24px 12px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
}

.route-map__track {
  position: absolute;
  top: 52px;
  left: 12%;
  right: 12%;
  height: 8px;
  z-index: 1;
}

.route-map__track-bg,
.route-map__track-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.route-map__track-bg {
  background: repeating-linear-gradient(
    90deg,
    #e9e0f5 0,
    #e9e0f5 10px,
    #f3eeff 10px,
    #f3eeff 18px
  );
}

.route-map__track-fill {
  width: 0;
  background: var(--gradient-main);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.5);
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.route-map.is-active .route-map__track-fill {
  width: 100%;
}

.route-map__stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.route-map__stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.route-map__pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06), var(--shadow);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.route-map.is-active .route-map__stop:nth-child(1) .route-map__pin { transition-delay: 0.1s; }
.route-map.is-active .route-map__stop:nth-child(2) .route-map__pin { transition-delay: 0.45s; }
.route-map.is-active .route-map__stop:nth-child(3) .route-map__pin { transition-delay: 0.8s; }
.route-map.is-active .route-map__stop:nth-child(4) .route-map__pin { transition-delay: 1.15s; }

.route-map.is-active .route-map__pin {
  transform: scale(1);
  opacity: 1;
}

.route-map__stop:nth-child(1) .route-map__pin { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.route-map__stop:nth-child(2) .route-map__pin { background: linear-gradient(135deg, #ec4899, #f472b6); }
.route-map__stop:nth-child(3) .route-map__pin { background: linear-gradient(135deg, #f97316, #fb923c); }
.route-map__stop:nth-child(4) .route-map__pin { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

.route-map__card {
  position: relative;
  width: 100%;
  padding: 12px 14px 16px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 rgba(139, 92, 246, 0.08), var(--shadow);
  opacity: 0;
  transform: translateY(16px) rotate(0deg);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.route-map__card--1 { border-color: rgba(139, 92, 246, 0.35); transform: translateY(16px) rotate(-1.5deg); }
.route-map__card--2 { border-color: rgba(236, 72, 153, 0.35); transform: translateY(16px) rotate(1.2deg); }
.route-map__card--3 { border-color: rgba(249, 115, 22, 0.35); transform: translateY(16px) rotate(-1deg); }
.route-map__card--4 { border-color: rgba(251, 191, 36, 0.45); transform: translateY(16px) rotate(1.5deg); }

.route-map__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #faf5ff 0%, #fff 100%);
  overflow: hidden;
}

.route-map__card--2 .route-map__thumb { background: linear-gradient(145deg, #fdf2f8, #fff); }
.route-map__card--3 .route-map__thumb { background: linear-gradient(145deg, #fff7ed, #fff); }
.route-map__card--4 .route-map__thumb { background: linear-gradient(145deg, #fefce8, #fff); }

.route-map__thumb svg {
  width: 56px;
  height: 56px;
}

.route-map.is-active .route-map__thumb svg {
  animation: route-thumb-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.route-map.is-active .route-map__stop:nth-child(1) .route-map__thumb svg { animation-delay: 0.35s; }
.route-map.is-active .route-map__stop:nth-child(2) .route-map__thumb svg { animation-delay: 0.65s; }
.route-map.is-active .route-map__stop:nth-child(3) .route-map__thumb svg { animation-delay: 0.95s; }
.route-map.is-active .route-map__stop:nth-child(4) .route-map__thumb svg { animation-delay: 1.25s; }

@keyframes route-thumb-pop {
  0% { transform: scale(0.6) rotate(-8deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.route-map.is-active .route-map__stop:nth-child(1) .route-map__card { transition-delay: 0.25s; }
.route-map.is-active .route-map__stop:nth-child(2) .route-map__card { transition-delay: 0.55s; }
.route-map.is-active .route-map__stop:nth-child(3) .route-map__card { transition-delay: 0.85s; }
.route-map.is-active .route-map__stop:nth-child(4) .route-map__card { transition-delay: 1.15s; }

.route-map.is-active .route-map__card {
  opacity: 1;
  transform: translateY(0) rotate(var(--route-tilt, 0deg));
}

.route-map.is-active .route-map__card--1 { --route-tilt: -1.5deg; }
.route-map.is-active .route-map__card--2 { --route-tilt: 1.2deg; }
.route-map.is-active .route-map__card--3 { --route-tilt: -1deg; }
.route-map.is-active .route-map__card--4 { --route-tilt: 1.5deg; }

.route-map__card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.route-map__stop:nth-child(1) .route-map__card h3 { color: var(--purple-dark); }
.route-map__stop:nth-child(2) .route-map__card h3 { color: var(--pink); }
.route-map__stop:nth-child(3) .route-map__card h3 { color: var(--orange); }
.route-map__stop:nth-child(4) .route-map__card h3 { color: #ca8a04; }

.route-map__card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.route-map.is-active .route-map__pin {
  animation: route-pin-pulse 2.4s ease-in-out 1.2s infinite;
}

.route-map.is-active .route-map__stop:nth-child(2) .route-map__pin { animation-delay: 1.4s; }
.route-map.is-active .route-map__stop:nth-child(3) .route-map__pin { animation-delay: 1.6s; }
.route-map.is-active .route-map__stop:nth-child(4) .route-map__pin { animation-delay: 1.8s; }

@keyframes route-pin-pulse {
  0%, 100% { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06), var(--shadow); }
  50% { box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06), 0 0 0 8px rgba(139, 92, 246, 0.18), var(--shadow); }
}

@media (prefers-reduced-motion: reduce) {
  .route-map__track-fill,
  .route-map__pin,
  .route-map__card,
  .route-map__thumb svg {
    transition: none !important;
    animation: none !important;
  }

  .route-map.is-active .route-map__track-fill {
    width: 100%;
  }

  .route-map.is-active .route-map__pin,
  .route-map.is-active .route-map__card {
    opacity: 1;
    transform: none;
  }
}

.trial-card {
  padding: 30px;
  background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 50%, #fff7ed 100%);
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 2px dashed var(--purple);
}

.trial-card h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: var(--purple-dark);
}

.trial-card__list {
  margin: 0 0 16px;
  padding-left: 20px;
}

.trial-card__list li {
  margin-bottom: 10px;
}

.trial-card__note {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pink);
}

.org-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.org-line span {
  padding: 10px 18px;
  background: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.org-line span:nth-child(odd) { background: #f5f3ff; }
.org-line span:nth-child(even) { background: #fef9c3; }

.results-cases {
  margin-bottom: 0;
}

/* Отзывы */
.section--reviews {
  background: linear-gradient(180deg, #faf5ff 0%, #fff8fb 50%, #fff7ed 100%);
  padding: 56px 0;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.reviews-header .section__title {
  margin-bottom: 8px;
}

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

.reviews-rating {
  padding: 16px 24px;
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--purple);
  min-width: 120px;
}

.reviews-rating__score {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.reviews-rating__label {
  margin: 4px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.reviews-rail-wrap {
  margin-bottom: 24px;
}

.reviews-rail-viewport {
  position: relative;
}

.reviews-rail-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 0 0 8px;
  padding-right: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple);
  transition: opacity 0.25s ease;
}

.reviews-rail-hint__arrow {
  display: inline-block;
  animation: reviews-rail-arrow-nudge 1.4s ease-in-out infinite;
}

@keyframes reviews-rail-arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.reviews-rail-nudge {
  position: absolute;
  top: 50%;
  right: 6px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--purple-dark);
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.22);
  cursor: pointer;
  transform: translateY(-50%);
  animation: reviews-rail-nudge-btn 1.4s ease-in-out infinite;
  transition: opacity 0.25s ease;
}

.reviews-rail-nudge:hover {
  background: #fff;
}

.reviews-rail-wrap.is-scrolled .reviews-rail-hint,
.reviews-rail-wrap.is-end .reviews-rail-nudge {
  opacity: 0;
  pointer-events: none;
}

.reviews-rail-wrap.is-end .reviews-rail-hint {
  opacity: 0;
}

@keyframes reviews-rail-nudge-btn {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(-50%) translateX(4px); }
}

.reviews-rail-viewport::before,
.reviews-rail-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 1;
  pointer-events: none;
}

.reviews-rail-viewport::before {
  left: -4px;
  background: linear-gradient(90deg, #faf5ff 15%, transparent);
}

.reviews-rail-viewport::after {
  right: -4px;
  background: linear-gradient(270deg, #fff8fb 40%, transparent);
}

.reviews-rail-wrap:not(.is-end) .reviews-rail-viewport::after {
  width: 72px;
}

.reviews-rail {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 4px 4px 10px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reviews-rail::-webkit-scrollbar {
  display: none;
}

.reviews-source-label {
  margin: 0 0 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.review-shot {
  flex: 0 0 auto;
  scroll-snap-align: center;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.review-shot:hover {
  transform: translateY(-3px);
}

.review-shot img {
  display: block;
  width: auto;
  height: auto;
  max-height: clamp(120px, 18vh, 188px);
  max-width: min(480px, 80vw);
  border-radius: 14px;
  box-shadow:
    0 2px 8px rgba(45, 27, 78, 0.06),
    0 8px 24px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.12);
}

.review-shot figcaption {
  margin-top: 6px;
  padding-left: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.85;
  line-height: 1.2;
}

/* Лайтбокс отзывов */
.review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.review-lightbox[hidden] {
  display: none;
}

.review-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 27, 78, 0.72);
  backdrop-filter: blur(6px);
}

.review-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: 92vh;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.review-lightbox__figure {
  margin: 0;
  max-height: 88vh;
  overflow: auto;
  text-align: center;
}

.review-lightbox__figure img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: calc(88vh - 48px);
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.review-lightbox__figure video {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: calc(88vh - 48px);
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
}

.review-lightbox__figure figcaption {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.review-lightbox__close {
  position: absolute;
  top: -8px;
  right: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.review-lightbox__close:hover {
  background: #fff;
}

.review-lightbox__nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--purple-dark);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.review-lightbox__nav:hover {
  background: #fff;
}

.review-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 640px) {
  .review-lightbox__panel {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    gap: 12px;
  }

  .review-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .review-lightbox__nav--prev {
    left: 4px;
  }

  .review-lightbox__nav--next {
    right: 4px;
  }

  .review-lightbox__close {
    top: 8px;
    right: 8px;
  }
}

.review {
  margin: 0;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.review:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.review--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #fff 0%, #faf5ff 100%);
  border: 2px solid var(--purple);
  padding: 32px 36px;
}

.review--featured p {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  padding-left: 32px;
}

.review--featured footer {
  padding-left: 32px;
}

.review::before {
  content: "«";
  position: absolute;
  top: 10px;
  left: 16px;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--pink-soft);
  font-family: Georgia, serif;
  z-index: 0;
  pointer-events: none;
}

.review p {
  margin: 0 0 16px;
  padding: 2px 0 0 28px;
  font-style: normal;
  position: relative;
  z-index: 1;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.review footer {
  font-size: 0.9rem;
  color: var(--purple-dark);
  font-weight: 700;
  font-style: normal;
  padding-left: 28px;
}

.review footer::before {
  content: "— ";
}

.case-card {
  padding: 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.case-card:hover {
  transform: translateY(-3px);
}

.case-card:nth-child(1) { border-left: 5px solid var(--purple); }
.case-card:nth-child(2) { border-left: 5px solid var(--pink); }
.case-card:nth-child(3) { border-left: 5px solid var(--orange); }
.case-card:nth-child(4) { border-left: 5px solid var(--yellow); }

.case-card__result {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 8px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.case-card p:last-child {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Таблицы */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare-table,
.path-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
}

.compare-table th,
.compare-table td,
.path-table th,
.path-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th,
.path-table thead th {
  background: linear-gradient(90deg, #ede9fe, #fce7f3);
  font-weight: 700;
  color: var(--purple-dark);
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--text-muted);
}

.compare-table td:nth-child(2) {
  background: #faf5ff;
  font-weight: 600;
  color: var(--purple-dark);
}

/* Цены */
.price-picker {
  padding: 28px;
  margin-bottom: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-picker__row {
  margin-bottom: 22px;
}

.price-picker__row:last-of-type {
  margin-bottom: 0;
}

.price-picker__label {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-picker__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-picker__btn {
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.price-picker__btn:hover:not(:disabled) {
  border-color: var(--purple);
  transform: translateY(-1px);
}

.price-picker__btn.is-active {
  border-color: var(--purple);
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  color: var(--purple-dark);
}

.price-picker__btn.is-disabled,
.price-picker__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.price-picker__result {
  margin-top: 24px;
  padding: 24px 28px;
  text-align: center;
  background: linear-gradient(135deg, #faf5ff 0%, #fff7ed 100%);
  border-radius: var(--radius-sm);
  border: 2px solid rgba(139, 92, 246, 0.2);
}

.price-picker__amount {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.1;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-picker__meta {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.price-picker__unavailable {
  margin: 16px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pink);
  text-align: center;
}

.price-pay {
  margin-bottom: 28px;
}

.price-pay__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
}

.price-pay__lead {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.price-pay__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price-pay__card {
  position: relative;
  padding: 22px 18px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.price-pay__card--accent {
  border-color: rgba(139, 92, 246, 0.35);
  background: linear-gradient(180deg, #fff 0%, #faf5ff 100%);
}

.price-pay__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 12px;
  background: var(--gradient-warm);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #7c2d12;
}

.price-pay__card h4 {
  margin: 6px 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
}

.price-pay__sum {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--text);
}

.price-pay__note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.price-card {
  position: relative;
  padding: 28px 20px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.2s;
}

.price-card:hover {
  transform: translateY(-4px);
}

.price-card--featured {
  border-color: var(--purple);
  background: linear-gradient(180deg, #faf5ff, #fff);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25), var(--shadow);
}

.price-card--featured:hover {
  transform: translateY(-4px);
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--gradient-warm);
  color: #7c2d12;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.price-card h3 {
  margin: 8px 0;
  font-size: 1.05rem;
}

.price-card__amount {
  font-size: 1.85rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.price-card__period {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.price-card p:last-child {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.included {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  list-style: none;
  padding: 20px;
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 500;
  background: linear-gradient(90deg, #fef9c3, #fce7f3, #ede9fe);
  border-radius: var(--radius);
}

.included li::before {
  content: "✦ ";
  color: var(--pink);
  font-weight: 700;
}

.price-footnote {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* FAQ */
.accordion__item {
  border-bottom: 2px solid var(--border);
  background: #fff;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  padding: 0 16px;
}

.accordion__item summary {
  padding: 18px 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}

.accordion__item summary::-webkit-details-marker {
  display: none;
}

.accordion__item summary::after {
  content: "+";
  float: right;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--purple);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
}

.accordion__item[open] summary::after {
  content: "−";
  background: var(--gradient-main);
  color: #fff;
}

.accordion__item p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Формы */
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact__note {
  margin: 16px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact__form-wrap,
.contact__lead {
  padding: 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact__lead {
  background: linear-gradient(180deg, #fff, #fff7ed);
  border: 2px solid #fdba74;
}

.contact__lead .section__title {
  margin-bottom: 10px;
}

.checklist-card__intro {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.checklist-card {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.checklist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(139, 92, 246, 0.16);
}

.checklist-card__preview {
  position: relative;
  padding: 12px 12px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.checklist-card__table-wrap {
  position: relative;
  max-height: 168px;
  overflow: hidden;
}

.checklist-card__table-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36px;
  background: linear-gradient(180deg, transparent, #fff);
  pointer-events: none;
}

.checklist-card__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.62rem;
  line-height: 1.25;
  color: #2d1b4e;
}

.checklist-card__table th,
.checklist-card__table td {
  border: 1px solid #ddd6fe;
  padding: 4px 5px;
  vertical-align: top;
  text-align: left;
}

.checklist-card__table th {
  background: linear-gradient(180deg, #f5f3ff, #faf5ff);
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #7c3aed;
}

.checklist-card__table tbody tr:nth-child(even) td:not(.checklist-card__ion) {
  background: rgba(250, 245, 255, 0.55);
}

.checklist-card__ion {
  width: 12%;
  text-align: center;
  vertical-align: middle;
  font-weight: 800;
  font-size: 0.68rem;
  background: rgba(245, 243, 255, 0.95);
  color: #7c3aed;
}

.checklist-card__table th:nth-child(1) { width: 12%; }
.checklist-card__table th:nth-child(2) { width: 22%; }
.checklist-card__table th:nth-child(3) { width: 66%; }

.checklist-card__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
}

.checklist-card__cta-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.checklist-card__cta-text {
  flex: 1 1 auto;
}

.checklist-card__cta-arrow {
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.checklist-card:hover .checklist-card__cta-arrow {
  transform: translateX(3px);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form input,
.form select {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.form__success {
  padding: 14px;
  background: linear-gradient(90deg, #dcfce7, #fef9c3);
  color: #166534;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

/* Footer */
.footer {
  padding: 48px 0;
  background: linear-gradient(135deg, #2d1b4e 0%, #4c1d95 50%, #831843 100%);
  color: #e9d5ff;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__requisites {
  margin-top: 4px;
  opacity: 0.85;
}

.footer__links {
  margin-top: 8px;
}

.footer__links a {
  color: #f5d0fe;
  font-weight: 600;
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.footer__name {
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
}

.footer__copy {
  opacity: 0.7;
}

/* Расписание слотов */
.schedule__lead {
  margin: -8px auto 20px;
  max-width: 640px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.schedule__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin: 8px 0 16px;
}

.schedule__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.schedule__legend-item::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid transparent;
}

.schedule__legend-item--free::before {
  background: #ecfdf5;
  border-color: #34d399;
}

.schedule__legend-item--busy::before {
  background: #fce7f3;
  border-color: #f472b6;
}

.schedule__legend-item--off::before {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.schedule__scroll {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 4px 4px 8px;
  -webkit-overflow-scrolling: touch;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 108px repeat(7, minmax(52px, 1fr));
  gap: 4px;
  min-width: min(100%, 760px);
  margin: 0 auto;
}

.schedule-grid__corner,
.schedule-grid__day,
.schedule-grid__time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.schedule-grid__corner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 4px;
}

.schedule-grid__day {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--purple-dark);
  font-size: 0.85rem;
}

.schedule-grid__time {
  display: flex;
  align-items: center;
  padding: 0 6px 0 0;
  line-height: 1.2;
  white-space: nowrap;
}

.schedule-grid__cell {
  min-height: 34px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}

.schedule-grid__cell--free {
  background: #ecfdf5;
  border-color: #6ee7b7;
  cursor: pointer;
}

.schedule-grid__cell--free:hover,
.schedule-grid__cell--free:focus-visible {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.25);
  outline: none;
}

.schedule-grid__cell--busy {
  background: #fce7f3;
  border-color: #f9a8d4;
}

.schedule-grid__cell--off {
  background: #f8fafc;
  border-color: #e2e8f0;
  opacity: 0.75;
}

.schedule__note {
  margin: 14px 0 4px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.schedule__timezone {
  margin: 0 0 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  opacity: 0.85;
}

.schedule__cta {
  display: block;
  margin: 0 auto;
}

/* Sticky CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 2px solid #c4b5fd;
  z-index: 90;
  box-shadow: 0 -8px 32px rgba(139, 92, 246, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Адаптив */
@media (max-width: 1024px) {
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .route-map__stops {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
  }

  .route-map__track {
    display: none;
  }

  .route-map__pin {
    transform: scale(1);
    opacity: 1;
  }

  .route-map__card {
    opacity: 1;
    transform: none;
  }

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

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

  .price-card--featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 24px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 2px solid var(--border);
    margin-left: 0;
  }

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

  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

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

  .review--featured {
    grid-column: auto;
  }

  .reviews-header {
    align-items: flex-start;
  }

  .hero__grid,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__video-frame {
    height: auto;
    aspect-ratio: 9 / 16;
    max-width: 360px;
    margin-inline: auto;
  }

  .hero__media {
    order: -1;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__social-actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cards--4 {
    grid-template-columns: 1fr;
  }

  .schedule-grid {
    grid-template-columns: 92px repeat(7, minmax(44px, 1fr));
    min-width: 620px;
  }

  .schedule-grid__time {
    font-size: 0.72rem;
  }

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

  .route-map__stops {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-left: 0;
  }

  .route-map {
    padding: 20px 12px 12px;
  }

  .route-map__track {
    display: block;
    top: 20px;
    bottom: 20px;
    left: 23px;
    right: auto;
    width: 6px;
    height: auto;
  }

  .route-map__track-fill {
    width: 100%;
    height: 0;
    transition: height 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .route-map.is-active .route-map__track-fill {
    width: 100%;
    height: 100%;
  }

  .route-map__stop {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: start;
    text-align: left;
    padding-bottom: 0;
  }

  .route-map__pin {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    width: 46px;
    height: 46px;
    font-size: 0.95rem;
    justify-self: center;
    transform: scale(1);
    opacity: 1;
  }

  .route-map__card {
    grid-column: 2;
    grid-row: 1;
    flex: none;
    display: grid;
    grid-template-columns: 68px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    text-align: left;
    opacity: 1;
    transform: none;
  }

  .route-map__thumb {
    grid-row: 1 / -1;
    height: 64px;
    margin-bottom: 0;
  }

  .route-map__thumb svg {
    width: 48px;
    height: 48px;
  }

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

  .contact__form-wrap,
  .contact__lead {
    padding: 24px;
  }

  .sticky-cta {
    display: block;
  }

  body {
    padding-bottom: 72px;
  }

  .compare-table {
    font-size: 0.78rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px;
  }
}

/* ===== Иконки (SVG вместо emoji) ===== */
.card__icon svg,
.adv-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.adv-card__icon svg {
  width: 26px;
  height: 26px;
}

/* ===== Кнопка Telegram ===== */
.btn--tg {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.3);
}

.btn--tg:hover {
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.35);
}

/* ===== Кнопки соцсетей ===== */
.btn--max {
  background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.btn--max:hover {
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.btn--vk {
  background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn--vk:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.contact__or {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Сравнение ===== */
.compare-note {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* «Мой» столбец — акцент */
.compare-table td:nth-child(2) {
  background: #faf5ff;
  font-weight: 700;
  color: var(--purple-dark);
}

/* ===== Калькулятор ===== */
.calc {
  padding: 24px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.calc__controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.calc__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.calc__field select {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 500;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc__field select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

.calc__result {
  padding: 20px 24px;
  background: linear-gradient(135deg, #faf5ff, #fdf2f8);
  border-radius: var(--radius-sm);
}

.calc__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
}

.calc__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.calc__value {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: right;
}

.calc__note {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Гарантии ===== */
.guarantee-card {
  padding: 24px 22px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.guarantee-card__num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 14px;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-main);
}

.guarantee-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.guarantee-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===== Отзывы учеников (плейсхолдеры) ===== */
.reviews-note--students {
  margin: -8px 0 20px;
}

.reviews-grid--students {
  margin-top: 4px;
}

.review--student::before {
  color: var(--accent-soft);
}

.review--placeholder {
  border: 2px dashed var(--border);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.55);
}

.review--placeholder p {
  color: var(--text-muted);
  font-style: italic;
}

.review--placeholder:hover {
  transform: none;
  box-shadow: none;
}

/* ===== Скинь родителю ===== */
.parent-pitch {
  padding: 32px;
  background: linear-gradient(135deg, #ede9fe 0%, #fce7f3 50%, #ffedd5 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.parent-pitch__body {
  max-width: 640px;
}

.parent-pitch p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.parent-pitch__quote {
  margin: 0 0 20px;
  padding: 20px 24px;
  background: #fff;
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.6;
}

/* ===== Sticky CTA (две кнопки) ===== */
.sticky-cta__row {
  display: flex;
  gap: 10px;
}

.sticky-cta__row .btn {
  flex: 1;
}

/* ===== Активный пункт навигации (scrollspy) ===== */
.nav a.is-active {
  color: var(--purple-dark);
  background: var(--accent-soft);
}

@media (max-width: 768px) {
  .calc__controls {
    grid-template-columns: 1fr;
  }

  .parent-pitch {
    padding: 24px;
  }

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

  .gallery-modal__panel {
    max-height: 92vh;
    margin: 12px;
  }
}

/* ===== Галерея «Обо мне» ===== */
.about-gallery {
  margin: 40px 0 8px;
  padding: 28px;
  background: linear-gradient(135deg, #faf5ff 0%, #fff8fb 50%, #fff7ed 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-gallery__head {
  margin-bottom: 20px;
}

.about-gallery__head .subsection-title {
  margin-top: 0;
}

.about-gallery__lead {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.album-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.album-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  box-shadow: var(--shadow-hover);
}

.album-card:hover .album-card__cta {
  color: var(--purple-dark);
}

.album-card:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.album-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
}

.album-card__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.album-card:hover .album-card__cover img {
  transform: scale(1.06);
}

.album-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 27, 78, 0.5), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.album-card:hover .album-card__cover::after {
  opacity: 1;
}

.album-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--purple-dark);
  box-shadow: 0 2px 8px rgba(45, 27, 78, 0.12);
}

.album-card__open {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--purple-dark);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(45, 27, 78, 0.18);
}

.album-card:hover .album-card__open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.album-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
}

.album-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.album-card__meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
}

.album-card__hint {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.album-card__cta {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--purple);
  transition: color 0.2s ease;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 27, 78, 0.55);
  backdrop-filter: blur(4px);
}

.gallery-modal__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(45, 27, 78, 0.25);
  overflow: hidden;
}

.gallery-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.gallery-modal__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gallery-modal__subtitle {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.gallery-modal__close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--purple-dark);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-modal__close:hover {
  background: var(--purple);
  color: #fff;
}

.gallery-modal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}

.gallery-modal__grid--lab {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gallery-modal__grid--lab .gallery-item__thumb {
  aspect-ratio: 1 / 1;
}

.gallery-modal__grid--lab .gallery-item__thumb--img img {
  object-fit: cover;
  object-position: center;
}

.gallery-modal__grid--lessons {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-modal__grid--lessons .gallery-item__thumb {
  aspect-ratio: 1 / 1;
}

.gallery-modal__grid--lessons .gallery-item__thumb--img img,
.gallery-modal__grid--lessons .gallery-item__thumb--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius-sm) - 2px);
}

.gallery-item__thumb--video {
  position: relative;
  display: block;
  overflow: hidden;
}

.gallery-item__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(45, 27, 78, 0.28);
  pointer-events: none;
}

.gallery-modal__grid--certificates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

.gallery-modal__grid--certificates .gallery-item {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

.gallery-modal__grid--certificates .gallery-item__thumb--natural {
  display: block;
  aspect-ratio: unset;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 0 2px 10px rgba(45, 27, 78, 0.06);
}

.gallery-item__thumb--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: calc(var(--radius-sm) - 2px);
}

.gallery-modal__grid--certificates .gallery-item__thumb--natural img,
.gallery-modal__grid--certificates .gallery-item__thumb--natural video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(360px, 46vw);
  max-height: min(520px, 58vh);
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius-sm) - 2px);
}

.gallery-item {
  margin: 0;
}

.gallery-item--clickable {
  cursor: zoom-in;
  border: none;
  padding: 0;
  background: none;
  text-align: left;
}

.gallery-item--clickable:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.gallery-item__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #faf5ff, #fff);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gallery-item__thumb--img {
  display: block;
  border: none;
  background: transparent;
  padding: 0;
}

.gallery-item__caption {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.gallery-photo-lightbox {
  z-index: 230;
}

@media (max-width: 1024px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Юридические страницы (черновики) */
.legal-page {
  min-height: 100vh;
  background: var(--gradient-soft);
}

.legal-page__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 2rem) 1.25rem 4rem;
}

.legal-page__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}

.legal-page__back:hover {
  text-decoration: underline;
}

.legal-page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.legal-page__meta {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-page h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
  color: var(--text);
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.25rem;
}

.legal-page li + li {
  margin-top: 0.35rem;
}

.legal-page__draft {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--yellow-soft);
  color: var(--text);
  font-size: 0.9rem;
}

