/* ============================================================
   Анна Рогова — лендинг.
   Направление: «Из темноты к свету». Драгоценные тёмные тона
   (индиго, слива, изумруд) + тёплый кремово-терракотовый свет.
   ============================================================ */

@property --ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --night: #05080e;
  --navy: #0c1e30;
  --navy-2: #123044;
  --indigo: #141026;
  --plum: #241531;
  --plum-2: #2f1a3c;
  --emerald: #042420;
  --emerald-2: #06342c;
  --mint: #4fa07a;
  --terra: #e07038;
  --gold: #e9b877;
  --cream: #fbeacd;
  --paper: #efe9e1;

  --txt: #f0ece6;
  --txt-dim: #b3bccb;
  --txt-faint: #7d8b9c;
  --line: rgba(240, 236, 230, 0.12);
  --line-warm: rgba(251, 234, 205, 0.22);

  --ff-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --ff-body: 'Onest', system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);

  --shell: 1240px;
  --gut: clamp(20px, 5vw, 64px);
}

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

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

body {
  background: var(--night);
  color: var(--txt);
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--terra);
  color: #fff;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.shell-narrow {
  max-width: 940px;
}

/* ---------- Типографика ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.h-hero {
  font-size: clamp(2.5rem, 5.4vw, 4.7rem);
}
.h-sec {
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.06;
}
.h-sub {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.kicker {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}

.italic-warm {
  font-style: italic;
  color: var(--cream);
}

.grad-text {
  background: linear-gradient(100deg, var(--cream) 0%, var(--gold) 34%, var(--terra) 68%, #c25a86 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: slide-grad 9s var(--ease-io) infinite alternate;
}
@keyframes slide-grad {
  to {
    background-position: 100% 0;
  }
}

/* ---------- Атмосфера ---------- */

.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.orb-a {
  width: 58vw;
  height: 58vw;
  left: -16vw;
  top: -18vw;
  background: radial-gradient(circle at 40% 40%, #1b5480 0%, rgba(12, 30, 48, 0) 68%);
  animation: drift-a 26s var(--ease-io) infinite alternate;
}
.orb-b {
  width: 46vw;
  height: 46vw;
  right: -12vw;
  top: 20vh;
  background: radial-gradient(circle at 50% 50%, #6b2b63 0%, rgba(107, 43, 99, 0) 66%);
  animation: drift-b 32s var(--ease-io) infinite alternate;
}
.orb-c {
  width: 42vw;
  height: 42vw;
  left: 24vw;
  bottom: -18vw;
  background: radial-gradient(circle at 50% 50%, #c4682c 0%, rgba(196, 104, 44, 0) 64%);
  opacity: 0.32;
  animation: drift-c 38s var(--ease-io) infinite alternate;
}
@keyframes drift-img {
  to {
    transform: scale(1.1) translate3d(-1.2%, -1%, 0);
  }
}
@keyframes drift-a {
  to {
    transform: translate3d(9vw, 7vh, 0) scale(1.16);
  }
}
@keyframes drift-b {
  to {
    transform: translate3d(-11vw, -9vh, 0) scale(1.22);
  }
}
@keyframes drift-c {
  to {
    transform: translate3d(7vw, -11vh, 0) scale(0.86);
  }
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 7s steps(6) infinite;
}
@keyframes grain-shift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-3%, 2%);
  }
  40% {
    transform: translate(2%, -3%);
  }
  60% {
    transform: translate(-2%, -2%);
  }
  80% {
    transform: translate(3%, 1%);
  }
}

main,
.nav,
footer {
  position: relative;
  z-index: 2;
}

/* ---------- Навигация ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background 0.4s var(--ease-io), border-color 0.4s var(--ease-io);
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(5, 8, 14, 0.76);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 78px;
}

/* Лого-локап: имя ярче и наряднее */
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-right: auto;
}
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 42px;
  height: 42px;
  color: var(--cream);
  position: relative;
  z-index: 2;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 112, 56, 0.55) 0%, transparent 70%);
  filter: blur(7px);
  animation: glow-pulse 4.5s var(--ease-io) infinite;
}
@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
.brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--ff-display);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  background: linear-gradient(96deg, #ffffff 0%, var(--cream) 42%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-role {
  margin-top: 3px;
  white-space: nowrap;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.92;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.87rem;
  color: var(--txt-dim);
}
.nav-links a {
  position: relative;
  padding-block: 4px;
  transition: color 0.18s var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cream), var(--terra));
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover {
  color: var(--cream);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ---------- Кнопки ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.92em 1.7em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  isolation: isolate;
  color: #180c05;
  transition: transform 0.18s var(--ease-out), box-shadow 0.3s var(--ease-out);
  box-shadow: 0 10px 34px -12px rgba(224, 112, 56, 0.75);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(100deg, var(--cream) 0%, var(--gold) 45%, var(--terra) 100%);
  background-size: 200% 100%;
  transition: background-position 0.6s var(--ease-io);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px -12px rgba(224, 112, 56, 0.9);
}
.btn:hover::before {
  background-position: 100% 0;
}
.btn:active {
  transform: translateY(0) scale(0.985);
}
.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn-lg {
  font-size: 1rem;
  padding: 1.05em 2.1em;
}

/* ---------- Кнопка «в бот» ---------- */

.btn-bot {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72em 1.35em 0.72em 0.85em;
  border-radius: 999px;
  border: 1px solid rgba(79, 160, 122, 0.42);
  background: linear-gradient(120deg, rgba(79, 160, 122, 0.16), rgba(20, 16, 38, 0.5) 70%);
  backdrop-filter: blur(8px);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.35s;
}
.btn-bot::after {
  content: '';
  position: absolute;
  inset: 0 -50%;
  z-index: -1;
  background: linear-gradient(100deg, transparent 40%, rgba(79, 160, 122, 0.25) 50%, transparent 60%);
  transform: translateX(-60%);
  animation: bot-sweep 7s var(--ease-io) infinite;
}
@keyframes bot-sweep {
  0%,
  60% {
    transform: translateX(-60%);
  }
  100% {
    transform: translateX(60%);
  }
}
.btn-bot:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 160, 122, 0.85);
  box-shadow: 0 14px 36px -16px rgba(79, 160, 122, 0.8);
}
.bot-ava {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  color: #86dcb4;
  background: rgba(79, 160, 122, 0.18);
  border: 1px solid rgba(79, 160, 122, 0.4);
  transition: transform 0.35s var(--ease-out);
}
.bot-ava svg {
  width: 19px;
  height: 19px;
}
.btn-bot:hover .bot-ava {
  transform: scale(1.08) rotate(-5deg);
}
.bot-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}
.bot-txt b {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--txt);
}
.bot-txt em {
  font-style: normal;
  font-size: 0.74rem;
  color: var(--txt-dim);
  margin-top: 2px;
}

.hero-link {
  display: inline-block;
  margin-top: 1.15rem;
  font-size: 0.86rem;
  color: var(--txt-dim);
  border-bottom: 1px solid rgba(240, 236, 230, 0.22);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.hero-link:hover {
  color: var(--cream);
  border-color: rgba(251, 234, 205, 0.6);
}

.nav-bot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62em 1.05em;
  border-radius: 999px;
  border: 1px solid rgba(79, 160, 122, 0.45);
  background: rgba(79, 160, 122, 0.1);
  color: #9ce4c2;
  font-size: 0.84rem;
  font-weight: 500;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s var(--ease-out);
}
.nav-bot svg {
  width: 17px;
  height: 17px;
}
.nav-bot:hover {
  background: rgba(79, 160, 122, 0.22);
  border-color: rgba(79, 160, 122, 0.85);
  color: #d7fff0;
  transform: translateY(-2px);
}

.cta-bot {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.cta-bot-or {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--txt-faint);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--txt-dim);
  padding: 0.9em 1.45em;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: none;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), background 0.2s;
}
.btn-ghost:hover {
  color: var(--cream);
  border-color: var(--line-warm);
  background: rgba(251, 234, 205, 0.06);
}

.nav .btn {
  padding: 0.74em 1.35em;
  font-size: 0.84rem;
}

/* ---------- Секции ---------- */

section {
  position: relative;
  padding-block: clamp(3.4rem, 7vh, 5.6rem);
}

.sec-head {
  max-width: 800px;
  margin-bottom: clamp(1.9rem, 3.4vw, 2.8rem);
}
.sec-head.center {
  margin-inline: auto;
  text-align: center;
}
.sec-head .kicker {
  display: block;
  margin-bottom: 1.1rem;
}
.sec-head p {
  margin-top: 1.1rem;
  color: var(--txt-dim);
  max-width: 58ch;
}
.sec-head.center p {
  margin-inline: auto;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 70;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cream), var(--gold) 40%, var(--terra) 78%, #c14d78);
  box-shadow: 0 0 12px rgba(233, 184, 119, 0.65);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-warm) 22%,
    rgba(224, 112, 56, 0.45) 50%,
    var(--line-warm) 78%,
    transparent
  );
}

/* ---------- 1. HERO ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 108px;
  padding-bottom: 86px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}
.hero-kicker .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
  animation: pulse-dot 2.8s var(--ease-io) infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(224, 112, 56, 0.6);
  }
  60% {
    box-shadow: 0 0 0 11px rgba(224, 112, 56, 0);
  }
}

.h-hero .ln {
  display: block;
  overflow: hidden;
}
.h-hero .ln > span {
  display: block;
  transform: translateY(105%);
  animation: rise 1.05s var(--ease-out) forwards;
}
.h-hero .ln:nth-child(1) > span {
  animation-delay: 0.15s;
}
.h-hero .ln:nth-child(2) > span {
  animation-delay: 0.29s;
}
@keyframes rise {
  to {
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fade-up 1s var(--ease-out) forwards;
}
@keyframes fade-up {
  to {
    opacity: 1;
  }
}
.d1 {
  animation-delay: 0.55s;
}
.d2 {
  animation-delay: 0.72s;
}
.d3 {
  animation-delay: 0.88s;
}
.d4 {
  animation-delay: 1.04s;
}

.hero-lede {
  margin-top: 1.6rem;
  max-width: 40ch;
  font-size: clamp(1.02rem, 1.42vw, 1.19rem);
  color: var(--txt-dim);
}
.hero-cta {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.chips {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
}
.chip {
  font-size: 0.76rem;
  color: var(--txt-dim);
  padding: 0.42em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(240, 236, 230, 0.04);
  backdrop-filter: blur(6px);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.chip:hover {
  color: var(--cream);
  border-color: var(--line-warm);
  transform: translateY(-2px);
}

.portrait {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 480px;
}
.portrait-frame {
  position: relative;
  border-radius: 200px 200px 26px 26px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9);
  animation: float-y 11s var(--ease-io) infinite alternate;
}
@keyframes float-y {
  to {
    transform: translateY(-16px);
  }
}
.portrait-frame img,
.portrait-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transform-origin: 52% 26%;
  will-change: transform;
}
/* Живой портрет — видео сверху, фото под ним как подложка/фолбэк */
.portrait-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  object-position: 50% 50%;
}
.portrait-still {
  animation: breathe 15s var(--ease-io) infinite alternate;
}
/* Видеопортрет не скрываем при «уменьшить движение»: посетитель явно видит
   спокойную, короткую петлю, а декоративные UI-анимации остаются щадящими. */
/* «Дыхание» кадра: медленный наезд + микросдвиг, лицо не искажается */
@keyframes breathe {
  0% {
    transform: scale(1.005) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.075) translate3d(-0.8%, -1.1%, 0);
  }
}

/* Тёплый световой блик медленно проходит по портрету */
.portrait-frame .shine {
  position: absolute;
  inset: -30% -60%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    72deg,
    transparent 38%,
    rgba(251, 234, 205, 0.13) 48%,
    rgba(233, 184, 119, 0.2) 52%,
    transparent 62%
  );
  animation: shine-pass 11s var(--ease-io) infinite;
  mix-blend-mode: screen;
}
@keyframes shine-pass {
  0%,
  62% {
    transform: translateX(-58%);
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateX(58%);
    opacity: 0;
  }
}
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      rgba(5, 8, 14, 0.8) 0%,
      rgba(12, 30, 48, 0.2) 34%,
      transparent 62%
    ),
    radial-gradient(120% 70% at 80% 6%, rgba(251, 234, 205, 0.2) 0%, transparent 58%);
  pointer-events: none;
}
.portrait::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 202px 202px 28px 28px;
  background: conic-gradient(
    from var(--ang),
    rgba(251, 234, 205, 0.85),
    rgba(224, 112, 56, 0.6),
    rgba(107, 43, 99, 0.12),
    rgba(18, 48, 68, 0.05),
    rgba(251, 234, 205, 0.85)
  );
  animation: spin-ang 14s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  z-index: 3;
  pointer-events: none;
}
@keyframes spin-ang {
  to {
    --ang: 360deg;
  }
}

.quote-card {
  position: absolute;
  left: clamp(-40px, -4vw, -10px);
  bottom: 8%;
  max-width: 268px;
  padding: 1.05rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(20, 16, 38, 0.94), rgba(5, 8, 14, 0.94));
  border: 1px solid var(--line-warm);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 60px -26px rgba(0, 0, 0, 0.9);
  z-index: 4;
  animation: float-y 9s 0.6s var(--ease-io) infinite alternate;
}
.quote-card p {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.04rem;
  line-height: 1.42;
  color: var(--cream);
}
.quote-card span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}

.scroll-cue {
  position: absolute;
  left: var(--gut);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--txt-faint);
}
.scroll-cue i {
  display: block;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--terra), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  animation: sweep 2.6s var(--ease-io) infinite;
}
@keyframes sweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ---------- 2. Страхи ---------- */

#fears {
  background: linear-gradient(180deg, transparent 0%, rgba(5, 8, 14, 0.6) 16%, rgba(8, 10, 20, 0.86) 100%);
}

.fear-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(14px, 1.6vw, 20px);
}
.fear {
  position: relative;
  grid-column: span 2;
  min-height: 320px;
  border-radius: 20px;
  overflow: hidden;
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.fear:nth-child(1),
.fear:nth-child(2) {
  grid-column: span 3;
  min-height: 380px;
}
.fear:nth-child(6) {
  grid-column: span 6;
  min-height: 270px;
}
.fear:nth-child(6) h3 {
  max-width: 24ch;
}
/* Фото видны сразу — не «блекло» */
.fear img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.96;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.03);
  transition: opacity 0.7s var(--ease-io), transform 1.2s var(--ease-io), filter 0.7s;
  animation: drift-img 24s var(--ease-io) infinite alternate;
}
.fear-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s var(--ease-io);
  pointer-events: none;
}
/* видео проявляется поверх фото, когда действительно загрузилось */
.fear.has-video .fear-video {
  opacity: 0.96;
}
.fear.has-video:hover .fear-video {
  opacity: 1;
}
/* под видео фото уже не «дрейфует» — движение даёт сам ролик */
.fear.has-video img {
  animation: none;
}

/* Затемнение только снизу, под текстом */
.fear::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(3, 5, 10, 0.94) 0%,
    rgba(3, 5, 10, 0.74) 26%,
    rgba(4, 8, 16, 0.24) 56%,
    rgba(4, 8, 16, 0) 100%
  );
  transition: opacity 0.6s var(--ease-io);
}
.fear:hover {
  transform: translateY(-6px);
  border-color: var(--line-warm);
}
.fear:nth-child(even) img {
  animation-duration: 31s;
  animation-direction: alternate-reverse;
}
.fear:hover img {
  opacity: 1;
  animation-play-state: paused;
  filter: saturate(1.1) contrast(1.04) brightness(1.05);
  transform: scale(1.08);
}
.fear:hover::before {
  opacity: 0.86;
}
.fear .num {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cream);
  opacity: 0.95;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9), 0 0 22px rgba(0, 0, 0, 0.7);
}
.fear h3 {
  font-size: clamp(1.28rem, 2.1vw, 1.72rem);
  line-height: 1.16;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}
.fear p {
  font-size: 0.9rem;
  color: #cfd6e0;
  max-width: 42ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.fear-note {
  margin-top: clamp(1.4rem, 2.4vw, 2rem);
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.4rem 1.7rem;
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(107, 43, 99, 0.34), rgba(20, 16, 38, 0.4) 62%, transparent);
  border: 1px solid var(--line-warm);
}
.fear-note span {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.08rem, 1.7vw, 1.36rem);
  color: var(--cream);
}
.fear-note em {
  font-style: normal;
  font-family: var(--ff-body);
  font-size: 0.92rem;
  color: var(--txt-dim);
}

/* ---------- 3. Возражения ---------- */

#stops {
  background: linear-gradient(180deg, rgba(8, 10, 20, 0.86) 0%, rgba(20, 16, 38, 0.92) 40%, rgba(36, 21, 49, 0.9) 100%);
}
#stops::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 50% at 88% 92%, rgba(224, 112, 56, 0.14) 0%, transparent 68%);
}
#stops .shell {
  position: relative;
  z-index: 2;
}

.stops {
  display: grid;
  gap: 12px;
}
.stop {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(10, 12, 24, 0.6), rgba(10, 12, 24, 0.28));
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-io), background 0.4s var(--ease-io);
}
.stop:hover {
  border-color: var(--line-warm);
}
.stop {
  --acc: #e07038;
}
.stop:nth-child(1) {
  --acc: #4e78b8;
}
.stop:nth-child(2) {
  --acc: #2f9a80;
}
.stop:nth-child(3) {
  --acc: #8b5bb0;
}
.stop:nth-child(4) {
  --acc: #c14d78;
}
.stop:nth-child(5) {
  --acc: #e07038;
}
.stop:nth-child(6) {
  --acc: #e9b877;
}
/* Тонкая цветная полоса слева — «маркер» блока */
.stop::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--acc), color-mix(in srgb, var(--acc) 20%, transparent));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.5s var(--ease-out);
}
.stop {
  position: relative;
}
.stop.open::before,
.stop:hover::before {
  transform: scaleY(1);
}
.stop.open {
  border-color: color-mix(in srgb, var(--acc) 62%, transparent);
  background: linear-gradient(
    118deg,
    color-mix(in srgb, var(--acc) 22%, transparent) 0%,
    color-mix(in srgb, var(--acc) 8%, transparent) 45%,
    rgba(12, 14, 28, 0.45) 100%
  );
  box-shadow: 0 18px 46px -26px color-mix(in srgb, var(--acc) 70%, transparent);
}
.stop.open .stop-q {
  color: #fff;
}
.stop.open .qi {
  color: var(--acc);
  opacity: 1;
}
.stop-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--ff-display);
  font-size: clamp(1.08rem, 1.9vw, 1.42rem);
  font-weight: 300;
  text-align: left;
  line-height: 1.28;
}
.stop-q .qi {
  flex: none;
  font-family: var(--ff-body);
  font-size: 0.7rem;
  color: var(--gold);
  opacity: 0.7;
  width: 2ch;
}
.stop-q .tog {
  flex: none;
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
  transition: border-color 0.3s, transform 0.45s var(--ease-out), background 0.3s;
}
.stop-q .tog::before,
.stop-q .tog::after {
  content: '';
  position: absolute;
  background: var(--cream);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.stop-q .tog::before {
  width: 11px;
  height: 1px;
}
.stop-q .tog::after {
  width: 1px;
  height: 11px;
}
.stop.open .stop-q .tog {
  transform: rotate(180deg);
  border-color: color-mix(in srgb, var(--acc) 75%, transparent);
  background: color-mix(in srgb, var(--acc) 28%, transparent);
}
.stop.open .stop-q .tog::after {
  transform: scaleY(0);
  opacity: 0;
}
.stop-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-io);
}
.stop.open .stop-a {
  grid-template-rows: 1fr;
}
.stop-a > div {
  overflow: hidden;
}
.stop-a p {
  padding: 0 1.5rem 1.45rem calc(1.5rem + 2ch + 1.1rem);
  color: var(--txt-dim);
  max-width: 68ch;
  font-size: 0.95rem;
}
.stop-a p::before {
  content: '';
  display: block;
  width: 52px;
  height: 2px;
  border-radius: 2px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--acc), transparent);
}

/* ---------- 4. Запросы ---------- */

#asks {
  background: linear-gradient(180deg, rgba(36, 21, 49, 0.9) 0%, rgba(28, 20, 44, 0.9) 50%, rgba(10, 24, 30, 0.9) 100%);
}
.asks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.ask {
  position: relative;
  padding: 1.9rem 1.8rem 1.8rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(251, 234, 205, 0.05), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.ask::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--terra), transparent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}
.ask:hover {
  transform: translateY(-4px);
  border-color: var(--line-warm);
}
.ask:hover::after {
  transform: scaleY(1);
}
.ask .ask-i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  margin-bottom: 1.1rem;
  background: linear-gradient(140deg, rgba(233, 184, 119, 0.22), rgba(224, 112, 56, 0.12));
  border: 1px solid var(--line-warm);
}
.ask .ask-i svg {
  width: 21px;
  height: 21px;
  color: var(--cream);
}
.ask h3 {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  margin-bottom: 0.6rem;
}
.ask p {
  color: var(--txt-dim);
  font-size: 0.93rem;
  max-width: 44ch;
}

/* ---------- 5. Про меня — таймлайн ---------- */

#about {
  background: linear-gradient(180deg, rgba(10, 24, 30, 0.9) 0%, rgba(5, 32, 30, 0.92) 46%, rgba(4, 36, 32, 0.92) 100%);
}
.about-top {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: clamp(2rem, 4vw, 3.4rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.about-photo {
  position: relative;
  border-radius: 20px 20px 130px 130px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-warm);
}
.about-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s var(--ease-io);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 55% 32%;
  animation: breathe-2 19s var(--ease-io) infinite alternate;
  will-change: transform;
}
@keyframes breathe-2 {
  0% {
    transform: scale(1.06) translate3d(0.6%, 0, 0);
  }
  100% {
    transform: scale(1.005) translate3d(0, -0.6%, 0);
  }
}
.about-photo.has-video .about-video {
  opacity: 1;
}
.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(4, 24, 22, 0.78), rgba(4, 24, 22, 0.12) 48%, transparent 68%);
}

.tl {
  position: relative;
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.4rem);
  padding-left: 2.6rem;
}
.tl::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
/* Заливающаяся градиентом линия */
.tl-fill {
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  height: 0;
  max-height: calc(100% - 12px);
  background: linear-gradient(180deg, var(--gold), var(--terra) 55%, var(--mint));
  box-shadow: 0 0 12px rgba(233, 184, 119, 0.55);
}
.tl-item {
  position: relative;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 0.55rem;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid var(--line-warm);
  background: rgba(5, 8, 14, 0.9);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.tl-item::after {
  content: '';
  position: absolute;
  left: calc(-2.6rem + 6px);
  top: calc(0.55rem + 6px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--txt-faint);
  transition: background 0.4s, box-shadow 0.4s;
}
.tl-item.lit::before {
  border-color: rgba(233, 184, 119, 0.7);
  box-shadow: 0 0 0 4px rgba(233, 184, 119, 0.08);
}
.tl-item.lit::after {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(233, 184, 119, 0.9);
}
.tl-year {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 0.4rem;
}
.tl-item h3 {
  font-size: clamp(1.24rem, 2vw, 1.6rem);
  margin-bottom: 0.55rem;
}
.tl-item p {
  color: var(--txt-dim);
  font-size: 0.95rem;
  max-width: 62ch;
}

/* ---------- 6. Цитата ---------- */

.quote-band {
  position: relative;
  padding-block: clamp(4.5rem, 11vh, 7.5rem);
  overflow: hidden;
}
.quote-band img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: 50% 45%;
  z-index: -2;
  opacity: 0.9;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.02);
  will-change: transform;
}
.quote-video {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  object-position: 50% 45%;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.5s var(--ease-io);
  transform: translate3d(0, var(--py, 0px), 0) scale(1.02);
  will-change: transform;
  pointer-events: none;
}
.quote-band.has-video .quote-video {
  opacity: 0.95;
}
.quote-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(4, 8, 14, 0.94) 0%, rgba(4, 8, 14, 0.62) 48%, rgba(20, 16, 38, 0.45) 100%);
}
.quote-band blockquote {
  max-width: 22ch;
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 3.7vw, 3.1rem);
  line-height: 1.16;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
}
.quote-band blockquote .em {
  font-style: italic;
  color: var(--cream);
}
.quote-band .qmore {
  margin-top: 1.8rem;
  max-width: 52ch;
  color: #d8dee7;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}
.quote-band figcaption {
  margin-top: 1.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- 7. Метод ---------- */

#method {
  background: linear-gradient(180deg, rgba(4, 36, 32, 0.92) 0%, rgba(6, 46, 40, 0.9) 48%, rgba(5, 34, 38, 0.9) 100%);
}
#method::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 45% at 12% 8%, rgba(79, 160, 122, 0.16) 0%, transparent 70%);
}
#method .shell {
  position: relative;
  z-index: 2;
}
.methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
.method {
  position: relative;
  padding: 1.7rem 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(251, 234, 205, 0.06), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s, background 0.45s;
}
.method::before {
  content: '';
  position: absolute;
  inset: -40% -40% auto auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 184, 119, 0.24), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
}
.method:hover {
  transform: translateY(-6px);
  border-color: var(--line-warm);
}
.method:hover::before {
  opacity: 1;
}
.method .mnum {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 0.9rem;
}
.method h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.method p {
  font-size: 0.9rem;
  color: var(--txt-dim);
}

.values {
  margin-top: clamp(1.2rem, 2vw, 1.8rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}
.value {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.15rem 1.3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(4, 20, 20, 0.4);
}
.value svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold);
}
.value span {
  font-size: 0.93rem;
  color: var(--txt);
}

/* ---------- 8. Процесс ---------- */

#process {
  background: linear-gradient(180deg, rgba(5, 34, 38, 0.9) 0%, rgba(8, 28, 42, 0.9) 55%, rgba(10, 22, 40, 0.9) 100%);
}
.steps {
  display: grid;
  gap: 0;
  counter-reset: st;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(1rem, 3vw, 2.6rem);
  padding: clamp(1.5rem, 3vw, 2.1rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: background 0.4s var(--ease-io);
}
.step:last-child {
  border-bottom: 1px solid var(--line);
}
.step::after {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--terra), transparent);
  transition: width 1.1s var(--ease-out);
}
.step.in::after {
  width: 100%;
}
.step:hover {
  background: linear-gradient(90deg, rgba(251, 234, 205, 0.05), transparent 60%);
}
.step-n {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.9;
  background: linear-gradient(120deg, var(--cream), var(--gold) 60%, var(--terra));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 {
  font-size: clamp(1.24rem, 2vw, 1.6rem);
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--txt-dim);
  font-size: 0.95rem;
  max-width: 66ch;
}

.online {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: 22px;
  border: 1px solid var(--line-warm);
  background: linear-gradient(120deg, rgba(79, 160, 122, 0.14), rgba(20, 16, 38, 0.42) 55%, rgba(224, 112, 56, 0.1));
}
.online h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 0.8rem;
}
.online p {
  color: var(--txt-dim);
  font-size: 0.95rem;
}
.online ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.online li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--txt);
}
.online li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 4px;
  color: var(--mint);
}

/* ---------- 9. Почему я ---------- */

#why {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.9) 0%, rgba(9, 16, 32, 0.92) 100%);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  margin-bottom: clamp(1.2rem, 2vw, 1.8rem);
}
.stat {
  padding: 1.6rem 1.4rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(251, 234, 205, 0.055), rgba(255, 255, 255, 0.012));
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
  line-height: 1;
  background: linear-gradient(120deg, #fff, var(--cream) 45%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.84rem;
  color: var(--txt-dim);
}

.gets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
}
.get {
  display: flex;
  gap: 0.9rem;
  padding: 1.3rem 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.35s, transform 0.35s var(--ease-out);
}
.get:hover {
  border-color: var(--line-warm);
  transform: translateY(-3px);
}
.get svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  color: var(--gold);
}
.get p {
  font-size: 0.93rem;
  color: var(--txt);
}

/* Дипломы */
.diplomas {
  margin-top: clamp(2rem, 3.4vw, 2.8rem);
}
.diplomas h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  margin-bottom: 0.7rem;
}
.diplomas > p {
  color: var(--txt-dim);
  margin-bottom: 1.2rem;
  max-width: 60ch;
  font-size: 0.95rem;
}
.dip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.dip {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(255, 255, 255, 0.03);
  padding: 0;
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.dip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 82%;
  transition: transform 0.6s var(--ease-io), filter 0.4s;
  filter: brightness(0.96);
}
.dip:hover {
  border-color: var(--line-warm);
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -26px rgba(0, 0, 0, 0.9);
}
.dip:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}
.dip figcaption {
  padding: 0.75rem 0.85rem 0.9rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--txt-dim);
  text-align: left;
}
.dip figcaption b {
  display: block;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 2px;
}

dialog.lb {
  border: 0;
  padding: 0;
  background: none;
  inset: 0;
  margin: auto;
  max-width: min(92vw, 940px);
  max-height: 92vh;
  overflow: visible;
  color: var(--txt);
}
dialog.lb::backdrop {
  background: rgba(3, 5, 10, 0.9);
  backdrop-filter: blur(6px);
}
dialog.lb img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line-warm);
  background: #0a0d16;
}
dialog.lb .lb-cap {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--txt-dim);
}
dialog.lb .lb-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-warm);
  background: rgba(13, 16, 24, 0.86);
  backdrop-filter: blur(6px);
  cursor: pointer;
  display: grid;
  place-items: center;
}
dialog.lb .lb-x svg {
  width: 16px;
  height: 16px;
  color: var(--cream);
}
dialog.lb .lb-in {
  position: relative;
}

/* ---------- 10. Отзывы ---------- */

#reviews {
  background: linear-gradient(180deg, rgba(9, 16, 32, 0.92) 0%, rgba(24, 16, 40, 0.92) 55%, rgba(34, 19, 46, 0.9) 100%);
}
.rev-wrap {
  position: relative;
}
.rev-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.8vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.2rem;
  scrollbar-width: none;
  cursor: grab;
}
.rev-row::-webkit-scrollbar {
  display: none;
}
.rev-row.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.rev {
  flex: 0 0 auto;
  width: clamp(240px, 27vw, 320px);
  scroll-snap-align: start;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.35s, transform 0.35s var(--ease-out);
}
.rev:hover {
  border-color: var(--line-warm);
  transform: translateY(-4px);
}
.rev img {
  width: 100%;
  height: auto;
  pointer-events: none;
}
.rev-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 234, 205, 0.5);
  background: rgba(8, 10, 18, 0.9);
  backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.95), 0 0 0 6px rgba(8, 10, 18, 0.45);
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transition: background 0.28s var(--ease-out), border-color 0.28s, box-shadow 0.28s,
    opacity 0.28s, transform 0.2s var(--ease-out);
}
.rev-arrow.left {
  left: calc(-1 * clamp(4px, 2vw, 30px));
}
.rev-arrow.right {
  right: calc(-1 * clamp(4px, 2vw, 30px));
}
@media (max-width: 640px) {
  .rev-arrow {
    width: 46px;
    height: 46px;
  }
  .rev-arrow.left {
    left: -6px;
  }
  .rev-arrow.right {
    right: -6px;
  }
}
.rev-arrow svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  color: var(--cream);
  transition: transform 0.25s var(--ease-out);
}
.rev-arrow:hover {
  background: linear-gradient(140deg, var(--cream), var(--gold));
  border-color: transparent;
  box-shadow: 0 16px 40px -14px rgba(224, 112, 56, 0.8);
}
.rev-arrow:hover svg {
  color: #180c05;
}
.rev-arrow.left:hover svg {
  transform: translateX(-2px);
}
.rev-arrow.right:hover svg {
  transform: translateX(2px);
}
.rev-arrow:active {
  transform: translateY(-50%) scale(0.94);
}
.rev-arrow[disabled] {
  opacity: 0.28;
  pointer-events: none;
}
/* Мягкие «затухания» по краям — видно, что список продолжается */
.rev-wrap::before,
.rev-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 2.8rem;
  width: clamp(28px, 5vw, 70px);
  pointer-events: none;
  z-index: 4;
}
.rev-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(11, 14, 28, 0.85), transparent);
}
.rev-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(23, 15, 34, 0.85), transparent);
}
.rev-hint {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--txt-faint);
}

/* ---------- 10.5 Коллаж «Немного меня» ---------- */

#gallery {
  background: linear-gradient(180deg, rgba(34, 19, 46, 0.9) 0%, rgba(26, 17, 40, 0.94) 55%, rgba(30, 18, 44, 0.9) 100%);
  overflow: hidden;
}
#gallery::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(52% 44% at 18% 12%, rgba(233, 184, 119, 0.13) 0%, transparent 66%),
    radial-gradient(46% 40% at 86% 84%, rgba(107, 43, 99, 0.28) 0%, transparent 70%);
}
#gallery .shell {
  position: relative;
  z-index: 2;
}

/* Коллаж: сетка 3+2, плитки с лёгким наклоном */
.gal {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
  align-items: center;
  justify-items: stretch;
}
.gal-item {
  position: relative;
  display: block;
  width: 100%;
  grid-column: span 2;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-warm);
  box-shadow: 0 26px 56px -30px rgba(0, 0, 0, 0.92);
  isolation: isolate;
  break-inside: avoid;
  transition: transform 0.55s var(--ease-out), box-shadow 0.55s var(--ease-out),
    border-color 0.4s;
}
.gal-item img,
.gal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gal-video {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s var(--ease-io);
  pointer-events: none;
}
.gal-item.has-video .gal-video {
  opacity: 1;
}
/* тёплая вуаль, чтобы светлые кадры сели в тёмную гамму */
.gal-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(22, 13, 30, 0.5) 0%, rgba(22, 13, 30, 0.05) 44%, transparent 72%),
    radial-gradient(120% 84% at 84% 4%, rgba(233, 184, 119, 0.1) 0%, transparent 62%);
}
.gal-item:hover {
  transform: rotate(0deg) translateY(-7px) scale(1.02);
  box-shadow: 0 38px 76px -28px rgba(0, 0, 0, 0.95);
  border-color: rgba(251, 234, 205, 0.45);
  z-index: 5;
}

/* Разные пропорции и наклоны — чтобы коллаж выглядел живым.
   Верхний ряд — три плитки, нижний — две по центру */
.t-a {
  aspect-ratio: 4 / 5;
  transform: rotate(-1.3deg);
}
.t-b {
  aspect-ratio: 3 / 4;
  transform: rotate(1.1deg);
}
.t-d {
  aspect-ratio: 5 / 6;
  transform: rotate(1.3deg);
}
.t-e {
  grid-column: 2 / 4;
  aspect-ratio: 4 / 5;
  transform: rotate(-1deg);
}
.t-f {
  grid-column: 4 / 6;
  aspect-ratio: 3 / 4;
  transform: rotate(0.8deg);
}

/* ---------- 11. Финал ---------- */

#cta {
  padding-block: clamp(4.5rem, 10vh, 7rem);
  background: linear-gradient(180deg, rgba(34, 19, 46, 0.9) 0%, rgba(12, 32, 34, 0.92) 52%, rgba(5, 26, 26, 0.95) 100%);
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  inset: -22% -8% 0 -8%;
  pointer-events: none;
  background: radial-gradient(58% 48% at 50% 96%, rgba(233, 184, 119, 0.26) 0%, transparent 68%),
    radial-gradient(46% 40% at 14% 12%, rgba(107, 43, 99, 0.34) 0%, transparent 70%);
}
#cta .shell {
  position: relative;
  z-index: 2;
  text-align: center;
}
#cta .h-sec {
  max-width: 24ch;
  margin-inline: auto;
}
#cta .cta-lede {
  margin: 1.2rem auto 1.9rem;
  color: var(--txt-dim);
  max-width: 52ch;
}
.cta-note {
  margin-top: 1rem;
  font-size: 0.84rem;
  color: var(--gold);
  opacity: 0.88;
}
.cta-soft {
  margin: 1.8rem auto 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--line-warm);
  background: rgba(5, 20, 20, 0.44);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  color: var(--txt-dim);
  text-align: left;
  max-width: 58ch;
}
.cta-soft svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--gold);
}

/* ---------- Подвал ---------- */

/* ---------- Подпись автора ---------- */

.credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  width: fit-content;
  margin: 0;
  padding: 0.27rem 0.5rem 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 234, 205, 0.1);
  background: linear-gradient(120deg, rgba(233, 184, 119, 0.045), rgba(224, 112, 56, 0.025) 55%, rgba(107, 43, 99, 0.05));
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
/* мягкий блик, пробегающий по плашке */
.credit::after {
  content: '';
  position: absolute;
  inset: 0 -40%;
  z-index: -1;
  background: linear-gradient(
    100deg,
    transparent 38%,
    rgba(251, 234, 205, 0.14) 48%,
    rgba(233, 184, 119, 0.22) 52%,
    transparent 62%
  );
  transform: translateX(-60%);
  opacity: 0.62;
  animation: credit-sweep 11.5s var(--ease-io) infinite;
}
@keyframes credit-sweep {
  0%,
  55% {
    transform: translateX(-60%);
  }
  100% {
    transform: translateX(60%);
  }
}
.credit:hover {
  transform: translateY(-0.5px);
  border-color: rgba(251, 234, 205, 0.24);
  box-shadow: 0 8px 20px -18px rgba(233, 184, 119, 0.34);
}

.credit-mark {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--gold);
  transition: transform 0.5s var(--ease-out), color 0.4s;
}
.credit-mark svg {
  width: 14px;
  height: 14px;
}
.credit:hover .credit-mark {
  transform: rotate(-3deg) scale(1.03);
  color: var(--cream);
}

.credit-text {
  display: flex;
  align-items: center;
  line-height: 1.1;
}
.credit-text em {
  font-style: normal;
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--txt-faint);
  transition: color 0.3s;
}
.credit:hover .credit-text em {
  color: var(--txt-dim);
}
/* Переливающаяся надпись */
.credit-text b {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.005em;
  margin-top: 2px;
  background: linear-gradient(
    100deg,
    #fff 0%,
    var(--cream) 18%,
    var(--gold) 34%,
    #ffd9a8 46%,
    var(--terra) 60%,
    #c14d78 76%,
    var(--cream) 92%,
    #fff 100%
  );
  background-size: 210% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: credit-flow 9.5s linear infinite;
}
@keyframes credit-flow {
  to {
    background-position: -260% 0;
  }
}

.credit-go {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: none;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(233, 184, 119, 0.1);
  transition: transform 0.35s var(--ease-out), background 0.35s, color 0.35s;
}
.credit-go svg {
  width: 8px;
  height: 8px;
}
.credit:hover .credit-go {
  transform: translateX(3px);
  background: linear-gradient(140deg, var(--cream), var(--gold));
  color: #180c05;
}

@media (max-width: 520px) {
  .credit {
    gap: 0.28rem;
    padding: 0.24rem 0.44rem 0.27rem;
    margin: 0.1rem auto 0;
  }
  .credit-text b {
    font-size: 0.78rem;
  }
}

footer {
  padding: 2.6rem 0 3.2rem;
  background: #04060b;
  border-top: 1px solid var(--line);
}
.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem 1.5rem;
  align-items: center;
  font-size: 0.82rem;
  color: var(--txt-faint);
}
.foot-in > :first-child {
  justify-self: start;
}
.foot-tg {
  justify-self: end;
}
@media (max-width: 640px) {
  .foot-in {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem 1rem;
  }
  .credit {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }
}
.foot-tg {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6em 1.15em;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--txt-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.foot-tg svg {
  width: 15px;
  height: 15px;
}
.foot-tg:hover {
  color: var(--cream);
  border-color: var(--line-warm);
  background: rgba(251, 234, 205, 0.05);
}

/* ---------- Скролл-ревилы ---------- */

.rv {
  opacity: 0;
  clip-path: inset(0 0 12% 0);
  transition: opacity 0.85s var(--ease-out), clip-path 1s var(--ease-out);
}
.rv.in {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}
/* Блоки, у которых есть элементы за границами (точки таймлайна, стрелки
   карусели), маской появления не обрезаем — иначе они пропадают и не нажимаются */
.tl-item,
.rev-wrap,
.gal-item,
.portrait {
  clip-path: none !important;
}
.rv-d1 {
  transition-delay: 0.08s;
}
.rv-d2 {
  transition-delay: 0.16s;
}
.rv-d3 {
  transition-delay: 0.24s;
}
.rv-d4 {
  transition-delay: 0.32s;
}
.rv-d5 {
  transition-delay: 0.4s;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .methods {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .gets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .portrait {
    justify-self: center;
    max-width: 400px;
  }
  .quote-card {
    left: auto;
    right: -6px;
    bottom: -18px;
    max-width: 240px;
  }
  .nav-links {
    display: none;
  }
  .nav-bot span,
  .nav-bot {
    font-size: 0.8rem;
  }
  .fear-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fear,
  .fear:nth-child(1),
  .fear:nth-child(2),
  .fear:nth-child(6) {
    grid-column: span 1;
    min-height: 290px;
  }
  .about-top {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 420px;
    order: -1;
  }
  .online {
    grid-template-columns: 1fr;
  }
  .values {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 112px;
  }
  .fear-grid,
  .asks {
    grid-template-columns: 1fr;
  }
  .fear,
  .fear:nth-child(1),
  .fear:nth-child(2),
  .fear:nth-child(6) {
    min-height: 260px;
  }
  .scroll-cue {
    display: none;
  }
  .quote-card {
    position: static;
    max-width: none;
    margin-top: 1rem;
    animation: none;
    opacity: 1;
  }
  .brand-name {
    font-size: 1.2rem;
  }
  .brand-role {
    font-size: 0.5rem;
    letter-spacing: 0.13em;
  }
  .brand {
    gap: 0.6rem;
  }
  .brand-mark,
  .brand-mark svg {
    width: 34px;
    height: 34px;
  }
  /* в узкой шапке бот — только значком, иначе «Записаться» не помещается */
  .nav-bot {
    padding: 0;
    width: 40px;
    height: 40px;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .nav-bot svg {
    width: 19px;
    height: 19px;
  }
  .nav-in {
    gap: 0.6rem;
    height: 70px;
  }
  .nav .btn {
    padding: 0.66em 1em;
    font-size: 0.8rem;
  }
  .btn-bot {
    width: 100%;
  }
  .fear-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .stop-a p {
    padding-left: 1.5rem;
  }
  .orb {
    filter: blur(70px);
  }
  .methods,
  .stats,
  .gets {
    grid-template-columns: 1fr;
  }
  .gal {
    grid-template-columns: repeat(2, 1fr);
  }
  .gal-item {
    grid-column: auto;
  }
  .t-e {
    grid-column: auto;
  }
  .t-f {
    grid-column: 1 / -1;
    width: min(74%, 340px);
    margin-inline: auto;
  }
  .step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .tl {
    padding-left: 2.1rem;
  }
  .tl-item::before {
    left: -2.1rem;
  }
  .tl-item::after {
    left: calc(-2.1rem + 6px);
  }
  .tl::before,
  .tl-fill {
    left: 9px;
  }
  .quote-band blockquote {
    max-width: none;
  }
  .dip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-frame .shine {
    display: none;
  }
  .gal-item {
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .h-hero .ln > span {
    transform: none;
  }
  .fade-up,
  .rv {
    opacity: 1;
    clip-path: none;
  }
  html {
    scroll-behavior: auto;
  }
}
