/* ===================================
   COMPONENTS — переиспользуемые элементы
   =================================== */

/* ===== КНОПКИ ===== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 12px 32px -8px var(--pink-500);
  z-index: 0;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--violet-500), var(--coral-400));
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -8px var(--pink-500);
}
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-900);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--pink-300);
}
.btn-secondary:hover {
  background: var(--white);
  border-color: var(--pink-500);
  transform: translateY(-3px);
}

/* ===== БЕЙДЖ (hero-eyebrow) ===== */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 61, 143, 0.2);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--pink-700);
  margin-bottom: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-500);
  box-shadow: 0 0 12px var(--pink-500);
  animation: pulse 2s infinite;
}

/* Hero на фото-фоне — светлые версии элементов */
.hero .hero-eyebrow {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.hero .hero-eyebrow::before {
  background: #fff;
  box-shadow: 0 0 12px #fff;
}
.hero .btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink-900);
  border-color: #fff;
}

/* ===== БЛЁСТКИ ===== */
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
  animation: sparkle 3s infinite;
  pointer-events: none;
}
.sparkle.s1 { top: 20%; left: 15%;  animation-delay: 0s; }
.sparkle.s2 { top: 30%; right: 20%; animation-delay: 1s; }
.sparkle.s3 { bottom: 30%; left: 25%; animation-delay: 2s; }
.sparkle.s4 { top: 60%; right: 15%; animation-delay: 1.5s; }
.sparkle.s5 { top: 50%; left: 10%;  animation-delay: 0.5s; width: 12px; height: 12px; }

/* ===== БЕГУЩАЯ СТРОКА ===== */
.marquee {
  background: linear-gradient(90deg, var(--pink-500), var(--violet-500), var(--coral-400), var(--pink-500));
  background-size: 300% 100%;
  padding: 22px 0;
  overflow: hidden;
  position: relative;
  animation: gradientShift 8s ease infinite;
  transform: rotate(-1.5deg);
  margin: 40px 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 500;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 60px;
}
.marquee-item::after {
  content: '✦';
  font-size: 20px;
  opacity: 0.7;
}

/* ===== КАРТОЧКА ПРЕИМУЩЕСТВ ===== */
.benefit {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: all 0.5s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}
.benefit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}
.benefit:hover {
  transform: translateY(-8px);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-strong);
}
.benefit:hover::before { opacity: 1; }
.benefit:hover .benefit-num,
.benefit:hover h3,
.benefit:hover p { color: var(--white); }

.benefit-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  font-weight: 500;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.5s;
}
.benefit h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ink-900);
  transition: color 0.5s;
}
.benefit p {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.6;
  transition: color 0.5s;
}

/* ===== ТАБЫ ПРАЙСА ===== */
.price-tab {
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--pink-200);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}
.price-tab.active {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 20px -6px var(--pink-500);
}
.price-tab:hover:not(.active) {
  border-color: var(--pink-400);
  transform: translateY(-2px);
}

/* ===== ЭЛЕМЕНТ ПРАЙСА ===== */
.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 158, 201, 0.25);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}
.price-item:hover {
  transform: translateX(6px);
  border-color: var(--pink-400);
  background: var(--white);
  box-shadow: 0 10px 30px -10px var(--pink-400);
}
.price-item-name {
  font-size: 15px;
  color: var(--ink-900);
  font-weight: 500;
  min-width: 0;
  word-break: break-word;
}
.price-item-cost {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  margin-left: 16px;
  flex-shrink: 0;
}

/* ===== КАРТОЧКИ КОМПЛЕКСОВ ===== */
/* Компактнее стандартного .section-sub — сразу за текстом идёт сетка карточек */
#tab-complex .section-sub { margin-bottom: 20px; }
.complex-card {
  padding: 32px 24px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  color: var(--white);
  transition: transform 0.4s;
}
.complex-card:hover { transform: translateY(-8px) scale(1.02); }
.complex-card.xs { background: linear-gradient(135deg, #ffb3c6, #ff8fab); }
.complex-card.s  { background: linear-gradient(135deg, var(--pink-400), var(--pink-600)); }
.complex-card.m  { background: linear-gradient(135deg, var(--violet-400), var(--pink-500)); }
.complex-card.l  { background: linear-gradient(135deg, var(--violet-500), var(--coral-400)); }
.complex-card.xl { background: linear-gradient(135deg, #6d3fc0, var(--violet-500)); }

.complex-size {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 16px;
}
.complex-desc {
  font-size: 13px;
  opacity: 0.95;
  margin-bottom: 20px;
  line-height: 1.5;
}
.complex-price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
}

/* ===== АКЦИОННЫЕ КАРТОЧКИ ===== */
.promo-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.4s;
}
.promo-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-6px);
}
.promo-discount {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
}
.promo-label {
  font-size: 14px;
  opacity: 0.95;
  font-weight: 500;
}

/* ===== FAQ ===== */
.faq-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all 0.3s;
}
.faq-item:hover { border-color: var(--pink-400); }
.faq-q:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: -3px;
}
.faq-item.open {
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.faq-q {
  width: 100%;
  padding: 22px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-900);
  user-select: none;
}
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.4s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 28px;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 28px 22px;
}
.faq-a p {
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== ФОРМА ===== */
.contact-form-note {
  font-size: 12px;
  opacity: 0.5;
  text-align: center;
  margin-top: 16px;
  color: var(--white);
}

/* ===== ПРЕЛОАДЕР ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, var(--pink-200) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, var(--lavender-300) 0%, transparent 45%);
  opacity: 0.6;
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  font-family: var(--font-display);
  font-size: clamp(38px, 8vw, 80px);
  font-weight: 700;
  letter-spacing: 6px;
  background: var(--gradient-vibrant);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 3s ease infinite, preloader-fade 1.2s ease both;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  text-align: center;
  padding: 0 20px;
}
@media (max-width: 400px) {
  .preloader-logo { letter-spacing: 4px; }
}
.preloader-sub {
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--pink-600);
  margin-top: 8px;
  animation: preloader-fade 1.2s ease 0.2s both;
  position: relative;
  z-index: 1;
}
.preloader-bar {
  margin-top: 32px;
  width: 200px;
  height: 3px;
  background: rgba(255, 61, 143, 0.15);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.preloader-bar::after {
  content: '';
  position: absolute;
  left: -40%;
  top: 0;
  width: 40%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 100px;
  animation: preloader-slide 1.2s ease-in-out infinite;
}
@keyframes preloader-fade {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes preloader-slide {
  0%   { left: -40%; }
  100% { left: 100%; }
}

/* Блокировка скролла во время прелоадера */
body.loading {
  overflow: hidden;
  height: 100vh;
}

/* ===== СЕКЦИЯ СЧЁТЧИКОВ ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}
.stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255, 61, 143, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.stat-card:hover::before { opacity: 1; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 600;
  line-height: 1;
  background: var(--gradient-vibrant);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease infinite;
  display: inline-flex;
  align-items: baseline;
  position: relative;
  z-index: 1;
}
.stat-suffix {
  font-size: 0.5em;
  margin-left: 4px;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-500);
  margin-top: 14px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}
.stat-divider {
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 18px auto 0;
  position: relative;
  z-index: 1;
}

/* ===== КАРТА ===== */
.contact-map {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.4);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.contact-map::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255, 158, 201, 0.2);
}

/* ===== КОНФЕТТИ ===== */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

/* ===========================================================
   КАЛЬКУЛЯТОР — плитки с иконками
   =========================================================== */
.calc-shell {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  margin-top: 50px;
  align-items: start;
}

/* ===== ЛЕВАЯ ЧАСТЬ ===== */
.calc-main {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.calc-main::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Переключатель Ж/М */
.calc-gender-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--pink-200);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.calc-gender-switch button {
  padding: 11px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.calc-gender-switch button.active {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 6px 18px -6px var(--pink-500);
}

/* Группа плиток */
.calc-group {
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.calc-group:last-child { margin-bottom: 0; }

.calc-group-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.calc-group-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.calc-group-title::before {
  content: '';
  width: 32px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Сетка плиток */
.calc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.calc-tile {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.calc-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-tile-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--border-glass);
  border-radius: 16px;
  padding: 22px 14px 18px;
  text-align: center;
  transition: all 0.3s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.calc-tile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.3;
  transition: color 0.3s;
}

.calc-tile-price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: color 0.3s, -webkit-text-fill-color 0.3s;
  line-height: 1;
}

/* Чекмарк в углу */
.calc-tile-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--pink-300);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-smooth);
}
.calc-tile-check::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) translateY(-1px) scale(0);
  transition: transform 0.25s var(--ease-smooth);
}

/* Hover */
.calc-tile:hover .calc-tile-card {
  border-color: var(--pink-400);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(255, 61, 143, 0.35);
}

/* Checked state */
.calc-tile input:checked + .calc-tile-card {
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 16px 36px -12px rgba(233, 30, 122, 0.55);
  transform: translateY(-2px);
}
.calc-tile input:checked + .calc-tile-card .calc-tile-name {
  color: var(--white);
}
.calc-tile input:checked + .calc-tile-card .calc-tile-price {
  background: none;
  -webkit-text-fill-color: var(--white);
  color: var(--white);
}
.calc-tile input:checked + .calc-tile-card .calc-tile-check {
  background: var(--white);
  border-color: var(--white);
}
.calc-tile input:checked + .calc-tile-card .calc-tile-check::after {
  border-color: var(--pink-600);
  transform: rotate(-45deg) translateY(-1px) scale(1);
}

/* ===== ПРАВАЯ ЧАСТЬ: СВОДКА ===== */
.calc-summary {
  background: linear-gradient(135deg, var(--ink-900) 0%, #2a1322 100%);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: var(--white);
  position: sticky;
  top: 100px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(26, 11, 20, 0.4);
}
.calc-summary::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 61, 143, 0.2) 0%, transparent 50%);
  pointer-events: none;
}
.calc-summary > * { position: relative; z-index: 1; }

.calc-summary-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.calc-summary-title::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Выбор тарифа */
.calc-plan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.calc-plan button {
  padding: 12px 10px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.3s;
  text-align: center;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 60px;
}
.calc-plan button strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.calc-plan button span {
  display: block;
  font-size: 11.5px;
  opacity: 0.85;
}
.calc-plan button.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 18px -6px var(--pink-500);
}
.calc-plan button.active span { opacity: 1; }

/* Описание выбранного тарифа — поясняющий текст под плашками */
.calc-plan-desc {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid var(--pink-500);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 22px;
  animation: fadeUp 0.3s ease;
}

@media (max-width: 380px) {
  .calc-plan button span { font-size: 10.5px; }
  .calc-plan button strong { font-size: 15px; }
}

.calc-selected-list {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 4px;
}
.calc-selected-list::-webkit-scrollbar { width: 4px; }
.calc-selected-list::-webkit-scrollbar-thumb {
  background: var(--pink-500);
  border-radius: 2px;
}
.calc-selected-list::-webkit-scrollbar-track { background: transparent; }

.calc-selected-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  gap: 10px;
  animation: fadeUp 0.4s ease;
}
.calc-selected-item:last-child { border-bottom: none; }
.calc-selected-name {
  opacity: 0.9;
  flex: 1;
}
.calc-selected-price {
  font-weight: 600;
  white-space: nowrap;
}
.calc-selected-remove {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.calc-selected-remove:hover { background: var(--pink-500); }

.calc-empty {
  text-align: center;
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-style: italic;
}
.calc-empty::before {
  content: '←';
  display: block;
  font-size: 32px;
  margin-bottom: 8px;
  font-style: normal;
  opacity: 0.4;
}

.calc-totals {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.calc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
  opacity: 0.7;
}
.calc-total-row.discount {
  color: var(--pink-300);
  opacity: 1;
}
.calc-total-row.final {
  margin-top: 14px;
  margin-bottom: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 15px;
  opacity: 1;
}
.calc-total-row.final .calc-total-value {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink-300), var(--violet-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.calc-cta {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.calc-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--pink-500);
}
.calc-cta:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calc-cta-hint {
  text-align: center;
  font-size: 11px;
  opacity: 0.5;
  margin-top: 10px;
}

/* ===========================================================
   ОТЗЫВЫ
   =========================================================== */
.reviews-wrap {
  position: relative;
  margin-top: 40px;
}

.reviews-track-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 8px 0;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.8s var(--ease-smooth);
  will-change: transform;
}

.review-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '“';
  position: absolute;
  top: -20px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 140px;
  color: var(--pink-200);
  opacity: 0.5;
  line-height: 1;
  pointer-events: none;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--pink-400);
  box-shadow: var(--shadow-soft);
}

.review-stars {
  display: flex;
  gap: 4px;
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.review-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-700);
  flex: 1;
  position: relative;
  z-index: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 158, 201, 0.25);
  position: relative;
  z-index: 1;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  flex-shrink: 0;
}
.review-avatar--emoji {
  background: rgba(255, 255, 255, 0.1);
  font-size: 26px;
}

.review-meta-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
}

.review-meta-date {
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 2px;
}

/* Управление каруселью */
.reviews-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.reviews-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  border: 1.5px solid var(--pink-300);
  color: var(--pink-600);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  cursor: pointer;
}
.reviews-arrow:hover:not(:disabled) {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--white);
  transform: scale(1.08);
}
.reviews-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.reviews-dots {
  display: flex;
  gap: 8px;
  margin: 0 12px;
}
.reviews-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink-200);
  cursor: pointer;
  transition: all 0.3s;
}
.reviews-dot.active {
  background: var(--gradient-primary);
  width: 32px;
  border-radius: 100px;
}

/* Ссылка «все отзывы» */
.reviews-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.reviews-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink-600);
  font-weight: 600;
  font-size: 15px;
  transition: gap 0.3s;
}
.reviews-cta a:hover { gap: 14px; }

/* ===== ПЛАВАЮЩАЯ КНОПКА MAX ===== */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #3F8AE0 0%, #6B5BD9 50%, #A455E5 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(107, 91, 217, 0.45);
  z-index: 90;
  transition: transform 0.3s;
  animation: fab-pulse 3s infinite;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.fab:hover { transform: scale(1.1); }
.fab-label {
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 560px) {
  .fab {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }
  .fab-label {
    font-size: 13px;
  }
}

/* ===========================================================
   ЭКРАН УСПЕХА ПОСЛЕ ОТПРАВКИ ФОРМЫ
   =========================================================== */
.form-success {
  text-align: center;
  padding: 24px 8px;
  animation: fadeUp 0.6s var(--ease-smooth);
}

.form-success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 22px;
  box-shadow: 0 16px 36px -10px rgba(233, 30, 122, 0.55);
  position: relative;
}
.form-success-icon::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--pink-300);
  opacity: 0.4;
  animation: success-ring 1.4s ease-out infinite;
}
@keyframes success-ring {
  0%   { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.3);  opacity: 0; }
}

.form-success-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--white);
  letter-spacing: -0.01em;
}

.form-success-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.form-success-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.form-success-hint a {
  color: var(--pink-300);
  font-weight: 600;
  white-space: nowrap;
}
.form-success-hint a:hover { color: var(--pink-400); }

/* Внутри модалки калькулятора — другие цвета (модалка светлая) */
.calc-modal .form-success-title { color: var(--ink-900); }
.calc-modal .form-success-text  { color: var(--ink-500); }
.calc-modal .form-success-hint  { color: var(--ink-500); border-top-color: var(--border-glass); }
.calc-modal .form-success-hint a { color: var(--pink-600); }

/* ===========================================================
   МОДАЛКА КАЛЬКУЛЯТОРА
   =========================================================== */
.calc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.calc-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.calc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 11, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.calc-modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 40px 100px -20px rgba(233, 30, 122, 0.5);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.4s var(--ease-smooth);
  border: 1px solid var(--border-glass);
}
.calc-modal.visible .calc-modal-card {
  transform: scale(1) translateY(0);
}

.calc-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 158, 201, 0.15);
  color: var(--pink-700);
  font-size: 22px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  line-height: 1;
  border: none;
}
.calc-modal-close:hover {
  background: var(--pink-500);
  color: var(--white);
  transform: rotate(90deg);
}

.calc-modal-header {
  text-align: center;
  margin-bottom: 24px;
}
.calc-modal-label {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--pink-600);
  margin-bottom: 6px;
}
.calc-modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.calc-modal-title em {
  font-style: italic;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.calc-modal-sub {
  font-size: 14px;
  color: var(--ink-500);
  margin-top: 12px;
  line-height: 1.5;
}

.calc-modal-form input {
  width: 100%;
  padding: 14px 18px;
  background: var(--cream);
  border: 1.5px solid rgba(255, 158, 201, 0.4);
  border-radius: 12px;
  font-size: 16px;
  color: var(--ink-900);
  margin-bottom: 12px;
  font-family: var(--font-body);
  transition: all 0.25s;
}
.calc-modal-form input::placeholder { color: var(--ink-500); }
.calc-modal-form input:focus {
  outline: none;
  border-color: var(--pink-500);
  background: var(--white);
}
.calc-modal-form button {
  width: 100%;
  padding: 16px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--font-body);
  margin-top: 4px;
  transition: all 0.3s;
}
.calc-modal-form button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px var(--pink-500);
}
.calc-modal-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.calc-modal-hint {
  text-align: center;
  font-size: 12px;
  color: var(--ink-500);
  margin-top: 12px;
}

@media (max-width: 560px) {
  .calc-modal-card { padding: 32px 24px 24px; }
  .calc-modal-title { font-size: 26px; }
}

/* ===========================================================
   ГАЛЕРЕЯ ФОТО СТУДИИ
   =========================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
  margin-top: 44px;
}
.gallery-item {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 12px 30px -12px rgba(26, 11, 20, 0.25);
}
.gallery-item:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: 2px;
}
.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease-smooth);
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(26, 11, 20, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease-smooth);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

@media (max-width: 968px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(26, 11, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.visible { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90%;
  max-height: 88%;
  border-radius: var(--radius-md);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 26px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.lightbox-close:hover { background: var(--pink-500); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
.lightbox-nav:hover { background: var(--pink-500); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
@media (max-width: 560px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 22px; }
}

/* ===========================================================
   ПОДАРОЧНЫЕ СЕРТИФИКАТЫ
   =========================================================== */
.gift-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 44px;
  background: linear-gradient(135deg, rgba(255,158,201,0.12), rgba(192,132,252,0.12));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.gift-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 60px -16px rgba(233,30,122,0.35);
}
.gift-photo img { width: 100%; height: auto; display: block; }
.gift-content h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 18px;
  line-height: 1.1;
}
.gift-content h3 em {
  font-style: italic;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gift-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  margin-bottom: 16px;
}
.gift-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.gift-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.5;
}
.gift-list li::before {
  content: '';
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-primary);
  flex-shrink: 0;
  margin-top: 1px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
@media (max-width: 860px) {
  .gift-wrap { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .gift-photo { order: -1; }
}


/* ===========================================================
   ПЛАВНОЕ ПОЯВЛЕНИЕ КАРТИНОК (blur-up)
   =========================================================== */
img.lazy-img {
  filter: blur(12px);
  transform: scale(1.03);
  opacity: 0;
  transition: filter 0.7s var(--ease-smooth),
              transform 0.7s var(--ease-smooth),
              opacity 0.6s var(--ease-smooth);
}
img.lazy-img.loaded {
  filter: blur(0);
  transform: scale(1.1);
  opacity: 1;
}

/* ===========================================================
   КНОПКА «НАВЕРХ»
   =========================================================== */
.to-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--pink-300);
  color: var(--pink-600);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 88;
  box-shadow: 0 8px 24px -8px rgba(233, 30, 122, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease-smooth),
              transform 0.4s var(--ease-smooth),
              visibility 0.4s,
              background 0.3s,
              color 0.3s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top:hover {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
  transform: translateY(-3px);
}
@media (max-width: 560px) {
  .to-top {
    width: 44px;
    height: 44px;
    bottom: 84px;
    right: 20px;
    font-size: 20px;
  }
}

/* ===== ПАСХАЛКА — котик ===== */
.easter-cat {
  position: fixed;
  top: calc(50vh - 60px);
  left: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: cat-run 7s linear forwards;
}
.easter-cat-bubble {
  font-family: var(--font-display);
  font-size: 30px;
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(135deg, var(--pink-400), var(--violet-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
  white-space: nowrap;
  animation: cat-bubble 7s ease-in-out forwards;
}
.easter-cat-emoji {
  font-size: 110px;
  line-height: 1;
  display: block;
  animation: cat-hop 0.35s ease-in-out infinite alternate;
}
@keyframes cat-run {
  0%   { transform: translateX(-120px); }
  100% { transform: translateX(calc(100vw + 120px)); }
}
@keyframes cat-bubble {
  0%, 10% { opacity: 0; }
  20%, 80% { opacity: 1; }
  100%     { opacity: 0; }
}
@keyframes cat-hop {
  from { transform: translateY(0) rotate(-6deg); }
  to   { transform: translateY(-14px) rotate(6deg); }
}
