:root {
  --bg: #0b0a12;
  --bg2: #11101a;
  --text: #e9e6ff;
  --muted: #b9b4d9;
  --primary: #7b5cff;
  --primary2: #c6a8ff;
  --stroke: rgba(255, 255, 255, .08);
  --radius: 18px;
  --shadow: 0 12px 30px rgba(123, 92, 255, .25);
}

* {
  box-sizing: border-box;
}


html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family: "Ttricordiallegria", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:16px;
  line-height:1.6;
  background-image:
    radial-gradient(900px 600px at 70% -10%, rgba(123, 92, 255, .18), transparent 60%),
    radial-gradient(600px 500px at 10% 120%, rgba(198, 168, 255, .14), transparent 60%);
  background-size: auto, auto;
  background-attachment: fixed, fixed;
}

h1,h2,h3{ font-weight:600; letter-spacing:.2px }

/* ====== Custom font: Ttricordiallegria ====== */
@font-face{
  font-family: "Ttricordiallegria";
  src:
    url("../fonts/ttricordiallegria-regular.woff2") format("woff2"),
    url("../fonts/ttricordiallegria-regular.woff") format("woff"),
    url("../fonts/ttricordiallegria-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;      /* быстрое отображение */
  /* при желании можно ограничить поднаборы:
  unicode-range: U+000-5FF, U+0400-04FF;  латиница + кириллица */
}

/* улучшение сглаживания */
html{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


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

/* ===== NAV ===== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(120%) blur(8px);
  transition: transform .35s ease, opacity .25s ease;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: .2s;
}
.nav-wrap.hide {
  transform: translateY(-100%); opacity: 0; pointer-events: none;
}
.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

.nav-left,
.nav-right {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: flex-start;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.logo img {
  width: 74px;
  height: 74px;
}

.cta-bar{
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform .35s ease, opacity .25s ease;
  /* стекло как у шапки */
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--stroke);
}
.cta-bar.show{
  transform: translateY(0); opacity: 1; pointer-events: auto;
}
.cta-bar__inner{
  display: grid; place-items: center; padding: 20px 0;
}

/* Пульс кнопки */
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow); }
  50%      { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(123,92,255,.12), var(--shadow); }
}
.btn-pulse{ animation: pulse 2.4s ease-in-out infinite; }

/* ===== BURGER ===== */
.burger {
  display: none;
  position: absolute;
  left: 4%;
  top: 14px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  cursor: pointer;
  z-index: 101;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 6px auto;
  transition: .3s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== MOBILE MENU ===== */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 60px 0 auto 0;
  background: var(--bg2);
  border-top: 1px solid var(--stroke);
  flex-direction: column;
  z-index: 100;
  animation: slideDown .3s ease;
}

.mobile-drawer a {
  padding: 16px 20px;
  border-bottom: 1px solid var(--stroke);
  text-decoration: none;
  color: var(--text);
}

.mobile-drawer a:hover {
  background: rgba(255, 255, 255, .05);
}

.mobile-drawer.active {
  display: flex;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

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

/* ===== WHAT (tabs) ===== */
.what{ padding: 80px 0; }
.what-glass{
  display:grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start;
  padding: 24px; border-radius: var(--radius);
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* Вертикальные табы */
.what-tabs{ display:flex; flex-direction:column; gap:10px; }
.tab-btn{
  display:flex; align-items:center; gap:10px;
  width:100%; text-align:left; cursor:pointer;
  background: rgba(255,255,255,.02);
  border:1px solid var(--stroke);
  color: var(--text);
  padding: 12px 12px;
  border-radius: 12px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.tab-btn:hover, .tab-btn:focus-visible{
  border-color: rgba(255,255,255,.18);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
}
.tab-btn.is-active{
  /* тот же градиент + лёгкая анимация, что у основной кнопки */
  background: linear-gradient(90deg, #6b50ff, #a887ff, #6b50ff);
  background-size: 200% 100%;
  animation: glow 3s linear infinite;
  color:#fff; border-color: transparent;
}

/* Иконка в табе (SVG по ссылке) */
.tab-icon{
  width: 36px; height: 36px; display:grid; place-items:center;
  border-radius: 10px; border:1px solid var(--stroke);
  background: radial-gradient(70% 70% at 50% 50%, rgba(198,168,255,.12), rgba(255,255,255,0) 70%);
  color: var(--primary);
}
.tab-icon svg{ width:22px; height:22px; display:block; fill:none; stroke:currentColor; stroke-width:1.6; }

/* Контент справа */
.what-content h2{ margin: 2px 0 8px; }
.what-panel{ display:block; }
.what-panel[hidden]{ display:none; }
.what-content .lead{ color: var(--text); opacity:.92; font-weight:600; margin: 0 0 8px; }
.what-content p{ color: var(--muted); margin: 0 0 10px; }
.what-actions{ display:flex; gap:10px; margin-top: 12px; flex-wrap:wrap; }

/* Доступность */
.sr-only{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; clip:rect(0 0 0 0); overflow:hidden; }

/* Адаптив */
@media (max-width: 980px){
  .what-glass{ grid-template-columns: 1fr; }
}


/* ===== ORDER / CALCULATOR ===== */
.order{ position:relative; padding: 84px 0; }
.order-glass{
  position:relative;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.order-head h2{ margin: 4px 0 6px }
.order-head p{ color: var(--muted); margin:0 0 8px }

.order-form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.order-form .field{ display:grid; gap:6px }
.order-form .label{ font-size:.92rem; color:var(--muted) }
.order-form input{
  background:#0f0e17;
  border:1px solid var(--stroke);
  color:var(--text);
  border-radius: 12px;
  padding:.8rem .9rem;
  outline:none;
  transition: border-color .2s, box-shadow .2s;
}
.order-form input:focus{
  border-color: rgba(123,92,255,.6);
  box-shadow: 0 0 0 4px rgba(123,92,255,.16);
}

/* блок дата+время в линию */
.field-group{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px }

/* «красивый» блок для даты */
.date-block .date-wrap{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  padding:.6rem .7rem;
  border:1px solid var(--stroke);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
.date-preview{
  font-weight:600; letter-spacing:.3px;
  color:#fff; opacity:.9;
}
.date-wrap input[type="date"]{
  position:relative;
  margin-left:auto;
  background:transparent;
  border:none;
  color:var(--text);
  padding:.4rem .3rem;
  min-width: 140px;
  cursor:pointer;
}
.date-wrap input[type="date"]::-webkit-calendar-picker-indicator{
  filter: invert(1) opacity(.8);
}

/* Нормализуем шрифт у всех форм-элементов */
button, input, select, textarea {
  font: inherit;          /* наследуем семейство, размер, высоту строки */
  color: inherit;
  letter-spacing: inherit;
}

/* Снимаем платформенные стили, чтобы не «ломали» типографику */
button, input[type="button"], input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  background: none; /* у нас свои стили через .btn */
  border: none;     /* у нас свой border в .btn */
}

/* На всякий случай: принудительно наследуем семейство у .btn */
.btn { font-family: inherit; }

input[type="time"]::-webkit-calendar-picker-indicator{
  filter: invert(1) brightness(1.8); /* -> белая */
}

/* согласие и кнопки */
.consent{ font-size:.9rem; color:var(--muted); grid-column: 1 / -1; margin: 2px 0 2px }
.consent a{ color: var(--primary) }
.actions{ grid-column: 1 / -1; display:flex; gap:10px; justify-content:flex-end }

/* планеты вокруг секции */
.planet{
  position:absolute; opacity:.9;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
  animation: planetFloat 12s ease-in-out infinite;
}
.p1{ top:-62px; left:-100px; animation-delay:0s }
.p2{ top:5%; z-index: 1; right:-24px; animation-delay:1.2s }
.p3{ bottom:5%; left:-18px; animation-delay:2.4s }
.p4{ bottom:-100px; right:12%; animation-delay:.6s }

@keyframes planetFloat{
  0%,100%{ transform: translateY(0) }
  50%    { transform: translateY(-10px) }
}

/* ошибки валидации (по JS) */
.input-error{ border-color: #ff6b6b !important; box-shadow: 0 0 0 4px rgba(255,107,107,.18) !important; }

/* адаптив */
@media (max-width: 980px){
  .order-form{ grid-template-columns: 1fr; }
  .field-group{ grid-template-columns: 1fr; }
  .actions{ justify-content:stretch }
  .actions .btn{ width:100% }
}

.field.input-error input,
.field.input-error .date-wrap,
.field.input-error input[type="time"]{
  border-color: #ff5a7a !important;
  box-shadow: 0 0 0 3px rgba(255,90,122,.12);
}
.field .error-text{
  margin-top: 6px;
  font-size: .9rem;
  color: #ff90a5;
}


/* Скрываем drawer на десктопе */
@media (min-width: 981px) {
  .mobile-drawer {
    display: none !important;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 84px 0 120px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-title {
  font-size: clamp(32px, 6vw, 60px);
  margin: 0 0 10px;
  letter-spacing: .2px;
}

.grad {
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 72ch;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== CTA BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1.3rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.grad-anim {
  background: linear-gradient(90deg, #6b50ff, #a887ff, #6b50ff);
  background-size: 200% 100%;
  animation: glow 3s linear infinite;
}

@keyframes glow {
  0% {
    background-position: 0 0
  }

  100% {
    background-position: 200% 0
  }
}

/* ===== PARTICLES CANVAS ===== */
.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ===== CARD STACK ===== */
.card-stack {
  position: relative;
  width: min(680px, 90vw);
  height: 420px;
  margin: 80px auto 0;
  z-index: -1;
}

.card-stack img{
  position:absolute; inset:0; margin:auto;
  width:80%; max-width:520px; height:auto;
  border-radius:14px;
  --base-tr: translateY(10px) rotate(0) scale(.98);
  transform: var(--base-tr);              /* СНАЧАЛА база */
  opacity:0;
  transition:
    transform .45s cubic-bezier(.2,.7,.2,1),
    opacity .6s,
    box-shadow .3s ease,
    z-index .1s linear;
  z-index:1;
  will-change: transform;
  cursor: pointer;
}

.card-stack.fan img {
  opacity: 1;
}

.card-stack img.card-lift{
  transform: var(--base-tr) translateY(-12px) scale(1.02); /* ПОТОМ подъём */
  box-shadow: 0 20px 60px rgba(123,92,255,.25), 0 10px 30px rgba(0,0,0,.45);
  z-index:5;
}

@media (hover:none){
  .card-stack img.card-lift{
    transform: var(--base-tr) translateY(-8px) scale(1.01);
  }
}

.card-stack.fan img:nth-child(1) {
   transform: translate(-48%, 76px) rotate(-14deg) scale(1);
}

.card-stack.fan img:nth-child(2) {
  transform: translate(-21%, 0) rotate(-6deg) scale(1);
}

.card-stack.fan img:nth-child(3) {
  transform: translate(0, -4px) rotate(0) scale(1);
}

.card-stack.fan img:nth-child(4) {
  transform: translate(21%, 0) rotate(6deg) scale(1);
}

.card-stack.fan img:nth-child(5) {
  transform: translate(42%, 10px) rotate(12deg) scale(1);
}

.card-stack img:nth-child(1) {
  --i: 0
}

.card-stack img:nth-child(2) {
  --i: 1
}

.card-stack img:nth-child(3) {
  --i: 2
}

.card-stack img:nth-child(4) {
  --i: 3
}

.card-stack img:nth-child(5) {
  --i: 4
}

/* ===== FLOATING SCROLL BUTTON ===== */
.scroll-down {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .04);
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25)
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, 0)
  }

  50% {
    transform: translate(-50%, -8px)
  }
}

/* ===== ANIMATIONS ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all .9s cubic-bezier(.2, .7, .2, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .2s;
}
.reveal-delay-2 {
  transition-delay: .4s;
}
.reveal-delay-3 {
  transition-delay: .6s;
}

/* Для появления с небольшим масштабом (для иконок, карточек и т.д.) */
.reveal-scale {
  opacity: 0;
  transform: scale(.92);
  transition: all .9s cubic-bezier(.2, .7, .2, 1);
}

.reveal-scale.show {
  opacity: 1;
  transform: scale(1);
}
@keyframes floatStack {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-10px) scale(1); }
}
/* запускаем мягкое покачивание только когда добавим класс .floaty */
.card-stack.floaty{
  animation: floatStack 8s ease-in-out infinite;
  will-change: transform;           /* плавнее на GPU */
}

/* Фуллскрин canvas позади всего */
#webgl-bg{ position:fixed; inset:0; z-index:-2; }

/* Градиенты поверх фона (у тебя уже были — усилим чуть-чуть) */
body{
  background-color: #0b0a12;
  background-image:
    radial-gradient(1200px 800px at 70% -10%, rgba(123,92,255,.20), transparent 60%),
    radial-gradient(900px 700px at 8% 110%, rgba(198,168,255,.12), transparent 60%);
  background-attachment: fixed, fixed;
  background-repeat: no-repeat;
}

/* Тонкая «космическая пыль» (опционально, если есть png/webp) */
body::before{
  content:"";
  position: fixed;
  inset:0;
  z-index:-1;
  /* убрать ссылку на отсутствующий файл чтобы избежать 404 */
  /* background:
    url('/images/stars-noise.webp') center/cover repeat; */
  opacity:.12;
  pointer-events:none;
}

/* Уважение к настройке "уменьшить анимации" */
@media (prefers-reduced-motion: reduce){
  .stars-bg{ display:none; }
}

/* ===== ADVANTAGES ===== */
.advantages { padding: 80px 0; }
.advantages-glass {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.advantages-head {
  text-align: center;
  margin-bottom: 32px;
}

.advantages-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
}

.advantages-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.advantage-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
}

.advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: radial-gradient(70% 70% at 50% 50%, rgba(198,168,255,.16), rgba(255,255,255,0) 70%);
  color: var(--primary);
}

.advantage-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.advantage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== TAROT ===== */
.tarot { padding: 80px 0; }
.tarot-glass {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.tarot-head {
  text-align: center;
  margin-bottom: 32px;
}

.tarot-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
}

.tarot-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.tarot-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.tarot-card {
  position: relative;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  transition: transform .3s ease, box-shadow .3s ease;
}

.tarot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}

.tarot-badge {
  position: absolute;
  top: -8px;
  right: 20px;
  background: linear-gradient(90deg, #6b50ff, #a887ff);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.tarot-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.tarot-description {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.tarot-features {
  margin: 0 0 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  transition: all .2s ease;
}

.feature-item:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(123,92,255,.2);
  transform: translateX(2px);
}

.feature-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: radial-gradient(70% 70% at 50% 50%, rgba(198,168,255,.15), rgba(123,92,255,.08) 50%, rgba(255,255,255,0) 70%);
  color: var(--primary);
  flex-shrink: 0;
  position: relative;
  border: 1px solid rgba(123,92,255,.2);
  box-shadow: 0 2px 8px rgba(123,92,255,.1);
  transition: all .3s ease;
}

.feature-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  background: linear-gradient(45deg, rgba(123,92,255,.3), rgba(198,168,255,.2), rgba(123,92,255,.3));
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
}

.feature-item:hover .feature-icon::before {
  opacity: 1;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(123,92,255,.3));
  transition: all .3s ease;
  object-fit: contain;
}

.feature-item:hover .feature-icon img {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(123,92,255,.4));
}

.tarot-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 20px;
}

.price-main {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.price-note {
  font-size: 12px;
  color: var(--muted);
}

.tarot-info {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
}

.tarot-info h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.tarot-info ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tarot-info li {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.tarot-info li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ===== NATAL CHART ===== */
.natal-chart { padding: 80px 0; }
.natal-glass {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.natal-head {
  text-align: center;
  margin-bottom: 32px;
}

.natal-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
}

.natal-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.natal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.natal-card {
  position: relative;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  transition: transform .3s ease, box-shadow .3s ease;
}

.natal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}

.natal-badge {
  position: absolute;
  top: -8px;
  right: 20px;
  background: linear-gradient(90deg, #6b50ff, #a887ff);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.natal-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.natal-description {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}

.natal-features {
  margin: 0 0 20px;
  display: grid;
  gap: 6px;
}

.natal-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 20px;
}

.natal-info {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
}

.natal-info h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.natal-info ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.natal-info li {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}

.natal-info li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 80px 0; }
.testimonials-glass {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.testimonials-head {
  text-align: center;
  margin-bottom: 32px;
}

.testimonials-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
}

.testimonials-head p {
  color: var(--muted);
  font-size: 1.1rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  transition: transform .3s ease, box-shadow .3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
}

.testimonial-content p {
  margin: 0 0 16px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.author-name {
  font-weight: 600;
  color: #fff;
}

.author-service {
  font-size: 12px;
  color: var(--muted);
  background: rgba(123,92,255,.1);
  padding: 4px 8px;
  border-radius: 8px;
}

/* ===== FEATURES ===== */
.features { padding: 80px 0; }
.features h2 { margin-bottom: 18px; }

.features-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  align-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(10px) saturate(120%);
  padding: 16px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
  will-change: transform;
}

.feature-card:focus-within,
.feature-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,.30), 0 10px 26px rgba(123,92,255,.20);
  border-color: rgba(123,92,255,.35);
}



/* Иконка слева */
.feature-icon{
  width: 200px; height: 200px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: radial-gradient(70% 70% at 50% 50%, rgba(198,168,255,.16), rgba(255,255,255,0) 70%);
}

.feature-icon svg{
  width: 128px; height: 128px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  color: var(--primary);
}

/* Контент справа */
.feature-content h3{
  margin: 0 0 4px;
  font-size: clamp(18px, 2.2vw, 20px);
  font-weight: 700;
  letter-spacing: .2px;
}
.feature-content p{
  margin: 0;
  color: var(--muted);
}

/* Доступность клавиатурой */
.feature-card a, .feature-card button, .feature-card [tabindex] { outline: none; }
.feature-card:focus-within { outline: none; }

/* Адаптив */
@media (max-width: 860px){
  .features-grid{ grid-template-columns: 1fr; }
  .feature-card{ grid-template-columns: 160px 1fr; }
  .feature-icon{ width: 120px; height: 120px; }
}



/* ===== ABOUT ===== */
.about{ padding: 80px 0; }

.about-glass{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* левый контейнер с вращением */
.about-media{
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius) - 6px);
  background: radial-gradient(80% 80% at 50% 50%, rgba(198,168,255,.12), rgba(255,255,255,0) 70%);
  overflow: hidden;
  border: 1px solid var(--stroke);
}

.about-img{
  width: 68%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.45));
  animation: slowSpin 40s linear infinite;
}

@keyframes slowSpin{
  from{ transform: rotate(0deg) }
  to{ transform: rotate(360deg) }
}

@media (prefers-reduced-motion: reduce){
  .about-img{ animation: none }
}

/* правый столбец */
.about-copy h2{ font-size: clamp(24px, 3.2vw, 36px); margin: 4px 0 8px }
.about-sub{ color: var(--text); opacity:.92; font-weight:600; margin: 0 0 8px }
.about-copy p{ color: var(--muted); margin: 0 0 10px }

.about-actions{ display:flex; gap: 10px; margin-top: 14px; flex-wrap: wrap }

/* outline-кнопка под твой стиль */
.btn-outline{
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-outline:hover{
  background: rgba(123,92,255,.12);
}


/* адаптив */
@media (max-width: 980px){
  .about-glass{
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .about-media{ aspect-ratio: auto; padding: 24px }
  .about-img{ width: 74% }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto 1fr;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .burger {
    display: block;
  }

  .logo {
    margin-left: auto;
    justify-self: end;
  }

  .card-stack {
    height: 360px;
  }
  .logo img {
  width: 44px;
  height: 44px;
  }
  .hero-sub {
  font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grad-anim,
  .scroll-down {
    animation: none;
  }

  .card-stack img {
    transition: none;
  }
  .card-stack.floaty{ animation: none; }
   .stars-bg{ display:none; }
  .nav-wrap.hide{ transform: none; opacity: 1; } /* не прячем шапку */
  .cta-bar{ display: none; }                     /* не показываем вторую панель */
  .btn-pulse{ animation: none; }                 /* без пульса */
}

/* ===== CTA attention effects (glow + waves) ===== */
.btn-cta{
  position: relative;
  isolation: isolate;              /* чтобы pseudo не вылезали */
  overflow: visible;
  box-shadow: var(--shadow);
  animation: breatheGlow 3.2s ease-in-out infinite; /* мягкое свечение */
}

/* Два «кольца»-волны вокруг кнопки */
.btn-cta::before,
.btn-cta::after{
  content:"";
  position:absolute;
  inset: -6px;                     /* чуть больше самой кнопки */
  border-radius: 999px;
  border: 2px solid rgba(123,92,255,.35);
  opacity: 0;
  transform: scale(.75);
  pointer-events: none;
  z-index: -1;
}
.btn-cta::before{
  animation: ring 2.8s ease-out infinite;
}
.btn-cta::after{
  animation: ring 2.8s ease-out infinite 1.4s; /* сдвиг второй волны */
}

/* Усиление на hover/focus */
.btn-cta:hover,
.btn-cta:focus-visible{
  animation-duration: 2.4s;
  box-shadow:
    0 0 0 8px rgba(123,92,255,.12),
    var(--shadow);
}
.btn-cta:hover::before,
.btn-cta:hover::after,
.btn-cta:focus-visible::before,
.btn-cta:focus-visible::after{
  border-color: rgba(123,92,255,.5);
}

/* Ключевые кадры */
@keyframes breatheGlow{
  0%,100%{ box-shadow: var(--shadow); }
  50%    { box-shadow: 0 0 0 10px rgba(123,92,255,.10), var(--shadow); }
}
@keyframes ring{
  0%  { opacity: .0; transform: scale(.75); }
  10% { opacity: .6; }
  60% { opacity: .2; }
  100%{ opacity: 0;  transform: scale(1.25); }
}

/* Опционально — лёгкий «подскок» при клике */
.btn-cta:active{ transform: translateY(1px); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .btn-cta{ animation: none; }
  .btn-cta::before, .btn-cta::after{ display:none; }
}

/* ===== CONTACTS ===== */
.contacts{ padding: 84px 0; }

.contacts-glass{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr; /* правая колонка больше */
  gap: 28px; align-items:center;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.contacts-copy h2{ margin: 4px 0 8px; }
.contacts-sub{ color: var(--muted); margin: 0 0 10px; }

.mail-link{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:600; color:#fff; text-decoration:none;
  padding:.6rem .8rem; border-radius:12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  transition: background .2s ease, border-color .2s ease;
}
.mail-link:hover{ background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); }

.contacts-actions{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.social-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:.7rem 1rem; border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  color:#fff; text-decoration:none; transition:.25s;
}
.social-btn .svg-inline svg{ width:22px; height:22px; fill:currentColor; }
.social-btn.tg{ color:#2AABEE; border-color: rgba(42,171,238,.4); }
.social-btn.wa{ color:#25D366; border-color: rgba(37,211,102,.4); }
.social-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  background: rgba(255,255,255,.04);
}

/* Правая колонка — статичное SVG cover */
.contacts-media{
  position:relative;
  min-height: 360px;                /* сделай выше/ниже по макету */
  border-radius: calc(var(--radius) - 6px);
  overflow:hidden;
  border:1px solid var(--stroke);
  background: radial-gradient(80% 80% at 50% 50%, rgba(198,168,255,.10), rgba(255,255,255,0) 70%);
}
.cover-svg{
  position:absolute; inset:0;
  width:100%; height:100%;
  /* для <img src="*.svg"> — object-fit; для inline <svg> — preserveAspectRatio: slice */
  object-fit: cover;
}

/* Адаптив */
@media (max-width: 980px){
  .contacts-glass{
    grid-template-columns: 1fr; padding: 20px;
  }
  .contacts-media{ min-height: 260px; }
  
  /* Новые секции */
  .tarot-content,
  .natal-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ===== 3D Tilt for Contacts media ===== */
.tilt3d{
  perspective: 1000px;               /* глубина перспективы */
  --rx: 0deg;                         /* наклон по X (устанавливает JS) */
  --ry: 0deg;                         /* наклон по Y (устанавливает JS) */
  --sx: 1;                            /* масштаб */
  --px: 50%; --py: 50%;               /* позиция блика */
}

.tilt3d .cover-svg{
  transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--sx)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}

/* Блик поверх */
.tilt3d::after{
  content:"";
  position:absolute; inset:0;
  pointer-events:none;
  background:
    radial-gradient(220px 220px at var(--px) var(--py),
      rgba(255,255,255,.22), rgba(255,255,255,0) 60%);
  opacity: 0;
  transition: opacity .25s ease, background-position .05s linear;
}

.tilt3d.is-hover{ /* при наведении усиливаем эффект */
  --sx: 1.02;
}
.tilt3d.is-hover::after{
  opacity: .65;
}

/* уважение к настройке "уменьшить анимации" */
@media (prefers-reduced-motion: reduce){
  .tilt3d .cover-svg{ transition: none; transform: none !important; }
  .tilt3d::after{ display:none; }
}

/* ===== BLOG ===== */
.blog { padding: 84px 0; }

.blog-head{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 16px;
}
.blog-head h2{ margin:0; }
.view-all{
  align-self: center;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.view-all:hover{
  background: rgba(255,255,255,.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

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

/* Карточка блога */
.blog-card{
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.blog-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.30), 0 10px 26px rgba(123,92,255,.18);
  border-color: rgba(255,255,255,.14);
}

/* Cover */
.cover-link{ display:block; position:relative; }
.cover{
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
}

/* Тело */
.blog-body{
  display: grid; gap: 8px;
  padding: 14px;
}
.blog-title{
  margin: 2px 0 0;
  font-size: clamp(18px, 2.2vw, 20px);
}
.blog-title a{
  color:#fff; text-decoration:none;
}
.blog-title a:hover{ text-decoration: underline; }

/* Обрезка отрывка с троеточием */
.blog-excerpt{
  margin: 0 0 6px; color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;           /* показываем 3 строки */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Кнопка */
.blog-body .btn{ justify-self: start; }

/* Адаптив */
@media (max-width: 980px){
  .blog-grid{ grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.site-footer{
  margin-top: 60px;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(123,92,255,.18), transparent 60%),
    radial-gradient(700px 500px at 10% 120%, rgba(198,168,255,.12), transparent 60%),
    #0a0913;
  border-top: 1px solid var(--stroke);
  color: var(--text);
}

.footer-top{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  padding: 32px 0 18px;
}

.footer-brand {
  --logo-w: 28px;
  --logo-gap: 10px;
  --brand-indent: calc(var(--logo-w) + var(--logo-gap));
}

.footer-brand .logo{
  display:flex; align-items:center;
  gap: var(--logo-gap);
  /* убираем любые внутренние отступы, чтобы блок начинался строго слева */
  padding: 0;
  margin: 0 0 8px 0;
}
.footer-brand .logo img{ width:180px; height:180px; }

.footer-desc{
  margin: 10px 0 12px;
  color: var(--muted);
  max-width: 36ch;
}

.footer-legal{
  display:flex; gap:14px; flex-wrap:wrap;
}
.footer-legal a{
  color: var(--muted);
  text-decoration:none;
  padding:6px 8px;
  border:1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.footer-legal a:hover{
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* правая колонка — навигация */
.footer-nav h4{
  margin: 6px 0 8px;
  font-size: 14px; letter-spacing: .4px; text-transform: uppercase;
  color: var(--muted);
}
.footer-nav ul{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 20px;
}
.footer-nav a{
  color: var(--text); text-decoration: none;
  padding: 6px 8px; border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.footer-nav a:hover{
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.footer-nav a.cta-link{
  /* акцент для CTA-ссылки */
  background: linear-gradient(90deg, #6b50ff, #a887ff, #6b50ff);
  background-size: 200% 100%;
  animation: glow 3s linear infinite;
  color:#fff; border-color: transparent;
}

/* низ */
.footer-bottom{
  border-top: 1px solid var(--stroke);
  padding: 36px 0;
  color: var(--muted);
  font-size: .92rem;
  text-align: center;
}
.footer-bottom p{ margin: 0; }

/* адаптив */
@media (max-width: 980px){
  .footer-top{ grid-template-columns: 1fr; }
}

/* ===== MODAL ===== */
.modal{
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal.show{ opacity: 1; pointer-events: auto; }

.modal-card{
  position: relative;
  width: min(92vw, 720px);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  transform: translateY(12px) scale(.98);
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.modal.show .modal-card{ transform: translateY(0) scale(1); }

.modal-close{
  position: absolute; top: 8px; right: 10px;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: #fff; font-size: 22px; line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
}
.modal-close:hover{ background: rgba(255,255,255,.08); }

/* LOADING */
.modal-loading{
  display: grid; gap: 10px; justify-items: center; padding: 24px 6px;
}
.spinner{
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(233,230,255,.25);
  border-top-color: #a887ff;
  animation: spin 1s linear infinite;
}
@keyframes spin{ to { transform: rotate(360deg); } }
.modal-loading p{ color: var(--muted); margin: 0; }

/* RESULT */
.modal-result{ display: grid; gap: 12px; }
.modal-result h3{ margin: 4px 0 2px; }

/* Превью: скролл внутри + мягкая маска снизу */
.result-preview{
  position: relative;
  max-height: min(48vh, 420px);   /* выше и в пределах экрана */
  overflow: auto;                 /* включаем скролл */
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color: var(--text);
  line-height: 1.65;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}
/* аккуратный скроллбар (WebKit) */
.result-preview::-webkit-scrollbar{ width: 10px; }
.result-preview::-webkit-scrollbar-track{ background: rgba(255,255,255,.04); border-radius: 10px; }
.result-preview::-webkit-scrollbar-thumb{
  background: rgba(168,135,255,.45);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

/* Акцент на стоимости */
.pay-note{
  margin: 4px 0 0;
  text-align: center;
  font-size: 1.12rem;     /* крупнее */
  line-height: 1.5;
  color: #fff;            /* ярче */
}
.pay-note strong{
  display: inline-block;
  font-weight: 800;
  padding: 4px 10px;
  margin-left: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6b50ff, #a887ff, #6b50ff);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 6px 18px rgba(123,92,255,.28);
}

.modal-actions{
  display: flex; justify-content: center; gap: 10px;
}

/* Блокировка скролла под модалкой */
body.modal-open{ overflow: hidden; }

@media (prefers-reduced-motion: reduce){
  .modal{ backdrop-filter: none; }
  .spinner{ animation: none; }
}

/* ===== FAQ SECTION ===== */
.faq {
  padding: 80px 0;
}

.faq-glass {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 60px 40px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.faq-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.6;
}

.faq-head {
  text-align: center;
  margin-bottom: 50px;
}

.faq-head h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, var(--primary2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-head p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

.faq-grid {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(123, 92, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(123, 92, 255, 0.15);
}

.faq-question {
  width: 100%;
  padding: 24px 28px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  position: relative;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-radius: 12px;
  color: #fff;
  transition: all 0.3s ease;
}

.faq-item:hover .faq-icon {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(123, 92, 255, 0.4);
}

.faq-text {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease;
}

.faq-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.faq-question:hover .faq-arrow {
  color: var(--primary);
  background: rgba(123, 92, 255, 0.1);
}

.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
  background: rgba(123, 92, 255, 0.15);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: rgba(0, 0, 0, 0.1);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 200px;
  padding: 0 28px 24px 92px;
}

.faq-answer p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

/* Анимация для открытия/закрытия */
.faq-answer {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  opacity: 0;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  opacity: 1;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
  .faq {
    padding: 60px 0;
  }
  
  .faq-glass {
    padding: 40px 20px;
    margin: 0 16px;
  }
  
  .faq-head h2 {
    font-size: 2rem;
  }
  
  .faq-question {
    padding: 20px 16px;
    gap: 12px;
  }
  
  .faq-icon {
    width: 40px;
    height: 40px;
  }
  
  .faq-text {
    font-size: 1rem;
  }
  
  .faq-question[aria-expanded="true"] + .faq-answer {
    padding: 0 16px 20px 68px;
  }
}

@media (max-width: 480px) {
  .faq-glass {
    margin: 0 8px;
    padding: 30px 16px;
  }
  
  .faq-question {
    padding: 16px 12px;
    gap: 10px;
  }
  
  .faq-icon {
    width: 36px;
    height: 36px;
  }
  
  .faq-text {
    font-size: 0.95rem;
  }
  
  .faq-question[aria-expanded="true"] + .faq-answer {
    padding: 0 12px 16px 58px;
  }
}

/* ===== PRIVACY PAGE ===== */
.privacy-glass {
  padding: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.privacy-head {
  text-align: center;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--stroke);
}

.privacy-head h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 12px;
  background: linear-gradient(135deg, #fff, var(--primary2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Table of Contents */
.privacy-toc {
  padding: 24px;
  margin-bottom: 40px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
}

.toc-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toc-list {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.toc-list li {
  line-height: 1.6;
}

.toc-list a {
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
  display: inline-block;
  padding: 4px 0;
}

.toc-list a:hover {
  color: var(--primary);
  padding-left: 6px;
}

/* Privacy Content */
.privacy-content {
  display: grid;
  gap: 32px;
}

.privacy-section {
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.privacy-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
  border-color: rgba(123,92,255,.25);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.section-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(123,92,255,.3);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 600;
  color: var(--text);
}

.privacy-section p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

.privacy-section a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease;
}

.privacy-section a:hover {
  color: var(--primary2);
  text-decoration: underline;
}

.privacy-section strong {
  color: var(--text);
  font-weight: 600;
}

/* Privacy Lists */
.privacy-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.privacy-list li {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 28px;
  position: relative;
}

.privacy-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 18px;
}

.privacy-contact {
  margin-top: 16px !important;
  padding: 16px;
  border-radius: 10px;
  background: rgba(123,92,255,.08);
  border: 1px solid rgba(123,92,255,.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .privacy-glass {
    padding: 28px 20px;
  }

  .privacy-head {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .privacy-toc {
    padding: 20px;
    margin-bottom: 28px;
  }

  .privacy-content {
    gap: 24px;
  }

  .privacy-section {
    padding: 20px;
  }

  .section-header {
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .section-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .privacy-list li {
    padding-left: 24px;
  }
}

@media (max-width: 480px) {
  .privacy-glass {
    padding: 20px 16px;
  }

  .toc-list {
    padding-left: 1.2rem;
    gap: 8px;
  }

  .section-header {
    flex-direction: row;
    align-items: center;
  }

  .section-number {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* ===== Toast Notification ===== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: min(400px, calc(100vw - 40px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .04));
  backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(123, 92, 255, .2), 0 0 0 1px rgba(198, 168, 255, .1) inset;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  pointer-events: all;
  opacity: 0;
  transform: translateX(120%) scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.toast::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  opacity: 0.6;
}

.toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary2);
}

.toast-icon svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 4px rgba(198, 168, 255, 0.4));
}

.toast-message {
  flex: 1;
  color: var(--text);
  word-wrap: break-word;
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
}

.toast-close:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--text);
}

.toast-close:active {
  transform: scale(0.95);
}

/* Типы toast */
.toast-success::before {
  background: linear-gradient(90deg, #4ade80, #86efac);
}

.toast-success .toast-icon {
  color: #86efac;
}

.toast-error::before {
  background: linear-gradient(90deg, #f87171, #fca5a5);
}

.toast-error .toast-icon {
  color: #fca5a5;
}

.toast-info::before {
  background: linear-gradient(90deg, var(--primary), var(--primary2));
}

/* Анимация мерцания для иконки звезды (info) */
.toast-info .toast-icon svg {
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(198, 168, 255, 0.4)); }
  50% { opacity: 0.7; filter: drop-shadow(0 0 8px rgba(198, 168, 255, 0.8)); }
}

/* Адаптивность */
@media (max-width: 768px) {
  #toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  .toast {
    padding: 14px 16px;
    font-size: 14px;
  }

  .toast-icon {
    width: 20px;
    height: 20px;
  }

  .toast-icon svg {
    width: 18px;
    height: 18px;
  }
}