/* T2 Traffic — дополнение к дизайн-системе Retail (лайм #A7FC00, тёмный топбар) */

/* ---------- шрифт ---------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 900;font-display:swap;
  src:url('/static/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 900;font-display:swap;
  src:url('/static/fonts/inter-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,
    U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,
    U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 900;font-display:swap;
  src:url('/static/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,
    U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,
    U+2113,U+2C60-2C7F,U+A720-A7FF}

body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  font-size:14.5px;line-height:1.5;letter-spacing:-.005em}
h1,h2,h3{letter-spacing:-.022em}
.num,.p-price,.p-vol b,.p-price-xl,.or-sum,.stat-num,.or-code,.price,
  .p-per,.p-old,.p-detail-price .p-old{font-feature-settings:'tnum' 1,'cv05' 1}
small,.muted{letter-spacing:0}

/* ---------- базовые правки ---------- */
.lime{color:var(--accent)}
.center{text-align:center}
.mt{margin-top:14px}
.mb{margin-bottom:14px}

.msg-stack{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.msg{padding:12px 14px;border-radius:13px;font-weight:700;font-size:13.5px;line-height:1.4}

/* ---------- hero ---------- */
.t2-hero{position:relative;overflow:hidden;border-radius:18px;padding:22px 18px 24px;
  background:linear-gradient(150deg,#101012 0%,#000 55%,#0d1206 100%);
  color:#fff;margin-bottom:18px;box-shadow:0 14px 34px rgba(0,0,0,.22)}
.hero-glow{position:absolute;right:-70px;top:-70px;width:230px;height:230px;border-radius:50%;
  background:radial-gradient(circle,rgba(167,252,0,.32) 0%,transparent 68%);pointer-events:none}
.t2-hero h1{position:relative;font-size:26px;font-weight:900;line-height:1.1;margin:12px 0 8px;letter-spacing:-.3px}
.hero-pill{position:relative;display:inline-flex;align-items:center;gap:5px;background:rgba(167,252,0,.14);
  border:1px solid rgba(167,252,0,.3);color:var(--accent);font-size:11.5px;font-weight:800;
  padding:4px 11px;border-radius:999px}
.hero-lead{position:relative;color:#C9CDD3;font-size:13.5px;line-height:1.5;max-width:44ch;margin:0}
.hero-banner{position:relative;margin-top:12px;background:rgba(255,255,255,.07);
  border-left:3px solid var(--accent);border-radius:10px;padding:9px 12px;font-size:12.5px;color:#E7EAEE}

/* ---------- категории ---------- */
.t2-cats{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 12px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
.t2-cats::-webkit-scrollbar{display:none}
.cat-chip{flex:none;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:999px;
  padding:6px 14px;font-size:12.5px;font-weight:800;color:var(--label);white-space:nowrap;
  box-shadow:0 1px 3px rgba(0,0,0,.06)}

/* ---------- карточки пакетов ---------- */
.t2-group{margin-bottom:20px}
.group-head{display:flex;align-items:baseline;gap:9px;margin:0 2px 10px}
.group-head h2{font-size:16px;font-weight:900;margin:0}
.t2-h2{font-size:17px;font-weight:900;margin:0 0 12px}

.t2-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:11px}
@media(max-width:420px){.t2-grid{grid-template-columns:repeat(2,1fr);gap:9px}}
@media(max-width:340px){.t2-grid{grid-template-columns:1fr}}

/* точки-индикаторы кликабельности на мобильном */
.btn,.cat-chip,.cat-chip:active{min-height:44px}
.cat-chip{display:inline-flex;align-items:center}
.p-card .btn{min-height:40px;padding-left:16px;padding-right:16px}

.p-card{position:relative;display:flex;flex-direction:column;background:var(--panel);
  border-radius:16px;padding:13px 12px 12px;box-shadow:0 2px 10px rgba(20,25,35,.07);
  border:1px solid rgba(0,0,0,.05);overflow:hidden}
.p-card.hot{border-color:rgba(167,252,0,.65);box-shadow:0 6px 20px rgba(167,252,0,.18)}
.p-card.hot::before{content:"";position:absolute;inset:0 0 auto;height:3px;
  background:linear-gradient(90deg,var(--accent),var(--accent2))}
.p-badge{flex:none;align-self:flex-start;background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#0B0F05;font-size:9.5px;font-weight:900;padding:3px 8px;border-radius:999px;
  letter-spacing:.3px;text-transform:uppercase;max-width:52%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.p-prices{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0}
.p-old{font-size:11.5px;color:var(--muted2);text-decoration:line-through;font-weight:700;
  line-height:1.2;white-space:nowrap}
.p-save{font-size:11px;font-weight:800;color:#5C8A00;background:#F2F9E2;border-radius:999px;
  padding:3px 9px;align-self:flex-start;margin-top:6px}
.p-head{display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin-bottom:3px;min-width:0}
.p-vol{display:flex;align-items:center;gap:6px;color:#5C8A00;min-width:0}
.p-vol .ico{width:18px;height:18px;flex:none}
.p-vol b{font-size:17px;font-weight:900;font-variant-numeric:tabular-nums;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.big-vol .ico{width:22px;height:22px}
.big-vol b{font-size:30px}
.p-card h3{font-size:13.5px;font-weight:800;margin:0;line-height:1.25}
.p-sub{font-size:11.5px;color:var(--muted);margin:4px 0 0;line-height:1.35}
.p-per{display:inline-block;align-self:flex-start;margin-top:6px;font-size:10.5px;font-weight:800;color:#5C8A00;
  background:#F2F9E2;border-radius:999px;padding:2px 8px;white-space:nowrap}
.p-note{font-size:11px;color:var(--muted);margin:7px 0 0;line-height:1.35}
.p-foot{margin-top:auto;padding-top:11px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.p-price{font-size:17px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:-.3px}

/* вся карточка кликабельна: убираем подчёркивание у ссылки */
a.p-card{color:inherit;text-decoration:none;transition:transform .12s,box-shadow .18s}
a.p-card:active{transform:scale(.985)}
@media(hover:hover){a.p-card:hover{box-shadow:0 10px 26px rgba(20,25,35,.12);
  border-color:rgba(167,252,0,.5)}
  a.p-card.hot:hover{box-shadow:0 12px 30px rgba(167,252,0,.26)}}
a.p-card .p-foot .btn{pointer-events:none}
.p-title{font-size:22px;font-weight:900;margin:0 0 4px;letter-spacing:-.3px}
.p-price-xl{font-size:32px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:-1px}
.p-detail{padding:18px 16px;margin-bottom:12px}
.p-detail-price{display:flex;align-items:baseline;gap:11px;margin-top:14px;flex-wrap:wrap}
.p-detail-price .p-old{position:static;font-size:14px}

.p-meta{display:flex;flex-wrap:wrap;gap:9px;margin-top:11px}
.p-meta span{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;
  color:var(--muted);background:var(--field);border-radius:999px;padding:4px 10px}
.p-meta .ico{width:14px;height:14px}
.p-note-block{margin-top:13px;background:#F7F8F4;border-left:3px solid var(--accent);
  border-radius:9px;padding:9px 12px;font-size:12.5px;color:#4A515B;line-height:1.45}

/* ---------- шаги / CTA ---------- */
.t2-steps{margin:24px 0 18px}
.t2-steps-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:11px}
.step{position:relative;background:var(--panel);border-radius:14px;padding:14px 12px;
  box-shadow:0 2px 10px rgba(20,25,35,.06);border:1px solid rgba(0,0,0,.05)}
.step .ico{color:#5C8A00}
.step b{display:block;margin:6px 0 3px;font-size:13px;font-weight:800}
.step p{margin:0;line-height:1.35}
.step .n{position:absolute;top:10px;right:12px;width:20px;height:20px;border-radius:50%;
  background:#F2F9E2;color:#5C8A00;font-size:11px;font-weight:900;display:grid;place-items:center}

.t2-cta{display:flex;align-items:center;gap:13px;background:linear-gradient(150deg,#101012,#000);
  color:#fff;border-radius:16px;padding:15px 16px;margin:18px 0 8px;
  box-shadow:0 10px 30px rgba(0,0,0,.18)}
.t2-cta>div{min-width:0}
.cta-title{display:block;font-size:14.5px;font-weight:900}
.cta-sub{color:#8f8f8f;margin:3px 0 0}
.t2-cta .btn{flex:none}
.t2-note{margin:16px 0;font-size:13px;line-height:1.5}

/* ---------- форма заказа ---------- */
.crumb{margin:2px 0 10px}
.crumb a{display:inline-flex;align-items:center;gap:4px}
.fl{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:800;
  margin:13px 0 6px;color:var(--label)}
.fl:first-child{margin-top:0}
.fl .ico{color:#5C8A00;width:15px;height:15px}
.order-form{padding:15px 14px}
.btn.lg{font-size:14.5px;padding:13px 18px;border-radius:14px}
textarea.input{resize:vertical;min-height:44px}

.pay-modes{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.pay-mode input{position:absolute;opacity:0;pointer-events:none}
.pm-in{display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;
  padding:13px 8px;border-radius:14px;background:#fff;border:1.5px solid rgba(0,0,0,.07);
  cursor:pointer;transition:border-color .15s,background .15s}
.pm-in .ico{color:var(--muted2)}
.pm-in b{font-size:13.5px;font-weight:800}
.pm-in i{font-style:normal;font-size:10.5px;color:var(--muted2);font-weight:600}
.pay-mode input:checked+.pm-in{border-color:var(--accent2);background:#F7FDEB;
  box-shadow:0 0 0 3px rgba(167,252,0,.16)}
.pay-mode input:checked+.pm-in .ico{color:#5C8A00}

.lookup-form{padding:15px 14px}
.lookup-input{font-size:19px;font-weight:900;letter-spacing:2px;text-align:center;
  font-variant-numeric:tabular-nums;text-transform:uppercase}

/* ---------- страница заказа ---------- */
.ord-head{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.ord-ico{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#0B0F05;display:grid;place-items:center;flex:none;box-shadow:var(--glo)}
.ord-title{font-size:18px;font-weight:900;margin:0}
.ord-title b{font-variant-numeric:tabular-nums;letter-spacing:.5px}
.ord-head .badge{margin-left:auto}

.st-bar{display:flex;gap:5px;margin:4px 0 8px}
.st-bar .dot{flex:1;height:5px;border-radius:999px;background:#E6E8EC;transition:background .25s}
.st-bar .dot.on{background:linear-gradient(90deg,var(--accent),var(--accent2))}
.st-steps{display:flex;justify-content:space-between;color:var(--muted2);font-weight:700}
.st-note{margin:12px 0 0;padding:10px 12px;background:#F7F8F4;border-radius:11px;
  font-size:12.5px;line-height:1.45;color:#4A515B}

.ord-sum{padding:6px 14px;margin-bottom:12px}
.os-row{display:flex;justify-content:space-between;gap:14px;padding:9px 0;
  border-bottom:1px solid #EFF1F4;font-size:13px}
.os-row:last-child{border-bottom:none}
.os-row span{color:var(--muted)}
.os-row b{font-weight:800;text-align:right;word-break:break-word}
.os-row.total{border-top:1.5px solid #E6E8EC;font-size:15px}
.os-row.total b{font-size:18px;font-variant-numeric:tabular-nums}
.pay-box{padding:15px 14px;margin-bottom:12px}
.pay-box p{margin:0}

/* ---------- бейджи статусов ---------- */
.badge.st-new{background:var(--info-bg);color:var(--info-ink)}
.badge.st-paid{background:var(--wait-bg);color:var(--wait-ink)}
.badge.st-issued{background:#E8E0FE;color:#5B21B6}
.badge.st-done{background:var(--ok-bg);color:var(--ok-ink)}
.badge.st-canceled{background:var(--neutral-bg);color:var(--neutral-ink)}

.dot-out{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8f8f8f}

/* ---------- нет доступа ---------- */
.noaccess{text-align:center;padding:26px 18px;margin-top:14px}
.na-ico{width:62px;height:62px;border-radius:20px;margin:0 auto 16px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));color:#0B0F05;
  display:grid;place-items:center;box-shadow:var(--glo)}
.na-title{font-size:21px;font-weight:900;margin:0 0 8px}
.na-text{color:var(--muted);font-size:14px;line-height:1.5;margin:0 auto 18px;max-width:34ch}
.na-actions{display:flex;flex-direction:column;gap:9px;align-items:center}
.na-actions .btn{width:100%;max-width:300px;padding:12px 18px}

/* ---------- FAQ ---------- */
.faq-list{display:flex;flex-direction:column;gap:9px}
.faq{padding:0}
.faq summary{cursor:pointer;padding:14px;font-weight:800;font-size:14px;list-style:none;
  display:flex;align-items:center;justify-content:space-between;gap:10px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:19px;font-weight:400;color:var(--accent2);flex:none}
.faq[open] summary::after{content:"–"}
.faq p{padding:0 14px 14px;margin:0;font-size:13px;line-height:1.55;color:#4A515B}

/* ---------- админка ---------- */
.adm-bg{background-image:radial-gradient(rgba(0,0,0,.035) 1.2px,transparent 1.2px)}
.adm-login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}
.adm-login{width:100%;max-width:380px;padding:22px 18px}
.adm-logo{width:52px;height:52px;border-radius:16px;margin:0 auto 14px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));color:#0B0F05;
  display:grid;place-items:center;box-shadow:var(--glo)}
.adm-h1{font-size:19px;font-weight:900;text-align:center;margin:0 0 16px}
.adm{padding-bottom:84px}
.adm-form{padding:15px 14px}
.adm-p{line-height:1.55;margin:0 0 14px}
.adm-search{margin-bottom:12px}
.adm-list,.adm-orders{display:flex;flex-direction:column;gap:9px}

.wl-list{display:flex;flex-direction:column;gap:7px;margin-bottom:10px}
.wl-row{display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:#F7F8FA;border-radius:12px;padding:8px 10px}
.wl-name{display:flex;align-items:center;gap:7px;font-weight:800;font-size:13.5px}
.wl-name .ico{color:#5C8A00}
.wl-del{margin:0}
.wl-clear{margin-bottom:4px}
.wl-add-row{display:flex;gap:8px}
.wl-add-row .input{flex:1;min-width:0}
.wl-add-row .btn{flex:none}

.ord-row,.p-row{padding:0}
.ord-row summary,.p-row summary{cursor:pointer;padding:13px 14px;display:flex;
  align-items:center;justify-content:space-between;gap:12px;list-style:none}
.ord-row summary::-webkit-details-marker,.p-row summary::-webkit-details-marker{display:none}
.or-main,.pr-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.or-code{font-size:14px;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:.5px}
.or-title,.pr-main b{font-size:13.5px;font-weight:800;overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.or-right,.pr-right{display:flex;align-items:center;gap:8px;flex:none}
.or-sum{font-size:14.5px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.or-body,.pr-body{padding:0 14px 14px;border-top:1px solid #EFF1F4;padding-top:12px}
.or-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:9px;margin-bottom:10px}
.or-cmt,.or-note{display:flex;gap:6px;align-items:flex-start;padding:8px 10px;border-radius:10px;
  margin-bottom:8px;line-height:1.4}
.or-cmt{background:var(--wait-bg);color:var(--wait-ink)}
.or-note{background:var(--ok-bg);color:var(--ok-ink)}
.or-form{display:grid;grid-template-columns:1fr;gap:8px;margin-top:10px}
.or-form .btn{justify-self:start}

.switch-cell{display:flex;flex-direction:column;justify-content:flex-end}
.switch{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:700}
.switch input{position:absolute;opacity:0;pointer-events:none}
.switch span{width:44px;height:25px;border-radius:999px;background:#D8DCE2;position:relative;
  transition:background .18s;flex:none}
.switch span::after{content:"";position:absolute;top:2.5px;left:2.5px;width:20px;height:20px;
  border-radius:50%;background:#fff;transition:transform .18s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.switch input:checked+span{background:linear-gradient(135deg,var(--accent),var(--accent2))}
.switch input:checked+span::after{transform:translateX(19px)}

@media(min-width:860px){
  .or-form{grid-template-columns:170px 1fr auto}
  .t2-hero{padding:32px 26px 34px}
  .t2-hero h1{font-size:32px}
  .na-actions{flex-direction:row;justify-content:center}
}

/* ---------- мобильные правки ---------- */
@media(max-width:640px){
  /* топбар: не показываем ник, оставляем компактную кнопку */
  .top-actions .btn{max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .dot-out{display:none}

  /* карточки пакета: кнопка на всю ширину под ценой */
  .p-foot{flex-direction:column;align-items:stretch;gap:8px}
  .p-foot .p-price{text-align:left}
  .p-foot .btn{width:100%;justify-content:center}

  /* заказ: суммы крупнее, поля просторнее */
  .order-form .input,.lookup-form .input{font-size:16px;padding:13px 14px}
  .order-form .btn.block{font-size:15.5px}
  .st-steps{font-size:10.5px}
  .os-row{flex-direction:column;gap:2px}
  .os-row b{text-align:left}
  .os-row.total{flex-direction:row;align-items:baseline}

  /* админка: поля и кнопки не уже 44px */
  .or-row summary,.p-row summary{padding:14px;gap:10px}
  .or-body,.pr-body{padding:12px 14px 16px}
  .or-form .btn,.pr-actions .btn{min-height:40px;padding:8px 16px}
  /* retail.css на телефоне снимает overflow у .table-wrap и min-width у .tbl;
     возвращаем горизонтальную прокрутку, иначе широкие таблицы рвут страницу */
  .table-wrap{overflow-x:auto}
  table.tbl,.tbl:not(.stack){min-width:460px}
  .wl-add-row{flex-direction:column}
  .wl-add-row .btn{width:100%}
}

@media(max-width:360px){
  .hero-lead{font-size:13px}
  .t2-hero{padding:18px 15px 20px}
  .t2-hero h1{font-size:23px}
  .p-per{font-size:9.5px;padding:2px 7px;letter-spacing:-.1px}
  .pay-modes{grid-template-columns:1fr}
  .pm-in{flex-direction:row;justify-content:center;gap:8px;padding:12px 8px}
  .pm-in i{display:none}
}

/* ---------- крупные экраны ---------- */
@media(min-width:900px){
  .t2-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
  .t2-hero h1{font-size:36px}
  
}
@media(min-width:1100px){
  .t2-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
}

/* ---------- доступность и движение ---------- */
:focus-visible{outline:2px solid var(--accent2);outline-offset:2px;border-radius:8px}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
::selection{background:var(--accent);color:#000}