/* AURA Landing v2 — дизайн Вариант5 */

:root {
  --bg-color: #0c0808;
  --rose-gold-light: #f4d3c4;
  --rose-gold-mid: #d49a84;
  --rose-gold-dark: #8c5342;
  --text-gray: #a8a3a1;
  --glow-color: rgba(212, 154, 132, 0.4);
  --glass-bg: rgba(20, 15, 15, 0.4);
  --glass-border: rgba(212, 154, 132, 0.2);
}

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

body, html {
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background-color: var(--bg-color);
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Подложка: на мобилке — диагональная тень + угловое свечение */
#bg-base {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg-color);
}

#fluid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  z-index: 1;
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 0 5%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* --- Кнопки --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  border: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-gray);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  border-color: var(--rose-gold-mid);
  color: var(--rose-gold-light);
  background: rgba(212, 154, 132, 0.05);
}

.btn-filled {
  background: linear-gradient(135deg, #c58670, #965b49);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 0 15px var(--glow-color);
}

.btn-filled:hover {
  box-shadow: 0 0 25px var(--glow-color);
  filter: brightness(1.1);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 15px;
}

/* --- Header --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  flex-shrink: 0;
}

.logo {
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
  font-size: 24px;
  letter-spacing: 4px;
  color: var(--rose-gold-light);
  font-weight: 500;
  text-decoration: none;
}

.header-buttons {
  display: flex;
  gap: 15px;
}

/* --- Main --- */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 900px;
  text-align: center;
  flex: 1;
  min-height: calc(100vh - 96px);
  min-height: calc(100dvh - 96px);
  margin-bottom: 0;
  padding: 32px 0 48px;
  box-sizing: border-box;
}

h1, h2, h3.section-title {
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: 1px;
  color: #e8c4b8;
}

/* Градиентный текст — только desktop (на iOS background-clip + transparent «съедает» текст) */
@media (min-width: 1025px) {
  h1, h2, h3.section-title {
    background: linear-gradient(to right, #cf9782, #f5d6cc, #cf9782);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 10px rgba(207, 151, 130, 0.2));
  }
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.3;
  margin-bottom: 24px;
  text-transform: none;
}

.hero-title {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 16px;
  text-align: center;
}

.subtitle, .section-desc {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.6;
  font-weight: 300;
}

.subtitle {
  max-width: 650px;
  margin: 0 auto 40px;
}

.section-desc {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Glass panels --- */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 40px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.glass-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 154, 132, 0.5);
}

.glass-panel h3 {
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
  font-size: 18px;
  color: var(--rose-gold-light);
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.glass-panel p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- Stats --- */
.stats-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 30px 50px;
  width: 100%;
  max-width: 800px;
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  margin: 0 auto 120px;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
}

.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(to bottom, #f5d6cc, #d49a84);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 0px 8px rgba(212, 154, 132, 0.5));
}

.stat-desc {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.4;
  text-align: center;
}

.divider {
  width: 1px;
  height: 50px;
  background: rgba(212, 154, 132, 0.2);
  flex-shrink: 0;
}

/* --- Sections & grids --- */
.section {
  width: 100%;
  margin-bottom: 120px;
}

.section-intro {
  margin-bottom: 50px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--rose-gold-mid);
  filter: drop-shadow(0 0 10px rgba(212, 154, 132, 0.4));
}

.feature-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.glass-panel.feature-row {
  align-items: flex-start;
}

.feature-row .feature-icon {
  flex-shrink: 0;
  margin-bottom: 0;
  width: 48px;
  height: 48px;
}

.feature-row h3 {
  margin-bottom: 8px;
}

.feature-row p {
  margin-bottom: 0;
}

.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--rose-gold-mid);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.step-list {
  list-style: none;
  text-align: left;
  width: 100%;
  margin-bottom: 24px;
}

.step-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.step-list svg {
  flex-shrink: 0;
  color: var(--rose-gold-mid);
  margin-top: 2px;
}

/* --- Timeline (как это работает — клиентский поток) --- */
.timeline-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 20px;
}

.timeline-line {
  position: absolute;
  top: 35px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--glass-border);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  text-align: center;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  background: var(--bg-color);
  border: 2px solid var(--rose-gold-mid);
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--glow-color);
}

.timeline-content {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.5;
  padding: 0 10px;
}

/* --- Testimonials / carousel --- */
.carousel-wrap {
  position: relative;
  width: 100%;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--rose-gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background 0.3s;
}

.carousel-btn:hover {
  border-color: var(--rose-gold-mid);
  background: rgba(212, 154, 132, 0.1);
}

.reviews-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}

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

.reviews-carousel .testimonial-card {
  flex: 0 0 calc(50% - 12px);
  min-width: calc(50% - 12px);
}

.testimonial-card {
  text-align: left;
  align-items: flex-start;
  position: relative;
}

.quote-icon {
  font-family: 'Cinzel', serif;
  font-size: 60px;
  color: var(--rose-gold-dark);
  opacity: 0.5;
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-text {
  position: relative;
  z-index: 2;
  margin-top: 30px;
  font-size: 14px;
  font-style: italic;
  color: var(--text-gray);
}

.testimonial-author {
  margin-top: 20px;
  font-weight: 500;
  color: var(--rose-gold-light);
  font-size: 14px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 4px;
}

/* --- Pricing (один тариф) --- */
.pricing-single {
  max-width: 480px;
  margin: 0 auto;
}

.cta-group--hero {
  align-items: center;
  justify-content: center;
}

@media (min-width: 1025px) {
  .cta-group--hero .cta-micro {
    flex-basis: 100%;
    text-align: center;
    margin-top: 4px;
  }
}

.cta-micro {
  font-size: 12px;
  color: var(--text-gray);
  opacity: 0.9;
  margin: 0;
}

.pricing-prices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 16px 0 8px;
}

.pricing-price-old {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  color: var(--text-gray);
  text-decoration: line-through;
  opacity: 0.65;
}

.pricing-value-prop {
  font-size: 14px;
  color: var(--rose-gold-light);
  line-height: 1.5;
  text-align: center;
  margin-bottom: 12px;
  max-width: 360px;
}

.pricing-price {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  color: var(--rose-gold-light);
  margin: 0;
}

.pricing-period {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text-gray);
  font-weight: 300;
}

.pricing-trial-note {
  font-size: 14px;
  color: var(--rose-gold-mid);
  margin-bottom: 24px;
}

.pricing-list {
  list-style: none;
  width: 100%;
  margin-bottom: 30px;
  text-align: left;
}

.pricing-list li {
  font-size: 14px;
  color: var(--text-gray);
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 154, 132, 0.1);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pricing-list li svg {
  flex-shrink: 0;
  color: var(--rose-gold-mid);
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

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

.pricing-note {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 12px;
  opacity: 0.85;
}

/* --- FAQ --- */
.faq-container {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  text-align: left;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.faq-item:hover {
  transform: none;
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--rose-gold-light);
  user-select: none;
}

.faq-icon {
  font-size: 20px;
  color: var(--rose-gold-mid);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* --- CTA banner --- */
.cta-banner {
  max-width: 900px;
  margin: 0 auto 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.cta-banner h2 {
  text-align: left;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.6;
}

.cta-banner .glass-panel {
  padding: 48px 36px;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* --- Footer --- */
footer {
  width: 100%;
  border-top: 1px solid var(--glass-border);
  padding: 60px 5%;
  margin-top: 0;
  background: linear-gradient(to top, rgba(12, 8, 8, 0.9), transparent);
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  color: var(--rose-gold-mid);
  font-family: 'Cinzel', serif;
  margin-bottom: 20px;
  font-size: 16px;
}

.footer-col a,
.footer-col p {
  color: var(--text-gray);
  font-size: 14px;
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--rose-gold-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 13px;
  color: var(--text-gray);
}

.footer-bottom a {
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
}

.footer-bottom a:hover {
  opacity: 1;
  color: var(--rose-gold-light);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { grid-template-columns: 1fr; text-align: center; }
  .cta-banner h2 { text-align: center; }
}

@media (max-width: 1024px) {
  .content-wrapper {
    min-height: auto;
  }

  main {
    flex: none;
  }

  .hero-section {
    flex: none;
    text-align: center;
    align-items: center;
    width: 100%;
    /* svh не растёт при скрытии панели Safari — нет «разъезда» с блоком stats */
    min-height: calc(100svh - 72px);
    margin-bottom: 0;
  }

  .stats-container {
    margin-top: 0;
  }

  .stat-number {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #e8c4b8;
  }

  .hero-section h1,
  .hero-section .subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-group--hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 12px;
    max-width: 100%;
  }

  .cta-group--hero .btn-lg {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
  }

  .cta-group--hero .btn-outline {
    color: #c9c4c2;
    border-color: rgba(212, 154, 132, 0.38);
  }

  .cta-group--hero .cta-micro {
    order: 3;
    text-align: center;
    width: 100%;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.88;
  }

  header {
    padding: 16px 0 10px;
  }

  .header-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }

  .header-buttons .btn {
    padding: 9px 14px;
    font-size: 11px;
    border-radius: 10px;
    white-space: nowrap;
  }

  .logo {
    font-size: 19px;
    letter-spacing: 3px;
  }

  #bg-base {
    display: block;
    background-color: #0a0707;
    background-image:
      linear-gradient(
        158deg,
        transparent 0%,
        transparent 23%,
        rgba(8, 4, 4, 0.14) 31%,
        rgba(12, 6, 5, 0.3) 50%,
        rgba(8, 4, 4, 0.14) 69%,
        transparent 77%,
        transparent 100%
      ),
      radial-gradient(ellipse 85% 62% at 100% 0%, rgba(196, 130, 98, 0.34) 0%, transparent 52%),
      radial-gradient(ellipse 85% 62% at 0% 100%, rgba(190, 125, 95, 0.3) 0%, transparent 52%);
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }

  .hero-section {
    padding: 8px 0 24px;
    justify-content: center;
  }

  .hero-section h1 {
    font-size: clamp(24px, 6.4vw, 28px);
    line-height: 1.34;
    letter-spacing: 0.03em;
    margin-bottom: 18px;
    width: 100%;
  }

  .hero-section .subtitle {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 28px;
    max-width: 100%;
    padding: 0 2px;
    color: #b8b3b1;
  }

  .stats-container {
    flex-direction: column;
    gap: 30px;
    padding: 30px;
  }
  .divider {
    width: 50px;
    height: 1px;
  }
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .reviews-carousel .testimonial-card {
    flex: 0 0 100%;
    min-width: 100%;
  }
  .timeline-container {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 20px;
  }
  .timeline-line {
    width: 1px;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 31px;
  }
  .timeline-step {
    width: 100%;
    flex-direction: row;
    text-align: left;
    margin-bottom: 30px;
  }
  .timeline-dot {
    margin-bottom: 0;
    margin-right: 20px;
    flex-shrink: 0;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-row { flex-direction: column; }
}

/* iPhone 11 / 12 / 13 mini width (~390–414px) */
@media (max-width: 430px) {
  .hero-section h1 {
    font-size: 25px;
    line-height: 1.33;
    margin-bottom: 16px;
  }

  .hero-section .subtitle {
    font-size: 13px;
    margin-bottom: 26px;
  }

  .cta-group--hero .btn-lg {
    padding: 15px 18px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #fluid-canvas { display: none; }
  #bg-base { display: block; }
}

/* Панель подбора полосы: ?bgTune=1 */
#bg-tune-panel {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: rgba(12, 8, 8, 0.94);
  border-top: 1px solid rgba(201, 169, 154, 0.35);
  color: #e8ddd8;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  backdrop-filter: blur(12px);
}

body.bg-tune-active #bg-tune-panel {
  display: block;
}

.bg-tune-title {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent, #c9a99a);
}

.bg-tune-row {
  display: block;
  margin-bottom: 10px;
}

.bg-tune-row input[type="range"] {
  width: 100%;
  margin-top: 6px;
  accent-color: #b8846f;
}

.bg-tune-readout {
  margin: 8px 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-all;
}

.bg-tune-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.bg-tune-actions button {
  flex: 1;
  min-width: 90px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #a66b52, #8b5540);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.bg-tune-actions .bg-tune-muted {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ccc;
}

.bg-tune-hint {
  margin: 10px 0 0;
  font-size: 11px;
  opacity: 0.65;
}

.bg-tune-hint code {
  font-size: 10px;
}
