:root{
  --bg:#0b1220;
  --card:#0f172a;
  --muted:#93a4b8;
  --text:#e6eef8;
  --accent:#f97316;
  --accent2:#22c55e;
  --border:rgba(148,163,184,.18);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
  --max:1120px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
img{max-width:100%;height:auto}
body{
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial, sans-serif;
  background: radial-gradient(1200px 700px at 15% 0%, rgba(249,115,22,.25), transparent 60%),
              radial-gradient(1000px 600px at 85% 10%, rgba(34,197,94,.14), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.55;
}
a{color:inherit;text-decoration:none}
a:hover{opacity:.92}
.container{max-width:var(--max);margin:0 auto;padding:0 18px}
header{
  position:sticky;top:0;z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(11,18,32,.72);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding:14px 0;
}
.brand{display:flex;align-items:center;gap:12px}
.brand img{width:140px;height:auto;display:block;color:var(--text)}
.navlinks{display:flex;gap:10px;flex-wrap:wrap}
.navlinks a{
  padding:9px 12px;border:1px solid transparent;border-radius:999px;
  color:var(--muted);font-weight:650;font-size:14px;
}
.navlinks a.active, .navlinks a:hover{
  color:var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,.03);
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 14px;border-radius:12px;border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  box-shadow:none;color:var(--text);
  font-weight:750;cursor:pointer;
}
.btn.primary{
  border-color: rgba(249,115,22,.55);
  background: linear-gradient(180deg, rgba(249,115,22,.18), rgba(249,115,22,.08));
}
.btn.primary:hover{background: linear-gradient(180deg, rgba(249,115,22,.22), rgba(249,115,22,.10));}
.btn.ghost{background:transparent}
.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:650;font-size:13px;
}
.hero{
  padding:46px 0 18px;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:-70px;
  display:none;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: 70% center;
  opacity: 0;
  filter: none;
  transform: scale(1.08);
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 70% 30%, rgba(249,115,22,.12), transparent 60%),
    linear-gradient(90deg, rgba(11,18,32,.55), rgba(11,18,32,.15) 55%, rgba(11,18,32,.55)),
    linear-gradient(180deg, rgba(6,10,18,.10), rgba(6,10,18,.65));
  pointer-events:none;
}
.hero .container{position:relative;z-index:1;}

.hero-grid{
  display:grid;grid-template-columns: 1.08fr .92fr;gap:18px;align-items:stretch;
}
@media(max-width: 980px){ .hero-grid{grid-template-columns:1fr} }
.hero-actions{
  display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 8px;
}
.hero-actions .hero-primary{
  padding:14px 18px;font-size:15px;
  box-shadow: 0 10px 28px rgba(249,115,22,.14);
}
@media(max-width: 640px){
  .hero-actions .hero-primary{flex:1 1 100%}
  .hero-actions a:not(.hero-primary){flex:1 1 calc(50% - 6px);justify-content:center}
}

.card{
  border:1px solid var(--border);
  background: rgba(15,23,42,.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad{padding:18px}
h1{font-size:clamp(28px,5vw,38px);line-height:1.1;margin:0 0 12px}
@media(max-width: 560px){ h1{font-size:30px} }
p{margin:0 0 12px;color: rgba(230,238,248,.92)}
small, .muted{color: var(--muted)}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width: 980px){ .grid3{grid-template-columns:1fr} }
.kpi{
  padding:14px;border-radius:16px;border:1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.kpi strong{display:block;font-size:16px}
.kpi span{color:var(--muted);font-weight:650;font-size:13px}
.section{padding:22px 0}
.section h2{margin:0 0 10px;font-size:clamp(18px,3.2vw,22px)}
.toolbar{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between;
}
.inputs{display:flex;gap:10px;flex-wrap:wrap}
input, select, textarea{
  background: rgba(255,255,255,.03);
  border:1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding:11px 12px;
  font-weight:650;
  outline:none;
}
input::placeholder, textarea::placeholder{color:rgba(147,164,184,.8)}
.table{
  width:100%;border-collapse:collapse;overflow:hidden;border-radius:14px;border:1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.table th,.table td{
  padding:10px 10px;border-bottom:1px solid rgba(148,163,184,.12);
  text-align:left;font-size:14px;
}
.table th{color:rgba(230,238,248,.95)}
.table td{color:rgba(230,238,248,.88)}
.table tr:last-child td{border-bottom:none}
.products{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px;
}
@media(max-width: 980px){ .products{grid-template-columns:repeat(2,1fr)} }
.product{
  padding:14px;border-radius:16px;border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  display:flex;flex-direction:column;gap:10px;
}
.product h3{margin:0;font-size:16px}
.product .meta{display:flex;gap:8px;flex-wrap:wrap}
.product .meta .chip{
  padding:6px 10px;border-radius:999px;border:1px solid var(--border);
  color:var(--muted);font-weight:650;font-size:12px;background: rgba(255,255,255,.02);
}
.product .actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}
footer{
  border-top:1px solid var(--border);
  padding:18px 0 28px;margin-top:20px;color:var(--muted);
}
hr.sep{border:none;border-top:1px solid rgba(148,163,184,.14);margin:14px 0}
.notice{
  border:1px dashed rgba(249,115,22,.5);
  background: rgba(249,115,22,.08);
  padding:12px 12px;border-radius:14px;
  color: rgba(230,238,248,.92);
}
.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding:2px 6px;border-radius:8px;border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}


/* Product media + pricing */
.pimg{
  width:100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  padding:10px;
}
.price-row{
  display:flex;
  gap:10px;
  align-items:baseline;
  flex-wrap:wrap;
}
.price-new{
  font-size:18px;
  font-weight:850;
}
.price-old{
  color: var(--muted);
  text-decoration: line-through;
  font-weight:700;
}
.price-note{ color: var(--muted); font-size:12px; font-weight:650; }



/* Catalog filters (sidebar like volcano.org.ua) */
.catalog-grid{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:18px;
  align-items:start;
}
.filters{
  position:sticky;
  top:92px;
}
.filterBox{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.02);
}
.filterHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.filterHeader .title{
  font-weight:700;
  letter-spacing:.2px;
}
.filterActions{display:flex;gap:8px;flex-wrap:wrap}

.filter-group{
  border-top:1px solid var(--border);
  padding-top:10px;
  margin-top:10px;
}
.filter-group summary{
  cursor:pointer;
  user-select:none;
  font-weight:650;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.filter-group summary::-webkit-details-marker{display:none}
.filter-group summary .muted{font-weight:500}
.filter-body{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.chk{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:14px;
  line-height:1.35;
}
.chk input{margin-top:2px; accent-color: var(--accent)}
.rangeRow{display:flex;gap:10px}
.rangeRow input{width:100%}
.small{font-size:12px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chipbtn{
  border:1px solid var(--border);
  border-radius:999px;
  padding:6px 10px;
  display:inline-flex;
  gap:8px;
  align-items:center;
  background: rgba(255,255,255,.02);
  font-size:13px;
}
.chipbtn button{
  border:0;background:transparent;color:var(--muted);
  cursor:pointer;padding:0 2px;
}
.chipbtn button:hover{color:var(--text)}

/* Mobile filter drawer */
.only-mobile{display:none}
.drawer-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.6);
  z-index:110;
}
@media (max-width: 900px){
  .catalog-grid{grid-template-columns:1fr}
  .filters{position:fixed; inset: 0 0 0 auto; width:min(420px, 92vw); top:0; transform: translateX(105%); transition: transform .22s ease; z-index:120; padding:14px; background: rgba(11,18,32,.98); backdrop-filter: blur(10px); overflow:auto;}
  .filters.open{transform: translateX(0)}
  .drawer-backdrop.open{display:block}
  .only-mobile{display:inline-flex}
}


/* Catalog sidebar filters */

.catalog-layout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items:start;
}
.filters{position:sticky; top:88px;}
.filters-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.filter-group{border:1px solid rgba(148,163,184,.12);border-radius:14px;background: rgba(255,255,255,.02);margin-bottom:10px;overflow:hidden}
.filter-group summary{
  cursor:pointer;
  padding:10px 12px;
  font-weight:800;
  color: rgba(230,238,248,.95);
  list-style:none;
}
.filter-group summary::-webkit-details-marker{display:none}
.filter-body{padding:10px 12px;border-top:1px solid rgba(148,163,184,.12)}
.check{display:flex;align-items:center;gap:10px;padding:6px 0;color:rgba(230,238,248,.9);font-weight:650}
.check input{width:16px;height:16px}
.filters-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.only-mobile{display:none}

.filters-overlay{
  position:fixed;inset:0;
  background: rgba(0,0,0,.55);
  z-index:70;
}

@media(max-width: 980px){
  .catalog-layout{grid-template-columns:1fr}
  .filters{
    position:fixed;
    top:0; left:0; bottom:0;
    width:min(92vw, 380px);
    z-index:80;
    transform: translateX(-110%);
    transition: transform .2s ease;
    overflow:auto;
    border-radius: 0 18px 18px 0;
  }
  body.filters-open .filters{ transform: translateX(0); }
  body.filters-open .filters-overlay{ display:block; }
  .filters-overlay[hidden]{display:none}
  .only-mobile{display:inline-flex}
}


/* Hero installation image */
.hero-media{
  margin: 10px 0 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.12);
  background: rgba(255,255,255,.02);
}
.hero-media img{
  display:block;
  width:100%;
  height:auto;
}



/* Home upgrades */
.cta-row{display:flex;gap:10px;flex-wrap:wrap}
.contact-mini{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.trustbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:14px}
.trust{padding:10px 12px;border:1px solid rgba(148,163,184,.12);border-radius:14px;background:rgba(255,255,255,.02);display:flex;gap:10px;align-items:flex-start}
.trust strong{display:block}
.how-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.how-step h3{margin:6px 0}
.step-n{width:34px;height:34px;border-radius:999px;display:flex;align-items:center;justify-content:center;
  background: rgba(249,115,22,.18); border:1px solid rgba(249,115,22,.35); font-weight:900}
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.tile{border:1px solid rgba(148,163,184,.12);border-radius:16px;padding:14px 14px;background:rgba(255,255,255,.02);
  color:var(--text); text-align:left; cursor:pointer; box-shadow:none}
.tile:hover{transform:translateY(-1px)}
.tile strong{display:block;font-size:16px}
.quick-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px;align-items:start}
.quick-stack{display:grid;grid-template-columns:1fr;gap:14px;align-items:start}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.form-grid label span{display:block;margin-bottom:6px}
.form-grid input,.form-grid select{width:100%}
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.topmodels{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.topmodel .tm-img{width:100%;height:auto;border-radius:14px;border:1px solid rgba(148,163,184,.12);background:rgba(255,255,255,.02)}
.scheme{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}
.scheme-box{flex:1;min-width:220px}
.scheme-arrow{display:flex;align-items:center;justify-content:center;font-weight:900;color:rgba(230,238,248,.8);padding:0 4px}
.faq details{margin-bottom:10px}
.faq summary{cursor:pointer;font-weight:900}
.contact-card{display:flex;align-items:center;justify-content:space-between;gap:16px}
.contact-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.toast{
  position:fixed;left:50%;bottom:18px;transform:translateX(-50%);
  background: rgba(15,23,42,.92);
  border:1px solid rgba(148,163,184,.18);
  padding:10px 14px;border-radius:999px;box-shadow:var(--shadow);
  z-index:120;
}

/* Mini panel after add-to-cart (actions: Checkout + Quick подбор) */
.cart-snack{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 24px));
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.20);
  background: rgba(15,23,42,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  z-index: 130;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-snack__text{ flex: 1; min-width: 0; }
.cart-snack__title{ font-weight: 800; letter-spacing: .2px; }
.cart-snack__meta{ font-size: 13px; opacity: .85; margin-top: 2px; }
.cart-snack__actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.cart-snack__close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.cart-snack__close:hover{ background: rgba(255,255,255,.06); }
@media (max-width: 520px){
  .cart-snack{ flex-wrap: wrap; padding-right: 52px; }
  .cart-snack__actions{ width: 100%; }
  .cart-snack__actions .btn{ flex: 1 1 160px; justify-content: center; }
  .cart-snack__close{ position: absolute; right: 10px; top: 10px; }
}

@media(max-width: 980px){
  .trustbar{grid-template-columns:repeat(2,1fr)}
  .how-grid{grid-template-columns:1fr;gap:10px}
  .tiles{grid-template-columns:repeat(2,1fr)}
  .quick-grid{grid-template-columns:1fr}
  .topmodels{grid-template-columns:1fr}
  .contact-card{flex-direction:column;align-items:flex-start}
  .contact-actions{justify-content:flex-start}
}

.section, .hero{scroll-margin-top:90px}

@media(max-width: 560px){ .products{grid-template-columns:1fr} }
@media(max-width: 980px){ .grid3{grid-template-columns:repeat(2,1fr)} }
@media(max-width: 560px){ .grid3{grid-template-columns:1fr} }
@media(max-width: 980px){ .how-grid{grid-template-columns:repeat(2,1fr)} }
@media(max-width: 560px){ .how-grid{grid-template-columns:1fr} }
@media(max-width: 980px){ .topmodels{grid-template-columns:repeat(2,1fr)} }
@media(max-width: 560px){ .topmodels{grid-template-columns:1fr} }
@media(max-width: 980px){ .kpi-grid{grid-template-columns:repeat(2,1fr)} }
@media(max-width: 420px){ .kpi-grid{grid-template-columns:1fr} }
@media(max-width: 560px){ .form-grid{grid-template-columns:1fr} }
@media(max-width: 560px){ input, select, textarea{font-size:16px} }
@media(max-width: 560px){ .hero{padding:32px 0 14px} }

/* Mobile nav drawer */
.navtoggle{display:none; padding:10px 12px; border-radius:12px}
.nav-cta{white-space:nowrap}

/* Prevent background scroll when the drawer is open (mobile/iOS) */
body.nav-open{overflow:hidden}

.navdrawer-overlay{
  display:none;
  position:fixed;inset:0;
  background: rgba(0,0,0,.55);
  z-index:90;
}
.navdrawer{
  pointer-events:none;
  position:fixed;
  top:0;left:0;bottom:0;
  width:min(92vw, 380px);
  z-index:100;
  transform: translateX(-110%);
  transition: transform .2s ease;
}
.navdrawer-panel{
  height:100%;
  background: rgba(15,23,42,.98);
  border-right:1px solid rgba(148,163,184,.14);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
.navdrawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.navdrawer-links{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.navdrawer-links a{
  display:block;
  padding:12px 12px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:14px;
  background: rgba(255,255,255,.02);
  color:var(--text);
  font-weight:750;
}
.navdrawer-links a:hover{transform:translateY(-1px)}
.navdrawer-contacts{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}
body.nav-open .navdrawer{ transform: translateX(0); pointer-events:auto; }
body.nav-open .navdrawer-overlay{ display:block; }
.navdrawer-overlay[hidden]{display:none}
.navdrawer[hidden]{display:none}

@media(max-width: 980px){
  .navlinks{display:none}
  .navtoggle{display:inline-flex}
  .nav-cta{display:none}
  .brand img{width:120px}
}
@media(max-width: 420px){
  .brand img{width:110px}
}

footer{padding-bottom:calc(24px + env(safe-area-inset-bottom));}

/* Order modal */
body.modal-open{overflow:hidden}
/* Modal must sit above drawer/cart overlays */
.modal{position:fixed; inset:0; z-index:21010}
.modal__overlay{position:absolute; inset:0; background:rgba(0,0,0,.55)}
.modal__panel{
  position:relative;
  width:min(92vw, 560px);
  margin: min(10vh, 60px) auto 0;
  border-radius:20px;
  background: rgba(15,23,42,.98);
  border:1px solid rgba(148,163,184,.14);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.modal__head{
  display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(148,163,184,.12);
}
.modal__body{padding:14px}
.order-product{padding:10px 12px;border:1px solid rgba(148,163,184,.12);border-radius:14px;background:rgba(255,255,255,.02)}
.order-product__name{font-weight:900; margin-top:4px}
.order-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.order-form label span{display:block;margin-bottom:6px}
.order-form input{width:100%}
.order-fallback{margin-top:12px}
#orderStatus.ok{border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08)}
#orderStatus.err{border-color: rgba(244,63,94,.35); background: rgba(244,63,94,.08)}
@media(max-width: 640px){
  .modal__panel{margin: 10px auto 0}
  .order-form{grid-template-columns:1fr}
}


/* Product page refinements */
#pMedia{
  display:flex;
  justify-content:center;
}
#pMedia .pimg{
  width:min(100%, 460px);
  max-height: 320px;
  aspect-ratio: auto;
  object-fit: contain;
  padding: 0;
  border-radius: 16px;
}
@media(max-width: 560px){
  #pMedia .pimg{ max-height: 240px; }
}

/* Make CTA row more thumb-friendly on phones */
@media(max-width: 560px){
  #pActions, .actions{
    gap: 8px;
  }
  #pActions > *, .actions > *{
    flex: 1 1 100%;
  }
}

/* Modal better on small screens */
.modal__panel{
  max-height: calc(100vh - 24px);
  overflow: auto;
}
@media(max-width: 560px){
  .modal__panel{
    width: calc(100vw - 16px);
    margin: 8px auto 0;
  }
}

/* Improve tap targets in drawer */
@media(max-width: 980px){
  .navdrawer-links a{ padding: 14px 14px; }
}

/* Avoid horizontal overflow */
.container{max-width: 1120px}
*{word-wrap:break-word}

/* Card images: tighter on phones */
@media(max-width: 560px){
  .pimg{ padding: 8px; }
}

/* Variant + lineup */
.variant{
  display:flex;
  align-items:center;
  gap:8px;
  margin: 8px 0 10px;
}
.vlink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.02);
  color: var(--text);
  font-weight: 850;
  font-size: 12px;
}
.vlink.active{
  border-color: rgba(249,115,22,.45);
  background: rgba(249,115,22,.12);
}
.vsep{opacity:.65}
.lineup{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 10px;
}
.lchip{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.12);
  background: rgba(255,255,255,.02);
  color: var(--text);
  font-weight: 750;
  font-size: 12px;
}
.lchip.active{
  border-color: rgba(34,197,94,.42);
  background: rgba(34,197,94,.10);
}
@media(max-width:560px){
  .variant{margin:6px 0 8px}
  .lineup{gap:6px}
}

/* Variant + lineup card tweaks */
.product .variant{margin: 8px 0 8px}
.product .lineup{margin-top: 10px}
.product .lineup .lchip{white-space:nowrap}

/* Floating contact widget */
.fab{
  position: fixed;
  left: 16px;
  bottom: 16px;
  /* Keep the phone button clickable above sticky bars and other layers */
  z-index: 12060;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(249,115,22,.35);
  background: rgba(15,23,42,.92);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
}
.fab:hover{ transform: translateY(-1px); }
.fab:active{ transform: translateY(0); }
@media(max-width: 560px){
  .fab{ left: 12px; bottom: 12px; width: 50px; height: 50px; }
}

/* Floating cart button */
.cart-fab{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 12050;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(245,158,11,.35);
  background: rgba(15,23,42,.92);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
}
.cart-fab:hover{ transform: translateY(-1px); }
.cart-fab:active{ transform: translateY(0); }
.cart-fab__ico{ display:flex; }
.cart-fab__txt{ display:none; font-size:12px; font-weight:800; letter-spacing:.2px; opacity:.92; }
.cart-badge{
  position:absolute;
  right: 10px;
  top: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  font-weight: 800;
  background: rgba(245,158,11,.95);
  color: #111827;
  border: 1px solid rgba(245,158,11,.45);
}
@media(min-width: 981px){
  .cart-fab{ width:auto; height:54px; padding:0 14px 0 12px; gap:8px; }
  .cart-fab__txt{ display:inline-block; }
  .cart-badge{ right: 8px; top: 8px; }
}
@media(max-width: 560px){
  .cart-fab{ right: 12px; bottom: 12px; width: 54px; height: 54px; }
}


/* Contact modal layout */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-box{
  padding: 12px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
}
@media(max-width: 760px){
  .contact-grid{ grid-template-columns: 1fr; }
}

/* Quick picker responsiveness */
@media(max-width: 760px){
  .form-grid{grid-template-columns:1fr}
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width: 560px){
  .products{grid-template-columns:1fr}
}


/* Quick results compact */
.products--qc{
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 12px;
  align-items: stretch;
}
@media(max-width: 920px){
  .products--qc{ grid-template-columns: 1fr; }
}
.products--qc .product{
  display:grid;
  grid-template-columns: 112px 1fr;
  gap: 10px 14px;
  padding: 12px;
}
.products--qc .product > .pimg{
  grid-column: 1;
  grid-row: 1 / span 6;
  width: 112px;
  height: 112px;
  aspect-ratio: auto;
  padding: 8px;
}
.products--qc .product > *:not(.pimg){
  grid-column: 2;
}
.products--qc .meta{gap:6px}
.products--qc .meta .chip{padding:5px 9px;font-size:11px}
.products--qc .variant{margin: 2px 0 6px}
.products--qc .vlink{font-size:12px}
.products--qc .lineup{gap:6px;margin-top:6px}
.products--qc .lineup .lchip{padding:5px 8px;font-size:11px}
.products--qc h3{font-size:15px}
.products--qc .price-row{gap:8px}
.products--qc .price-new{font-size:16px}
.products--qc .price-old{font-size:12px}
.products--qc .price-note{font-size:11px;opacity:.85}
.products--qc .actions{gap:8px}
.products--qc .actions .btn{padding:8px 10px;font-size:12px}
@media(max-width: 560px){
  .products--qc .product{
    grid-template-columns: 92px 1fr;
    gap: 10px 12px;
  }
  .products--qc .product > .pimg{
    width: 92px;
    height: 92px;
    padding: 6px;
  }
}


/* QC card clarity */
.qc-card{ overflow: hidden; }
.products--qc .product.qc-card{
  display:grid;
  grid-template-columns: 112px 1fr;
  gap: 10px 14px;
  padding: 12px;
}
.products--qc .product.qc-card > .pimg{
  grid-column: 1;
  grid-row: 1 / span 10;
  width: 112px;
  height: 112px;
  padding: 8px;
}
.products--qc .qc-main{ grid-column: 2; display:flex; flex-direction:column; gap:8px; }
.products--qc .qc-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.products--qc .qc-title{ margin:0; font-size:15px; line-height:1.25; }
.products--qc .qc-price{ text-align:right; min-width: 135px; }
.products--qc .qc-price-new{ font-weight:800; font-size:16px; letter-spacing:.2px; }
.products--qc .qc-price-old{ font-size:12px; text-decoration: line-through; opacity:.65; margin-top:2px; }
.products--qc .qc-price-note{ font-size:11px; opacity:.75; margin-top:2px; }

.products--qc .qc-sub{ display:flex; flex-wrap:wrap; gap:6px; }
.products--qc .qc-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.14);
  background: rgba(255,255,255,.02);
  font-size: 11px;
  opacity: .95;
}
.products--qc .qc-pill b{ font-weight:700; }

.products--qc .qc-meta{ margin-top:0; }
.products--qc .qc-links{ display:flex; flex-direction:column; gap:6px; }
.products--qc .qc-actions{ margin-top:2px; }

@media(max-width: 560px){
  .products--qc .product.qc-card{ grid-template-columns: 92px 1fr; }
  .products--qc .product.qc-card > .pimg{ width:92px; height:92px; padding:6px; }
  .products--qc .qc-price{ min-width: 118px; }
  .products--qc .qc-price-new{ font-size:15px; }
}


/* QC card v24 */
.products--qc{ gap: 14px; }
.products--qc .qc-card{
  display:grid;
  grid-template-columns: 96px 1fr;
  gap: 10px 14px;
  padding: 12px;
}
.products--qc .qc-card > .pimg{
  width: 96px;
  height: 96px;
  padding: 6px;
  grid-row: 1 / span 10;
}
.products--qc .qc-head{ align-items:flex-start; }
.products--qc .qc-title{ font-size: 15px; }
.products--qc .qc-price{ min-width: 140px; }
.products--qc .qc-price-new{ font-size: 16px; }
.products--qc .qc-info{
  font-size: 12px;
  opacity: .92;
}
.products--qc .qc-dot{ opacity:.55; padding: 0 4px; }
.products--qc .qc-meta .chip{ padding:5px 9px; font-size:11px; }
.products--qc .qc-actions{ gap: 8px; }
.products--qc .qc-actions .btn{ padding: 8px 10px; font-size: 12px; }
.products--qc .qc-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-top: 2px;
}
.products--qc .qc-lineup-toggle{
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.02);
  color: inherit;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  cursor: pointer;
}
.products--qc .qc-lineup-toggle:hover{ border-color: rgba(148,163,184,.28); }

.products--qc .lineup--qc{
  margin-top: 8px;
  display:flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.products--qc .lineup--qc .lchip{
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 11px;
}
@media(max-width: 560px){
  .products--qc .qc-card{ grid-template-columns: 80px 1fr; }
  .products--qc .qc-card > .pimg{ width: 80px; height: 80px; }
  .products--qc .qc-price{ min-width: 120px; }
}


/* QC card v25 (clear + no duplication) */
.products--qc{ gap: 14px; }
.products--qc .qc-card{
  display:grid;
  grid-template-columns: 84px 1fr;
  gap: 10px 14px;
  padding: 12px;
}
.products--qc .qc-card > .pimg{
  width: 84px;
  height: 84px;
  padding: 6px;
  grid-row: 1 / span 10;
}
.products--qc .qc-main{ display:flex; flex-direction:column; gap:8px; }
.products--qc .qc-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.products--qc .qc-title{ margin:0; font-size:15px; line-height:1.25; }
.products--qc .qc-price{ text-align:right; min-width: 150px; }
.products--qc .qc-price-new{ font-weight:800; font-size:16px; color: var(--text); }
.products--qc .qc-price-old{ font-size:12px; text-decoration: line-through; opacity:.65; margin-top:2px; }
.products--qc .qc-price-note{ font-size:11px; opacity:.75; margin-top:2px; }

.products--qc .qc-info{ font-size:12px; opacity:.92; }
.products--qc .qc-dot{ opacity:.55; padding: 0 4px; }
.products--qc .qc-meta .chip{ padding:5px 9px; font-size:11px; }
.products--qc .qc-foot{ display:flex; align-items:center; justify-content:flex-start; }

.variant--qc{ display:flex; align-items:center; gap:8px; }
.variant--qc .variant-label{ font-size:12px; opacity:.8; }
.variant--qc .vchip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.02);
  font-size: 12px;
  color: inherit;
  text-decoration: none;
}
.variant--qc .vchip.active{
  border-color: rgba(249,115,22,.55);
  box-shadow: 0 0 0 2px rgba(249,115,22,.12) inset;
}

@media(max-width: 560px){
  .products--qc .qc-card{ grid-template-columns: 74px 1fr; }
  .products--qc .qc-card > .pimg{ width: 74px; height: 74px; }
  .products--qc .qc-price{ min-width: 120px; }
  .products--qc .qc-price-new{ font-size:15px; }
}


/* Site footer */
.site-footer{
  border-top:1px solid var(--border);
  padding: 26px 0 18px;
  margin-top: 22px;
  color: var(--muted);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 18px;
  align-items:start;
}
.footer-col{
  border: 1px solid rgba(148,163,184,.10);
  background: rgba(255,255,255,.02);
  border-radius: 16px;
  padding: 16px;
}
.footer-brand{
  border-color: rgba(249,115,22,.22);
  background: linear-gradient(180deg, rgba(249,115,22,.06), rgba(255,255,255,.02));
}
.footer-logo{
  font-weight: 900;
  letter-spacing: .6px;
  color: var(--text);
  font-size: 16px;
}
.footer-tag{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  opacity: .92;
}
.footer-title{
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-subtitle{
  margin-top: 12px;
  font-weight: 700;
  color: var(--text);
  opacity: .9;
  font-size: 12px;
}
.footer-link{
  display:block;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
}
.footer-link:hover{ color: var(--text); }
.footer-mini{ font-size: 12px; line-height: 1.4; margin-top: 10px; }
.footer-badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top: 12px; }
.footer-badges .badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.02);
  font-size: 12px;
  color: var(--text);
  opacity: .95;
}
.footer-cta{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }
.footer-mess{ display:flex; gap:8px; flex-wrap:wrap; }
.footer-chip{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.02);
  color: var(--text);
  font-size: 12px;
  text-decoration: none;
}
.footer-chip:hover{ border-color: rgba(148,163,184,.28); }
.footer-bottom{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(148,163,184,.12);
  display:flex;
  gap: 10px 18px;
  justify-content: space-between;
  flex-wrap: wrap;
}

@media(max-width: 980px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media(max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-col{ padding: 14px; }
}


.footer-logo img{
  width: 160px;
  height: auto;
  display: block;
  color: var(--text);
}
@media(max-width: 520px){
  .footer-logo img{ width: 150px; }

  /* Mobile: make hero + VR compare more compact (iOS Safari friendly) */
  .hero{ padding: 22px 0 10px; }
  .section{ padding: 16px 0; }
  .vr-compare-top{ padding-top: 14px; }
  .hero-grid{ gap: 14px; }
  .hero-visual{ min-height: 240px; padding: 10px; }
  .hero-visual__img{ max-height: 240px; }
  .vr-compare{ margin-top: 18px; padding: 20px 0 26px; }
  .vr-compare-grid{ gap: 14px; }
  .vr-compare-note{ margin-top: 10px; }

}



/* ===== Homepage conversion upgrades (v32) ===== */
.section--tight{ padding-top: 0; }
.cta-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(255,255,255,.03);
}
.cta-strip__actions{ display:flex; gap:10px; flex-wrap:wrap; }
@media(max-width: 720px){
  .cta-strip{ flex-direction:column; align-items:flex-start; }
}

/* Compare */
.segmented{
  display:inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.02);
}
.segmented__btn{
  border: 0;
  background: transparent;
  color: inherit;
  padding: 8px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:700;
  opacity:.9;
}
.segmented__btn.is-active{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(148,163,184,.22);
  opacity: 1;
}

.table-wrap{ overflow:auto; }
table.compare{
  width:100%;
  border-collapse: collapse;
  min-width: 860px;
}
table.compare th, table.compare td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148,163,184,.12);
  text-align:left;
  vertical-align: middle;
  white-space: nowrap;
}
table.compare th{ font-size: 12px; opacity:.8; }
table.compare td a{ color: inherit; text-decoration: none; }
table.compare td a:hover{ text-decoration: underline; }
.btn.sm{ padding: 8px 10px; font-size: 12px; }

/* Quick results clarity */
.products--qc .qc-why{
  font-size: 12px;
  opacity: .9;
}

/* Mobile action bar */
.mobilebar{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 55;
  display: none;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.16);
  background: rgba(20,20,24,.85);
  backdrop-filter: blur(10px);
}
.mobilebar .btn{ flex:1; justify-content:center; }
@media(max-width: 820px){
  .mobilebar{ display:flex; }
}


/* ====== Home layout polish (20260122-35) ====== */
.hero-grid--single {
  grid-template-columns: 1fr;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .grid2 { grid-template-columns: 1fr; }
}

.media-card .media-img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.02);
}
.popular-card .card-ico {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  opacity: .9;
}
.popular-card .card-ico * {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.why-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  font-size: 18px;
  flex: 0 0 auto;
}

.accordion-stack details > summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  user-select: none;
}
.accordion-stack details > summary::-webkit-details-marker {
  display: none;
}
.accordion-stack details > summary::after {
  content: "＋";
  float: right;
  opacity: .75;
}
.accordion-stack details[open] > summary::after {
  content: "—";
}
.accordion-stack details > summary {
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(255,255,255,.10);
  margin-bottom: 12px;
}

.t-ico{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;border:1px solid rgba(148,163,184,.12);background:rgba(255,255,255,.02);font-weight:700;flex:0 0 auto}


/* ===== Home hero split layout (v35) ===== */
.hero-grid--split{align-items:stretch}
.hero-copy{display:flex;flex-direction:column;gap:14px}
.hero-visual{display:flex;align-items:center;justify-content:center;padding:10px;overflow:hidden;background:rgba(255,255,255,.92);border-radius:22px;border:1px solid rgba(255,255,255,.10);min-height:420px}
.hero-visual__img{width:100%;height:100%;display:block;object-fit:contain;background:transparent;border-radius:16px;filter:drop-shadow(0 10px 30px rgba(0,0,0,.25));max-height:520px;transform:scale(1.06);transform-origin:center}
.hero-visual__fade{display:none;position:absolute;inset:0;background:linear-gradient(90deg, rgba(11,18,32,.56), rgba(11,18,32,0) 52%), radial-gradient(900px 520px at 70% 30%, rgba(249,115,22,.18), transparent 62%);pointer-events:none}

@media (max-width: 920px){
  .hero-visual{min-height:360px}
  .hero-visual__img{max-height:420px;transform:scale(1.03)}
}
@media (max-width: 640px){
  .hero-visual{min-height:260px;padding:8px}
  .hero-visual__img{max-height:320px;transform:scale(1.02)}
}

/* ===== How steps as rows ===== */
.how-rows{display:flex;flex-direction:column;gap:12px;margin-top:14px}
.how-row{display:flex;gap:14px;align-items:flex-start}
.how-row h3{margin:0}
.how-row p{margin:.35rem 0 0}

/* ===== FAQ items inside accordion ===== */
.faq-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.faq-item{border:1px solid var(--border);border-radius:14px;padding:10px 12px;background:rgba(255,255,255,.02)}
.faq-item summary{cursor:pointer;font-weight:700;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item > div{padding-top:8px}


/* Product add-ons (AC upsell) */
.addons-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;}
.addon-card{display:flex;gap:12px;align-items:center;}
.addon-card img{width:92px;height:92px;object-fit:cover;border-radius:14px;background:#0b1220;border:1px solid rgba(255,255,255,.08);}
.addon-card .meta{flex:1;min-width:0;}
.addon-card .name{font-weight:800;font-size:14px;line-height:1.2;margin:0 0 4px;}
.addon-card .sub{font-size:12px;opacity:.8;margin:0;}
.addon-card .actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap;}
@media(max-width:720px){.addons-grid{grid-template-columns:1fr;}}

/* ===== Product hero + gallery responsive (v17) ===== */
body.page-product .hero::after{
  /* прибираємо "мутність" на сторінках товарів */
  opacity: 0;
}
body.page-product .hero{
  background-image: none;
}
body.page-product .hero.card{
  background: rgba(15, 23, 42, .88);
  border-color: rgba(255,255,255,.10);
}

/* компактніший split-hero */
body.page-product .hero-grid--split{
  align-items: start;
}

/* Product gallery */
.pgallery{display:flex;flex-direction:column;gap:12px}
.pgallery__main{display:block;position:relative;border-radius:18px;overflow:hidden;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10)}
.pgallery__main img{width:100%;height:auto;max-height:440px;aspect-ratio:1/1;object-fit:contain;display:block}
.pgallery__zoom{position:absolute;right:10px;top:10px;background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(6px);color:#fff;border-radius:12px;padding:8px 10px;font-size:12px;line-height:1;display:flex;gap:6px;align-items:center}
.pgallery__thumbs{display:flex;gap:8px;flex-wrap:wrap}
.pgallery__thumb{width:64px;height:64px;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.10);padding:0;cursor:pointer}
.pgallery__thumb img{width:100%;height:100%;object-fit:cover;display:block;opacity:.92;transition:opacity .18s ease, transform .18s ease}
.pgallery__thumb:hover img{opacity:1;transform:scale(1.03)}
.pgallery__thumb.is-active{outline:2px solid rgba(245,158,11,.55);border-color:rgba(245,158,11,.30)}

/* Lightbox */
.pglb{position:fixed;inset:0;background:rgba(2,6,23,.72);backdrop-filter:blur(10px);display:none;align-items:center;justify-content:center;z-index:9999;padding:20px}
.pglb.is-open{display:flex}
.pglb__inner{max-width:min(980px, 95vw);max-height:92vh;position:relative}
.pglb__img{width:100%;height:auto;max-height:92vh;object-fit:contain;border-radius:18px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.pglb__close{position:absolute;right:-10px;top:-10px;width:42px;height:42px;border-radius:14px;background:rgba(0,0,0,.45);border:1px solid rgba(255,255,255,.14);color:#fff;cursor:pointer}

/* Sticky bottom actions (тільки мобайл) */
.sticky-actions{position:fixed;left:0;right:0;bottom:0;z-index:50;display:none;gap:10px;padding:10px 12px;background:rgba(2,6,23,.72);border-top:1px solid rgba(255,255,255,.10);backdrop-filter:blur(12px)}
.sticky-actions a,.sticky-actions button{flex:1;min-height:46px;border-radius:16px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;font-weight:700;letter-spacing:.2px;display:flex;align-items:center;justify-content:center;gap:8px}
.sticky-actions a.primary,.sticky-actions button.primary{background:linear-gradient(135deg, rgba(245,158,11,.95), rgba(251,191,36,.85));color:#111827;border-color:rgba(245,158,11,.40)}
.sticky-actions .ico{width:18px;height:18px;opacity:.95}

@media (max-width: 980px){
  body.page-product .hero-grid--split{grid-template-columns:1fr}
  body.page-product .hero-visual{min-height:auto;padding:16px}
  .sticky-actions{display:flex}
  /* щоб sticky не перекривав контент */
  body.page-product{padding-bottom:78px}
}


/* =========================================================
   Mobile UX fixes: sticky bar, FAB overlap, call sheet
   ========================================================= */

@media (max-width: 980px){
  /* Ensure sticky bar is always clickable and above page layers */
  .sticky-actions{ z-index: 12000; }

  /* Keep the floating phone button from overlapping sticky actions */
  body.page-product .fab,
  body.has-sticky-actions .fab,
  body.page-product .cart-fab,
  body.has-sticky-actions .cart-fab{
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

.navdrawer{ z-index: 13000; }
.navdrawer-overlay{ z-index: 12999; }

/* Call sheet */
.call-sheet{ position: fixed; inset: 0; z-index: 20000; }
.call-sheet[hidden]{ display:none; }
.call-sheet__overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.call-sheet__panel{
  position:absolute; left:0; right:0; bottom:0;
  background: rgba(16,24,39,.96);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 40px rgba(0,0,0,.45);
}
.call-sheet__handle{
  width: 48px; height: 5px; border-radius: 999px;
  background: rgba(255,255,255,.18);
  margin: 2px auto 10px;
}
.call-sheet__title{
  text-align:center;
  font-weight: 700;
  margin-bottom: 10px;
}
.call-sheet__actions{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.call-sheet__btn{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: inherit;
  text-decoration:none;
}
.call-sheet__btn:active{ transform: translateY(1px); }
.call-sheet__btn--ghost{
  justify-content:center;
  background: rgba(255,255,255,.02);
}

.call-sheet-open{ overflow:hidden; }

.call-sheet__ico{
  width: 22px; height: 22px;
  border-radius: 8px;
  display:inline-block;
  background: rgba(255,255,255,.12);
  position: relative;
  flex: 0 0 auto;
}
.call-sheet__ico::after{
  content:"";
  position:absolute; inset:0;
  -webkit-mask: var(--mask) center/contain no-repeat;
  mask: var(--mask) center/contain no-repeat;
  background: #fff;
  opacity: .92;
}

.call-sheet__ico--phone{ --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.62 10.79a15.05 15.05 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 011 1V20a1 1 0 01-1 1C10.07 21 3 13.93 3 5a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.46.57 3.58a1 1 0 01-.25 1.01l-2.2 2.2z'/%3E%3C/svg%3E"); }
.call-sheet__ico--tg{ --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21 3L3 11l7 2 2 7 3-4 4 3 2-16zM10 13l8-7-6 8-.2 3.1-1.3-3.2L10 13z'/%3E%3C/svg%3E"); }
.call-sheet__ico--viber{ --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v12H9l-5 4V4zm6 3h2l2 7 2-7h2l-3 10h-2L10 7z'/%3E%3C/svg%3E"); }
.call-sheet__ico--wa{ --mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v12H8l-4 4V4zm4 4h8v2H8V8zm0 4h10v2H8v-2z'/%3E%3C/svg%3E"); }

/* Extra: prevent any overlay layer from blocking taps */
body.page-product .hero::after{ pointer-events:none; }

/* ===== Home: VR lineup comparison (after hero) ===== */
.vr-compare-top{padding-top: 28px;}
.vr-compare-head{display:flex; gap:18px; align-items:stretch; justify-content:space-between; margin-bottom:14px;}
.vr-compare-head__text{flex: 1 1 620px; min-width: 260px;}
.vr-compare-head__text h2{margin:0 0 8px 0;}
.vr-compare-head__actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px;}

.vr-compare-note{flex: 0 0 360px; max-width: 420px; padding:14px;}
.vr-compare-note__title{font-weight:800; margin-bottom:8px;}
.vr-compare-note__list{margin:0; padding-left:18px; color: var(--muted);}
.vr-compare-note__list li{margin:6px 0;}

.vr-compare-table-wrap{overflow:auto; -webkit-overflow-scrolling:touch; border-radius:14px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);}
.vr-compare-table{width:100%; border-collapse:separate; border-spacing:0; min-width: 980px;}
.vr-compare-table thead th{position:sticky; top:0; background: rgba(10,14,20,.92); backdrop-filter: blur(10px); z-index:2;}
.vr-compare-table th, .vr-compare-table td{padding:12px 12px; border-bottom:1px solid rgba(255,255,255,.08); text-align:left; vertical-align:top; font-size: 14px;}
.vr-compare-table th{font-weight:800; color: rgba(255,255,255,.92);}
.vr-compare-table tbody tr:hover{background: rgba(255,255,255,.03);}

.vr-compare-model__name{font-weight:900; letter-spacing:.2px;}
.vr-compare-model__meta{margin-top:4px; color: var(--muted); font-size: 12.5px;}

.vr-badge{display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); font-weight:800; white-space:nowrap;}

.vr-compare-air{min-width:170px;}
.vr-compare-split{display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:6px 10px; border-radius:12px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); margin-bottom:8px;}
.vr-compare-split:last-child{margin-bottom:0;}
.vr-compare-split span{color: var(--muted); font-size: 12px;}
.vr-compare-split b{font-size: 15px;}

.vr-compare-mount{white-space:nowrap;}
.vr-compare-actions{white-space:nowrap; display:flex; gap:8px; align-items:center;}

.vr-compare-foot{margin-top:10px; font-size: 13px;}

/* Mobile cards version */
.vr-compare-cards{display:none; gap:12px; margin-top:12px;}
.vr-compare-card{padding:14px;}
.vr-compare-card__top{display:flex; gap:10px; justify-content:space-between; align-items:flex-start;}
.vr-compare-card__title{margin:0; font-size: 18px;}
.vr-compare-card__sub{margin-top:4px; color: var(--muted); font-size: 13px;}
.vr-compare-card__chips{display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end;}
.vr-chip{display:inline-flex; padding:6px 10px; border-radius:999px; border:1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: rgba(255,255,255,.88); font-size: 12px; font-weight:700;}
.vr-compare-card__grid{display:grid; grid-template-columns:1fr; gap:8px; margin-top:10px;}
.vr-compare-card__kv{display:flex; justify-content:space-between; gap:10px; padding:10px 12px; border-radius:12px; background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08);}
.vr-compare-card__kv span{color: var(--muted); font-size: 12px;}
.vr-compare-card__kv b{font-size: 13.5px; font-weight:800; text-align:right;}
.vr-compare-card__cta{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px;}

@media (max-width: 980px){
  .vr-compare-head{flex-direction:column;}
  .vr-compare-note{max-width:none;}
}

@media (max-width: 900px){
  .vr-compare-table-wrap{display:none;}
  .vr-compare-cards{display:grid; grid-template-columns:1fr;}
}


/* ===== Product offer (premium compact) ===== */
/* buy-grid (product page compact) */
.buy-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}

/* Product page (mobile): moved blocks under gallery */
.hero-mobile-flow{display:flex;flex-direction:column;gap:14px}
.buy-card{padding:12px 12px;border-radius:16px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06)}
.buy-card .muted{font-size:12px}
  
.price-big{margin-top:4px;font-size:28px;font-weight:900;line-height:1.1;letter-spacing:.2px}
.old-price{margin-top:6px;font-size:14px;text-decoration:line-through;opacity:.7}
.contact-row{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap}
.contact-row .contact-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px}
.contact-row .contact-btn .micon{width:16px;height:16px;flex:0 0 16px;opacity:.92}
@media(max-width:920px){
  .buy-grid{grid-template-columns:1fr}
  .buy-card{padding:10px 10px}
  .contact-row .contact-btn{flex:1 1 calc(50% - 8px);justify-content:center}
}
@media(max-width:420px){
  .contact-row .contact-btn{flex:1 1 100%}
}

/* --- Premium refinements for product offer --- */
.buy-card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 40px rgba(0,0,0,.35);
}
.buy-card h3{ letter-spacing:.2px; }
.price-value{ font-size: clamp(26px, 3.2vw, 40px); }
.price-old{ opacity:.78; }
.contact-btn{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
}
.contact-btn:hover{
  background: rgba(255,255,255,.07);
  transform: translateY(-1px);
}
.contact-row{ gap:10px; }
.micon{ filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
@media (max-width: 480px){
  .buy-card{ padding:14px; }
  .contact-btn{ padding:10px 12px; }
}


/* Inline Buy/Order actions near price (product page) */
.buy-inline-actions{display:flex;gap:10px;margin-top:12px}
.buy-inline-actions .btn{flex:1;justify-content:center}
@media (max-width:680px){.buy-inline-actions{flex-direction:column}}

/* ===== Cart drawer (right) ===== */
.cart-overlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  z-index: 19000;
  opacity:0; pointer-events:none;
  transition: opacity .18s ease;
}
.cart-overlay.is-open{opacity:1; pointer-events:auto;}

.cart-drawer{
  position:fixed; top:0; right:0; height:100vh; width:420px; max-width:100vw;
  background: rgba(14,16,20,.98);
  border-left: 1px solid rgba(255,255,255,.10);
  box-shadow: -24px 0 60px rgba(0,0,0,.45);
  z-index: 19001;
  transform: translateX(102%);
  transition: transform .22s ease;
  display:flex; flex-direction:column;
}
.cart-drawer.is-open{transform: translateX(0);}

.cart-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.cart-head .cart-title{font-weight:700; letter-spacing:.2px}
.cart-head .cart-close{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.9);
  border-radius: 10px;
  padding:8px 10px;
  cursor:pointer;
}
.cart-head .cart-close:hover{background: rgba(255,255,255,.07)}

.cart-body{ padding:14px 16px; overflow:auto; }
.cart-empty{opacity:.75; padding:12px 0}

.cart-items{display:flex; flex-direction:column; gap:10px; margin:10px 0 14px}
.cart-item{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:8px 10px;
  padding:12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
}
.cart-item .ci-name{font-weight:600; line-height:1.25}
.cart-item .ci-meta{opacity:.75; font-size: 13px}
.cart-item .ci-actions{display:flex; gap:8px; align-items:center; justify-content:flex-end}
.cart-item .ci-remove{
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  border-radius: 10px;
  padding:6px 10px;
  cursor:pointer;
}
.cart-item .ci-remove:hover{background: rgba(255,255,255,.06)}

.qty-stepper{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
  border-radius: 12px;
}
.qty-btn{
  width:30px; height:30px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-weight:700;
}
.qty-btn:hover{background: rgba(255,255,255,.07)}
.qty-input{
  width:52px;
  text-align:center;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.92);
  padding:6px 6px;
}

.cart-summary{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 2px 0;
  border-top: 1px dashed rgba(255,255,255,.14);
  margin-top: 6px;
}
.cart-summary .total{font-weight:800}

.cart-form{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.cart-form .frow{display:grid; grid-template-columns: 1fr; gap:8px; margin-bottom:10px}
.cart-form label{font-size:13px; opacity:.85}
.cart-form input:not([type="radio"]):not([type="checkbox"]), .cart-form textarea, .cart-form select{
  width:100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.92);
  padding:10px 12px;
  outline: none;
}
.cart-form textarea{min-height:70px; resize:vertical}

.cart-pay{
  display:flex; flex-direction:column; gap:8px;
  padding:10px 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  margin-bottom:10px;
}
.cart-pay .pay-row{display:flex; align-items:flex-start; gap:10px}
.cart-pay input{margin-top:3px}
.cart-pay .pay-note{opacity:.75; font-size: 13px; margin-left:26px}

.cart-submit{
  display:flex; gap:10px;
  margin-top: 10px;
}
.cart-submit .btn{flex:1; justify-content:center}

@media (max-width: 520px){
  .cart-drawer{width:100vw}
}

/* Mobile cart fixes (iOS): prevent horizontal overflow in payment block */
.cart-drawer{ overflow:hidden; }
.cart-body{ overflow:auto; overflow-x:hidden; -webkit-overflow-scrolling: touch; }
.cart-pay .pay-row{ width:100%; }
.cart-pay .pay-row span{ flex:1; min-width:0; white-space:normal; overflow-wrap:anywhere; }

/* Make rating stars visible */
.review-stars, .stars, .rating-stars{color:#f2c94c;}

/* Reviews cards */
.review-card .review-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.review-card .review-title{margin-top:8px;font-weight:800}
.review-card .review-meta{margin-top:8px;display:flex;flex-wrap:wrap;gap:8px}
.review-card .review-text{margin-top:8px;opacity:.92;line-height:1.45}
.stars{letter-spacing:.8px}


/* Reviews filters layout */
.review-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media (max-width:720px){.review-filters{grid-template-columns:1fr}}


/* Reviews filter tabs (product page) */
.rv-tabs{
  display:flex;
  gap:8px;
  margin-top:10px;
  overflow:auto;
  padding:2px 2px 6px;
  scrollbar-width:none;
}
.rv-tabs::-webkit-scrollbar{display:none;}
.rv-tab{
  border:1px solid rgba(148,163,184,.18);
  background: rgba(255,255,255,.02);
  color:var(--muted);
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
  white-space:nowrap;
}
.rv-tab:hover{border-color: rgba(148,163,184,.30);}
.rv-tab.is-active{
  border-color: rgba(242,201,76,.45);
  background: rgba(242,201,76,.10);
  color:#f2c94c;
}
/* === Dark selects (native dropdown) === */
/* NOTE: Dropdown popup is OS-native in many browsers; these rules + color-scheme make it match the dark UI where supported. */
html{color-scheme:dark;}
select, input, textarea{color-scheme:dark;}

select{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  cursor:pointer;
  padding-right:40px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23e6eef8' fill-opacity='.75' d='M5.3 7.6a1 1 0 0 1 1.4 0L10 10.9l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:16px 16px;
}

select:hover{border-color:rgba(249,115,22,.28);}
select:focus{
  border-color:rgba(249,115,22,.55);
  box-shadow:0 0 0 3px rgba(249,115,22,.14);
}
select:disabled{opacity:.6; cursor:not-allowed;}

/* Best-effort styling for option list (works in many desktop browsers, but not all) */
select option, select optgroup{
  background-color:#0f172a;
  color:#e6eef8;
}
select option:checked{
  background-color:#16213a;
  color:#e6eef8;
}

/* === Mobile menu: fullscreen (overrides) === */
/* Restores a full-screen drawer on phones: no horizontal scrolling strip */
body.nav-scroll-lock{overflow:hidden}

@media(max-width: 980px){
  /* Make the drawer cover the whole screen */
  .navdrawer{
    inset: 0;
    width: 100vw;
    transform: translateY(-110%);
  }
  body.nav-open .navdrawer{
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Panel tweaks for safe areas + readability */
  .navdrawer-panel{
    border-right: none;
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  /* Sticky header with close button */
  .navdrawer-head{
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(15,23,42,.98);
    padding: 10px 0;
    margin-bottom: 6px;
  }
  .navdrawer-close{
    width: 44px;
    height: 44px;
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
  }

  /* Swipe handle (JS inserts .navdrawer-handle) */
  .navdrawer-handle{
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: rgba(226,232,240,.24);
    margin: 4px auto 2px;
  }
}

@media(max-width: 420px){
  .navdrawer-contacts{grid-template-columns:1fr}
}
/* =========================================================
   PageSpeed: reserve space for key images to reduce CLS
   (helps Lighthouse/PSI "width/height" & layout shifts)
   ========================================================= */
.hero-visual__img,
.topmodel .tm-img,
.hero-media img{
  aspect-ratio: 1 / 1;
  display:block;
  background: rgba(255,255,255,.04);
}

/* ========= PERF: reduce CLS & render cost ========= */
@supports (content-visibility: auto){
  .cv-auto{content-visibility:auto;contain-intrinsic-size: 1px 720px;}
}
/* Reserve space for JS-filled grids to avoid big layout shifts (home/catalog) */
.catalog-grid{min-height: 640px;}
@media (min-width: 980px){
  .catalog-grid{min-height: 560px;}
}

img[width][height]{height:auto;}
