/* ===================================
   LAYOUT — структура страницы по секциям
   =================================== */

/* ===== НАВИГАЦИЯ ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Непрозрачность почти полная — иначе над тёмными секциями (например, контактами)
     блюр подмешивает их фон и панель выглядит грязно-серой */
  background: rgba(255, 249, 243, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 158, 201, 0.2);
  transition: padding 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  padding: 12px 32px;
  box-shadow: var(--shadow-soft);
}

/* Якорные секции должны останавливаться ниже фиксированной панели навигации,
   иначе заголовок при переходе по ссылке из меню прячется под ней */
section[id],
header[id] {
  scroll-margin-top: 100px;
}

.nav-logo {
  font-family: var(--font-display);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  text-decoration: none;
}
.nav-logo-row {
  display: flex;
  align-items: baseline;
}
.nav-logo-row.top {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink-900);
}
.nav-logo-row.bottom {
  font-size: 11px;
  font-weight: 500;
  background: linear-gradient(90deg, var(--pink-500), var(--violet-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 4px;
}
/* Каждая буква в боксе фиксированной ширины. Буквы прижаты к левому краю
   бокса — поэтому штрих L в обеих строках стартует с одной x-координаты. */
.nav-logo-letter {
  display: inline-block;
  text-align: left;
  font-variant: normal;
}
.nav-logo-row.top .nav-logo-letter    { width: 22px; }
.nav-logo-row.bottom .nav-logo-letter { width: 22px; }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--pink-600); }
.nav-links a:hover::after { width: 100%; }

/* Активный пункт меню (когда скроллишь до его секции) */
.nav-links a.active:not(.nav-cta) {
  color: var(--pink-600);
}
.nav-links a.active:not(.nav-cta)::after {
  width: 100%;
}

.nav-links .nav-cta {
  color: var(--white);
}
.nav-cta {
  padding: 10px 22px;
  background: var(--gradient-primary);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 8px 24px -8px var(--pink-500);
  transition: transform 0.3s, box-shadow 0.3s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--pink-500);
}
.nav-cta::after { display: none; }

.mobile-toggle {
  display: none;
  font-size: 28px;
  color: var(--pink-600);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 120px 32px 80px;
  text-align: center;
  overflow: hidden;
}
/* Фоновое фото */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/photos/hero-bg.jpg') center 35% / cover no-repeat;
  z-index: 0;
}
/* Фирменный градиентный оверлей поверх фото */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 61, 143, 0.55) 0%, rgba(168, 85, 247, 0.52) 55%, rgba(255, 138, 101, 0.50) 100%),
    linear-gradient(180deg, rgba(26, 11, 20, 0.20) 0%, rgba(26, 11, 20, 0.42) 100%);
  z-index: 1;
}
.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(48px, 9vw, 120px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(26, 11, 20, 0.3);
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, #fff 0%, #ffe4f1 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  animation: gradientShift 6s ease infinite;
}
.hero-script {
  font-family: var(--font-script);
  font-size: clamp(24px, 4vw, 36px);
  color: #fff;
  margin-bottom: 20px;
  transform: rotate(-2deg);
  display: inline-block;
  text-shadow: 0 2px 16px rgba(26, 11, 20, 0.3);
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.92);
  max-width: 580px;
  margin: 0 auto 40px;
  text-shadow: 0 2px 16px rgba(26, 11, 20, 0.35);
  animation: fadeUp 0.8s ease 0.4s both;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.5s both;
}
.hero-decor {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(60px, 12vw, 180px);
  color: rgba(255, 61, 143, 0.06);
  pointer-events: none;
  z-index: 1;
  font-weight: 700;
  overflow: hidden;
}
.hero-decor { display: none; }

/* ===== СЕКЦИИ ===== */
section {
  padding: 100px 32px;
  position: relative;
}
/* Промо-блок сам задаёт горизонтальные отступы через .promo-section */
#promo { padding-left: 0; padding-right: 0; }

/* ===== ABOUT ===== */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-300) 0%, var(--violet-400) 60%, var(--coral-400) 100%);
  box-shadow: var(--shadow-strong);
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}
.about-visual-text {
  position: absolute;
  bottom: 40px; left: 40px; right: 40px;
  color: var(--white);
  z-index: 2;
}
.about-visual-text h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 12px;
}
.about-visual-text p { font-size: 15px; opacity: 0.95; }
.about-visual-icon {
  position: absolute;
  top: 30px; right: 30px;
  width: 80px; height: 80px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(233, 30, 122, 0.18);
  animation: float-icon 4s ease-in-out infinite;
}
.about-logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.about-logo-laser {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-900);
  letter-spacing: 2px;
  line-height: 1;
}
.about-logo-live {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--pink-500), var(--violet-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.about-content h2 em {
  font-style: italic;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-content p {
  font-size: 16px;
  color: var(--ink-700);
  margin-bottom: 18px;
  line-height: 1.7;
}
.about-quote {
  margin-top: 30px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(255, 158, 201, 0.15), rgba(192, 132, 252, 0.15));
  border-left: 4px solid var(--pink-500);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-700);
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

/* ===== PRICING ===== */
.pricing {
  background: linear-gradient(180deg, transparent 0%, rgba(255, 228, 241, 0.4) 50%, transparent 100%);
}
.price-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.price-content {
  display: none;
  animation: fadeUp 0.5s ease;
}
.price-content.active { display: block; }
.price-group { margin-bottom: 50px; }
.price-group-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.price-group-title::before {
  content: '';
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}
.price-group-title em {
  font-style: italic;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.complex-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* ===== ПРОМО-СЕКЦИЯ ===== */
.promo-section {
  background: var(--gradient-vibrant);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  border-radius: 40px;
  padding: 80px 60px;
  margin: 0 32px;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.promo-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  animation: orbit 20s linear infinite;
}
.promo-section .section-label,
.promo-section .section-title { color: var(--white); }
.promo-section .section-label { color: rgba(255, 255, 255, 0.9); }
.promo-section .section-title em {
  background: none;
  -webkit-text-fill-color: var(--white);
  color: var(--white);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 8px;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 50px;
  position: relative;
  z-index: 1;
}
.promo-note {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  opacity: 0.85;
  font-style: italic;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* ===== КОНТАКТЫ ===== */
.contact-section {
  background: var(--ink-900);
  color: var(--white);
  border-radius: 40px 40px 0 0;
  margin-top: 80px;
  overflow: hidden;
  position: relative;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 61, 143, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(192, 132, 252, 0.2) 0%, transparent 40%);
  pointer-events: none;
}
.contact-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-section .section-title {
  color: var(--white);
  text-align: left;
}
.contact-section .section-label { text-align: left; }
.contact-info { padding-top: 20px; }
.contact-tagline {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--pink-300);
  margin-bottom: 12px;
}
.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 30px;
}
.contact-headline em {
  font-style: italic;
  background: linear-gradient(135deg, var(--pink-400), var(--violet-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
  font-size: 16px;
}
.contact-list li > div:not(.contact-icon) {
  min-width: 0;
  word-break: break-word;
}
.contact-list a {
  color: var(--white);
  transition: color 0.3s;
  word-break: break-word;
}
.contact-list a:hover { color: var(--pink-300); }
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.contact-label {
  font-size: 12px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.contact-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
}
@media (max-width: 560px) {
  .contact-card { padding: 32px 22px; }
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 24px;
  font-weight: 500;
}
.contact-card h3 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--pink-400), var(--violet-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-card-sub {
  font-size: 16px;
  opacity: 0.7;
  margin-bottom: 32px;
  line-height: 1.6;
}
.contact-dikidi-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 16px;
}

/* ===== ФУТЕР ===== */
.footer {
  background: var(--ink-900);
  color: var(--white);
  padding: 50px 32px 30px;
  text-align: center;
  position: relative;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 8px;
}
.footer-tagline {
  font-family: var(--font-script);
  color: var(--pink-300);
  font-size: 22px;
  margin-bottom: 30px;
}
.footer-copy {
  font-size: 13px;
  opacity: 0.5;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(255, 249, 243, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-soft);
  }
  .mobile-toggle { display: block; }
  .about-wrap,
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .complex-grid  { grid-template-columns: repeat(2, 1fr); }
  .price-list    { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr; gap: 16px; }
  .stat-card     { padding: 32px 24px; }
  .contact-map   { height: 280px; }
  .calc-shell    { grid-template-columns: 1fr; gap: 20px; }
  /* Итог поднимаем над плитками и делаем sticky — иначе на мобильном
     он виден только после прокрутки всех зон, и итоговую сумму не видно во время выбора */
  .calc-summary  {
    order: -1;
    position: sticky;
    top: 84px;
    padding: 24px 20px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
  }
  .calc-main     { padding: 24px 20px; }
  .calc-tiles    { grid-template-columns: repeat(2, 1fr); }
  /* Итог теперь above тайлов (order: -1 выше) — подсказка должна указывать вниз, не влево */
  .calc-empty::before { content: '↓'; }
  .review-card   { flex-basis: calc(100% - 0px); }
  section        { padding: 70px 20px; }
  .promo-section { padding: 60px 24px; margin: 0 16px; }
  .nav           { padding: 14px 16px; }
  .hero          { padding: 100px 16px 60px; }
  .hero h1       { word-break: keep-all; hyphens: none; }
  .price-group-title { font-size: 26px; }
}

@media (max-width: 1100px) and (min-width: 969px) {
  .review-card { flex-basis: calc(50% - 12px); }
}

@media (max-width: 560px) {
  .benefits-grid,
  .complex-grid  { grid-template-columns: 1fr; }
  .marquee-item  { font-size: 20px; }
  .calc-tiles    { grid-template-columns: 1fr; }
  .calc-tile-card { flex-direction: row; justify-content: space-between; min-height: auto; padding: 14px 16px; text-align: left; }
  .calc-tile-name { flex: 1; }
  .calc-tile-price { font-size: 18px; }
  .calc-tile-check { position: static; align-self: center; }
  .promo-section { padding: 50px 20px; margin: 0 12px; border-radius: 24px; }
  .promo-discount { font-size: 44px; }
  .container { padding: 0 4px; }
  .footer { padding: 40px 20px 24px; }
  .footer-logo { font-size: 26px; letter-spacing: 3px; }
  section { padding: 56px 16px; }
}
