/* Оформление доступа. Общие цвета, кнопки и шапка — в acso.css. */

.buy-page{background:var(--soft);min-height:100vh;min-height:100dvh}
.buy-page .topbar{background:rgba(255,255,255,.94)}
.secure-badge{font-size:13px;font-weight:700;color:var(--muted);padding:6px 10px;border-radius:999px;background:var(--soft)}
.buy-close{width:40px;height:40px;display:grid;place-items:center;border-radius:10px}
.buy-close:hover{background:var(--soft)}
.buy-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}

.buy{padding:26px 0 70px}
.buy-loading{padding:80px 0;text-align:center;color:var(--muted)}
.crumbs{display:flex;gap:8px;font-size:13px;color:var(--muted);font-weight:650}
.crumbs a:hover{color:var(--ink)}
.buy h1{margin:10px 0 24px;font-size:clamp(28px,3.4vw,42px);letter-spacing:-1.4px;line-height:1.1;font-weight:800}
.buy-grid{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:22px;align-items:start}
.buy-steps{display:grid;gap:14px}
.buy-step{padding:22px;border-radius:22px;background:#fff;border:1px solid var(--line)}
.buy-step h2{display:flex;align-items:center;gap:10px;margin-bottom:16px;font-size:19px;letter-spacing:-.3px}
.num{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--red);color:#fff;font-size:14px;font-weight:800}

/* Тариф */
.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:6px;border-radius:16px;background:var(--soft)}
.seg-item{position:relative;display:grid;gap:2px;padding:12px 10px;border-radius:12px;text-align:center;transition:background .15s,box-shadow .15s}
.seg-item b{font-size:15px}
.seg-item span{font-size:13px;color:var(--muted);font-weight:650}
.seg-item em{position:absolute;top:-9px;right:8px;padding:2px 7px;border-radius:999px;background:var(--red);color:#fff;font-size:11px;font-style:normal;font-weight:800}
.seg-item[aria-checked="true"]{background:#fff;box-shadow:0 4px 14px rgba(14,14,16,.1)}
.seg-item[aria-checked="true"] span{color:var(--ink)}

/* Куда прислать доступ */
.id-tabs{display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:var(--soft);margin-bottom:14px}
.id-tabs button{padding:9px 14px;border-radius:9px;font-size:14px;font-weight:750;color:var(--muted)}
.id-tabs button[aria-selected="true"]{background:#fff;color:var(--ink);box-shadow:0 2px 8px rgba(14,14,16,.08)}
.id-panel{display:grid;gap:10px}
.inline-form{display:flex;gap:8px}
.inline-form input{flex:1;min-width:0;height:54px;padding:0 16px;border-radius:14px;border:1.5px solid var(--line);background:#fff;font-size:16px;font-weight:600;outline:none;transition:border-color .15s}
.inline-form input:focus{border-color:var(--ink)}
.inline-form .btn{min-height:54px}
.hint{font-size:14px;line-height:1.5;color:var(--muted)}
.hint b{color:var(--ink)}
.id-tools{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:var(--muted)}
.text-btn{padding:0;font-size:13px;font-weight:750;color:var(--red);text-decoration:underline;text-underline-offset:3px}
.verified{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:16px;background:#f0fbf4;border:1px solid #c9eed6}
.verified-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:var(--green);color:#fff;font-weight:800;flex:none}
.verified b{display:block;font-size:15px;word-break:break-all}
.verified span{font-size:13px;color:var(--muted)}
.verified .text-btn{margin-left:auto;flex:none}
.tg-code{padding:12px;border-radius:14px;background:var(--soft);text-align:center;font-size:28px;font-weight:800;letter-spacing:6px}
.tg-status{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.spinner{width:14px;height:14px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--red);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Способ оплаты */
.methods{display:grid;gap:10px}
.method{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;border:1.5px solid var(--line);background:#fff;text-align:left;transition:border-color .15s,background .15s}
.method:hover{border-color:#cfcfd5}
.method[aria-checked="true"]{border-color:var(--red);background:var(--red-soft)}
.method-icon{width:46px;height:46px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--soft)}
.method-icon svg{width:20px;height:24px}
.card-icon{width:26px;height:18px;border-radius:4px;background:linear-gradient(135deg,#2b2b31,#55555e);position:relative}
.card-icon::after{content:"";position:absolute;left:4px;top:5px;width:7px;height:5px;border-radius:1px;background:#e8c46a}
.method-copy b{display:block;font-size:16px}
.method-copy span{font-size:13px;color:var(--muted)}
.radio{margin-left:auto;width:22px;height:22px;flex:none;border-radius:50%;border:2px solid #c9c9d0}
.method[aria-checked="true"] .radio{border:7px solid var(--red)}

/* Итог */
.summary{position:sticky;top:86px;padding:24px;border-radius:24px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.summary h2{font-size:22px;letter-spacing:-.5px}
.summary-sub{margin-top:4px;font-size:14px;color:var(--muted)}
.total{margin:18px 0 12px;padding:18px;border-radius:18px;background:linear-gradient(135deg,#fff4ef,#ffe9e4);border:1px solid var(--red-line)}
.total span{display:block;font-size:12px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#a0463f}
.total strong{display:block;margin-top:4px;font-size:44px;line-height:1.05;letter-spacing:-1.8px;font-weight:800}
.total small{font-size:14px;color:var(--muted);font-weight:650}
.upsell{width:100%;margin-bottom:10px;padding:12px 14px;border-radius:14px;background:var(--ink);color:#fff;font-size:14px;font-weight:750;text-align:center}
.upsell:hover{background:var(--ink-3)}
.pay-btn{min-height:60px;font-size:17px}
.pay-status{margin-top:10px;font-size:13px;line-height:1.5;color:var(--muted);text-align:center}
.pay-consent{margin-top:10px;font-size:12px;line-height:1.5;color:var(--muted);text-align:center}
.pay-consent a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.perks{display:grid;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.perks li{display:flex;gap:12px;font-size:13px;line-height:1.45;color:var(--muted)}
.perks li>span{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:10px;background:var(--soft);font-size:17px}
.perks b{display:block;font-size:14px;color:var(--ink)}
.secure-note{margin-top:16px;font-size:12px;line-height:1.5;color:var(--muted)}

.buy-error{margin:10px 0;padding:12px 14px;border-radius:14px;background:#fff1f0;border:1px solid var(--red-line);color:#8f2621;font-size:14px;line-height:1.5}
.buy-notice{position:fixed;left:50%;bottom:22px;z-index:40;transform:translateX(-50%);padding:12px 18px;border-radius:14px;background:var(--ink);color:#fff;font-size:14px;font-weight:650;box-shadow:0 14px 40px rgba(0,0,0,.25);max-width:calc(100% - 32px)}

@media (max-width:960px){
  .buy-grid{grid-template-columns:1fr}
  .summary{position:static}
  .secure-badge{display:none}
}
@media (max-width:560px){
  .buy{padding-top:16px}
  .buy-step{padding:16px;border-radius:18px}
  .seg{gap:4px;padding:4px}
  .seg-item{padding:10px 4px}
  .seg-item b{font-size:13px}
  .seg-item span{font-size:12px}
  .inline-form{flex-direction:column}
  .inline-form input{flex:none;width:100%}
  .inline-form .btn{width:100%}
  .summary{padding:18px}
  .total strong{font-size:38px}
}
.buy-footer{border-top:1px solid var(--line);padding:22px 0 90px;color:var(--muted);font-size:13px;line-height:1.6}
.buy-footer p{margin:0 0 8px;max-width:760px}
.buy-footer a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.buy-footer .legal{display:flex;flex-wrap:wrap;gap:4px 14px}
