/* ============================================================
   Согласия перед оплатой (#pay-consent) — блок под карточками тарифов.
   Токены те же, что у карточек: --ivory / --accent / --bright.
   Не Tailwind: tw.css собран статически, новые утилиты в него не попадут.
   ============================================================ */
.pay-consent{
  margin-top:1.75rem; max-width:64ch;
  padding:1.25rem 1.5rem;
  border:1px solid rgb(var(--ivory) / .13); border-radius:1rem;
  background:linear-gradient(150deg, rgb(var(--accent) / .07), transparent 60%);
  transition:border-color .35s ease, box-shadow .35s ease;
}
.pay-consent--attn{ border-color:rgb(var(--accent) / .75); box-shadow:0 0 0 4px rgb(var(--accent) / .14); }
.pay-consent__title{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; font-weight:600;
  color:rgb(var(--accent)); margin-bottom:.9rem; }
.pay-consent__row{ display:flex; gap:.8rem; align-items:flex-start; cursor:pointer;
  color:rgb(var(--soft)); font-size:15px; line-height:1.55; }
.pay-consent__row + .pay-consent__row{ margin-top:.75rem; }
.pay-consent__row input{ flex:none; width:18px; height:18px; margin-top:.2em;
  accent-color:rgb(var(--accent)); cursor:pointer; }
.pay-consent__row a, .pay-consent__offer a{ color:rgb(var(--ivory) / .85); text-decoration:underline;
  text-underline-offset:3px; text-decoration-color:rgb(var(--ivory) / .35); }
.pay-consent__row a:hover, .pay-consent__offer a:hover{ color:rgb(var(--accent)); text-decoration-color:currentColor; }
.pay-consent__offer{ margin-top:1.1rem; padding-top:1rem; border-top:1px solid rgb(var(--ivory) / .10);
  color:rgb(var(--mute)); font-size:13.5px; line-height:1.55; }
.pay-consent__hint{ margin-top:.6rem; font-size:13px; color:rgb(var(--accent)); min-height:1.2em; }
/* Кнопка «дальше» внутри блока согласий. Появляется только когда обе отметки стоят.
   Своих цветов нет намеренно: внутрь кладутся клоны кнопок тарифов, они приносят
   собственное оформление — иначе на странице завелась бы вторая версия того же CTA,
   которая рано или поздно разъедется с первой. Здесь только раскладка. */
/* ---- окно согласий перед кассой ---- */
.pay-modal{ position:fixed; inset:0; z-index:70; display:flex; align-items:center; justify-content:center; padding:1rem; }
.pay-modal[hidden]{ display:none; }
.pay-modal__back{ position:absolute; inset:0; background:rgb(var(--ink) / .78); backdrop-filter:blur(6px); }
.pay-modal__card{ position:relative; width:min(100%,520px); max-height:calc(100dvh - 2rem); overflow:auto;
  border-radius:1.25rem; padding:1.6rem 1.5rem 1.4rem; border:1px solid rgb(var(--ivory) / .14);
  background:linear-gradient(155deg, rgb(51 60 74 / .97), rgb(40 48 60 / .97));
  box-shadow:0 40px 90px -30px rgb(0 0 0 / .7); }
.pay-modal__x{ position:absolute; top:.6rem; right:.75rem; width:40px; height:40px; line-height:1;
  font-size:26px; color:rgb(var(--ivory) / .6); background:none; border:0; cursor:pointer; }
.pay-modal__x:hover{ color:rgb(var(--accent)); }
.pay-modal__title{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; font-weight:600;
  color:rgb(var(--accent)); margin-bottom:.4rem; }
.pay-modal__tariff{ font-size:16px; font-weight:600; color:rgb(var(--ivory)); margin-bottom:1.1rem; line-height:1.35; }
.pay-modal__go{ margin-top:1.1rem; }
.pay-modal__go > a{ margin-top:0; width:100%; }
/* пока обе отметки не стоят — кнопка видна, но не ведёт на кассу: человек с самого начала
   знает, что дальше есть шаг, и не гадает, куда пропала кнопка */
.pay-modal__go > a[data-consent-locked="1"]{ opacity:.45; filter:saturate(.6); }
.pay-consent__go{ display:flex; flex-direction:column; gap:.7rem; margin-top:1rem; }
.pay-consent__go[hidden]{ display:none; }
/* В столбик, а не в ряд: блок согласий узкий, и рядом длинные надписи тарифов
   («Получить полный доступ за 7 900 ₽») ломались на три строки — кнопка вырастала
   втрое и переставала читаться как кнопка. */
.pay-consent__go > a{ margin-top:0; width:100%; }
/* кнопки тарифов, пока согласия не даны — визуально приглушены, но кликабельны (клик ведёт к блоку) */
a[data-payment][data-consent-locked="1"]{ opacity:.55; filter:saturate(.7); }
