/* ==========================================================================
   Сайт репетитора — стили (методология BEM)
   ========================================================================== */

/* ---------- Переменные ---------- */
:root {
  --primary-50: #f0f7f4;
  --primary-100: #d9ede2;
  --primary-200: #b5dbc6;
  --primary-300: #84c2a3;
  --primary-400: #56a47e;
  --primary-500: #3a8865;
  --primary-600: #2a6d50;
  --primary-700: #235741;
  --primary-800: #1e4636;
  --primary-900: #1a3a2e;

  --warm-50: #fdf8f0;
  --warm-100: #f9edda;
  --warm-200: #f2d9b4;
  --warm-300: #e9bf85;
  --warm-400: #dfa055;
  --warm-500: #d88734;
  --warm-600: #c9702a;
  --warm-700: #a75725;
  --warm-800: #874624;
  --warm-900: #6e3b20;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* ---------- Сброс и база ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
}

/* ---------- Контейнер ---------- */
.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ---------- Анимации ---------- */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translate(-50%, -25%);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.2s ease;
}

.btn__icon {
  width: 1rem;
  height: 1rem;
}

.btn--accent {
  background: var(--warm-500);
}

.btn--accent:hover {
  background: var(--warm-600);
  box-shadow: 0 10px 15px -3px rgba(216, 135, 52, 0.25);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Шапка
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: all 0.3s ease;
}

.header--scrolled {
  background: var(--primary-800);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding-top: 0.75rem;
  padding-bottom: 0.75rem; */
}

.header__logo {
  gap: 0.5rem;
}

.logo__image {
  width: 200px;
  height: 110px;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.header__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.header__link:hover {
  color: var(--primary-500);
}

.header--scrolled .header__link {
  color: var(--primary-50);
}

.header__burger {
  padding: 0.5rem;
  background: none;
  border: 0;
  border-radius: 0.5rem;
  color: #fff;
  transition: color 0.2s ease;
}

.header--scrolled .header__burger {
  color: var(--primary-50);
}

.header__burger-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.header__burger-icon--close {
  display: none;
}

.header--menu-open .header__burger-icon--open {
  display: none;
}

.header--menu-open .header__burger-icon--close {
  display: block;
}

.header__mobile {
  display: none;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.header--menu-open .header__mobile {
  display: block;
}

.header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
}

.header__mobile-link {
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--gray-700);
  transition: color 0.2s ease;
}

.header__mobile-link:hover {
  color: var(--primary-600);
}

@media (min-width: 640px) {
  .header__inner {
    /* padding-top: 1rem;
    padding-bottom: 1rem; */
  }
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }

  .header__burger,
  .header__mobile,
  .header--menu-open .header__mobile {
    display: none;
  }
}

/* ==========================================================================
   Hero (Новый Bento-дизайн)
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: var(--primary-900);
  padding: 6rem 0 4rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 30%, rgba(42, 109, 80, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 85% 70%, rgba(223, 160, 85, 0.15) 0%, transparent 40%),
    linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  z-index: 0;
}

/* Интерактивный "фонарик" за мышью */
.hero__spotlight {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(86, 164, 126, 0.15) 0%,
    transparent 80%
  );
  transition: opacity 0.3s ease;
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

/* --- Текстовая часть --- */
.hero__content {
  color: #fff;
}

.hero__animate {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__animate--delay-1 { animation-delay: 0.1s; }
.hero__animate--delay-2 { animation-delay: 0.3s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-200);
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--warm-400);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--warm-400);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(223, 160, 85, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(223, 160, 85, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(223, 160, 85, 0); }
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero__title-accent {
  color: var(--primary-300);
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--warm-300);
  margin-bottom: 1.5rem;
}

.hero__text {
  max-width: 30rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
}

/* Кнопки */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn--glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  font-weight: 500;
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Подготовка к магнитному эффекту в JS */
.btn--magnetic {
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), background 0.2s, box-shadow 0.2s;
}

/* --- Bento-сетка (Правая часть) --- */
.hero__visual-wrap {
  perspective: 1000px;
}

.hero__visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
  transform-style: preserve-3d;
  /* Плавный переход для 3D-наклона */
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

/* Общие стили карточек */
.hero__card {
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  transform: translateZ(20px); /* Выталкиваем вперед в 3D */
}

/* Главное фото */
.hero__card--photo {
  grid-column: 1 / -1;
  grid-row: 1 / 2;
  aspect-ratio: 4/5;
  max-height: 400px;
  position: relative;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.hero__card--photo:hover .hero__img {
  transform: scale(1.05);
}

.hero__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 58, 46, 0.8), transparent 50%);
  pointer-events: none;
}

/* Карточки со статистикой */
.hero__card--stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  transform: translateZ(40px); /* Выталкиваем сильнее фото */
}

/* Позиционирование карточек в сетке */
.hero__card--float-1 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

.hero__card--float-2 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

/* Третья карточка идет под ними (на мобильных) или поверх (на десктопе) */
.hero__card--float-3 {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
}

.hero__stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(42, 109, 80, 0.4);
  color: var(--primary-200);
  flex-shrink: 0;
}

.hero__stat-icon--warm {
  background: rgba(216, 135, 52, 0.2);
  color: var(--warm-300);
}

.hero__stat-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero__stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  margin-top: 0.15rem;
}

.hero__stat-label span {
  font-size: 0.65rem;
  opacity: 0.8;
}

/* Кнопка скролла */
.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
  z-index: 10;
}

.hero__scroll:hover {
  color: var(--warm-300);
}

.hero__scroll svg {
  width: 1.25rem;
  height: 1.25rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* --- Адаптивность --- */
@media (min-width: 768px) {
  .hero__title { font-size: 3.5rem; }
  .hero__subtitle { font-size: 2rem; }
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .hero__title { font-size: 4rem; }

  /* На десктопе делаем сетку 2x2 */
  .hero__visual {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .hero__card--photo {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    max-height: 420px;
  }

  .hero__card--float-1 { grid-column: 1 / 2; grid-row: 2 / 3; }
  .hero__card--float-2 { grid-column: 2 / 3; grid-row: 2 / 3; }
  /* Третью карточку делаем "парящей" поверх сетки */
  .hero__card--float-3 {
    position: absolute;
    bottom: 15%;
    right: -2rem;
    grid-column: auto;
    grid-row: auto;
    width: max-content;
    padding: 1.25rem;
    animation: float-card 4s ease-in-out infinite;
  }
}

@keyframes float-card {
  0%, 100% { transform: translateZ(60px) translateY(0); }
  50% { transform: translateZ(60px) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__animate, .hero__scroll svg, .hero__badge-dot, .hero__card--float-3 {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Секции (общее)
   ========================================================================== */
.section {
  padding: 4rem 0;
}

.section--white {
  background: #fff;
}

.section--gray {
  background: var(--gray-50);
}

.section--dark {
  background: var(--primary-800);
  color: #fff;
}

.section__head {
  margin-bottom: 3rem;
  text-align: center;
}

.section__title {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
}

.section__title--left {
  margin-bottom: 1.5rem;
}

.section__title--light {
  color: #fff;
}

.section__subtitle {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--gray-600);
}

@media (min-width: 640px) {
  .section {
    padding: 6rem 0;
  }

  .section__title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .section__title {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   Обо мне
   ========================================================================== */
.about {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__image {
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.about__img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.about__badge {
  display: none;
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  padding: 1rem;
  background: var(--primary-600);
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: #fff;
}

.about__badge-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.about__badge-label {
  font-size: 0.875rem;
  color: var(--primary-100);
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  line-height: 1.625;
  color: var(--gray-600);
}

.about__text strong {
  color: var(--gray-800);
}

.about__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
}

.feature__svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature__icon--primary {
  background: var(--primary-100);
  color: var(--primary-700);
}

.feature__icon--warm {
  background: var(--warm-100);
  color: var(--warm-700);
}

.feature__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

.feature__text {
  font-size: 0.75rem;
  color: var(--gray-500);
}

@media (min-width: 640px) {
  .about__img {
    height: 20rem;
  }

  .about__badge {
    display: block;
  }
}

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

/* ==========================================================================
   Предметы и стоимость
   ========================================================================== */
.plans-section {
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
}

/* Живой фон */
.plans-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.plans-section__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  animation: shape-float 8s ease-in-out infinite alternate;
}

.plans-section__shape--1 {
  top: -5%;
  left: -5%;
  width: 35rem;
  height: 35rem;
  background: rgba(86, 164, 126, 0.15); /* primary */
}

.plans-section__shape--2 {
  bottom: -10%;
  right: -5%;
  width: 30rem;
  height: 30rem;
  background: rgba(223, 160, 85, 0.15); /* warm */
  animation-delay: -3s;
}

.plans-section__shape--3 {
  top: 40%;
  left: 50%;
  width: 20rem;
  height: 20rem;
  background: rgba(42, 109, 80, 0.08);
  animation-delay: -5s;
  transform: translateX(-50%);
}

@keyframes shape-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

.plans-section .container {
  position: relative;
  z-index: 1;
}

.plans-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-600);
}

.plans-section__eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--warm-500);
}

/* Сетка карточек */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 68rem;
  margin: 0 auto;
}

/* Карточка */
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Плавный подъем и свечение при наведении */
.plan:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(26, 58, 46, 0.15);
  border-color: var(--primary-200);
}

.plan__top {
  flex-grow: 1;
}

.plan__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Анимация иконки */
.plan:hover .plan__icon {
  transform: scale(1.1) rotate(-5deg);
}

.plan__svg {
  width: 2rem;
  height: 2rem;
}

.plan__icon--primary {
  background: var(--primary-100);
  color: var(--primary-700);
}

.plan__icon--warm {
  background: var(--warm-100);
  color: var(--warm-700);
}

.plan__title {
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
}

.plan__text {
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-600);
}

/* Нижняя часть (цена и кнопка) */
.plan__bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--gray-200);
}

.plan__price {
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  text-align: center;
}

.plan__price--primary {
  background: var(--primary-50);
  color: var(--primary-700);
}

.plan__price--warm {
  background: var(--warm-50);
  color: var(--warm-700);
}

.plan__price-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.plan__price-unit {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* Кнопка */
.plan__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem;
  background: var(--gray-100);
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-700);
  transition: all 0.2s ease;
}

.plan__btn:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.plan__btn--accent {
  background: var(--warm-500);
  color: #fff;
}

.plan__btn--accent:hover {
  background: var(--warm-600);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(216, 135, 52, 0.4);
}

/* Выделенная карточка (Абонемент) */
.plan--featured {
  border: 2px solid var(--warm-300);
  box-shadow: 0 12px 30px -10px rgba(223, 160, 85, 0.2);
}

.plan--featured:hover {
  border-color: var(--warm-400);
  box-shadow: 0 30px 60px -15px rgba(223, 160, 85, 0.3);
}

.plan__badge {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  padding: 0.35rem 0.875rem;
  background: var(--warm-500);
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 4px 10px -2px rgba(201, 112, 42, 0.5);
}

/* Плашка со скидками под карточками */
.plans__discount-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 48rem;
  margin: 2.5rem auto 0;
  padding: 1rem 1.5rem;
  background: rgba(223, 160, 85, 0.08); /* Легкий теплый фон */
  border: 1px dashed var(--warm-400);
  border-radius: 1rem;
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.plans__discount-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--warm-100);
  border-radius: 50%;
  color: var(--warm-600);
}

.plans__discount-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.plans__discount-note strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* Адаптивность для мобильных */
@media (max-width: 640px) {
  .plans__discount-note {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
  }
}

/* Адаптивность */
@media (min-width: 640px) {
  .plan__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .plan__price {
    text-align: left;
    flex-grow: 1;
  }

  .plan__btn {
    width: auto;
    padding: 0.875rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
  }

  .plan {
    padding: 2.5rem 2rem;
  }

  .plan__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .plan__price {
    text-align: center;
  }
}

/* Эффект привлечения внимания к заполненному полю */
@keyframes input-highlight {
  0% { border-color: var(--gray-200); box-shadow: none; }
  50% { border-color: var(--primary-500); box-shadow: 0 0 0 4px rgba(58, 136, 101, 0.15); }
  100% { border-color: var(--gray-200); box-shadow: none; }
}

.form__input--highlight {
  animation: input-highlight 1.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  .plans-section__shape {
    animation: none;
  }
  .plan, .plan__icon, .plan__btn {
    transition: none;
  }
}

/* ==========================================================================
   Методика
   ========================================================================== */
.methodology {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, var(--primary-50) 100%);
}

.methodology::before {
  content: "";
  position: absolute;
  top: -8rem;
  right: -8rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 160, 85, 0.14), transparent 65%);
  pointer-events: none;
}

.methodology::after {
  content: "";
  position: absolute;
  bottom: -8rem;
  left: -10rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 164, 126, 0.14), transparent 65%);
  pointer-events: none;
}

.methodology .container {
  position: relative;
  z-index: 1;
}

.methodology__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-600);
}

.methodology__eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--warm-500);
}

/* Сетка: фото + шаги */
.methodology__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

/* ----- Фото / заглушка ----- */
.methodology__media {
  position: relative;
}

.methodology__photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.5rem;
  background: var(--primary-50);
  box-shadow: 0 30px 60px -25px rgba(26, 58, 46, 0.35);
}

/* Заглушка (удалить при замене на <img class="methodology__img">) */
.methodology__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  min-height: 22rem;
  padding: 2rem;
  text-align: center;
  color: var(--primary-600);
  background:
    radial-gradient(circle at 25% 20%, rgba(223, 160, 85, 0.2), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(86, 164, 126, 0.25), transparent 50%),
    repeating-linear-gradient(135deg, rgba(42, 109, 80, 0.05) 0 12px, transparent 12px 24px),
    linear-gradient(150deg, var(--primary-100), var(--primary-50) 55%, var(--warm-50));
}

.methodology__placeholder-icon {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.8;
}

.methodology__placeholder-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-700);
}

.methodology__placeholder-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Реальное фото */
.methodology__img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

.methodology__photo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(26, 58, 46, 0.55), transparent 55%);
}

.methodology__badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  padding: 0.875rem 1.25rem;
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px -10px rgba(26, 58, 46, 0.45);
}

.methodology__badge-value {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-700);
}

.methodology__badge-label {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* Плашка с формулой */
.methodology__chip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  background: var(--warm-500);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  box-shadow: 0 12px 20px -8px rgba(201, 112, 42, 0.6);
  transform: rotate(4deg);
  animation: chip-float 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes chip-float {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-6px); }
}

/* ----- Шаги ----- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  padding: 1.25rem;
  border: 1px solid var(--gray-100);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 2px rgba(26, 58, 46, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.step:hover {
  transform: translateX(4px);
  border-color: var(--primary-200);
  box-shadow: 0 16px 30px -18px rgba(26, 58, 46, 0.35);
}

.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary-100);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-700);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.step:nth-child(even) .step__num {
  background: var(--warm-100);
  color: var(--warm-700);
}

.step:hover .step__num {
  background: var(--primary-600);
  color: #fff;
  transform: scale(1.06);
}

.step:nth-child(even):hover .step__num {
  background: var(--warm-500);
  color: #fff;
}

.step__body {
  padding-top: 0.125rem;
}

.step__title {
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-900);
}

.step__text {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--gray-600);
}

@media (min-width: 640px) {
  .step {
    padding: 1.5rem;
  }

  .step__num {
    width: 3rem;
    height: 3rem;
  }

  .step__text {
    font-size: 0.9375rem;
  }
}

@media (min-width: 1024px) {
  .methodology__grid {
    grid-template-columns: 5fr 6fr;
    gap: 3.5rem;
  }

  .methodology__media {
    position: sticky;
    top: 7.5rem;
  }

  .methodology__placeholder,
  .methodology__img {
    min-height: 32rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .methodology__chip {
    animation: none;
  }

  .step,
  .step__num {
    transition: none;
  }
}

/* ==========================================================================
   Диплом (Новый интерактивный дизайн)
   ========================================================================== */
.diplomas-section {
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
}

/* Декоративный фон */
.diplomas-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.diplomas-section__glow {
  width: 50rem;
  height: 50rem;
  background: radial-gradient(circle, rgba(223, 160, 85, 0.08) 0%, transparent 60%);
  border-radius: 50%;
}

.diplomas-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-600);
}

.diplomas-section__eyebrow::before,
.diplomas-section__eyebrow::after {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: var(--warm-500);
}

.diplomas {
  display: flex;
  justify-content: center;
  perspective: 1200px; /* Для 3D-эффекта */
}

/* Обертка для 3D-наклона */
.diploma-wrap {
  position: relative;
  width: 100%;
  max-width: 48rem;
  transform-style: preserve-3d;
  transition: transform 0.1s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}

/* Внешняя стеклянная рамка */
.diploma-frame {
  position: relative;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  box-shadow: 
    0 20px 40px -10px rgba(26, 58, 46, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  transform: translateZ(30px); /* Выталкиваем рамку вперед */
}

/* Сама кнопка с фото */
.diploma {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.diploma__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Эффект при наведении на кнопку */
.diploma:hover .diploma__img {
  transform: scale(1.03);
}

/* Оверлей (появляется при наведении) */
.diploma__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(26, 58, 46, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.diploma:hover .diploma__overlay {
  opacity: 1;
}

.diploma__zoom-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.diploma__zoom-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.diploma:hover .diploma__zoom-icon {
  transform: scale(1);
}

.diploma__hint {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.05em;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.diploma:hover .diploma__hint {
  transform: translateY(0);
}

/* Плавающий бейдж с вузом */
.diploma__badge {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%) translateZ(50px); /* Выталкиваем сильнее всего */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-800);
  border-radius: 2rem;
  color: var(--warm-300);
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow: 0 10px 25px -5px rgba(26, 58, 46, 0.4);
  white-space: nowrap;
  animation: float-badge 4s ease-in-out infinite;
}

.diploma__badge svg {
  width: 1.25rem;
  height: 1.25rem;
}

@keyframes float-badge {
  0%, 100% { transform: translateX(-50%) translateZ(50px) translateY(0); }
  50% { transform: translateX(-50%) translateZ(50px) translateY(-8px); }
}

/* Эффект блика (пробегающий луч) */
.diploma::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.diploma:hover::after {
  left: 200%;
}

/* Адаптивность */
@media (min-width: 640px) {
  .diploma-frame {
    padding: 1.5rem;
  }
  
  .diploma__hint {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .diploma-wrap,
  .diploma__img,
  .diploma__overlay,
  .diploma__zoom-icon,
  .diploma__hint,
  .diploma__badge,
  .diploma::after {
    transition: none;
    animation: none;
  }
}

/* ==========================================================================
   Отзывы
   ========================================================================== */
.reviews {
  display: grid;
  gap: 1.5rem;
}

.review {
  padding: 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 1rem;
}

.review__stars {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  letter-spacing: 0.25rem;
  color: var(--warm-400);
}

.review__text {
  white-space: pre-line;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-style: italic;
  line-height: 1.625;
  color: var(--gray-700);
}

.review__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
}

.review__role {
  font-size: 0.75rem;
  color: var(--gray-500);
}

@media (min-width: 768px) {
  .reviews {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Контакты
   ========================================================================== */
.contacts {
  display: grid;
  gap: 3rem;
}

.contacts__lead {
  margin-bottom: 2rem;
  line-height: 1.625;
  color: var(--primary-100);
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  transition: background 0.2s ease;
}

.contact__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact:hover .contact__icon {
  background: rgba(255, 255, 255, 0.2);
}

.contact__map {
  display: inline-block;
  margin: 0.125rem 0;
  font-size: 0.875rem;
  color: var(--warm-300);
  text-decoration: underline;
}

.contact__map:hover {
  color: var(--warm-200);
}

.contact--static:hover .contact__icon {
  background: rgba(255, 255, 255, 0.1);
}

.contact__label {
  font-size: 0.875rem;
  color: var(--primary-200);
}

.contact__value {
  font-weight: 500;
  transition: color 0.2s ease;
}

a.contact:hover .contact__value {
  color: var(--warm-300);
}

/* Форма */
.form-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  color: var(--gray-900);
}

.form-card__title {
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.form-card__subtitle {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.form-card__success {
  padding: 2rem 0;
  text-align: center;
}

.form-card__success-icon {
  margin-bottom: 1rem;
  font-size: 2.25rem;
}

.form-card__success-title {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.form-card__success-text {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  outline: none;
  font: inherit;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.form__input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px rgba(58, 136, 101, 0.2);
}

.form__input--textarea {
  resize: none;
}

.form__submit {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--primary-600);
  border: 0;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.15s ease;
}

.form__submit:hover {
  background: var(--primary-700);
  box-shadow: 0 10px 15px -3px rgba(42, 109, 80, 0.25);
}

.form__note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-400);
}

@media (min-width: 640px) {
  .form-card {
    padding: 2rem;
  }
}

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

/* ==========================================================================
   Подвал
   ========================================================================== */
.footer {
  padding: 2rem 0;
  background: var(--primary-900);
  color: var(--primary-200);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__brand-logo {
  filter: brightness(0) invert(1);
}


.footer__info {
  text-align: center;
  font-size: 0.875rem;
}

.footer__copy {
  color: var(--primary-400);
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
  }

  .footer__info {
    text-align: right;
  }
}

/* ==========================================================================
   Плавающие кнопки
   ========================================================================== */
.float {
  display: none;
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  flex-direction: column;
  gap: 0.75rem;
}

.float--visible {
  display: flex;
}

.float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: #fff;
  transition: all 0.2s ease;
}

.float__btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.float__btn:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.float__btn--whatsapp {
  background: #22c55e;
}

.float__btn--whatsapp:hover {
  background: #16a34a;
}

.float__btn--telegram {
  background: #3b82f6;
}

.float__btn--telegram:hover {
  background: #2563eb;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  animation: fade-in 0.2s ease;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 0;
  font-size: 1.875rem;
  line-height: 2.25rem;
  color: #fff;
  transition: color 0.2s ease;
}

.lightbox__close:hover {
  color: #d1d5db;
}
