/* ==========================================================================
   ИИ-фотостудия в MAX
   Дизайн-система и стили лендинга
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
:root {
  --bg: #0a0610;
  --bg-soft: #100a18;
  --bg-elev: #16101f;

  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f8f4f8;
  --muted: #a89fb4;
  --muted-2: #7d7489;

  --gold: #e7c89a;
  --gold-light: #f6e6c8;
  --rose: #eaa6bb;
  --lilac: #b499ea;

  --accent-grad: linear-gradient(115deg, #f6e6c8 0%, #eaa6bb 48%, #b499ea 100%);
  --accent-grad-soft: linear-gradient(115deg, rgba(246, 230, 200, 0.16), rgba(180, 153, 234, 0.16));

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.28);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 20px 60px -18px rgba(234, 166, 187, 0.45);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --gutter: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html.lenis {
  scroll-behavior: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

::selection {
  background: rgba(234, 166, 187, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Фоновое свечение и зернистость */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-fx__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.bg-fx__orb--1 {
  width: 620px;
  height: 620px;
  top: -240px;
  left: -180px;
  background: radial-gradient(circle, rgba(180, 153, 234, 0.5), transparent 68%);
}

.bg-fx__orb--2 {
  width: 700px;
  height: 700px;
  top: 34%;
  right: -280px;
  background: radial-gradient(circle, rgba(234, 166, 187, 0.34), transparent 68%);
}

.bg-fx__orb--3 {
  width: 620px;
  height: 620px;
  bottom: -220px;
  left: 18%;
  background: radial-gradient(circle, rgba(231, 200, 154, 0.24), transparent 68%);
}

.bg-fx__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. Раскладка
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: clamp(72px, 9vw, 132px) 0;
}

.section--tight {
  padding: clamp(56px, 6vw, 88px) 0;
}

.section__head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 5vw, 68px);
  text-align: center;
}

.section__head--left {
  margin-left: 0;
  text-align: left;
}

/* --------------------------------------------------------------------------
   4. Типографика
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(234, 166, 187, 0.18);
  animation: pulse 2.4s var(--ease-soft) infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(234, 166, 187, 0.2);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(234, 166, 187, 0.05);
  }
}

.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.35rem, 8.4vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 6.4vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.32rem, 4.2vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.h4 {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   5. Кнопки
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft);
  will-change: transform;
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn svg {
  flex-shrink: 0;
}

.btn--primary {
  background: var(--accent-grad);
  color: #23131c;
  box-shadow: var(--shadow-glow);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

/* Наведение и блик — только для мыши. На тач-устройствах псевдоэлемент
   с отрицательным z-index попадает в отдельный слой композитинга Safari
   и перекрывает надпись на кнопке. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
  }

  .btn--primary {
    overflow: hidden;
    isolation: isolate;
  }

  .btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.65) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.85s var(--ease);
  }

  .btn--primary:hover::after {
    transform: translateX(120%);
  }

  .btn--primary:hover {
    box-shadow: 0 26px 70px -16px rgba(234, 166, 187, 0.6);
  }

  .btn--ghost {
    backdrop-filter: blur(12px);
  }

  .btn--ghost:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.28);
  }
}

.btn--lg {
  padding: 19px 38px;
  font-size: 17px;
}

.btn--sm {
  padding: 11px 22px;
  font-size: 14.5px;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-row--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   6. Шапка
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-soft), backdrop-filter 0.4s var(--ease-soft),
    border-color 0.4s var(--ease-soft), height 0.4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  height: 66px;
  background: rgba(10, 6, 16, 0.78);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 3.6vw, 1.34rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
  flex-shrink: 0;
}

.logo__mark {
  width: clamp(28px, 7vw, 34px);
  height: clamp(28px, 7vw, 34px);
  flex-shrink: 0;
}

.logo__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-top: 1px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease-soft);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease-soft);
}

.burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 6, 16, 0.96);
  backdrop-filter: blur(24px);
  padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease-soft), transform 0.4s var(--ease), visibility 0.35s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu__link {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

.mobile-menu__foot {
  margin-top: auto;
  padding-top: 28px;
}

/* --------------------------------------------------------------------------
   7. Первый экран
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(44px, 7vw, 86px)) 0 clamp(60px, 7vw, 100px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__text {
  max-width: 560px;
  margin-bottom: 34px;
}

.hero__actions {
  margin-bottom: 30px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

.hero__trust svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Коллаж */
.collage {
  position: relative;
  aspect-ratio: 1 / 1.02;
  perspective: 1400px;
}

.collage__card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: var(--bg-elev);
  will-change: transform, opacity;
}

.collage__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.4s var(--ease);
}

.collage__card--main {
  width: 62%;
  top: 4%;
  left: 6%;
  aspect-ratio: 3 / 4;
  z-index: 3;
  transform: rotate(-3deg) translate3d(var(--px, 0px), var(--py, 0px), 0);
}

.collage__card--two {
  width: 44%;
  right: 0;
  top: 20%;
  aspect-ratio: 3 / 4;
  z-index: 2;
  transform: rotate(4deg) translate3d(var(--px, 0px), var(--py, 0px), 0);
}

.collage__card--three {
  width: 36%;
  bottom: 0;
  left: 0;
  aspect-ratio: 1 / 1;
  z-index: 4;
  transform: rotate(-6deg) translate3d(var(--px, 0px), var(--py, 0px), 0);
}

/* Появление коллажа сделано на CSS-анимациях: они трогают только opacity,
   поэтому не конфликтуют с параллаксом, который управляет transform.
   Плюс блок остаётся видимым, даже если скрипты не загрузились. */
.collage__card,
.collage .ai-badge,
.collage .prompt-chip {
  opacity: 0;
  animation: fade-in 1s var(--ease) forwards;
}

.collage__card img {
  animation: photo-in 1.5s var(--ease) forwards;
}

.collage__card--main,
.collage__card--main img {
  animation-delay: 0.1s;
}

.collage__card--two,
.collage__card--two img {
  animation-delay: 0.24s;
}

.collage__card--three,
.collage__card--three img {
  animation-delay: 0.38s;
}

.collage .ai-badge {
  animation-delay: 0.6s;
}

.collage .prompt-chip {
  animation-delay: 0.74s;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes photo-in {
  to {
    transform: scale(1);
  }
}

.collage__glow {
  position: absolute;
  inset: 12% 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 166, 187, 0.32), transparent 65%);
  filter: blur(56px);
  z-index: 0;
}

.prompt-chip {
  position: absolute;
  z-index: 6;
  right: -2%;
  bottom: 11%;
  width: min(300px, 74%);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(18, 12, 26, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.prompt-chip__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}

.prompt-chip__text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #ded6e4;
}

.prompt-chip__caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--rose);
  animation: caret 1s steps(2) infinite;
}

@keyframes caret {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.ai-badge {
  position: absolute;
  z-index: 6;
  top: 8%;
  right: 4%;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 12, 26, 0.8);
  backdrop-filter: blur(14px);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   8. Бегущая строка
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 42s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  font-weight: 600;
  color: rgba(248, 244, 248, 0.62);
  white-space: nowrap;
}

.marquee__item::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   9. Боли / решение
   -------------------------------------------------------------------------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.pain-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.45s var(--ease), border-color 0.35s var(--ease-soft);
}

.pain-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
}

.pain-card__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-grad-soft);
  border: 1px solid var(--line-strong);
  color: var(--gold-light);
}

.pain-card p {
  margin-top: 9px;
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   10. Возможности
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease-soft);
}

.feature::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  top: var(--my, 50%);
  left: var(--mx, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(234, 166, 187, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
  pointer-events: none;
}

.feature:hover::before {
  opacity: 1;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.feature__icon {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(246, 230, 200, 0.2), rgba(180, 153, 234, 0.14));
  border: 1px solid var(--line-strong);
  color: var(--gold-light);
}

.feature__title {
  position: relative;
  margin-bottom: 10px;
}

.feature__text {
  position: relative;
  font-size: 15px;
  color: var(--muted);
}

.feature--wide {
  grid-column: span 2;
}

/* --------------------------------------------------------------------------
   11. Галерея
   -------------------------------------------------------------------------- */
.gallery {
  position: relative;
}

.gallery .swiper {
  padding-bottom: 8px;
}

.gallery .swiper-slide,
#reviewsSwiper .swiper-slide {
  height: auto;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
}

.gallery-card:hover {
  transform: translateY(-6px);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.5s var(--ease-soft);
}

.gallery-card:hover img {
  transform: scale(1.06);
}

.gallery-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 4, 12, 0.94) 0%, rgba(8, 4, 12, 0.55) 34%, transparent 62%);
}

.gallery-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 22px 24px;
}

.gallery-card__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.gallery-card__prompt {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(248, 244, 248, 0.88);
}

.gallery-card__prompt b {
  color: #fff;
  font-weight: 700;
}

.swiper-nav {
  display: flex;
  gap: 10px;
}

.swiper-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background 0.3s var(--ease-soft), transform 0.3s var(--ease), opacity 0.3s;
}

.swiper-btn:hover {
  background: var(--surface-2);
  transform: scale(1.06);
}

.swiper-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.gallery__note {
  margin-top: 30px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   12. Шаги
   -------------------------------------------------------------------------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.steps::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.step {
  position: relative;
  text-align: center;
  padding: 0 12px;
}

.step__num {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent-grad);
  box-shadow: 0 12px 34px -10px rgba(234, 166, 187, 0.6);
}

.step__num::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Блок канала с промптами
   -------------------------------------------------------------------------- */
.channel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(180, 153, 234, 0.14), rgba(234, 166, 187, 0.08) 45%, rgba(255, 255, 255, 0.02));
  padding: clamp(34px, 4.4vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
}

.channel__glow {
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 166, 187, 0.3), transparent 68%);
  filter: blur(60px);
  pointer-events: none;
}

.channel__list {
  display: grid;
  gap: 13px;
  margin: 26px 0 32px;
}

.channel__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--muted);
}

.channel__list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

.prompt-stack {
  position: relative;
  display: grid;
  gap: 12px;
}

.prompt-card {
  padding: 17px 19px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(12, 8, 18, 0.62);
  backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease-soft);
}

.prompt-card:hover {
  transform: translateX(6px);
  border-color: var(--line-strong);
}

.prompt-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.prompt-card__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.prompt-card__copy {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
  transition: color 0.25s;
}

.prompt-card:hover .prompt-card__copy {
  color: var(--text);
}

.prompt-card__text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #cfc7d8;
}

/* --------------------------------------------------------------------------
   14. Отзывы
   -------------------------------------------------------------------------- */
.review {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
}

.review__stars {
  display: flex;
  gap: 3px;
  color: var(--gold);
}

.review__text {
  flex: 1;
  font-size: 15.5px;
  line-height: 1.62;
  color: #ded6e4;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.review__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent-grad);
  flex-shrink: 0;
}

.review__name {
  font-size: 15px;
  font-weight: 700;
}

.review__meta {
  font-size: 13px;
  color: var(--muted-2);
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-soft), background 0.3s var(--ease-soft);
}

.faq-item.is-open {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  text-align: left;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-item__icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.faq-item.is-open .faq-item__a {
  grid-template-rows: 1fr;
}

.faq-item__a-inner {
  overflow: hidden;
}

.faq-item__a p {
  padding: 0 26px 24px;
  font-size: 15.5px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   16. Финальный призыв
   -------------------------------------------------------------------------- */
.final {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, rgba(180, 153, 234, 0.18), rgba(234, 166, 187, 0.12) 50%, rgba(231, 200, 154, 0.08));
  padding: clamp(44px, 6vw, 88px) clamp(24px, 5vw, 72px);
  text-align: center;
}

.final__glow {
  position: absolute;
  width: 560px;
  height: 560px;
  left: 50%;
  top: -60%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 166, 187, 0.32), transparent 66%);
  filter: blur(70px);
  pointer-events: none;
}

.final__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.final__title {
  margin-bottom: 20px;
}

.final__text {
  margin-bottom: 34px;
}

.final__micro {
  margin-top: 22px;
}

/* --------------------------------------------------------------------------
   17. Подвал
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  margin-top: clamp(60px, 7vw, 100px);
  padding: clamp(48px, 5vw, 70px) 0 56px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.footer__about {
  max-width: 380px;
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--muted);
}

.footer__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 18px;
}

.footer__links {
  display: grid;
  gap: 11px;
}

.footer__links a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.25s var(--ease-soft);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  justify-content: space-between;
  align-items: center;
}

.footer__legal {
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   18. Мобильная панель действия
   -------------------------------------------------------------------------- */
/* Панель во всю ширину с растушёвкой к низу: без второй «таблетки»
   и без backdrop-filter, который на iOS перекрывал кнопку. */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  padding: 18px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 62%, rgba(10, 6, 16, 0.82) 82%, rgba(10, 6, 16, 0));
  transform: translateY(130%);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  pointer-events: auto;
  padding-left: 18px;
  padding-right: 18px;
  font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   19. Уведомление о cookie
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 95;
  max-width: 420px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(16, 10, 24, 0.94);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  transform: translateY(160%);
  transition: transform 0.6s var(--ease);
}

.cookie.is-visible {
  transform: translateY(0);
}

.cookie p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 14px;
}

.cookie a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   20. Всплывающее уведомление
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 120;
  transform: translate(-50%, 140%);
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(20, 13, 28, 0.95);
  backdrop-filter: blur(16px);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   21. Лайтбокс
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(6, 3, 10, 0.92);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-soft), visibility 0.35s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(560px, 92vw);
  max-height: 84vh;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: scale(0.94);
  transition: transform 0.45s var(--ease);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: grid;
  place-items: center;
}

/* --------------------------------------------------------------------------
   22. Анимации появления
   -------------------------------------------------------------------------- */

/* Класс js ставится инлайн-скриптом в <head>: он прячет текст первого экрана
   до старта анимации, чтобы не было заметного мигания. Скрипт снимает класс
   сразу после того, как GSAP выставил стартовые значения. */
.js .hero__col > .eyebrow,
.js .hero__title,
.js .hero__text,
.js .hero__actions,
.js .hero__trust li {
  opacity: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   23. Юридические страницы
   -------------------------------------------------------------------------- */
.doc {
  padding: calc(var(--header-h) + 56px) 0 90px;
}

.doc__inner {
  max-width: 820px;
  margin: 0 auto;
}

.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 12px;
}

.doc h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 12px;
}

.doc ul {
  padding-left: 22px;
  list-style: disc;
  margin-bottom: 18px;
}

.doc li {
  margin-bottom: 8px;
}

.doc a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc__date {
  font-size: 14px;
  color: var(--muted-2);
  margin-bottom: 34px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.25s;
}

.back-link:hover {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   24. Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature--wide {
    grid-column: span 1;
  }

  .channel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 940px) {
  .nav,
  .header__cta .btn {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero__text {
    max-width: none;
  }

  .collage {
    max-width: 460px;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .steps::before {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__about {
    grid-column: span 2;
  }

  .sticky-cta {
    display: block;
  }

  /* Оставляем место под плавающую кнопку */
  .footer {
    padding-bottom: 120px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  :root {
    --gutter: 18px;
  }

  .gallery__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .features,
  .pain-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__about {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    padding: 15px 24px;
    font-size: 15.5px;
  }

  .btn--lg {
    padding: 17px 28px;
    font-size: 16px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cookie {
    left: 12px;
    right: 12px;
    bottom: 84px;
    max-width: none;
  }

  .prompt-chip {
    right: -8px;
    bottom: 4%;
    width: 84%;
  }

  .review {
    padding: 26px 22px;
  }

  .faq-item__q {
    padding: 18px 20px;
    font-size: 15.5px;
  }

  .faq-item__a p {
    padding: 0 20px 20px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 92px;
    transform: translateY(200%);
    text-align: center;
  }

  .toast.is-visible {
    transform: translateY(0);
  }

  .eyebrow {
    font-size: 11.5px;
    padding: 6px 13px 6px 10px;
    letter-spacing: 0.03em;
  }

  .section__head {
    margin-bottom: 34px;
  }

  .channel {
    padding: 28px 20px;
  }

  .final {
    padding: 40px 20px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox__close {
    top: 14px;
    right: 14px;
  }
}

/* Совсем узкие экраны */
@media (max-width: 380px) {
  .logo__sub {
    display: none;
  }

  .marquee__group {
    gap: 22px;
    padding-right: 22px;
  }

  .step__num {
    width: 58px;
    height: 58px;
    font-size: 1.45rem;
  }

  .feature,
  .pain-card {
    padding: 24px 20px;
  }
}

/* Не даём плашкам налезать на плавающую кнопку, с поправкой
   на «шторку» iPhone без физической кнопки */
@media (max-width: 940px) {
  .cookie {
    bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  .toast {
    bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
}

/* На мобильных уменьшаем размытые пятна — они дороги для отрисовки */
@media (max-width: 768px) {
  .bg-fx__orb {
    filter: blur(60px);
    opacity: 0.42;
  }

  .bg-fx__orb--1 {
    width: 340px;
    height: 340px;
    top: -140px;
    left: -120px;
  }

  .bg-fx__orb--2 {
    width: 360px;
    height: 360px;
    right: -160px;
  }

  .bg-fx__orb--3 {
    width: 320px;
    height: 320px;
    bottom: -140px;
  }

  .bg-fx__grain {
    opacity: 0.22;
  }
}

/* Телефон в горизонтальной ориентации: не растягиваем первый экран */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    padding-top: calc(var(--header-h) + 24px);
    padding-bottom: 48px;
  }

  .collage {
    max-width: 320px;
  }
}

/* --------------------------------------------------------------------------
   25. Пользовательские настройки
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
