/* ============================================================================
   ЮЛИЯ ФЕНИКС — стили.
   Цвета приходят из config.js (theme.colors) и подставляются в переменные ниже.
   ========================================================================== */

:root {
  /* Значения по умолчанию — перекрываются из config.js */
  --night: #0b0713;
  --deep: #150c24;
  --panel: #1b1029;
  --ember: #ff8a3d;
  --ember-hot: #ffc46b;
  --flame: #ff4d2e;
  --violet: #a679ff;
  --text: #f4ece3;
  --muted: #b7a7c4;

  --line: rgba(255, 197, 120, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --glass: linear-gradient(158deg, rgba(56, 33, 74, 0.66), rgba(19, 11, 33, 0.72));
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --glow: 0 0 44px -8px rgba(255, 138, 61, 0.45);

  --font-display: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --radius: 22px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  color: var(--text);
  background-color: var(--night);
  background-image:
    radial-gradient(1200px 760px at 78% -8%, rgba(123, 66, 186, 0.28), transparent 62%),
    radial-gradient(980px 620px at 8% 12%, rgba(72, 40, 128, 0.24), transparent 60%),
    radial-gradient(1100px 720px at 50% 108%, rgba(255, 77, 46, 0.2), transparent 64%),
    linear-gradient(180deg, #0a0611 0%, var(--deep) 46%, #0a0611 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Слой анимированного фона */
#sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sky-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 300px at 50% 100%, rgba(255, 122, 40, 0.22), transparent 70%),
    radial-gradient(420px 220px at 14% 96%, rgba(255, 77, 46, 0.14), transparent 72%);
  mix-blend-mode: screen;
}
.site-header, main, .site-footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--ember-hot); text-decoration: none; }
p { margin: 0 0 1em; }
::selection { background: rgba(255, 138, 61, 0.32); color: #fff; }

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

.container {
  width: min(var(--container), 100% - 2 * clamp(18px, 5vw, 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--panel);
  border-radius: 10px;
}
.skip-link:focus { left: 16px; }

.noscript {
  position: relative;
  z-index: 2;
  margin: 120px auto;
  max-width: 640px;
  padding: 24px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ============================== ТИПОГРАФИКА ============================== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}

.section__title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  color: #fdf6ea;
}
.section__lead {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.06rem;
}
.note { color: var(--muted); font-size: 0.95rem; }

.prose p { color: #e6dbe9; }

/* ================================ КНОПКИ ================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  /* градиент растягиваем и на рамку: иначе он повторяется и на краю виден стык */
  background-origin: border-box;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background-color 0.25s ease, border-color 0.25s ease;
}
.btn--primary {
  color: #2a0e04;
  background-image: linear-gradient(135deg, var(--ember-hot), var(--ember) 55%, var(--flame));
  box-shadow: 0 14px 34px -14px rgba(255, 106, 40, 0.9), var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -14px rgba(255, 106, 40, 0.95); }
.btn--ghost {
  color: #f6ecdf;
  border-color: rgba(255, 197, 120, 0.34);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover { border-color: var(--ember); background: rgba(255, 138, 61, 0.12); }
.btn--sm { padding: 11px 20px; font-size: 0.93rem; }

/* ================================= ШАПКА ================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(12, 8, 21, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -30px #000;
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; color: inherit; flex: 0 0 auto; }
.brand__mark { width: 54px; height: 42px; display: block; flex: 0 0 auto; }
.brand__mark .phoenix { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(100deg, #fff3dc, var(--ember-hot) 48%, var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__tagline {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}
.site-nav__link {
  color: #e8dfe6;
  font-size: 0.96rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--ember), var(--violet));
  transition: right 0.3s ease;
}
.site-nav__link:hover { color: #fff; }
.site-nav__link:hover::after { right: 0; }
.site-nav__cta { margin-left: 6px; }

.burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 40px;
  padding: 9px 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ember-hot);
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.burger span + span { margin-top: 5px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================= ГЕРОЙ ================================= */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(28px, 6vw, 64px)) 0 clamp(48px, 8vw, 96px);
  text-align: center;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }

.hero__art {
  position: relative;
  width: clamp(280px, 44vw, 520px);
  aspect-ratio: 1.32 / 1;
  margin-bottom: clamp(4px, 2vw, 18px);
  display: grid;
  place-items: center;
}
.hero__art .phoenix {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
}

.hero__text { max-width: 42rem; }
.hero__title {
  font-size: clamp(2.9rem, 8.4vw, 5.6rem);
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: 0.012em;
  background: linear-gradient(103deg, #fff6e6 6%, var(--ember-hot) 42%, var(--ember) 72%, var(--violet) 122%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 68px rgba(255, 138, 61, 0.28);
}
.hero__subtitle {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: #ddd2e2;
  margin: 0 auto 32px;
  max-width: 38rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: clamp(30px, 5vw, 54px);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 4vw, 46px);
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.fact { display: flex; flex-direction: column; gap: 2px; min-width: 118px; }
.fact__value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ember-hot);
}
.fact__label {
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(11, 7, 19, 0.55));
  pointer-events: none;
}

/* ============================ КРУГ ЗОДИАКА =============================== */
.zodiac-wheel {
  position: absolute;
  z-index: 1;
  width: 118%;
  max-width: none;
  aspect-ratio: 1;
  opacity: 0.5;
  overflow: visible;
}
.zw-spin {
  transform-box: view-box;
  transform-origin: 200px 200px;
  animation: wheelSpin 260s linear infinite;
}
.zw-ring { fill: none; stroke: rgba(166, 121, 255, 0.28); stroke-width: 1; }
.zw-ring--inner { stroke: rgba(255, 197, 120, 0.16); stroke-dasharray: 3 9; }
.zw-tick { stroke: rgba(255, 214, 140, 0.3); stroke-width: 1; }
.zw-tick--long { stroke: rgba(255, 214, 140, 0.55); }
.zw-spoke { stroke: rgba(166, 121, 255, 0.14); stroke-width: 0.8; }
.zw-glyph {
  fill: rgba(255, 224, 176, 0.72);
  font-family: var(--font-display);
  font-size: 17px;
  text-anchor: middle;
  dominant-baseline: central;
}
@keyframes wheelSpin { to { transform: rotate(360deg); } }

/* ================================ ФЕНИКС ================================= */
.phoenix { overflow: visible; display: block; }
.phx-bird { filter: drop-shadow(0 10px 30px rgba(255, 92, 28, 0.45)); }
.phx-feather {
  stroke: rgba(78, 16, 6, 0.45);
  stroke-width: 0.8;
  stroke-linejoin: round;
}
.phx-feather--covert { opacity: 0.95; }
.phx-feather--tail { opacity: 0.95; }
.phx-feather--wisp { opacity: 0.72; }
.phx-feather--crest { opacity: 0.95; }
.phx-wingbase { stroke: rgba(78, 16, 6, 0.35); stroke-width: 0.8; }
.phx-quill { fill: none; stroke: rgba(255, 244, 214, 0.4); stroke-width: 1.1; }
.phx-body, .phx-neck { stroke: rgba(78, 16, 6, 0.3); stroke-width: 0.8; }
.phx-beak { fill: var(--ember-hot); stroke: rgba(78, 16, 6, 0.4); stroke-width: 0.6; }
.phx-eye { fill: #2a0d05; }
.phx-halo {
  transform-box: view-box;
  transform-origin: 240px 180px;
  animation: haloPulse 6.5s ease-in-out infinite;
}

.phx-wing {
  transform-box: view-box;
  transform-origin: 240px 184px;
  animation: wingBeat 7s ease-in-out infinite;
}
.phx-tail {
  transform-box: view-box;
  transform-origin: 240px 206px;
  animation: tailSway 9s ease-in-out infinite;
}
.phx-head {
  transform-box: view-box;
  transform-origin: 236px 142px;
  animation: headBob 7s ease-in-out infinite;
}
@keyframes wingBeat {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(-2.6deg) translateY(-2px); }
}
@keyframes tailSway {
  0%, 100% { transform: rotate(1.4deg); }
  50% { transform: rotate(-1.4deg); }
}
@keyframes headBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-1.4deg); }
}
@keyframes haloPulse {
  0%, 100% { opacity: 0.75; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.04); }
}
.phoenix--still .phx-wing,
.phoenix--still .phx-tail,
.phoenix--still .phx-head,
.phoenix--still .phx-halo { animation: none; }

/* ================================ БЛОКИ ================================== */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section__head { max-width: 62ch; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section__head .section__lead { margin-inline: auto; }
.section__head .section__title { position: relative; padding-bottom: 18px; }
.section__head .section__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 92px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
}
.section__foot {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* --------------------------------- Обо мне ------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) 1.22fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.portrait {
  position: relative;
  margin: 0;
  padding: 0;
  isolation: isolate;
}
.portrait__ring {
  position: absolute;
  inset: -9% -9% -6%;
  z-index: 0;
  border-radius: 50% 50% 30% 30%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(255, 138, 61, 0.34), transparent 70%);
  filter: blur(14px);
}
.portrait__img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 46% 46% 20px 20px / 34% 34% 5% 5%;
  border: 1px solid rgba(255, 197, 120, 0.34);
  box-shadow: var(--shadow), 0 0 0 8px rgba(255, 138, 61, 0.06);
  background: linear-gradient(170deg, rgba(70, 40, 92, 0.7), rgba(24, 14, 38, 0.9));
  background-origin: border-box;
}
.portrait__img.is-missing::after { content: "✦"; }

.about__body .section__title { margin-bottom: 0.6em; }
.checklist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: #e3d8e6;
  font-size: 0.99rem;
  line-height: 1.55;
}
.tick { color: var(--ember); font-size: 0.9rem; line-height: 1.7; }

/* ------------------------------ Консультации ----------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.card {
  position: relative;
  padding: 28px 26px 26px;
  background-image: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 138, 61, 0.5);
  box-shadow: var(--shadow), 0 0 40px -16px rgba(255, 138, 61, 0.55);
}
.card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a0e04;
  background: linear-gradient(120deg, var(--ember-hot), var(--ember));
  border-radius: 999px;
}
.card__title { font-size: 1.52rem; margin: 0 0 10px; padding-right: 12px; color: #fdf4e6; }
.card__meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--muted);
}
.card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ember-hot);
}
.card__dot { color: rgba(255, 197, 120, 0.5); }
.card__desc { color: #ded3e4; font-size: 0.98rem; }
.card__list {
  list-style: none;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed rgba(255, 197, 120, 0.18);
  display: grid;
  gap: 9px;
}
.card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: #cfc3d8;
}
.card__list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--ember);
  font-size: 0.8rem;
}

/* ------------------------------ Как проходит ----------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
  gap: clamp(20px, 3vw, 34px);
}
.step { position: relative; padding-top: 8px; }
.step__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ember-hot);
  border: 1px solid rgba(255, 197, 120, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 138, 61, 0.2), transparent 70%);
  background-origin: border-box;
  box-shadow: inset 0 0 18px -6px rgba(255, 138, 61, 0.5);
}
.step:not(:last-child) .step__num::after {
  content: "";
  position: absolute;
  top: 34px;
  left: 62px;
  width: calc(100% - 22px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 197, 120, 0.4), transparent);
}
.step__title { font-size: 1.3rem; margin: 0 0 8px; color: #fdf4e6; }
.step__text { color: var(--muted); font-size: 0.97rem; margin: 0; }

/* --------------------------------- Отзывы -------------------------------- */
/* Лента отзывов: горизонтальная прокрутка + мягкое затухание по краям */
.quotes-carousel { position: relative; }

.quotes-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;             /* полосу прокрутки прячем */
  -ms-overflow-style: none;
  /* Края растворяются — маской, а не заливкой, чтобы фон со звёздами
     просвечивал как и везде */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.quotes-viewport::-webkit-scrollbar { display: none; }
.quotes-viewport:focus-visible { outline: 2px solid var(--ember-hot); outline-offset: 6px; }

/* Движение лентой — через transform: он считается видеокартой и сохраняет
   доли пикселя. Прокрутка scrollLeft округляется до целых, и на медленной
   скорости это видно как дрожание. */
@keyframes quotesMarquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--loop, 0px)), 0, 0); }
}

.quotes-track.is-marquee {
  animation: quotesMarquee var(--loop-time, 120s) linear infinite;
  will-change: transform;
}
.quotes-carousel:hover .quotes-track.is-marquee,
.quotes-carousel:focus-within .quotes-track.is-marquee {
  animation-play-state: paused;
}

.quotes-track {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2vw, 24px);
  width: max-content;
  padding: 6px 2px 10px;
}

.quotes-track .quote {
  flex: 0 0 clamp(272px, 74vw, 344px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote {
  position: relative;
  margin: 0;
  scroll-snap-align: center;
  padding: 30px 26px 24px;
  background-image: var(--glass);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.quote__mark {
  position: absolute;
  top: 4px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 4.4rem;
  line-height: 1;
  color: rgba(255, 197, 120, 0.26);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-style: italic;
  line-height: 1.55;
  color: #f0e6e2;
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ember-hot);
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.quote__role { font-weight: 400; font-size: 0.86rem; color: var(--muted); }

/* -------------------------------- Вопросы -------------------------------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.24rem;
  color: #fdf4e6;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ember-hot); }
.faq-item__sign { position: relative; flex: 0 0 18px; height: 18px; }
.faq-item__sign::before,
.faq-item__sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ember);
  transition: transform 0.3s ease;
}
.faq-item__sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__sign::after { transform: rotate(0deg); }
.faq-item__body {
  padding: 0 44px 22px 4px;
  color: #d2c6dd;
  font-size: 1rem;
  animation: faqIn 0.35s ease both;
}
.faq-item__body p { margin: 0; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* --------------------------------- Запись -------------------------------- */
.contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  background-image: var(--glass);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow), 0 0 90px -40px rgba(255, 138, 61, 0.55);
}
.contact .hero__actions { justify-content: flex-start; margin-bottom: 12px; }
.contact .section__lead { margin-bottom: 24px; }

.bot-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 16px;
  align-items: center;
  padding: 20px 22px;
  color: var(--text);
  background: rgba(255, 138, 61, 0.09);
  border: 1px solid rgba(255, 197, 120, 0.3);
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.bot-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 138, 61, 0.16);
  border-color: var(--ember);
}
.bot-card__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 1.28rem;
  color: #2a0e04;
  background: linear-gradient(135deg, var(--ember-hot), var(--ember));
  border-radius: 50%;
}
.bot-card__name { font-weight: 600; color: #fdf4e6; }
.bot-card__note { font-size: 0.86rem; line-height: 1.4; color: var(--muted); }

.contact__list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.contact__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.96rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.contact__key {
  flex: 0 0 92px;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------- Подвал -------------------------------- */
.site-footer {
  margin-top: clamp(20px, 4vw, 40px);
  padding: clamp(34px, 5vw, 56px) 0 42px;
  border-top: 1px solid var(--line-soft);
  background: rgba(9, 6, 16, 0.62);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 32px;
  align-items: center;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 2px; }
.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ember-hot);
}
.site-footer__copy { font-size: 0.86rem; color: var(--muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.92rem; }
.site-footer__links a { color: #e4d9e6; }
.site-footer__links a:hover { color: var(--ember-hot); }
.site-footer__note {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(183, 167, 196, 0.8);
  max-width: 76ch;
}

/* ============================ ПОЯВЛЕНИЕ БЛОКОВ =========================== */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.22, 0.68, 0.28, 1),
              transform 0.75s cubic-bezier(0.22, 0.68, 0.28, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ================================ АДАПТИВ ================================ */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .portrait { max-width: 330px; }
  .contact { grid-template-columns: 1fr; }
  .step:not(:last-child) .step__num::after { display: none; }
}

@media (max-width: 880px) {
  .burger { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: clamp(18px, 5vw, 48px);
    right: clamp(18px, 5vw, 48px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 14px;
    background: rgba(13, 8, 22, 0.985);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  body.menu-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav__link { padding: 12px 10px; border-radius: 10px; }
  .site-nav__link:hover { background: rgba(255, 138, 61, 0.1); }
  .site-nav__cta { margin: 8px 0 0; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .quotes-viewport { scroll-snap-type: x proximity; }
  .brand__mark { width: 44px; height: 34px; }
  .brand__name { font-size: 1.22rem; }
  .hero { padding-top: calc(var(--header-h) + 18px); }
  .facts { gap: 16px 26px; }
  .fact { min-width: 96px; }
  .fact__value { font-size: 1.6rem; }
  .card, .quote { padding: 24px 20px; }
  .contact .hero__actions { justify-content: center; }
  .contact { text-align: center; }
  .contact__key { flex-basis: 78px; }
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ====================== БЕРЕЖНЫЙ РЕЖИМ (без анимации) ==================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
