@font-face{
  font-family:"Atherna";
  src:url("../fonts/atherna.woff2") format("woff2");
  font-style:normal;
  font-weight:400;
  font-display:swap;
}

/* Та же строго чёрно-белая палитра, что и на главной */
:root{
  --bg:#0a0a0a;
  --card:rgba(17,17,17,.6);
  --card-border:#2b2b2b;
  --card-border-hover:#444444;
  --text:#ffffff;
  --muted:#8f8f8f;
  --badge-bg:rgba(28,28,28,.7);
  --badge-border:#3a3a3a;
  --vip-bg:#ffffff;
  --vip-text:#000000;
}

/* Запрет выделения текста на всех страницах сайта. Поля ввода остаются
   выделяемыми, чтобы ими можно было нормально пользоваться. */
*{ box-sizing:border-box; -webkit-tap-highlight-color:transparent; -webkit-touch-callout:none; -webkit-user-select:none; user-select:none; }
input,textarea{ -webkit-touch-callout:default; -webkit-user-select:text; user-select:text; }
html{
  background:#070707;
  color-scheme:dark;
  scrollbar-gutter:stable;
}
html,body{
  margin:0; padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  touch-action:pan-y;
  -webkit-text-size-adjust:100%; text-size-adjust:100%;
  width:100%;
  overflow-x:hidden;
}
body{
  min-height:100vh; min-height:100dvh; background:#070707;
  transition:opacity .14s ease;
}
/* choise/full/trial намеренно используют системный шрифт браузера. */
body[data-page="choise"],
body[data-page="choise"] *,
body[data-page="full"],
body[data-page="full"] *,
body[data-page="trial"],
body[data-page="trial"] *{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif !important;
}
html.page-leaving body{ opacity:.35; }
body.modal-open{ overflow:hidden; }
a{ color:inherit; }
button{ font:inherit; }
[hidden]{ display:none!important; }

/* ---------- Плавный переход между страницами ---------- */
@view-transition{ navigation:auto; }
@keyframes pageFadeOut{ to{ opacity:0; transform:translateY(-2px); } }
@keyframes pageFadeIn{
  from{ opacity:0; transform:translateY(3px); }
  to  { opacity:1; transform:translateY(0); }
}
::view-transition-old(root){ animation:pageFadeOut .13s ease both; }
::view-transition-new(root){ animation:pageFadeIn .22s cubic-bezier(.22,.61,.36,1) both; }
@media (prefers-reduced-motion:reduce){
  body{ transition:none; }
  ::view-transition-old(root),::view-transition-new(root){ animation:none; }
}

/* ---------- Зерно ---------- */
body::after{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n' x='0' y='0' width='100%' height='100%'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  .45 0 0 0 -.17'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size:220px 220px;
  opacity:.22;
  animation:grainIn 1s ease-out backwards;
}
@keyframes grainIn{ from{ opacity:0; } to{ opacity:.22; } }

/* ---------- Вход из блюра ---------- */
@keyframes blurIn{
  from{ opacity:0; filter:blur(12px); }
  to  { opacity:1; filter:blur(0); }
}
.wrap,.top-bar{ animation:blurIn .38s cubic-bezier(.22,.61,.36,1) backwards; }

/* ---------- Верхние кнопки ---------- */
.top-bar{
  position:fixed; z-index:20; left:50%; transform:translateX(-50%);
  top:calc(env(safe-area-inset-top,0px) + clamp(30px,5vh,52px));
  width:100%; max-width:480px; padding:0 16px;
  display:flex; justify-content:space-between; align-items:center;
  pointer-events:none;
}
.top-actions{ display:flex; align-items:center; gap:8px; pointer-events:auto; }
.top-btn{
  pointer-events:auto;
  width:42px; height:42px; border-radius:13px; padding:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(24,24,24,.55);
  border:1px solid var(--card-border);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  color:var(--text); cursor:pointer; text-decoration:none;
  transition:border-color .15s, transform .12s;
}
.top-btn:hover{ border-color:var(--card-border-hover); }
.top-btn:active{ transform:scale(.94); }
.top-btn svg{ width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.top-btn.heart svg{ fill:currentColor; stroke:none; }
.top-btn:focus-visible,.featured-card:focus-visible,.detail-action:focus-visible,.lang-btn:focus-visible,.modal-close:focus-visible,.pay-primary:focus-visible,.pay-secondary:focus-visible,.pay-close:focus-visible{ outline:2px solid #fff; outline-offset:2px; }

/* ---------- Основная колонка ---------- */
.wrap{
  position:relative; z-index:1;
  max-width:480px; margin:0 auto;
  padding:clamp(98px,12vh,124px) 16px 48px;
}
.detail-wrap{
  display:flex; flex-direction:column;
  min-height:100vh; min-height:100dvh;
  padding-bottom:24px;
}
.detail-main{
  width:100%; margin:auto 0;
  padding:14px 0 20px;
  text-align:center;
}

h1{
  text-align:center;
  font-family:"Atherna",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:36px; letter-spacing:.5px; line-height:1.25;
  margin:0 0 6px; font-weight:400; font-synthesis:none; color:var(--text);
}
.choise-title{ font-weight:700; font-synthesis:weight; }
.detail-main h1{ font-weight:600; font-synthesis:weight; }
.subtitle{ text-align:center; color:var(--muted); font-size:14px; margin:0 0 30px; }
.section-label{ color:var(--muted); font-size:11px; letter-spacing:1.5px; text-transform:uppercase; margin:0 0 10px 4px; }

/* ---------- Карточки доступа ---------- */
.access-list{ display:flex; flex-direction:column; gap:12px; margin-bottom:26px; }

.featured-card{
  display:block;
  background:linear-gradient(180deg,rgba(24,24,24,.65) 0%,rgba(11,11,11,.6) 100%);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border:1px solid var(--card-border-hover);
  border-radius:20px; padding:18px 18px 20px;
  text-decoration:none; color:var(--text); margin-bottom:0;
  transition:transform .12s ease, border-color .12s ease;
  -webkit-user-select:none; user-select:none;
}
.featured-card:active{ transform:scale(.98); }
.featured-card:hover{ border-color:#5a5a5a; }
.featured-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.featured-badge{ background:#fff; color:#111; border-color:#fff; font-size:11px; letter-spacing:.6px; }
.featured-body{ display:flex; align-items:center; gap:14px; }
.featured-avatar{ width:56px; height:56px; border-radius:16px; flex:0 0 auto; }
.featured-title{ font-size:18.5px; font-weight:800; margin:0; color:#fff; }
.featured-desc{ font-size:13px; color:var(--muted); margin:3px 0 0; }

.badge{
  display:inline-flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:800; letter-spacing:.5px;
  padding:6px 10px; border-radius:8px;
  background:var(--badge-bg); border:1px solid var(--badge-border);
  color:var(--text); flex:0 0 auto; white-space:nowrap;
}
.access-card .featured-badge{ background:#fff; color:#111; border-color:#fff; }
.crown-icon{ width:22px; height:22px; fill:var(--text); opacity:.9; flex:0 0 auto; }
.chevron{ color:var(--muted); font-size:18px; flex:0 0 auto; }

.avatar{
  width:46px; height:46px; border-radius:50%;
  background:#262626; border:1px solid #333; flex:0 0 auto;
  background-size:cover; background-position:center;
}
/* Карточки выбора: как на главной — скруглённый квадрат с тонкой белой обводкой */
.access-card .featured-avatar{
  width:56px; height:56px; border-radius:16px;
  border:1px solid rgba(255,255,255,.78);
  box-shadow:0 0 0 1px rgba(255,255,255,.08);
  background-color:#141414;
}
/* Мягкое появление фото: тёмная подложка не даёт белой вспышке */
html.js .access-card .featured-avatar{
  opacity:0; filter:blur(9px); transform:scale(1.035);
  transition:opacity .48s ease, filter .5s ease, transform .55s cubic-bezier(.22,.61,.36,1);
}
html.js .access-card .featured-avatar.is-ready{
  opacity:1; filter:blur(0); transform:scale(1);
}
.card-text{ flex:1; min-width:0; }
.card-title{ font-size:15.5px; font-weight:700; margin:0; color:#fff; }
.card-desc{ font-size:12.5px; color:var(--muted); margin:2px 0 0; }

.access-card .chevron{ margin-left:auto; padding-left:4px; }
.access-card-trial{ border-color:var(--card-border); }
.trial-mark{
  font-size:10px; font-weight:800; letter-spacing:.9px;
  color:#d8d8d8; border:1px solid var(--badge-border);
  padding:5px 8px; border-radius:6px; white-space:nowrap;
}

.footer-note{ text-align:center; color:var(--muted); font-size:10.5px; letter-spacing:.4px; margin-top:18px; }
.lang-btn{
  display:block; margin:16px auto 0; min-width:40px; text-align:center;
  font-size:12px; font-weight:700; color:var(--text);
  background:transparent; border:1px solid var(--card-border); border-radius:8px;
  padding:6px 14px; cursor:pointer; letter-spacing:.5px;
}
.lang-btn:hover{ border-color:var(--card-border-hover); }

/* ---------- Страница доступа ---------- */
.detail-photo{
  width:100%; max-width:248px; aspect-ratio:1/1;
  margin:0 auto 25px;
  border-radius:24px; border:1px solid #3a3a3a;
  overflow:hidden; position:relative; background:#161616;
  box-shadow:0 18px 45px #0004;
}
.detail-photo::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg,#0009,transparent 65%);
  pointer-events:none;
}
.detail-photo img{
  width:100%; height:100%; object-fit:cover; display:block;
  filter:grayscale(1);
}
html.js .detail-photo img{
  opacity:0; filter:grayscale(1) blur(9px); transform:scale(1.02);
  transition:opacity .5s ease, filter .55s ease, transform .6s cubic-bezier(.22,.61,.36,1);
}
html.js .detail-photo img.is-ready{
  opacity:1; filter:grayscale(1) blur(0); transform:scale(1);
}
.detail-badge{
  position:absolute; z-index:2; bottom:14px; left:50%; transform:translateX(-50%);
  background:#eeeeeef2; color:#171717;
  font-size:9px; font-weight:800; letter-spacing:1.2px;
  padding:6px 10px; border-radius:6px; white-space:nowrap;
}
.detail-price{
  position:absolute; z-index:2; top:12px; right:12px;
  display:flex; align-items:center; justify-content:center;
  min-width:68px; height:28px; padding:0 8px;
  border-radius:8px; background:#f3f3f3; color:#151515;
  border:1px solid #ffffff70;
  font-size:13px; font-weight:700; line-height:1;
  letter-spacing:.1px; box-shadow:0 2px 8px #0003;
  white-space:nowrap; font-variant-numeric:tabular-nums;
}
.detail-description{
  display:flex; flex-direction:column; gap:2px;
  font-size:15px; line-height:1.55; color:#aaa;
  margin:0 auto 14px; max-width:320px;
}
.detail-note{
  width:100%; max-width:100%;
  font-size:clamp(8px,2.55vw,10.5px); line-height:1.55;
  color:#858585; margin:12px auto 0;
  white-space:nowrap; text-align:center; letter-spacing:-.01em;
}
.detail-footer{ text-align:center; padding:14px 0 4px; }
.detail-footer .lang-btn{ margin-top:0; }
.detail-action{
  width:100%; max-width:320px; min-height:52px;
  margin:0 auto; display:flex; align-items:center; justify-content:center; gap:10px;
  background:linear-gradient(#f5f5f5,#d9d9d9);
  color:#151515; border:1px solid #eee; border-radius:15px;
  font-family:inherit; font-size:14px; font-weight:800; line-height:1.3;
  text-decoration:none; cursor:pointer; appearance:none; -webkit-appearance:none;
  transition:transform .12s, box-shadow .3s;
}
.detail-action:hover{ background:linear-gradient(#ffffff,#e4e4e4); border-color:#fff; }
.detail-action:active{ transform:scale(.98); }
.detail-action .outbound-icon{ width:18px; height:18px; flex:0 0 auto; }
.trial-page .detail-badge{ background:#191919e8; color:#eee; border:1px solid #ffffff40; }

/* ---------- Правила ---------- */
.modal{
  position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center;
  padding:20px; background:rgba(0,0,0,.6);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  opacity:0; visibility:hidden; transition:opacity .2s, visibility .2s;
}
.modal.open{ opacity:1; visibility:visible; }
.modal-box{
  width:100%; max-width:420px; max-height:85vh; overflow-y:auto;
  background:#111; border:1px solid var(--card-border-hover); border-radius:20px;
  padding:24px 22px 22px; transform:translateY(10px) scale(.97); transition:transform .2s;
}
.modal.open .modal-box{ transform:none; }
.modal-box h2{ margin:0 0 12px; font-size:19px; font-weight:800; text-align:center; }
.modal-box p{ margin:0 0 10px; font-size:14px; line-height:1.5; color:#cfcfcf; }
.modal-box p.rules-note{ font-size:12px; text-align:center; }
.modal-box ul{ margin:0 0 16px; padding-left:18px; color:#cfcfcf; font-size:14px; line-height:1.55; }
.modal-box li{ margin-bottom:6px; }
.modal-close{ width:100%; padding:12px; border-radius:12px; border:0; cursor:pointer; background:#fff; color:#000; font-weight:800; font-size:14px; }
.modal-close:active{ transform:scale(.985); }

/* ---------- Оплата ---------- */
.pay-modal{ z-index:70; }
.pay-box{ position:relative; max-width:392px; padding:26px 20px 20px; }
.pay-close{
  position:absolute; top:8px; right:8px;
  width:36px; height:36px; padding:0;
  display:flex; align-items:center; justify-content:center;
  border:1px solid #333; border-radius:50%;
  background:#1d1d1d; color:#bbb; cursor:pointer;
}
.pay-close svg{ width:15px; height:15px; display:block; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
.pay-close:active{ transform:scale(.94); }
.pay-step h2{ font-size:21px; line-height:1.25; letter-spacing:-.02em; margin:0 0 6px; padding-right:34px; color:#fff; text-align:left; }
.pay-product{ margin:0 0 18px; color:#aaa; font-size:12px; letter-spacing:.4px; text-transform:uppercase; }
.pay-label{ display:block; margin:15px 0 7px; color:#cfcfcf; font-size:12px; font-weight:600; }
.pay-input{
  display:block; width:100%; height:46px; padding:0 13px;
  border:1px solid #333; border-radius:11px;
  background:#090909; color:#fff;
  font:15px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  outline:none;
}
.pay-input:focus{ border-color:#eee; box-shadow:0 0 0 2px #ffffff1a; }
.pay-input::placeholder{ color:#777; }
.pay-hint{ font-size:11px; line-height:1.55; color:#999; margin:7px 0 0; }
.pay-term{ display:grid; grid-template-columns:1fr 1fr; gap:8px; height:46px; }
.pay-term.is-static{ grid-template-columns:1fr; }
.pay-term button,.pay-method button{
  height:46px; min-height:46px; padding:0 8px;
  border:1px solid #333; border-radius:11px;
  background:#171717; color:#bbb;
  font:600 13px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer; transition:background .2s,border-color .2s,color .2s,transform .12s;
}
.pay-term button[aria-pressed="true"],.pay-method button[aria-pressed="true"]{ background:#f1f1f1; border-color:#fff; color:#111; }
.pay-term-static{
  display:flex; align-items:center; justify-content:center;
  height:46px; border:1px solid #fff; border-radius:11px;
  background:#f1f1f1; color:#111; font-weight:700; font-size:13px; letter-spacing:.2px;
}
.pay-method{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pay-amount{
  display:flex; align-items:baseline; justify-content:space-between; gap:14px;
  margin:17px 0 14px; padding-top:14px; border-top:1px solid #292929;
  color:#bbb; font-size:12px;
}
.pay-amount strong{ font-size:22px; font-weight:750; color:#fff; letter-spacing:-.02em; }
.pay-primary{
  display:flex; align-items:center; justify-content:center;
  width:100%; min-height:48px; margin-top:8px; padding:11px 12px;
  border:1px solid #fff; border-radius:13px;
  background:linear-gradient(#f7f7f7,#d9d9d9); color:#111;
  font:700 14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-align:center; text-decoration:none; cursor:pointer;
  transition:transform .12s, background .2s;
}
.pay-primary:active{ transform:scale(.97); }
.pay-secondary{
  display:block; width:100%; min-height:44px; margin-top:8px; padding:10px 12px;
  border:1px solid #333; border-radius:12px;
  background:#191919; color:#ddd;
  font:600 13px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer;
}
.pay-secondary:active{ transform:scale(.97); }
.pay-error{
  margin:12px 0 0; padding:10px 12px;
  border:1px solid #6a6a6a; border-radius:10px;
  background:#1d1d1d; color:#fff;
  font-size:12px; line-height:1.5;
}
.pay-summary{ margin:18px 0 8px; padding:0; }
.pay-summary div{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid #262626; }
.pay-summary div:last-child{ border-bottom:0; }
.pay-summary dt{ color:#999; font-size:12px; margin:0; }
.pay-summary dd{ margin:0; color:#fff; font-weight:650; font-size:13px; text-align:right; overflow-wrap:anywhere; }
.pay-loader{ width:28px; height:28px; margin:20px auto 4px; border:2px solid #333; border-top-color:#fff; border-radius:50%; animation:pay-spin .8s linear infinite; }
@keyframes pay-spin{ to{ transform:rotate(360deg); } }
.pay-modal [hidden],.result-modal [hidden]{ display:none!important; }

/* ---------- Результат оплаты ---------- */
.result-modal{ z-index:80; }
.result-box{ position:relative; max-width:392px; text-align:center; padding:26px 20px 20px; }
.result-icon{
  width:64px; height:64px; margin:0 auto 20px;
  display:grid; place-items:center;
  border:1px solid #333; border-radius:20px;
  background:linear-gradient(145deg,#171717,#0e0e0e); color:#eee;
}
.result-icon svg{ width:28px; height:28px; fill:currentColor; }
.result-title{ font-family:"Atherna",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:27px; line-height:1.25; letter-spacing:.2px; margin:0 0 12px; font-weight:400; }
.result-text{ font-size:14px; line-height:1.65; color:#aaa; margin:0 auto 20px; max-width:330px; }
.result-extra{ display:flex; flex-direction:column; gap:10px; margin:0 auto 16px; max-width:330px; }
.result-actions{ display:flex; flex-direction:column; gap:9px; max-width:330px; margin:0 auto; }

/* ---------- Ссылка активации в окне результата ---------- */
.result-link-wrap{ position:relative; margin:2px 0 0; text-align:left; }
.result-link-label{
  position:absolute; top:-7px; left:13px; z-index:1;
  padding:0 7px; background:#111; color:#8f8f8f;
  font-size:11px; line-height:1.2; letter-spacing:.2px;
}
.result-link{
  position:relative; display:block; width:100%;
  padding:16px 14px 14px;
  border:1px solid #333; border-radius:15px;
  background:
    radial-gradient(130px 70px at 24% 52%, rgba(255,255,255,.10), rgba(255,255,255,0) 72%),
    #0c0c0c;
  color:#e6e6e6; font:inherit; text-align:left; cursor:pointer;
  transition:border-color .15s, transform .12s, background-color .15s;
  overflow:hidden;
}
.result-link:hover{ border-color:#555; }
.result-link:active{ transform:scale(.99); }
.result-link:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.result-link-value{
  position:relative; display:block;
  font-size:12px; line-height:1.45; color:#d6d6d6;
  overflow-wrap:anywhere; word-break:break-all;
}
.result-box .result-link-hint{
  margin:8px 0 0; font-size:11px; line-height:1.4; color:#8f8f8f;
  transition:color .15s;
}
.result-box .result-link-hint.is-copied{ color:#fff; }

/* ---------- Восстановление оплаченного заказа ---------- */
.recovery-card{
  position:relative; display:flex; align-items:center; gap:12px;
  width:100%; margin:0 0 14px; padding:13px 14px;
  border:1px solid #333; border-radius:15px;
  background:rgba(20,20,20,.62);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  text-align:left;
}
.recovery-copy{ min-width:0; flex:1 1 auto; padding-right:20px; }
.recovery-title{ margin:0; color:#fff; font-size:12.5px; font-weight:700; line-height:1.3; }
.recovery-text{ margin:2px 0 0; color:#8f8f8f; font-size:11.5px; line-height:1.4; }
.recovery-btn{
  flex:0 0 auto; padding:9px 12px;
  border:1px solid #fff; border-radius:10px;
  background:#fff; color:#000; font-size:12px; font-weight:800;
  cursor:pointer; transition:transform .12s, opacity .15s;
}
.recovery-btn:active{ transform:scale(.96); }
.recovery-btn:focus-visible{ outline:2px solid #fff; outline-offset:2px; }
.recovery-dismiss{
  position:absolute; top:5px; right:5px;
  width:24px; height:24px; padding:0;
  display:flex; align-items:center; justify-content:center;
  border:0; border-radius:50%; background:transparent; color:#777;
  font-size:16px; line-height:1; cursor:pointer;
}
.recovery-dismiss:hover{ color:#fff; }
.recovery-dismiss:active{ transform:scale(.92); }
@media (max-width:380px){
  .recovery-card{ flex-wrap:wrap; }
  .recovery-btn{ width:100%; }
}
.result-action{
  display:flex; align-items:center; justify-content:center;
  min-height:48px; padding:11px 14px;
  border:1px solid #fff; border-radius:13px;
  background:linear-gradient(#f4f4f4,#d7d7d7); color:#151515;
  font-size:14px; font-weight:700; text-align:center; text-decoration:none; cursor:pointer;
}
.result-quiet{ background:#161616; border-color:#333; color:#ddd; font-weight:600; }
.result-action:active{ transform:scale(.98); }

/* ---------- Тост ---------- */
.toast{
  position:fixed; left:50%; bottom:calc(28px + env(safe-area-inset-bottom,0px)); z-index:90;
  transform:translate(-50%,20px); opacity:0; pointer-events:none;
  background:#fff; color:#000; font-size:13.5px; font-weight:700;
  padding:11px 18px; border-radius:12px; max-width:90vw; text-align:center;
  transition:opacity .2s, transform .2s;
}
.toast.show{ opacity:1; transform:translate(-50%,0); }

/* ---------- Адаптация ---------- */
@media (max-width:420px){
  .wrap{ padding-left:14px; padding-right:14px; }
  .top-bar{ padding:0 14px; }
  h1{ font-size:32px; }
  .featured-title{ font-size:17.5px; }
  .access-card .featured-avatar{ width:50px; height:50px; }
  .featured-badge{ font-size:9.5px; letter-spacing:.5px; padding:4px 8px; border-radius:6px; }
  .avatar{ width:42px; height:42px; }
  .card-title{ font-size:15px; }
  .card-desc{ font-size:12px; }
  .detail-photo{ max-width:220px; }
  .detail-description{ font-size:14px; }
}
@media (max-width:350px){
  h1{ font-size:30px; }
  .top-btn{ width:38px; height:38px; }
  .badge{ font-size:10px; padding:5px 8px; }
}
@media (max-height:740px){
  .detail-main{ padding-top:6px; padding-bottom:12px; }
  .detail-photo{ max-width:196px; margin-bottom:20px; }
  .detail-note{ margin-bottom:16px; }
}
@media (max-height:520px){
  .wrap{ padding-top:88px; }
  .top-bar{ top:14px; }
}
/* ---------- Страница 404 ---------- */
.error-page .wrap{
  min-height:100vh; min-height:100dvh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding-top:112px; padding-bottom:56px;
}
.error-card{
  width:100%; max-width:400px;
  padding:30px 22px 24px;
  border:1px solid var(--card-border-hover); border-radius:22px;
  background:linear-gradient(180deg,rgba(24,24,24,.68) 0%,rgba(10,10,10,.72) 100%);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  box-shadow:0 24px 60px #0005;
}
.error-code{
  font-family:"Atherna",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:clamp(68px,22vw,108px); line-height:.95; letter-spacing:2px;
  margin:0 0 14px; font-weight:400; font-synthesis:none;
  color:#fff; text-shadow:0 0 28px #ffffff22;
}
.error-title{
  font-family:"Atherna",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:24px; line-height:1.3; font-weight:400; font-synthesis:none;
  margin:0 0 10px;
}
.error-text{
  color:var(--muted); font-size:13.5px; line-height:1.65;
  margin:0 auto 24px; max-width:300px;
}
.error-actions{ display:flex; flex-direction:column; gap:9px; max-width:320px; margin:0 auto; }
.error-btn{
  display:flex; align-items:center; justify-content:center;
  min-height:48px; padding:11px 16px;
  border:1px solid #fff; border-radius:13px;
  background:linear-gradient(#f5f5f5,#d9d9d9); color:#151515;
  font-size:14px; font-weight:800; text-decoration:none;
  transition:transform .12s, background .18s, border-color .18s;
}
.error-btn:hover{ background:linear-gradient(#fff,#e6e6e6); border-color:#fff; }
.error-btn:active{ transform:scale(.98); }
.error-btn.quiet{ background:#161616; border-color:#333; color:#ddd; font-weight:650; }
.error-btn.quiet:hover{ background:#202020; border-color:#4a4a4a; }
.error-footer{
  margin-top:22px; color:#6f6f6f; font-size:11px; letter-spacing:.4px;
}

@media (prefers-reduced-motion:reduce){
  .wrap,.top-bar,body::after,.pay-loader{ animation:none; }
  html.js .access-card .featured-avatar,
  html.js .access-card .featured-avatar.is-ready,
  html.js .detail-photo img,
  html.js .detail-photo img.is-ready{ opacity:1; filter:none; transform:none; transition:none; }
}
