/* ============================================================
   GSA Pro — слаботочные системы (СКУД · СВН · АПС), Алматы
   Дизайн: «диспетчерская / монтажная схема»
   ============================================================ */

:root{
  --bg:        #0B1220;
  --bg-2:      #0E1626;
  --surface:   #131F33;
  --surface-2: #18253C;
  --line:        rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);

  --ink:    #EAF0FA;
  --muted:  #93A1BC;
  --faint:  #5E6E8C;

  --accent:    #FFB020; /* сигнальный янтарь — фирменный акцент */
  --accent-dim:#C98711;
  --ok:    #2FBF71;     /* «на охране» / в наличии */
  --alarm: #FF5A52;     /* пожар / нет в наличии */
  --info:  #57A6FF;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body:    "Inter", system-ui, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --shadow: 0 24px 60px -28px rgba(0,0,0,.7);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; overflow-y:scroll; scrollbar-gutter:stable; }
body{
  margin:0;
  background:
    radial-gradient(900px 600px at 82% -8%, rgba(255,176,32,.10), transparent 60%),
    radial-gradient(800px 700px at -5% 18%, rgba(87,166,255,.07), transparent 55%),
    var(--bg);
  color:var(--ink);
  font-family:var(--ff-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
h1,h2,h3,h4{ font-family:var(--ff-display); font-weight:600; line-height:1.08; letter-spacing:-.02em; margin:0; }
p{ margin:0; }

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 24px; }
.mono{ font-family:var(--ff-mono); }

/* tiny schematic grid behind sections */
.grid-bg{ position:relative; }
.grid-bg::before{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:46px 46px;
  mask-image:radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- Header ---------- */
.nav{
  position:sticky; top:0; z-index:60;
  backdrop-filter:saturate(140%) blur(10px);
  background:rgba(11,18,32,.72);
  border-bottom:1px solid var(--line);
}
.nav__in{ display:flex; align-items:center; gap:10px; height:68px; }
.brand{ display:flex; align-items:center; gap:11px; font-family:var(--ff-display); font-weight:700; letter-spacing:-.01em; font-size:20px; flex:0 0 auto; min-width:272px; }
.brand__mark{
  width:30px; height:30px; border-radius:8px; position:relative;
  background:linear-gradient(150deg,#1c2c47,#0e1626);
  border:1px solid var(--line-strong);
  display:grid; place-items:center;
}
.brand__mark::after{ content:""; width:9px; height:9px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 4px rgba(47,191,113,.18), 0 0 12px var(--ok); animation:pulse 2.6s infinite; }
.brand__logo{ height:34px; width:auto; display:block; }
.brand__logo--sm{ height:30px; opacity:.96; }
.brand small{ color:var(--accent); font-family:var(--ff-mono); font-weight:500; white-space:nowrap; }
.nav__links{ display:flex; gap:1px; margin-left:18px; }
.nav__links a{
  padding:7px 8px; border-radius:9px; color:var(--muted); font-size:13px; font-weight:500;
  transition:.18s color, .18s background; white-space:nowrap;
}
.nav__links a:hover{ color:var(--ink); background:var(--surface); }
.nav__links a.active{ color:var(--ink); }
.nav__links a.active::after{ content:""; display:block; height:2px; margin-top:5px; border-radius:2px; background:var(--accent); }
.nav__cta{ margin-left:8px; }
.burger{ display:none; margin-left:auto; background:none; border:1px solid var(--line-strong); color:var(--ink); width:42px; height:42px; border-radius:10px; cursor:pointer; }
.lang{ display:inline-flex; gap:2px; margin-left:auto; padding:3px; border:1px solid var(--line-strong); border-radius:10px; background:var(--surface); }
.lang button{ font-family:var(--ff-mono); font-size:11.5px; font-weight:600; letter-spacing:.03em; color:var(--muted); background:transparent; border:0; padding:4px 6px; border-radius:7px; cursor:pointer; transition:.16s; }
.lang button:hover{ color:var(--ink); }
.lang button.active{ background:var(--accent); color:#1a1304; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:9px; cursor:pointer;
  font-family:var(--ff-display); font-weight:600; font-size:15px;
  padding:13px 20px; border-radius:11px; border:1px solid transparent;
  transition:.18s transform, .18s background, .18s border-color; white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn--primary{ background:var(--accent); color:#1a1304; }
.btn--primary:hover{ background:#ffc34d; }
.btn--ghost{ background:transparent; color:var(--ink); border-color:var(--line-strong); }
.btn--ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn--block{ width:100%; justify-content:center; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow{
  font-family:var(--ff-mono); font-size:12.5px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--accent); display:inline-flex; gap:9px; align-items:center;
}
.eyebrow::before{ content:""; width:22px; height:1px; background:var(--accent); }
.section{ padding:92px 0; }
.section__head{ max-width:680px; margin-bottom:46px; }
.section__head h2{ font-size:clamp(28px,4.4vw,42px); margin:16px 0 14px; }
.section__head p{ color:var(--muted); font-size:17px; }

/* ---------- Hero ---------- */
.hero{ padding:64px 0 30px; position:relative; }
.hero__grid{ display:grid; grid-template-columns:1.05fr 1fr; gap:54px; align-items:center; }
.hero h1{ font-size:clamp(34px,5.4vw,60px); margin:20px 0 22px; }
.hero h1 em{ font-style:normal; color:var(--accent); }
.hero__lead{ color:var(--muted); font-size:18.5px; max-width:520px; }
.hero__cta{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }
.hero__stats{ display:flex; gap:30px; margin-top:42px; flex-wrap:wrap; }
.stat__n{ font-family:var(--ff-display); font-size:30px; font-weight:700; }
.stat__n span{ color:var(--accent); }
.stat__l{ color:var(--faint); font-size:13.5px; font-family:var(--ff-mono); letter-spacing:.04em; }

/* schematic panel */
.panel{
  background:linear-gradient(160deg,var(--surface),var(--bg-2));
  border:1px solid var(--line-strong); border-radius:var(--r-lg);
  box-shadow:var(--shadow); overflow:hidden;
}
.panel__bar{ display:flex; align-items:center; gap:10px; padding:13px 16px; border-bottom:1px solid var(--line); font-family:var(--ff-mono); font-size:12.5px; color:var(--muted); }
.panel__bar .dot{ width:10px; height:10px; border-radius:50%; background:var(--ok); box-shadow:0 0 9px var(--ok); }
.panel__bar .spacer{ margin-left:auto; letter-spacing:.05em; }

/* ---------- Service cards ---------- */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r);
  padding:28px 24px; position:relative; transition:.22s transform, .22s border-color, .22s background;
}
.card:hover{ transform:translateY(-4px); border-color:var(--line-strong); background:var(--surface-2); }
.card__tag{ font-family:var(--ff-mono); font-size:12px; color:var(--faint); letter-spacing:.12em; }
.card__ic{ width:50px; height:50px; border-radius:12px; display:grid; place-items:center; margin-bottom:18px; background:rgba(255,176,32,.10); border:1px solid rgba(255,176,32,.22); color:var(--accent); }
.card h3{ font-size:21px; margin-bottom:10px; }
.card p{ color:var(--muted); font-size:15px; }
.card__list{ list-style:none; padding:0; margin:16px 0 0; }
.card__list li{ color:var(--muted); font-size:14px; padding:6px 0 6px 22px; position:relative; border-top:1px solid var(--line); }
.card__list li:first-child{ border-top:none; }
.card__list li::before{ content:""; position:absolute; left:2px; top:13px; width:7px; height:7px; border-radius:2px; background:var(--accent); }

/* ---------- Process / steps ---------- */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; counter-reset:s; }
.step{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:24px; }
.step__n{ font-family:var(--ff-mono); color:var(--accent); font-size:13px; letter-spacing:.1em; }
.step h4{ font-size:18px; margin:12px 0 8px; }
.step p{ color:var(--muted); font-size:14px; }

/* ---------- Feature rows (why us) ---------- */
.feats{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.feat{ display:flex; gap:16px; padding:22px; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); }
.feat .fi{ flex:0 0 auto; width:44px; height:44px; border-radius:10px; display:grid; place-items:center; color:var(--accent); background:rgba(255,176,32,.10); border:1px solid rgba(255,176,32,.2); }
.feat h4{ font-size:16.5px; margin-bottom:6px; }
.feat p{ color:var(--muted); font-size:14px; }

/* ---------- CTA strip ---------- */
.ctaband{ border:1px solid var(--line-strong); border-radius:var(--r-lg); padding:42px; background:linear-gradient(135deg,var(--surface-2),var(--bg-2)); display:flex; gap:24px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.ctaband h3{ font-size:26px; }
.ctaband p{ color:var(--muted); margin-top:8px; }

/* ---------- Footer ---------- */
.foot{ border-top:1px solid var(--line); padding:54px 0 34px; margin-top:40px; }
.foot__grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:30px; }
.foot h5{ font-family:var(--ff-mono); font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); margin:0 0 14px; }
.foot a{ display:block; color:var(--muted); padding:5px 0; font-size:14.5px; }
.foot a:hover{ color:var(--ink); }
.foot__bottom{ margin-top:40px; padding-top:22px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; color:var(--faint); font-size:13px; font-family:var(--ff-mono); }

/* ---------- Page hero (inner pages) ---------- */
.phead{ padding:56px 0 10px; }
.phead h1{ font-size:clamp(30px,5vw,48px); margin:16px 0 14px; }
.phead p{ color:var(--muted); font-size:18px; max-width:680px; }

/* ---------- Calculator ---------- */
.calc{ display:grid; grid-template-columns:1.35fr .85fr; gap:24px; align-items:start; }
.calc__panel{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:26px; }
.calc__tabs{ display:flex; gap:8px; margin-bottom:24px; flex-wrap:wrap; }
.tab{ font-family:var(--ff-display); font-weight:600; font-size:14.5px; padding:11px 16px; border-radius:10px; border:1px solid var(--line-strong); background:transparent; color:var(--muted); cursor:pointer; transition:.16s; }
.tab.active{ background:var(--accent); color:#1a1304; border-color:var(--accent); }
.field{ margin-bottom:20px; }
.field > label{ display:block; font-size:14px; color:var(--ink); font-weight:500; margin-bottom:9px; }
.field .hint{ color:var(--faint); font-size:12.5px; font-weight:400; }
.row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
input[type="number"], select{
  width:100%; padding:12px 14px; border-radius:10px; background:var(--bg-2);
  border:1px solid var(--line-strong); color:var(--ink); font-family:var(--ff-mono); font-size:15px;
  appearance:none; transition:.16s border-color;
}
input[type="number"]:focus, select:focus{ outline:none; border-color:var(--accent); }
select{ background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%; background-size:5px 5px,5px 5px; background-repeat:no-repeat; }
.stepper{ display:flex; align-items:stretch; gap:0; }
.stepper button{ width:46px; flex:0 0 auto; background:var(--bg-2); border:1px solid var(--line-strong); color:var(--accent); font-size:20px; cursor:pointer; }
.stepper button:first-child{ border-radius:10px 0 0 10px; border-right:none; }
.stepper button:last-child{ border-radius:0 10px 10px 0; border-left:none; }
.stepper input{ border-radius:0; text-align:center; }
.toggle{ display:flex; align-items:center; gap:11px; cursor:pointer; user-select:none; padding:10px 0; }
.toggle input{ position:absolute; opacity:0; }
.toggle .sw{ display:inline-block; width:42px; height:24px; border-radius:20px; background:var(--bg-2); border:1px solid var(--line-strong); position:relative; transition:.18s; flex:0 0 auto; }
.toggle .sw::after{ content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:var(--muted); transition:.18s; }
.toggle input:checked + .sw{ background:rgba(255,176,32,.25); border-color:var(--accent); }
.toggle input:checked + .sw::after{ left:20px; background:var(--accent); }

/* calc result (sticky) */
.calc__out{ background:linear-gradient(160deg,var(--surface-2),var(--bg-2)); border:1px solid var(--line-strong); border-radius:var(--r); padding:24px; position:sticky; top:88px; }
.calc__out h3{ font-size:18px; margin-bottom:4px; }
.calc__out .sub{ color:var(--faint); font-family:var(--ff-mono); font-size:12px; margin-bottom:18px; }
.lineitem{ display:flex; justify-content:space-between; gap:10px; padding:9px 0; border-top:1px dashed var(--line); font-size:14px; color:var(--muted); }
.lineitem:first-of-type{ border-top:none; }
.lineitem b{ color:var(--ink); font-family:var(--ff-mono); font-weight:500; }
.total{ margin-top:18px; padding-top:18px; border-top:1px solid var(--line-strong); }
.total .lbl{ color:var(--muted); font-size:13px; }
.total .val{ font-family:var(--ff-display); font-weight:700; font-size:34px; color:var(--accent); line-height:1.1; }
.total .val small{ font-size:18px; color:var(--ink); }
.disclaim{ margin-top:16px; font-size:12px; color:var(--faint); line-height:1.5; }

/* ---------- Shop ---------- */
.shopbar{ display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-bottom:26px; }
.shopbar input[type="search"]{ flex:1; min-width:200px; padding:12px 16px; border-radius:11px; background:var(--surface); border:1px solid var(--line-strong); color:var(--ink); font-size:15px; }
.shopbar input[type="search"]:focus{ outline:none; border-color:var(--accent); }
.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{ font-family:var(--ff-mono); font-size:13px; padding:9px 14px; border-radius:20px; border:1px solid var(--line-strong); background:transparent; color:var(--muted); cursor:pointer; transition:.16s; }
.chip.active{ background:var(--accent); color:#1a1304; border-color:var(--accent); }
.products{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.prod{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; display:flex; flex-direction:column; transition:.2s border-color,.2s transform; }
.prod:hover{ border-color:var(--line-strong); transform:translateY(-3px); }
.prod__img{ aspect-ratio:4/3; background:var(--bg-2); display:grid; place-items:center; border-bottom:1px solid var(--line); position:relative; }
.prod__img img{ width:100%; height:100%; object-fit:contain; padding:14px; }
.prod__cat{ position:absolute; top:10px; left:10px; font-family:var(--ff-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); background:rgba(11,18,32,.7); padding:4px 8px; border-radius:6px; }
.prod__body{ padding:16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.prod__brand{ font-family:var(--ff-mono); font-size:11.5px; color:var(--faint); letter-spacing:.05em; }
.prod__name{ font-size:14.5px; font-weight:500; line-height:1.35; flex:1; }
.prod__stock{ font-family:var(--ff-mono); font-size:12px; display:inline-flex; align-items:center; gap:7px; }
.prod__stock .d{ width:8px; height:8px; border-radius:50%; }
.in .d{ background:var(--ok); box-shadow:0 0 7px var(--ok); } .in{ color:var(--ok); }
.out .d{ background:var(--alarm); } .out{ color:var(--alarm); }
.prod__foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:6px; }
.prod__price{ font-family:var(--ff-display); font-weight:700; font-size:19px; }
.prod__price small{ display:block; font-family:var(--ff-mono); font-weight:400; font-size:10.5px; color:var(--faint); letter-spacing:.04em; }
.prod .btn{ padding:9px 13px; font-size:13px; }

.notice{ border:1px solid rgba(87,166,255,.3); background:rgba(87,166,255,.07); border-radius:var(--r); padding:18px 20px; display:flex; gap:14px; color:var(--muted); font-size:14px; margin-bottom:26px; }
.notice b{ color:var(--ink); }
.notice .i{ color:var(--info); flex:0 0 auto; }

.skeleton{ background:linear-gradient(100deg,var(--surface) 30%,var(--surface-2) 50%,var(--surface) 70%); background-size:200% 100%; animation:sk 1.3s infinite; }
@keyframes sk{ to{ background-position:-200% 0; } }

/* ---------- Contacts / about ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:46px; align-items:start; }
.infoblock{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:26px; }
.infoblock .li{ display:flex; gap:14px; padding:16px 0; border-top:1px solid var(--line); }
.infoblock .li:first-child{ border-top:none; }
.infoblock .li .ic{ color:var(--accent); flex:0 0 auto; margin-top:2px; }
.infoblock .li b{ display:block; font-size:15px; }
.infoblock .li span{ color:var(--muted); font-size:14px; }
.formgrid label{ display:block; font-size:14px; margin-bottom:8px; }
.formgrid input, .formgrid textarea{ width:100%; padding:12px 14px; border-radius:10px; background:var(--bg-2); border:1px solid var(--line-strong); color:var(--ink); font-family:var(--ff-body); font-size:15px; margin-bottom:16px; }
.formgrid input:focus, .formgrid textarea:focus{ outline:none; border-color:var(--accent); }
.timeline{ list-style:none; padding:0; margin:0; }
.timeline li{ position:relative; padding:0 0 28px 30px; border-left:1px solid var(--line-strong); }
.timeline li:last-child{ border-left-color:transparent; }
.timeline li::before{ content:""; position:absolute; left:-6px; top:2px; width:11px; height:11px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px rgba(255,176,32,.15); }
.timeline .yr{ font-family:var(--ff-mono); color:var(--accent); font-size:14px; }
.timeline h4{ font-size:17px; margin:6px 0; }
.timeline p{ color:var(--muted); font-size:14px; }

/* ---------- helpers / animation ---------- */
@keyframes pulse{ 0%,100%{ opacity:1 } 50%{ opacity:.45 } }
.reveal{ opacity:0; transform:translateY(18px); transition:.6s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view{ opacity:1; transform:none; }

/* ---------- Responsive ---------- */
/* меню сворачивается в «бургер» раньше (длинные пункты на 3 языках) */
@media (max-width:1200px){
  .brand{ min-width:0; }
  .nav__links{ display:none; }
  .nav__links.open{ display:flex; position:absolute; top:68px; left:0; right:0; flex-direction:column; background:var(--bg-2); border-bottom:1px solid var(--line); padding:12px 16px; gap:4px; }
  .nav__links.open a{ font-size:15px; }
  .burger{ display:block; order:3; margin-left:8px; }
  .nav__cta{ order:2; }
  .cart-btn{ order:2; }
  .lang{ order:1; margin-left:auto; }
}
@media (max-width:960px){
  .hero__grid{ grid-template-columns:1fr; gap:34px; }
  .cards, .feats{ grid-template-columns:1fr 1fr; }
  .steps{ grid-template-columns:1fr 1fr; }
  .products{ grid-template-columns:1fr 1fr 1fr; }
  .calc{ grid-template-columns:1fr; }
  .calc__out{ position:static; }
  .split{ grid-template-columns:1fr; gap:28px; }
  .foot__grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:680px){
  .brand small{ display:none; }
  .brand__logo{ height:30px; }
  .nav__cta{ display:none; }
  .section{ padding:64px 0; }
  .cards, .feats, .steps, .products, .row{ grid-template-columns:1fr; }
  .foot__grid{ grid-template-columns:1fr; }
  .ctaband{ padding:28px; }
  .total .val{ font-size:28px; }
}
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
  .reveal{ opacity:1; transform:none; }
}

/* ============ Корзина и оформление заказа ============ */
.cart-btn{ position:relative; display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); border-radius:10px; cursor:pointer; transition:.16s border-color,.16s color; }
.cart-btn:hover{ border-color:var(--accent); color:var(--accent); }
.cart-btn__badge{ position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; padding:0 4px; display:none; align-items:center; justify-content:center; background:var(--accent); color:#1a1304; font-family:var(--ff-mono); font-size:11px; font-weight:700; border-radius:9px; }
.cart-btn__badge:empty{ display:none; }

.cartov{ position:fixed; inset:0; background:rgba(0,0,0,.5); opacity:0; visibility:hidden; transition:.2s; z-index:60; }
.cartov.open{ opacity:1; visibility:visible; }
.cartdr{ position:fixed; top:0; right:0; height:100%; width:420px; max-width:92vw; background:var(--bg-2); border-left:1px solid var(--line); transform:translateX(100%); transition:transform .25s ease; z-index:61; display:flex; flex-direction:column; box-shadow:-20px 0 50px rgba(0,0,0,.35); }
.cartdr.open{ transform:translateX(0); }
.cartdr__head{ display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid var(--line); }
.cartdr__head strong{ font-family:var(--ff-display); font-size:18px; }
.cartdr__x{ background:none; border:0; color:var(--muted); font-size:26px; line-height:1; cursor:pointer; }
.cartdr__x:hover{ color:var(--ink); }
.cartdr__body{ flex:1; overflow-y:auto; padding:18px 20px; }

.cart-empty{ display:flex; flex-direction:column; gap:16px; align-items:center; justify-content:center; height:100%; color:var(--muted); text-align:center; }
.ci-list{ display:flex; flex-direction:column; gap:14px; }
.ci{ display:flex; gap:12px; }
.ci__img{ width:64px; height:64px; flex:0 0 auto; border-radius:10px; background:var(--surface); border:1px solid var(--line); overflow:hidden; display:flex; align-items:center; justify-content:center; color:var(--faint); }
.ci__img img{ width:100%; height:100%; object-fit:cover; }
.ci__main{ flex:1; min-width:0; }
.ci__name{ font-size:13.5px; line-height:1.35; margin-bottom:4px; }
.ci__price{ color:var(--accent); font-size:13px; margin-bottom:6px; }
.ci__qty{ display:flex; align-items:center; gap:8px; }
.ci__qty button{ width:26px; height:26px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); border-radius:7px; cursor:pointer; font-size:15px; }
.ci__qty span{ min-width:20px; text-align:center; font-family:var(--ff-mono); }
.ci__rm{ margin-left:auto; width:auto !important; padding:0 8px; color:var(--muted) !important; font-size:12px !important; border-color:transparent !important; }
.ci__rm:hover{ color:var(--alarm) !important; }

.cart-foot{ margin-top:20px; padding-top:16px; border-top:1px solid var(--line); }
.cart-sum{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:14px; }
.cart-sum strong{ font-size:22px; color:var(--accent); }
.cart-cta{ width:100%; }

.co-form{ display:flex; flex-direction:column; gap:12px; }
.co-form label{ display:flex; flex-direction:column; gap:5px; font-size:13px; color:var(--muted); }
.co-form input, .co-form select, .co-form textarea{ background:var(--surface); border:1px solid var(--line-strong); border-radius:9px; padding:10px 12px; color:var(--ink); font:inherit; font-size:14px; }
.co-form input:focus, .co-form select:focus, .co-form textarea:focus{ outline:none; border-color:var(--accent); }
.co-summary{ background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:12px 14px; }
.co-summary__t{ font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--faint); margin-bottom:8px; }
.co-row{ display:flex; justify-content:space-between; gap:10px; font-size:13px; padding:3px 0; }
.co-row--total{ border-top:1px solid var(--line); margin-top:6px; padding-top:8px; font-size:15px; }
.co-row--total strong{ color:var(--accent); }
.co-status{ font-size:13px; min-height:18px; }
.co-btns{ display:flex; gap:10px; }
.co-btns .btn{ flex:1; }

.done{ text-align:center; display:flex; flex-direction:column; gap:12px; align-items:center; }
.done__ok{ width:54px; height:54px; border-radius:50%; background:rgba(47,191,113,.15); color:var(--ok); display:flex; align-items:center; justify-content:center; font-size:28px; }
.done__no, .done__sum{ font-size:15px; }
.done__pay{ text-align:left; width:100%; background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:14px 16px; margin-top:6px; }
.done__pay-t{ font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--faint); margin-bottom:8px; }
.done__pay ul{ margin:0; padding-left:18px; display:flex; flex-direction:column; gap:8px; font-size:13.5px; line-height:1.45; }
.done__pay .muted{ color:var(--muted); }

/* ============ Пагинация каталога ============ */
.pager{ display:flex; gap:6px; justify-content:center; align-items:center; margin:28px 0 0; flex-wrap:wrap; }
.pager__b{ min-width:38px; height:38px; padding:0 10px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); border-radius:9px; cursor:pointer; font-family:var(--ff-mono); font-size:14px; transition:.15s border-color,.15s color; }
.pager__b:hover:not(:disabled){ border-color:var(--accent); color:var(--accent); }
.pager__b.active{ background:var(--accent); color:#1a1304; border-color:var(--accent); font-weight:700; }
.pager__b:disabled{ opacity:.4; cursor:default; }
.pager__dots{ color:var(--faint); padding:0 2px; }

/* ============ Плавающая корзина (видна при прокрутке) ============ */
.fcart{ position:fixed; right:20px; bottom:20px; z-index:55; display:none; align-items:center; gap:12px; padding:10px 18px 10px 12px; background:var(--accent); color:#1a1304; border:0; border-radius:40px; cursor:pointer; box-shadow:0 12px 32px rgba(0,0,0,.4); transform:translateY(10px); opacity:0; transition:opacity .2s, transform .2s; font:inherit; }
.fcart.show{ display:inline-flex; opacity:1; transform:translateY(0); }
.fcart:hover{ filter:brightness(1.05); }
.fcart__ic{ position:relative; display:inline-flex; align-items:center; }
.fcart__n{ position:absolute; top:-8px; right:-10px; min-width:18px; height:18px; padding:0 4px; display:inline-flex; align-items:center; justify-content:center; background:#1a1304; color:var(--accent); font-family:var(--ff-mono); font-size:11px; font-weight:700; border-radius:9px; }
.fcart__txt{ display:flex; flex-direction:column; line-height:1.15; text-align:left; }
.fcart__sum{ font-weight:700; font-size:15px; }
.fcart__go{ font-size:11px; text-transform:uppercase; letter-spacing:.04em; opacity:.85; }

/* ============ Kaspi QR на экране подтверждения ============ */
.done__qr{ width:100%; display:flex; flex-direction:column; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:16px; margin-top:4px; }
.done__qr-t{ font-size:13px; color:var(--muted); }
.done__qr img{ width:210px; max-width:72%; height:auto; border-radius:10px; background:#fff; padding:8px; }
.done__qr-n{ font-size:12px; text-align:center; }

/* заметка о доставке в оформлении */
.co-info{ font-size:12.5px; line-height:1.45; color:var(--muted); background:var(--surface); border:1px dashed var(--line-strong); border-radius:9px; padding:10px 12px; }

/* разворачиваемое описание товара */
.prod__more{ align-self:flex-start; margin-top:2px; background:none; border:0; padding:0; color:var(--accent); font:inherit; font-size:12.5px; cursor:pointer; }
.prod__more:hover{ text-decoration:underline; }
.prod__desc{ display:none; margin-top:8px; font-size:12.5px; line-height:1.5; color:var(--muted); border-top:1px solid var(--line); padding-top:8px; }
.prod.desc-open .prod__desc{ display:block; }

/* ============ Авторизация ============ */
.auth-btn{ display:inline-flex; align-items:center; gap:8px; height:42px; padding:0 14px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); border-radius:10px; cursor:pointer; font:inherit; font-size:13px; transition:.16s border-color,.16s color; white-space:nowrap; }
.auth-btn:hover{ border-color:var(--accent); color:var(--accent); }
.auth-btn--in{ border-color:var(--accent); }
.auth-btn__u{ font-weight:600; max-width:120px; overflow:hidden; text-overflow:ellipsis; }
.auth-btn__x{ color:var(--faint); font-size:11px; text-transform:uppercase; letter-spacing:.04em; }
.auth-btn--in:hover .auth-btn__x{ color:var(--alarm); }

.authov{ position:fixed; inset:0; background:rgba(0,0,0,.55); opacity:0; visibility:hidden; transition:.2s; z-index:70; }
.authov.open{ opacity:1; visibility:visible; }
.authmodal{ position:fixed; left:50%; top:50%; transform:translate(-50%,-46%) scale(.98); width:400px; max-width:94vw; background:var(--bg-2); border:1px solid var(--line); border-radius:16px; z-index:71; padding:22px 24px 24px; opacity:0; visibility:hidden; transition:.2s; box-shadow:0 30px 80px rgba(0,0,0,.5); }
.authmodal.open{ opacity:1; visibility:visible; transform:translate(-50%,-50%) scale(1); }
.authmodal__x{ position:absolute; top:12px; right:14px; background:none; border:0; color:var(--muted); font-size:26px; line-height:1; cursor:pointer; }
.authmodal__x:hover{ color:var(--ink); }
.authmodal__tabs{ display:flex; gap:6px; margin-bottom:18px; }
.authtab{ flex:1; padding:9px 0; background:var(--surface); border:1px solid var(--line); border-radius:9px; color:var(--muted); font:inherit; font-size:14px; cursor:pointer; }
.authtab.active{ background:var(--accent); color:#1a1304; border-color:var(--accent); font-weight:700; }
.authmodal__note{ font-size:12.5px; color:var(--muted); background:var(--surface); border:1px dashed var(--line-strong); border-radius:9px; padding:9px 11px; margin-bottom:14px; }
.authf{ display:flex; flex-direction:column; gap:12px; }
.authf label{ display:flex; flex-direction:column; gap:5px; font-size:13px; color:var(--muted); }
.authf input{ background:var(--surface); border:1px solid var(--line-strong); border-radius:9px; padding:10px 12px; color:var(--ink); font:inherit; font-size:14px; }
.authf input:focus{ outline:none; border-color:var(--accent); }
.authf .btn{ width:100%; margin-top:2px; }
.auth-status{ font-size:13px; min-height:16px; }
.auth-switch{ background:none; border:0; color:var(--accent); font:inherit; font-size:13px; cursor:pointer; padding:2px; }
.auth-switch:hover{ text-decoration:underline; }

/* замок калькулятора для неавторизованных */
.calc-lock{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; text-align:center; padding:40px 20px; color:var(--muted); }
.calc-lock__ic{ font-size:34px; opacity:.8; }
.calc-lock p{ max-width:340px; line-height:1.5; }

/* тип аккаунта (физлицо/юрлицо) и реквизиты в форме регистрации */
.auth-type{ display:flex; gap:8px; }
.auth-type__o{ flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:9px 10px; border:1px solid var(--line-strong); border-radius:9px; cursor:pointer; font-size:13.5px; color:var(--muted); transition:.15s border-color,.15s color; }
.auth-type__o input{ accent-color:var(--accent); margin:0; }
.auth-type__o:has(input:checked){ border-color:var(--accent); color:var(--ink); background:var(--surface); }
.auth-jur{ display:flex; flex-direction:column; gap:12px; }
.auth-forgot{ font-size:12.5px; opacity:.85; }

/* мягкое ограничение калькулятора: цены размыты до входа */
.masked{ filter:blur(7px); -webkit-user-select:none; user-select:none; pointer-events:none; }
#calcTotal .masked{ filter:blur(12px); }
.calc-gate{ display:flex; flex-direction:column; gap:10px; margin-top:14px; padding:12px 14px; border:1px dashed var(--line-strong); border-radius:10px; background:var(--surface); }
.calc-gate span{ font-size:13px; color:var(--muted); line-height:1.45; }
