/* ============================================================
   ОСЬ — мастерская амулетов
   Палитра, типографика и сетка одностраничника.
   ============================================================ */

:root {
  --night:      #070910;
  --panel:      #0d1219;
  --panel-soft: #111823;
  --ivory:      #e9e2d4;
  --muted:      #9d9684;
  --dim:        #827c70;
  --gold:       #c6a66e;
  --gold-dim:   #7e6a45;
  --silver:     #e9e2d4;
  --silver-mid: #8b8574;
  --silver-deep:#5f5c55;
  --cold:       #35485a;
  --line:       rgba(198, 166, 110, .18);
  --line-cold:  rgba(150, 175, 200, .10);

  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --body:    "Manrope", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ось: тонкая вертикаль, проходящая через всю страницу.
   Единственный сквозной графический элемент — отсюда и название. */
body { position: relative; }
body::before {
  content: "";
  position: absolute;
  top: 100svh; bottom: 0; left: 50%;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(198,166,110,0) 0%,
    rgba(198,166,110,.26) 10%,
    rgba(198,166,110,.10) 60%,
    rgba(198,166,110,0) 100%);
  pointer-events: none;
  z-index: 0;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- каркас ---------- */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: clamp(4.5rem, 11vw, 9rem) 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: .01em;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  text-align: center;
}

.lede {
  max-width: var(--measure);
  margin: 1.6rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
}

.prose { max-width: var(--measure); margin-inline: auto; }
.prose p { color: #cec7b8; }

/* ---------- шапка ---------- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(7,9,16,.92), rgba(7,9,16,0));
  transition: padding .3s ease;
}
.top__mark {
  display: block;
  line-height: 0;
}
.top__mark img {
  width: clamp(72px, 9vw, 104px);
  height: auto;
  opacity: .92;
  transition: opacity .3s ease;
}
.top__mark:hover img { opacity: 1; }

.top nav { display: flex; gap: 1.6rem; font-size: .86rem; color: var(--muted); }
.top nav a { color: inherit; }
.top nav a:hover { color: var(--ivory); }
@media (max-width: 720px) { .top nav { display: none; } }

/* ---------- герой ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(60% 45% at 50% 42%, rgba(53,72,90,.42), transparent 70%),
    url("img/bg.jpg") center / cover no-repeat var(--night);
}
.hero__inner { position: relative; z-index: 1; padding-inline: var(--gutter); }

.hero__wordmark { margin: 0; line-height: 0; }
.hero__logo {
  width: clamp(240px, 54vw, 540px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 42px rgba(198,166,110,.26));
}
.hero__sub {
  margin: 1.2rem 0 0;
  font-size: clamp(.82rem, 2.2vw, .95rem);
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--gold);
}
.hero__line { color: var(--silver);
  max-width: 30rem;
  margin: 2.4rem auto 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  line-height: 1.5;
}
.hero__cta { margin-top: 2.6rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-size: .74rem;
  letter-spacing: .22em;
  color: var(--dim);
}

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

.btn {
  display: inline-block;
  padding: .95rem 2.1rem;
  font-family: var(--body);
  font-size: .86rem;
  letter-spacing: .12em;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
  transition: background .35s ease, border-color .35s ease, color .35s ease;
}
.btn:hover { background: rgba(198,166,110,.10); border-color: var(--gold); color: #fff; }
.btn--solid {
  background: var(--gold);
  border-color: var(--gold);
  color: #14100a;
  font-weight: 600;
}
.btn--solid:hover { background: #d9bc84; color: #14100a; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ---------- каталог ---------- */

.grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem) clamp(.8rem, 2vw, 1.6rem);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.amulet {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.amulet img {
  width: 100%;
  transition: transform .55s cubic-bezier(.2,.7,.3,1), filter .55s ease;
  filter: saturate(.92) brightness(.94);
}
.amulet:hover img,
.amulet[aria-expanded="true"] img {
  transform: translateY(-6px);
  filter: saturate(1.02) brightness(1.08);
}

.amulet__name {
  margin-top: .5rem;
  font-family: var(--display);
  font-size: clamp(.98rem, 2.1vw, 1.2rem);
  letter-spacing: .08em;
}
.amulet__note { font-size: .74rem; color: var(--dim); letter-spacing: .05em; }

.detail {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(17,24,35,.72), rgba(17,24,35,.25));
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 720px) { .detail { grid-template-columns: 1fr; text-align: center; }
  .detail img { max-width: 190px; margin-inline: auto; } }
.detail h3 { font-size: 1.9rem; letter-spacing: .06em; }
.detail__meta { font-size: .8rem; color: var(--gold); letter-spacing: .14em; margin: .35rem 0 1rem; }
.detail p { margin: 0 0 1.1rem; color: #cdc6b7; }

/* ---------- форматы ---------- */

.formats {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (max-width: 800px) { .formats { grid-template-columns: 1fr; } }

.format { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.format--main { border-top-color: var(--gold); }
.format h3 { font-size: 1.9rem; }
.format__price { font-family: var(--display); font-size: 1.35rem; color: var(--gold); margin: .3rem 0 1.2rem; }
.format ul { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.format li { position: relative; padding-left: 1.4rem; margin-bottom: .7rem; color: #c8c1b3; font-size: .96rem; }
.format li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: .5rem; height: 1px; background: var(--gold-dim);
}

/* ---------- процесс: настоящая последовательность, поэтому нумерация ---------- */

.steps { margin-top: 3.5rem; counter-reset: step; max-width: 44rem; margin-inline: auto; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-cold);
}
.step:last-child { border-bottom: 0; }
.step::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--gold-dim);
  line-height: 1;
  padding-top: .15rem;
}
.step h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- форма ---------- */

.form { max-width: 44rem; margin: 3.2rem auto 0; }

.switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--gold-dim); margin-bottom: 2.2rem; }
.switch label {
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  font-size: .88rem;
  letter-spacing: .1em;
  color: var(--muted);
  transition: background .3s ease, color .3s ease;
}
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch input:checked + label { background: rgba(198,166,110,.14); color: var(--ivory); }
.switch input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: -2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.2rem; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.field--wide { grid-column: 1 / -1; }

.field label { display: block; font-size: .78rem; letter-spacing: .1em; color: var(--muted); margin-bottom: .45rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(198,166,110,.22);
  color: var(--ivory);
  font-family: var(--body);
  font-size: .97rem;
  transition: border-color .3s ease, background .3s ease;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.05);
  outline: none;
}
.field select option { background: var(--panel); color: var(--ivory); }
.field small { display: block; margin-top: .4rem; font-size: .78rem; color: var(--dim); }

.personal { display: none; }
.personal.is-on { display: contents; }

.block-title {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-size: 1.35rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.chips { position: relative; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  display: inline-block;
  padding: .45rem .85rem;
  border: 1px solid rgba(198,166,110,.25);
  font-size: .84rem;
  color: var(--muted);
  cursor: pointer;
  transition: all .25s ease;
  margin: 0;
  letter-spacing: 0;
}
.chips input:checked + label { border-color: var(--gold); color: var(--night); background: var(--gold); }
.chips input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips input:disabled + label { opacity: .35; cursor: not-allowed; }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.consent input { margin-top: .35rem; accent-color: var(--gold); width: 1rem; height: 1rem; flex: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { margin-top: 2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.status { font-size: .9rem; }
.status--err { color: #d99a86; }
.status--ok  { color: var(--gold); }

.sent {
  border: 1px solid var(--gold-dim);
  padding: 2.4rem;
  text-align: center;
  background: rgba(198,166,110,.05);
}
.sent h3 { font-size: 1.8rem; margin-bottom: .6rem; }
.sent p { color: var(--muted); margin: 0 auto; max-width: 28rem; }

/* ---------- правовой блок и подвал ---------- */

.fineprint {
  max-width: 46rem;
  margin: 0 auto;
  font-size: .84rem;
  line-height: 1.75;
  color: var(--dim);
  border-top: 1px solid var(--line-cold);
  padding-top: 2rem;
}
.fineprint p { margin: 0 0 .9rem; }

.foot {
  padding: 3rem 0 4rem;
  text-align: center;
  color: var(--dim);
  font-size: .84rem;
  border-top: 1px solid var(--line-cold);
}
.foot__mark { margin-bottom: 1.1rem; line-height: 0; }
.foot__mark img { width: 96px; height: auto; margin: 0 auto; opacity: .55; transition: opacity .3s ease; }
.foot__mark a:hover img { opacity: .9; }

/* ============================================================
   ДВИЖЕНИЕ
   ============================================================ */

/* Холст энергетического поля в герое */
#energy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Медленно дышащее свечение — второй слой глубины под частицами */
.hero__aura {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(78vw, 46rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle,
    rgba(198,166,110,.14) 0%,
    rgba(93,126,150,.10) 42%,
    transparent 68%);
  filter: blur(28px);
  animation: breathe 13s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: .75; }
  50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

/* Тонкое кольцо-ореол, медленно проворачивается */
.hero__ring {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(66vw, 34rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: conic-gradient(from 0deg,
    rgba(198,166,110,0) 0deg,
    rgba(198,166,110,.30) 70deg,
    rgba(180,200,220,.16) 150deg,
    rgba(198,166,110,0) 230deg,
    rgba(198,166,110,.18) 320deg,
    rgba(198,166,110,0) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%, #000 63.2%, transparent 64%);
          mask: radial-gradient(circle, transparent 61%, #000 62%, #000 63.2%, transparent 64%);
  animation: turn 64s linear infinite;
}
@keyframes turn {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Перелив: медленно проводим световую полосу по буквам логотипа */
#sheen {
  animation: sheenmove 9s ease-in-out infinite;
  transform-box: view-box;
}
@keyframes sheenmove {
  0%, 60%, 100% { transform: translateX(-620px); }
  88%           { transform: translateX(620px); }
}

/* Свечение под сеткой каталога — то же дыхание, но глубже и медленнее */
#formy { position: relative; }
#formy::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(120vw, 72rem);
  aspect-ratio: 1.4;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(ellipse,
    rgba(60,86,108,.30) 0%,
    rgba(198,166,110,.06) 40%,
    transparent 70%);
  filter: blur(50px);
  animation: breathe 19s ease-in-out infinite;
}

/* Раскрытие панели с описанием — движение в ответ на действие */
.detail { animation: unfold .45s cubic-bezier(.22,.75,.3,1) both; }
@keyframes unfold {
  from { opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: none;             clip-path: inset(0 0 0 0); }
}

/* Однократное появление секций */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s cubic-bezier(.2,.7,.3,1), transform 1s cubic-bezier(.2,.7,.3,1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__aura, .hero__ring, #sheen, .mark__letters, #formy::before, .detail { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   СТРАНИЦА ДОКУМЕНТОВ
   ============================================================ */

.docs-page { background: #06080d; }
.docs-page .top { position: static; background: none; backdrop-filter: none; }

.toc {
  max-width: 44rem;
  margin: 3rem auto 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.toc a {
  padding: .95rem .2rem;
  border-bottom: 1px solid var(--line-cold);
  color: var(--muted);
  font-size: .95rem;
  transition: color .25s ease, padding-left .25s ease;
}
.toc a:hover { color: var(--ivory); padding-left: .6rem; }

.doc { padding: clamp(3rem, 7vw, 5rem) 0; border-top: 1px solid var(--line-cold); scroll-margin-top: 2rem; }
.prose-doc { max-width: 44rem; margin-inline: auto; }

.doc__num {
  font-size: .74rem;
  letter-spacing: .22em;
  color: var(--gold-dim);
  margin: 0 0 .5rem;
}
.doc h3 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 300;
  margin: 0 0 2rem;
  line-height: 1.15;
}
.doc h4 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 2.4rem 0 .9rem;
  color: var(--ivory);
}
.doc p {
  margin: 0 0 .95rem;
  font-size: .95rem;
  line-height: 1.75;
  color: #b8b2a5;
}
.doc strong { color: var(--ivory); font-weight: 600; }

.doc__note {
  border-left: 2px solid var(--gold-dim);
  padding: .3rem 0 .3rem 1.1rem;
  color: var(--muted) !important;
  font-style: normal;
}

.req { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .92rem; }
.req td { padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--line-cold); vertical-align: top; color: #b8b2a5; }
.req td:first-child { width: 38%; color: var(--dim); padding-right: 1.4rem; }
@media (max-width: 560px) {
  .req, .req tr, .req td { display: block; width: 100%; }
  .req td:first-child { border: 0; padding-bottom: .1rem; font-size: .8rem; }
}

/* ============================================================
   СТРАНИЦА ДОКУМЕНТОВ
   ============================================================ */

.docs-page { background: var(--night); }
.docs-page::before { top: 0; }
.docs-page .top { position: sticky; }

.toc {
  margin-top: 2.5rem;
  display: grid;
  gap: .1rem;
  max-width: 40rem;
  margin-inline: auto;
}
.toc a {
  display: block;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line-cold);
  color: var(--muted);
  font-size: .92rem;
  transition: color .25s ease, background .25s ease, padding-left .25s ease;
}
.toc a:hover { color: var(--ivory); background: rgba(198,166,110,.06); padding-left: 1.5rem; }

.doc { padding: clamp(2.5rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line-cold); }
.doc:first-of-type { border-top: 0; }
.prose-doc { max-width: 46rem; margin-inline: auto; }

.doc__num {
  font-size: .74rem;
  letter-spacing: .2em;
  color: var(--gold-dim);
  margin: 0 0 .6rem;
}
.prose-doc h3 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 1.6rem;
}
.prose-doc h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--gold);
  margin: 2.2rem 0 .6rem;
}
.prose-doc p {
  margin: 0 0 .85rem;
  font-size: .93rem;
  line-height: 1.78;
  color: #b9b3a5;
}
.prose-doc strong { color: var(--ivory); font-weight: 600; }

.doc__note {
  border-left: 2px solid var(--gold-dim);
  padding: .3rem 0 .3rem 1.1rem;
  color: var(--muted) !important;
  margin-bottom: 1.6rem !important;
}

.req { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .9rem; }
.req td { padding: .7rem .9rem; border-bottom: 1px solid var(--line-cold); vertical-align: top; color: #b9b3a5; }
.req td:first-child { width: 38%; color: var(--muted); }
@media (max-width: 560px) {
  .req td { display: block; border-bottom: 0; padding: .2rem .9rem; }
  .req td:first-child { width: auto; padding-top: .8rem; font-size: .78rem; letter-spacing: .06em; }
  .req tr { display: block; border-bottom: 1px solid var(--line-cold); padding-bottom: .6rem; }
}

/* Уведомление о cookie */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 60;
  width: min(94vw, 46rem);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  background: rgba(13,18,25,.96);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  font-size: .84rem;
  color: var(--muted);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 20rem; }
.cookie .btn { padding: .6rem 1.4rem; font-size: .8rem; }

.detail__text { color: #cdc6b7; margin-bottom: 1.3rem; font-size: .95rem; line-height: 1.8; }
.detail__text br { line-height: 2.4; }

.hero__line--dim { display:inline-block; margin-top:1.1rem; color: var(--muted); font-size:.82em; }

/* ============================================================
   ПЕЧАТЬ: логотип внутри энергетического кольца
   ============================================================ */

.hero__seal {
  position: relative;
  display: grid;
  place-items: center;
  width: min(88vw, 640px);
  aspect-ratio: 1;
  margin: 0 auto;
}
.hero__seal > * { grid-area: 1 / 1; }

.hero__aura,
.hero__ring {
  position: absolute;
  inset: 0;
  left: auto; top: auto;          /* сбрасываем прежнее центрирование */
  width: 100%;
  height: 100%;
  transform: none;
}

.hero__aura {
  border-radius: 50%;
  background: radial-gradient(circle closest-side,
    rgba(198,166,110,.16) 0%,
    rgba(93,126,150,.11) 46%,
    transparent 72%);
  filter: blur(26px);
  animation: sealbreathe 13s ease-in-out infinite;
}
@keyframes sealbreathe {
  0%, 100% { transform: scale(1);    opacity: .78; }
  50%      { transform: scale(1.09); opacity: 1; }
}

.hero__ring {
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(198,166,110,0)   0deg,
    rgba(198,166,110,.42) 62deg,
    rgba(200,218,235,.22) 142deg,
    rgba(198,166,110,0)   224deg,
    rgba(198,166,110,.26) 316deg,
    rgba(198,166,110,0)   360deg);
  -webkit-mask: radial-gradient(circle closest-side,
    transparent 85.5%, #000 87%, #000 89%, transparent 90.5%);
          mask: radial-gradient(circle closest-side,
    transparent 85.5%, #000 87%, #000 89%, transparent 90.5%);
  animation: turn 64s linear infinite;
}

.hero__logo {
  position: relative;
  z-index: 2;
  width: 60%;                      /* с запасом вписывается в окружность */
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 38px rgba(198,166,110,.30));
}

@media (prefers-reduced-motion: reduce) {
  .hero__aura, .hero__ring { animation: none; }
}

/* ============================================================
   3D-ПРОСМОТР
   ============================================================ */

.viewer { margin-top: 3rem; }

.viewer__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 68svh;
  border: 1px solid var(--line);
  background:
    radial-gradient(58% 62% at 50% 44%, rgba(53,72,90,.34), transparent 72%),
    linear-gradient(180deg, rgba(17,24,35,.55), rgba(7,9,16,.9));
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.viewer__stage.is-ready:active { cursor: grabbing; }
.viewer__stage canvas { display: block; width: 100%; height: 100%; }

@media (max-width: 620px) { .viewer__stage { aspect-ratio: 1 / 1; } }

.viewer__msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: .86rem;
  letter-spacing: .1em;
  color: var(--muted);
}
.viewer__msg.is-error { color: #d99a86; }

.viewer__spin {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(198,166,110,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.viewer__hint {
  margin: .9rem 0 0;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--dim);
}
.doc--credits .req td { overflow-wrap: anywhere; word-break: break-word; }

/* блок управления согласием в документе о cookie */
.consent-box {
  margin-top: 1.6rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.consent-box p { margin: 0; flex: 1 1 16rem; font-size: .86rem; color: var(--muted); }
.consent-box .btn { padding: .55rem 1.2rem; font-size: .78rem; }

/* две равнозначные кнопки в уведомлении о cookie */
.cookie__acts { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie__min[hidden] { display: none; }

/* Страница документов: заголовок, вводный абзац и оглавление — по одной оси.
   Сами тексты документов остаются по левому краю: юридический текст
   по центру читать невозможно. */
.docs-hero { text-align: center; }
.docs-hero h1 { max-width: 40rem; margin-inline: auto; }
.docs-hero .lede { max-width: 40rem; margin-inline: auto; }
.docs-hero .toc a { text-align: center; }
.docs-hero .toc a:hover { padding-left: 1rem; }
.prose-doc .doc__num, .prose-doc h3 { text-align: center; }
