/* =====================================================================
   JanymSoul — стили сайта
   Цвета собраны в одном месте: поменяйте значения ниже, и сайт
   перекрасится целиком.
   ===================================================================== */

:root {
  --bg: #0a0909;            /* чёрный мрамор с фото */
  --bg-raised: #121011;
  --bg-field: #171415;
  --line: rgba(239, 230, 216, 0.12);
  --line-strong: rgba(239, 230, 216, 0.24);

  --ivory: #efe6d8;         /* бумага логотипа */
  --ivory-2: #cfc5b8;
  --mute: #9a9086;

  --wine: #6b1424;          /* бордо логотипа */
  --wine-hover: #85202f;
  --wine-deep: #3a0b14;

  --paper: #f1e9dd;         /* свидетельство */
  --paper-edge: #e6dccd;
  --paper-ink: #5a0f1b;
  --paper-text: #3b2a26;

  --error: #e0806f;
  --ok: #a9c3a0;

  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --gutter: 20px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 720px) {
  :root { --gutter: 40px; --nav-h: 76px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory-2);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ivory);
  margin: 0;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

p { margin: 0; }

.container { width: min(100% - 2 * var(--gutter), 1160px); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 680px); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }

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

.btn {
  --btn-bg: var(--wine);
  --btn-border: var(--wine);
  --btn-color: var(--ivory);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-bg: var(--wine-hover); --btn-border: var(--wine-hover); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-border: var(--line-strong);
  --btn-color: var(--ivory);
}
.btn--ghost:hover { --btn-bg: rgba(239, 230, 216, 0.06); --btn-border: var(--ivory-2); }
.btn--block { width: 100%; }
.btn[disabled] { cursor: progress; opacity: 0.75; }
.btn__spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(239, 230, 216, 0.35);
  border-top-color: var(--ivory);
  animation: spin 0.8s linear infinite;
  display: none;
}
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ivory-2);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
  cursor: pointer;
  font-size: 15px;
}
.link-btn:hover { color: var(--ivory); text-decoration-color: var(--ivory-2); }

/* ---------------------------------------------------------------- */
/* Демо-полоска                                                    */
/* ---------------------------------------------------------------- */

.demo-bar {
  position: relative;
  z-index: 60;
  background: var(--wine-deep);
  color: var(--ivory);
  font-size: 13.5px;
  line-height: 1.45;
  padding: 9px var(--gutter);
  text-align: center;
}
.demo-bar a, .demo-bar button { color: var(--ivory); }
.demo-bar button { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

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

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(10, 9, 9, 0.92), rgba(10, 9, 9, 0.55));
}
.nav.is-scrolled {
  background: rgba(10, 9, 9, 0.9);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark { height: 38px; width: auto; }
.brand__word { height: 17px; width: auto; }

.nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 36px;
}
.nav__links a {
  font-size: 15px;
  color: var(--ivory-2);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav__links a:hover { color: var(--ivory); border-bottom-color: var(--line-strong); }

.nav__toggle {
  width: 44px; height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-right: -10px;
}
.nav__toggle span {
  width: 22px; height: 1px;
  background: var(--ivory);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: var(--sheet-top, var(--nav-h));
  z-index: 49;
  background: var(--bg);
  padding: 20px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  overflow-y: auto;
}
.menu-sheet[hidden] { display: none; }
.menu-sheet a {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.2;
  color: var(--ivory);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
html.menu-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__toggle, .menu-sheet { display: none !important; }
  .brand__mark { height: 42px; }
  .brand__word { height: 19px; }
}

/* ---------------------------------------------------------------- */
/* Первый экран                                                    */
/* ---------------------------------------------------------------- */

.hero {
  position: relative;
  margin-top: calc(-1 * var(--nav-h));
}
.hero__media {
  position: relative;
  height: 64svh;
  min-height: 380px;
  max-height: 640px;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 9, 9, 0.55) 0%, rgba(10, 9, 9, 0) 22%, rgba(10, 9, 9, 0) 55%, var(--bg) 100%);
}
.hero__text {
  position: relative;
  z-index: 1;
  margin-top: -84px;
  padding-bottom: 72px;
}
.hero h1 {
  font-weight: 300;
  font-size: clamp(44px, 11vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero__lead {
  margin-top: 22px;
  max-width: 30ch;
  font-size: 18px;
  color: var(--ivory-2);
}
.hero__actions {
  margin-top: 34px;
  display: grid;
  gap: 12px;
}

@media (min-width: 560px) {
  .hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
}

@media (min-width: 960px) {
  /* Колонки совпадают с шириной .container, фото уходит в правый край */
  .hero {
    display: grid;
    grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 580px) minmax(0, 580px) minmax(var(--gutter), 1fr);
    min-height: min(92svh, 900px);
  }
  .hero__media {
    grid-column: 3 / 5;
    grid-row: 1;
    height: auto;
    max-height: none;
    min-height: 100%;
  }
  .hero__media img {
    position: absolute;
    inset: 0;
    object-position: 38% 52%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%);
    mask-image: linear-gradient(to right, transparent 0%, #000 26%);
  }
  .hero__media::after {
    background: linear-gradient(to bottom, rgba(10, 9, 9, 0.6) 0%, rgba(10, 9, 9, 0) 18%, rgba(10, 9, 9, 0) 80%, var(--bg) 100%);
  }
  .hero__text {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: auto;
    margin: 0;
    padding: calc(var(--nav-h) + 40px) 32px 80px 0;
  }
  .hero h1 { font-size: clamp(60px, 6.2vw, 92px); }
  .hero__lead { font-size: 19px; margin-top: 28px; }
  .hero__actions { margin-top: 44px; }
}

/* Появление первого экрана — единственная «сама по себе» анимация */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise 1s var(--ease) both; }
  .hero__text > *:nth-child(2) { animation-delay: 0.12s; }
  .hero__text > *:nth-child(3) { animation-delay: 0.24s; }
  .hero__media img { animation: fade 1.6s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

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

.section {
  padding: clamp(84px, 11vw, 150px) 0;
  border-top: 1px solid var(--line);
}
.section__title {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
}
.section__lead {
  margin-top: 18px;
  font-size: 18px;
  color: var(--ivory-2);
  max-width: 46ch;
}

.star { display: inline-block; width: 14px; height: 14px; color: var(--ivory-2); flex: none; }

/* О бренде */
.about { text-align: center; }
.about__mark { width: 52px; height: auto; margin: 0 auto 36px; opacity: 0.9; }
.about__title {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.08;
}
.about__text {
  margin: 30px auto 0;
  max-width: 34em;
  font-size: 18px;
  line-height: 1.8;
}
.about__vow {
  margin-top: 46px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 26px);
  color: var(--ivory);
}

/* Браслет */
.product {
  display: grid;
  gap: 48px;
  align-items: center;
}
.product__photo {
  position: relative;
  margin: 0;
  isolation: isolate;
}
.product__photo img {
  width: 100%;
  aspect-ratio: 726 / 690;
  object-fit: cover;
}
.product__photo::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line-strong);
  z-index: -1;
}
.product__name { font-size: clamp(36px, 4.4vw, 50px); line-height: 1.08; }
.product__price {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 34px;
  color: var(--ivory);
  letter-spacing: 0.01em;
}
.specs {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.specs li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16.5px;
}
.product__note {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--bg-raised);
  border-left: 2px solid var(--wine);
  font-size: 16px;
  line-height: 1.7;
}
.product__note strong { color: var(--ivory); font-weight: 400; }
.product__cta { margin-top: 34px; }

@media (min-width: 960px) {
  .product { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: 96px; }
}

/* ---------------------------------------------------------------- */
/* Форма выбора                                                    */
/* ---------------------------------------------------------------- */

.choice__head { margin-bottom: 44px; }
.form-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 30px 22px 34px;
}
@media (min-width: 720px) { .form-card { padding: 48px 52px 52px; } }

.fieldset { border: 0; margin: 0; padding: 0; }
.fieldset + .fieldset { margin-top: 36px; padding-top: 34px; border-top: 1px solid var(--line); }
.fieldset legend {
  float: left;           /* иначе подпись «садится» на линию-разделитель */
  width: 100%;
  padding: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ivory);
  margin-bottom: 18px;
}
.fields { display: grid; gap: 22px; clear: both; }
@media (min-width: 640px) {
  .fields { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; }
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.field input {
  width: 100%;
  height: 50px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ivory);
  font-size: 18px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: rgba(239, 230, 216, 0.28); }
.field input:focus { border-bottom-color: var(--ivory); }
.field.has-error input { border-bottom-color: var(--error); }
.field__error { min-height: 0; font-size: 14px; color: var(--error); }
.field__error:empty { display: none; }

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

.consent {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ivory-2);
  cursor: pointer;
}
.consent input {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.consent input::before {
  content: '';
  width: 12px; height: 12px;
  background: var(--ivory);
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 37% 70%);
  transform: scale(0);
  transition: transform 0.15s var(--ease);
}
.consent input:checked { background: var(--wine); border-color: var(--wine); }
.consent input:checked::before { transform: scale(1); }
.consent a { color: var(--ivory); text-underline-offset: 3px; }
.consent-error { margin: 10px 0 0 36px; font-size: 14px; color: var(--error); }
.consent-error:empty { display: none; }

.form-message {
  margin-top: 26px;
  padding: 16px 18px;
  border: 1px solid rgba(224, 128, 111, 0.45);
  background: rgba(224, 128, 111, 0.07);
  color: var(--ivory);
  font-size: 15.5px;
}
.form-message:empty { display: none; }

.form-submit { margin-top: 30px; }

/* ---------------------------------------------------------------- */
/* Проверка и свидетельство                                        */
/* ---------------------------------------------------------------- */

.check { text-align: center; }
.check .section__lead { margin-inline: auto; }
.check-form {
  margin: 40px auto 0;
  max-width: 520px;
  display: grid;
  gap: 12px;
}
.check-form input {
  height: 56px;
  padding: 0 20px;
  background: var(--bg-field);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--ivory);
  font-size: 18px;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.check-form input::placeholder { text-transform: none; letter-spacing: 0.01em; color: rgba(239, 230, 216, 0.32); }
.check-form input:focus { border-color: var(--ivory-2); }
@media (min-width: 560px) {
  .check-form { grid-template-columns: 1fr auto; }
  .check-form input { text-align: left; }
  .check-form .btn { min-width: 150px; }
}

.check-result { margin-top: 44px; }
.check-result:empty { display: none; }

.notice {
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  font-size: 16px;
  line-height: 1.65;
  text-align: left;
}
.notice strong { color: var(--ivory); font-weight: 400; }

/* Свидетельство о выборе — главный акцент страницы */
.cert {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: 12px;
  background: var(--paper);
  color: var(--paper-text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  text-align: center;
}
.cert::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cert__frame {
  position: relative;
  border: 1px solid rgba(90, 15, 27, 0.55);
  outline: 1px solid rgba(90, 15, 27, 0.25);
  outline-offset: -6px;
  padding: 40px 22px 30px;
}
@media (min-width: 560px) { .cert__frame { padding: 48px 44px 34px; } }
.cert__mark { width: 58px; height: auto; margin: 0 auto; }
.cert__title {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper-ink);
}
.cert__code {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--paper-ink);
}
.cert__person { margin-top: 30px; }
.cert__label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(90, 15, 27, 0.75);
}
.cert__name {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 6vw, 36px);
  line-height: 1.1;
  color: #2a1a17;
  overflow-wrap: anywhere;
}
.cert__dob { display: block; margin-top: 8px; font-size: 14.5px; color: #6d5a52; }
.cert__divider { margin: 28px auto 0; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--paper-ink); }
.cert__divider::before, .cert__divider::after { content: ''; width: 60px; height: 1px; background: rgba(90, 15, 27, 0.35); }
.cert__divider .star { color: var(--paper-ink); width: 16px; height: 16px; }
.cert__foot {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(90, 15, 27, 0.22);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #6d5a52;
}
.cert__foot b { display: block; margin-top: 2px; font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: 0.02em; color: #2a1a17; }
.cert__sign { font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: 0.02em; color: var(--paper-ink); }
.cert-actions { margin-top: 22px; }

@media (prefers-reduced-motion: no-preference) {
  .cert.is-new { animation: cert-in 0.9s var(--ease) both; }
  .cert.is-new .cert__mark { animation: fade 1.2s 0.25s var(--ease) both; }
  .cert.is-new .cert__divider .star { animation: twinkle 1.1s 0.5s var(--ease) both; }
}
@keyframes cert-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes twinkle {
  0% { opacity: 0; transform: scale(0.3) rotate(-45deg); }
  60% { opacity: 1; transform: scale(1.25) rotate(8deg); }
  100% { transform: none; }
}

/* ---------------------------------------------------------------- */
/* Вопросы                                                         */
/* ---------------------------------------------------------------- */

.faq__list { margin-top: 44px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.25;
  color: var(--ivory);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  left: 0; top: 7.5px;
  width: 16px; height: 1px;
  background: var(--ivory-2);
  transition: transform 0.3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { padding: 0 0 26px; max-width: 60ch; font-size: 16.5px; }
.faq__answer p + p, .faq__answer p + ul, .faq__answer ul + p { margin-top: 12px; }
.faq__answer ul { margin: 12px 0 0; padding-left: 20px; }
.faq__answer li + li { margin-top: 6px; }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  font-size: 15px;
}
.footer__top {
  display: grid;
  gap: 36px;
}
.footer__links, .footer__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer a { color: var(--ivory-2); text-decoration: none; }
.footer a:hover { color: var(--ivory); }
.footer__contacts:empty { display: none; }
.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 14px;
}
@media (min-width: 900px) {
  .footer__top { grid-template-columns: auto 1fr auto; align-items: center; gap: 56px; }
  .footer__links { justify-content: center; }
}

/* ---------------------------------------------------------------- */
/* Окно после регистрации                                          */
/* ---------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(5, 4, 4, 0.78);
  padding: 0;
}
.modal.is-open { display: flex; }
.modal__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  padding: 44px 24px 30px;
  text-align: center;
}
@media (min-width: 560px) {
  .modal { align-items: center; padding: 24px; }
  .modal__box { padding: 52px 44px 38px; }
}
@media (prefers-reduced-motion: no-preference) {
  .modal.is-open .modal__box { animation: rise 0.45s var(--ease) both; }
}
.modal__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 44px; height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--mute);
  font-size: 26px;
  line-height: 1;
}
.modal__close:hover { color: var(--ivory); }
.modal__mark { width: 40px; margin: 0 auto 20px; }
.modal__title { font-size: 32px; line-height: 1.1; }
.modal__ref-label { margin-top: 26px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.modal__ref { margin-top: 4px; font-family: var(--serif); font-size: 38px; color: var(--ivory); letter-spacing: 0.04em; }
.modal__copy { margin-top: 2px; }
.modal__copy .link-btn { font-size: 14px; }
.modal__status {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  color: var(--ivory-2);
}
.modal__text { margin-top: 24px; font-size: 16px; }
.modal__actions { margin-top: 26px; display: grid; gap: 10px; }
.modal__foot { margin-top: 22px; font-size: 14px; color: var(--mute); line-height: 1.6; }

/* ---------------------------------------------------------------- */
/* Всплывающие сообщения                                           */
/* ---------------------------------------------------------------- */

.toast-area {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 200;
  width: min(100% - 32px, 440px);
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #1b1718;
  border: 1px solid var(--line-strong);
  color: var(--ivory);
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.8);
  white-space: pre-line;
}
.toast--error { border-color: rgba(224, 128, 111, 0.6); }
.toast--wa { border-left: 3px solid #25d366; }
.toast__title { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: rise 0.35s var(--ease) both; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
