:root{
  /* Light строгая тема: белый/серый фон + красный акцент */
  --bg:#f6f7f9;
  --surface:#ffffff;
  --surface-2:#f1f3f6;
  --text:#0f172a;
  --muted:#475569;
  --line:rgba(15,23,42,.12);
  --soft:#eef2f7;

  --accent:#e31e24;
  --accent-ink:#ffffff;
  --accent-soft:rgba(227,30,36,.12);

  --brand:#0f172a;
  --brand-soft:rgba(255,255,255,.72);
  --ok:#16a34a;
  --bad:#dc2626;

  --radius:16px;
  --shadow:0 18px 44px rgba(15,23,42,.14);
  --shadow-sm:0 10px 26px rgba(15,23,42,.12);
  --container:1200px;
  --focus:0 0 0 3px rgba(227,30,36,.28);
}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none !important;transition:none !important;scroll-behavior:auto !important}
}


*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}
a{color:inherit}
img{max-width:100%;display:block}
button, input, select, textarea{font:inherit}
.container{max-width:var(--container);margin:0 auto;padding:0 16px}

.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.skip-link{
  position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden
}
.skip-link:focus{left:16px;top:16px;width:auto;height:auto;background:var(--surface);padding:10px;border-radius:10px;box-shadow:var(--shadow);z-index:10000}

.topbar{
  background:rgba(255,255,255,.82);
  color:var(--text);
  font-size:14px;
  border-bottom:1px solid var(--line);
  backdrop-filter:saturate(140%) blur(10px);
}
.topbar .container{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:8px 16px}
.topbar a{color:var(--text);text-decoration:none;opacity:.9}
.topbar a:hover{opacity:1;text-decoration:underline;text-decoration-color:rgba(227,30,36,.35)}
.topbar .mini{display:flex;gap:12px;align-items:center;flex-wrap:nowrap;white-space:nowrap}

.header{
  position:sticky;top:0;z-index:1000;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(140%) blur(12px);
  border-bottom:1px solid var(--line);
}
.header .container{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:12px 16px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand img{height:42px;width:auto}
.nav{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
  overflow:auto;
  scrollbar-width:none;
  padding:0 4px;
}
.nav::-webkit-scrollbar{display:none}
.nav a{
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  font-size:14px;
  padding:8px 8px;
  border-radius:12px;
}
.nav a:hover{background:var(--soft)}
.actions{display:flex;gap:10px;align-items:center;justify-content:flex-end}
.icon-btn{
  position:relative;
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:12px;
  padding:10px;
  display:inline-flex;
  align-items:center;justify-content:center;
  cursor:pointer;
  transition:transform .06s ease;
}
.icon-btn:hover{transform:translateY(-1px)}
.icon-btn:active{transform:translateY(0)}
.icon-btn:focus{outline:none;box-shadow:var(--focus)}
.badge{
  position:absolute;top:-6px;right:-6px;
  background:var(--bad);
  color:#fff;
  font-size:12px;
  border-radius:999px;
  padding:2px 7px;
  min-width:18px;
  text-align:center;
  border:2px solid #fff;
}
.action-btn{
  position:relative;
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:12px;
  padding:10px 12px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  font-weight:900;
  text-decoration:none;
  color:var(--text);
  transition:transform .06s ease, background .2s ease, border-color .2s ease;
}
.action-btn img{width:18px;height:18px;opacity:.92}
.action-btn:hover{transform:translateY(-1px);border-color:rgba(227,30,36,.35);background:rgba(227,30,36,.04)}
.action-btn:active{transform:translateY(0)}
.action-btn:focus{outline:none;box-shadow:var(--focus)}
.action-btn .badge{top:-8px;right:-8px}
.action-btn .label{display:inline}

.lang-segment{
  display:inline-flex;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.06);
}
.lang-segment button{
  border:none;
  background:transparent;
  color:rgba(255,255,255,.86);
  padding:6px 10px;
  font-weight:900;
  cursor:pointer;
}
.lang-segment button.active{background:rgba(255,255,255,.18);color:#fff}
.lang-segment button:focus{outline:none;box-shadow:0 0 0 3px rgba(227,30,36,.35)}


.lang-switch{
  border:1px solid var(--line);
  background:var(--surface);border-radius:12px;
  padding:8px 10px;
  font-weight:700;
  cursor:pointer;
}
.lang-switch:focus{outline:none;box-shadow:var(--focus)}

.mobile-toggle{display:none}

.hero{
  background:transparent;
  border-bottom:1px solid var(--line);
}
.hero-grid{
  display:grid;grid-template-columns:1.2fr .8fr;gap:18px;
  padding:24px 0;
}
.hero-card{
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-card .inner{padding:20px}
.hero h1{margin:0 0 10px;font-size:34px;line-height:1.1}
.hero p{margin:0 0 16px;color:var(--muted)}
.hero .cta{display:flex;gap:10px;flex-wrap:wrap}
.btn{
  border:1px solid var(--line);
  background:var(--surface-2);
  padding:12px 14px;
  border-radius:14px;
  cursor:pointer;
  font-weight:800;
  text-decoration:none;
  display:inline-flex;align-items:center;gap:10px;
}
.btn.primary{background:var(--accent);color:#fff;border-color:transparent}
.btn.primary:hover{filter:brightness(.98)}
.btn:focus{outline:none;box-shadow:var(--focus)}
.btn.small{padding:9px 12px;border-radius:12px;font-weight:700}

.kpis{
  display:grid;grid-template-columns:repeat(2,1fr);gap:12px;
}
.kpi{
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:var(--radius);
  padding:14px;
}
.kpi .n{font-size:22px;font-weight:900}
.kpi .t{color:var(--muted);font-size:13px}

.section{padding:26px 0}
.section h2{margin:0 0 14px;font-size:24px}
.section .sub{margin:-6px 0 14px;color:var(--muted)}

.grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.card{
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.card .media{aspect-ratio:4/3;background:var(--surface-2);display:flex;align-items:center;justify-content:center}
.card .media img{width:100%;height:100%;object-fit:cover}
.card .body{padding:14px;display:flex;flex-direction:column;gap:8px;flex:1}
.product-card .body{padding:12px}
.card .title{font-weight:900}
.card .meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:13px}
.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface-2);padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}
.pill.ok{border-color:rgba(22,163,74,.25);background:rgba(22,163,74,.1);color:var(--ok)}
.pill.bad{border-color:rgba(239,68,68,.25);background:rgba(239,68,68,.1);color:var(--bad)}
.price{font-size:18px;font-weight:900}
.card .actions{display:flex;gap:10px;justify-content:flex-start;flex-wrap:wrap;margin-top:auto}

/* Product card actions pinned to the bottom edge */
.product-actions{
  margin-top:auto;
  display:grid;
  grid-template-columns:1fr 40px;
  gap:10px;
  align-items:stretch;
}

/* Make both main buttons the same width (icon stays separate) */
.product-actions .btn{
  grid-column:1;
  width:100%;
  justify-content:center;
}
.product-actions .icon-btn{
  grid-column:2;
  grid-row:1 / span 2;
  width:40px;height:40px;
  align-self:center;
  justify-self:end;
}

.toolbar{
  display:flex;gap:12px;flex-wrap:wrap;align-items:center;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:var(--radius);
  padding:12px;
}
.field{
  display:flex;flex-direction:column;gap:6px;min-width:170px;flex:1
}
.field label{font-size:12px;color:var(--muted);font-weight:700}
.field input,.field select,.field textarea{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
  background:var(--surface-2);
  color:var(--text);
}
.field input::placeholder{color:rgba(167,173,187,.8)}
.field input:focus,.field select:focus,.field textarea:focus{box-shadow:var(--focus);border-color:rgba(227,30,36,.45)}
.field textarea{min-height:110px;resize:vertical}

.layout{
  display:grid;grid-template-columns:280px 1fr;gap:14px;align-items:start
}
.sidebar{
  border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:14px;position:sticky;top:92px
}
.sidebar h3{margin:0 0 10px}
.sidebar .group{margin:0 0 14px}
.sidebar .check{display:flex;align-items:center;gap:10px;padding:7px 0}
.sidebar .check input{width:18px;height:18px}

.breadcrumbs{font-size:13px;color:var(--muted);display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 0}
.breadcrumbs a{text-decoration:none;color:var(--muted)}
.breadcrumbs a:hover{text-decoration:underline}

.product{
  display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start
}
.gallery{
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface-2);
  color:var(--text);
}
.field input::placeholder{color:rgba(167,173,187,.8)}
.gallery-main{aspect-ratio:4/3;background:var(--soft)}
.gallery-main img{width:100%;height:100%;object-fit:cover}
.gallery-thumbs{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line);overflow:auto}
.thumb{
  width:90px;height:68px;border-radius:12px;border:1px solid var(--line);overflow:hidden;flex:0 0 auto;cursor:pointer;background:var(--surface)
}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb.active{outline:3px solid rgba(227,30,36,.25);border-color:rgba(227,30,36,.45)}
.specs{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:14px}
.specs table{width:100%;border-collapse:collapse;font-size:14px}
.specs td{padding:8px 0;border-bottom:1px solid var(--line)}
.specs td:first-child{color:var(--muted);width:45%}

.footer{
  border-top:1px solid var(--line);
  background:#0b1220;
  color:#e5e7eb;
  padding:28px 0;
  margin-top:30px;
}
.footer a{color:#e5e7eb;text-decoration:none}
.footer a:hover{text-decoration:underline}
.footer-grid{
  display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:18px
}
.footer h4{margin:0 0 10px}
.footer .small{color:#cbd5e1;font-size:13px}
.footer .payments{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.footer .payments img{height:26px;width:auto;filter:grayscale(1) brightness(1.2)}
.footer-bottom{border-top:1px solid rgba(226,232,240,.12);margin-top:18px;padding-top:14px;color:#cbd5e1;font-size:13px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}

.fab{
  position:fixed;right:16px;bottom:16px;z-index:1200;
  display:flex;flex-direction:column;gap:10px;
}
.fab a,.fab button{
  width:48px;height:48px;border-radius:16px;
  border:1px solid var(--line);
  background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow);
  cursor:pointer;
}
.fab a:hover,.fab button:hover{transform:translateY(-1px)}
.fab a:active,.fab button:active{transform:translateY(0)}
.fab a:focus,.fab button:focus{outline:none;box-shadow:var(--focus)}

.modal-backdrop{
  position:fixed;inset:0;background:rgba(2,6,23,.55);
  display:none;align-items:center;justify-content:center;
  z-index:2000;padding:16px;
}
.modal-backdrop.show{display:flex}
.modal{
  width:min(780px,100%);
  background:var(--surface);border-radius:18px;box-shadow:var(--shadow);
  overflow:hidden;
  border:1px solid rgba(226,232,240,.65);
}
.modal header{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 16px;border-bottom:1px solid var(--line);
}
.modal header h3{margin:0}
.modal .content{padding:16px}
.modal .content .grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.modal .content .actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}

.drawer-backdrop{
  position:fixed;inset:0;background:rgba(2,6,23,.55);
  display:none;z-index:1800;
}
.drawer-backdrop.show{display:block}
.drawer{
  position:fixed;top:0;right:-480px;height:100%;width:min(460px,100%);
  background:var(--surface);border-left:1px solid var(--line);
  box-shadow:var(--shadow);
  z-index:1900;
  transition:right .22s ease;
  display:flex;flex-direction:column;
}
.drawer.show{right:0}
.drawer header{padding:14px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.drawer header h3{margin:0}
.drawer .body{padding:14px 16px;overflow:auto;flex:1}
.drawer .body .row{display:grid;grid-template-columns:64px 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.drawer .body .row>img{width:64px;height:48px;object-fit:cover;border-radius:12px;border:1px solid var(--line);background:var(--soft)}
.drawer .body .row .name{font-weight:800}
.drawer .body .row .muted{color:var(--muted);font-size:13px}
.drawer footer{padding:14px 16px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
.drawer .tot{display:flex;justify-content:space-between;font-weight:900}

.toast-wrap{position:fixed;left:16px;bottom:16px;z-index:2500;display:flex;flex-direction:column;gap:10px}
.toast{
  background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);
  padding:12px 14px;
  max-width:min(420px, calc(100vw - 32px));
}
.toast .t{font-weight:900;margin:0 0 2px}
.toast .d{margin:0;color:var(--muted);font-size:13px}

.marquee{
  border:1px solid var(--line);
  background:var(--surface);border-radius:var(--radius);
  overflow:hidden;
}
.marquee .track{
  display:flex;gap:14px;
  width:max-content;
  animation:marq 24s linear infinite;
  padding:12px;
}
.marquee:hover .track{animation-play-state:paused}
.brand-chip{
  text-decoration:none;
  display:flex;align-items:center;gap:10px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-2);
  white-space:nowrap;
  font-weight:800;
  color:var(--text);
}
.brand-chip .dot{width:10px;height:10px;border-radius:999px;background:var(--accent);display:inline-block}

@keyframes marq{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

.table{
  width:100%;
  border-collapse:collapse;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
}
.table th,.table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}
.table th{background:var(--surface-2);font-weight:900}
.table tr:last-child td{border-bottom:none}
.muted{color:var(--muted)}
.right{text-align:right}
.center{text-align:center}

.admin-shell{
  display:grid;
  grid-template-columns:260px 1fr;
  min-height:calc(100vh - 72px);
}
.admin-nav{
  border-right:1px solid var(--line);
  padding:14px;
  position:sticky;top:72px;height:calc(100vh - 72px);overflow:auto;
}
.admin-nav a{
  display:flex;gap:10px;align-items:center;
  padding:10px 12px;border-radius:12px;text-decoration:none;font-weight:800;color:var(--text);
}
.admin-nav a.active, .admin-nav a:hover{background:var(--soft)}
.admin-main{padding:16px}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.stat{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);padding:14px}
.stat .n{font-size:24px;font-weight:900}
.stat .t{color:var(--muted);font-size:13px}
.tabs{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.tab{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:8px 12px;font-weight:900;cursor:pointer}
.tab.active{background:var(--accent);color:#fff;border-color:transparent}

@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .layout{grid-template-columns:1fr}
  .sidebar{position:relative;top:0}
  .product{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .stat-grid{grid-template-columns:repeat(2,1fr)}
  .admin-shell{grid-template-columns:1fr}
  .admin-nav{position:relative;top:0;height:auto;border-right:none;border-bottom:1px solid var(--line)}
}

@media (max-width: 768px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 640px){
  .topbar .mini{flex-wrap:wrap;white-space:normal}

  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .header .container{grid-template-columns:auto 1fr auto}
  .nav{display:none}
  .mobile-toggle{display:inline-flex}
  .footer-grid{grid-template-columns:1fr}
  .modal .content .grid2{grid-template-columns:1fr}
}


/* ===== Brand look (red/grey) + motion ===== */
/* Keep the site in a light theme: topbar stays bright with a subtle red accent. */
.topbar{background:rgba(255,255,255,.88);color:var(--text);border-bottom:1px solid var(--line)}
.topbar .muted{color:var(--muted)}
.nav a:hover{background:var(--accent-soft)}
.badge{background:var(--accent)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn.primary:hover{filter:brightness(.98)}
.btn.ghost:hover{border-color:rgba(227,30,36,.35)}
.link-accent{color:var(--accent)}

/* Text button (link-like) */
.btn-text{
  background:transparent;
  border:none;
  padding:0;
  font:inherit;
  cursor:pointer;
  line-height:1.2;
}
.btn-text:focus{outline:none; box-shadow:var(--focus); border-radius:10px;}


.brand img{height:46px;width:auto;display:block;object-fit:contain}
@media (max-width:720px){
  .brand img{height:40px}
}

/* Hero with background image */
.hero{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(90deg, rgba(17,24,39,.92), rgba(17,24,39,.55)),
    var(--hero-image, radial-gradient(circle at 20% 10%, rgba(227,30,36,.18), rgba(17,24,39,.04)));
  background-size:cover;
  background-position:center;
  color:#fff;
}
.hero .hero-card,
.hero .hero-side{
  background:var(--surface-2);
  backdrop-filter: blur(8px);
  border-color:rgba(255,255,255,.35);
}
.hero .hero-card h1,
.hero .hero-card p,
.hero .hero-side .title,
.hero .hero-side .muted{color:var(--text)}
.hero .hero-side .muted{color:var(--muted)}

/* Ensure text and buttons remain readable inside translucent hero cards */
.hero .hero-card,
.hero .hero-side{
  color: var(--text);
}
.hero .hero-card h1,
.hero .hero-card h2,
.hero .hero-card h3,
.hero .hero-card p,
.hero .hero-card .muted,
.hero .hero-side .title,
.hero .hero-side .muted{
  color: var(--text);
}
.hero .hero-card .muted,
.hero .hero-side .muted{
  color: var(--muted);
}
.hero .btn:not(.primary){
  color: var(--text);
}

.hero .hero-card .chips{margin:18px 0 14px;display:flex;gap:10px;align-items:center;flex-wrap:nowrap;overflow:auto;padding-bottom:4px;scrollbar-width:thin}

/* Chips */
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface-2);
  color:var(--text);
  font-weight:700;
  font-size:13px;
  box-shadow:0 1px 0 rgba(15,23,42,.03);
}
.chip:hover{border-color:rgba(227,30,36,.35); background:rgba(227,30,36,.06)}

/* Reveal on scroll */
.reveal{opacity:0;transform:translateY(14px);transition:opacity .65s ease, transform .65s ease}
.reveal.in{opacity:1;transform:none}

/* Catalog: disable reveal hiding so products are visible immediately */
body[data-page="catalog"] .reveal{opacity:1 !important;transform:none !important;}


/* Page load fade */
body{opacity:0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease}
body.page-ready{opacity:1; transform:none}

.media-photo{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
  box-shadow:0 6px 18px rgba(15,23,42,.08);
}
@media (max-width:720px){
  .media-photo{height:180px}
}

.map-wrap{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:var(--surface-2);
  box-shadow:0 10px 26px rgba(15,23,42,.08);
}
.map-wrap iframe{
  width:100%;
  height:340px;
  border:0;
  display:block;
}
@media (max-width:720px){
  .map-wrap iframe{height:280px}
}


/* ===== Home layout improvements ===== */
.chips{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.hero .chips{
  margin:18px 0 14px;
  flex-wrap:nowrap;
  overflow:auto;
  padding-bottom:4px;
  scrollbar-width:thin;
}
.hero .chips::-webkit-scrollbar{height:6px}
.hero .chips::-webkit-scrollbar-thumb{background:rgba(227,30,36,.18);border-radius:999px}
.hero .chips::-webkit-scrollbar-track{background:rgba(15,23,42,.06);border-radius:999px}
.hero .cta{margin-top:16px;gap:12px}

.hero-search{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:14px;
}
.hero-search input{
  flex:1;
  min-width:240px;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 14px;
  outline:none;
  background:var(--surface-2);
  color:var(--text);
}
.field input::placeholder{color:rgba(167,173,187,.8)}
.hero-search input:focus{box-shadow:var(--focus);border-color:rgba(227,30,36,.45)}
.hero-search button{white-space:nowrap}

.banner-zone.wide{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}
.banner-slider{
  display:flex;
  gap:16px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  padding:0 16px 10px;
  -webkit-overflow-scrolling:touch;
}
.banner-slide{
  flex:0 0 100%;
  scroll-snap-align:start;
  border-radius:18px;
  overflow:hidden;
  position:relative;
  border:1px solid rgba(255,255,255,.18);
  background:#0b1220;
  box-shadow:var(--shadow);
  aspect-ratio:21/7;
}
.banner-slide img{width:100%;height:100%;object-fit:cover;filter:saturate(1.05) contrast(1.04)}
.banner-slide .overlay{
  position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(17,24,39,.78), rgba(17,24,39,.10));
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:18px;
}
.banner-slide .title{margin:0;color:#fff;font-weight:1000;font-size:22px;line-height:1.1}
.banner-slide .subtitle{margin:6px 0 0;color:rgba(255,255,255,.86);max-width:70ch;font-weight:600}
@media (max-width:720px){
  .banner-slide{aspect-ratio:16/8}
}

.tiles{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.tile{
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:var(--radius);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:168px;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.tile .icon{
  width:44px;height:44px;
  border-radius:14px;
  background:var(--accent-soft);
  display:flex;align-items:center;justify-content:center;
}
.tile .icon img{width:20px;height:20px}
.tile .title{font-weight:1000;font-size:18px;margin:0}
.tile .desc{color:var(--muted);font-size:13px;margin:0}
.tile .actions{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-start}
@media (max-width:980px){
  .tiles{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .tiles{grid-template-columns:1fr}
}

.brand-chip{
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
  white-space:nowrap;
  font-weight:900;
  color:var(--text);
  min-width:180px;
  height:64px;
  justify-content:center;
}
.brand-chip img{
  max-height:34px;
  max-width:150px;
  width:auto;
  object-fit:contain;
}
.brand-chip .name{display:none}
.brand-chip.no-logo{justify-content:flex-start}
.brand-chip.no-logo .name{display:inline}
.brand-chip .dot{display:none}

@media (max-width:720px){
  .action-btn .label{display:none}
  .action-btn{padding:10px}
  .brand-chip{min-width:150px;height:58px}
}

.banner-zone:not(.wide) .banner-slider{padding:0 0 10px}
.banner-zone:not(.wide) .banner-slide{flex:1 0 auto;aspect-ratio:16/9;border:1px solid var(--line)}
.banner-zone:not(.wide) .banner-slide .overlay{padding:14px}


/* === UI polish (Jan 2026) === */
.btn, .chip, .nav a, .action-btn, .action-btn .label{white-space:nowrap}
.action-btn:hover,.action-btn:focus{ text-decoration:none }
.topbar .mini{flex-wrap:wrap}

/* Product cards: consistent actions position */
.product-card .title{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-height:auto;
}
.product-card .actions{margin-top:auto;align-items:center}
.product-card .actions .btn{flex:1 1 auto}
.product-card .actions .icon-btn{flex:0 0 auto}

/* Bigger badges */
.badge{
  font-size:13px;
  padding:3px 9px;
  min-width:22px;
  top:-8px;
  right:-8px;
}

/* Floating cart button */
.cart-float{
  position:fixed;
  right:86px;
  bottom:16px;
  z-index:1400;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px;height:56px;
  border-radius:18px;
  border:1px solid var(--line);
  background:var(--surface-2);
  box-shadow:var(--shadow);
  cursor:pointer;
}
.cart-float img{width:22px;height:22px}
.cart-float .badge{
  position:absolute;
  top:-10px;right:-10px;
  font-size:14px;
  padding:4px 10px;
  min-width:26px;
  border-width:3px;
}

/* Brands carousel with arrows */
.brands-carousel{position:relative}
.brands-viewport{
  overflow:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding:2px 2px 10px;
  scrollbar-width:none;
}
.brands-viewport::-webkit-scrollbar{display:none}
.brands-track{
  display:flex;
  gap:14px;
  align-items:center;
}
.brands-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--surface-2);
  box-shadow:0 10px 24px rgba(15,23,42,.10);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
}
.brands-arrow.left{left:-10px}
.brands-arrow.right{right:-10px}
.brands-arrow img{width:18px;height:18px}
@media (max-width:720px){
  .brands-arrow{display:none}
}

/* Articles list (home) */
.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.article-row{
  display:flex;
  gap:14px;
  align-items:center;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:var(--radius);
  padding:12px;
  text-decoration:none;
  color:var(--text);
}
.article-row:hover{background:rgba(17,24,39,.02)}
.article-row img{
  width:92px;height:64px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--surface-2);
}
.article-row .meta{display:flex;gap:8px;flex-wrap:wrap}
.article-row .title{font-weight:1000;line-height:1.15}
.article-row .desc{color:var(--muted);font-size:13px;margin-top:4px}

/* Footer phones grid + non-clickable */
.phones-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px 12px;
}
.phone-chip{
  border:1px solid var(--line);
  background:var(--surface-2);
  border-radius:12px;
  padding:8px 10px;
  font-weight:900;
  color:var(--text);
  white-space:nowrap;
  word-break:keep-all;
  hyphens:none;
}
.footer .small a{ text-decoration:none }
.footer .small a:hover{ text-decoration:underline }
.footer .icon-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;height:40px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--surface-2);
  color:var(--text);
}
.field input::placeholder{color:rgba(167,173,187,.8)}
.footer .icon-link img{width:18px;height:18px}

/* Catalog layout (sidebar search/filters) */
.catalog-layout{
  display:grid;
  grid-template-columns:360px 1fr;
  gap:24px;
  align-items:start;
}
.catalog-sidebar{
  position:sticky;
  top:92px;
  width:360px;
  min-width:0;
}

.catalog-sidebar .toolbar{flex-direction:column;align-items:stretch}
.catalog-sidebar .toolbar .field{min-width:0}
.catalog-sidebar .toolbar .field input,
.catalog-sidebar .toolbar .field select,
.catalog-sidebar .toolbar .field textarea{width:100%}
@media (max-width:980px){
  .catalog-layout{grid-template-columns:1fr}
  .catalog-sidebar{position:relative;top:auto}
}



/* Catalog search autocomplete */
.suggest-row{
  padding:10px 12px;
  cursor:pointer;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  white-space:nowrap;
}
.suggest-row:hover{background:rgba(17,24,39,.04)}
.suggest-name{
  font-weight:900;
  overflow:hidden;
  text-overflow:ellipsis;
}
.suggest-sku{
  font-size:12px;
  flex:0 0 auto;
}
.suggest-hl{
  background:rgba(227,30,36,.14);
  border-radius:8px;
  padding:1px 4px;
}
body[data-page="catalog"] .catalog-smart input{display:block;width:100%}

/* Catalog grid tweaks (wider product cards) */
body[data-page="catalog"] .catalog-grid{
  grid-template-columns:repeat(2, minmax(320px, 1fr));
}
@media (min-width:1400px){
  body[data-page="catalog"] .catalog-grid{
    grid-template-columns:repeat(3, minmax(300px, 1fr));
  }
}
@media (max-width:980px){
  body[data-page="catalog"] .catalog-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  body[data-page="catalog"] .catalog-grid{grid-template-columns:1fr}
}

/* Smaller catalog top banner */
#banner-zone-catalog_top .banner-slide{aspect-ratio:21/3}
#banner-zone-catalog_top .banner-slide .overlay{padding:10px}
#banner-zone-catalog_top .banner-slide .title{font-size:16px}
#banner-zone-catalog_top .banner-slide .subtitle{font-size:12px}

/* Generic 2-col grid helper (forms etc.) */
.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width:720px){
  .grid2{grid-template-columns:1fr}
}


.footer .phone-chip{color:#e5e7eb;background:rgba(255,255,255,.06);border-color:rgba(226,232,240,.12)}
.footer .phones-grid{margin-top:2px}


/* --- UI tweaks (Jan 2026 pass) --- */

.divider{height:1px;background:var(--line);border-radius:999px;}

/* Promo banner: slightly narrower than container */
.promo-narrow{width:92%;max-width:980px;margin:0 auto;}

/* Home hero: allow search suggestions dropdown to escape the card */
.hero .hero-card{overflow:visible;}

/* Language switch in the topbar: make it visible on light background */
.topbar .lang-segment{
  border:1px solid var(--line);
  background:rgba(15,23,42,.03);
}
.topbar .lang-segment button{color:var(--text);}
.topbar .lang-segment button.active{
  background:rgba(227,30,36,.12);
  color:var(--text);
}

/* Header action buttons: centered icon + label, no underlines */
.action-btn{
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:6px;
  min-width:76px;
  padding:10px 10px;
}
.action-btn img{width:20px;height:20px;opacity:.95}
.action-btn .label{
  display:block;
  font-size:12px;
  line-height:1;
  text-decoration:none;
  border-bottom:none !important;
}
#cart-open{
  border-color:rgba(227,30,36,.35);
  background:rgba(227,30,36,.06);
}
#cart-open:hover{background:rgba(227,30,36,.10)}
#cart-open .badge{
  top:-10px;
  right:-10px;
  font-size:14px;
  padding:4px 10px;
  min-width:26px;
}

#header-request-btn{white-space:nowrap}

@media (max-width: 1100px){
  /* Free up space so all main nav items stay visible */
  #header-request-btn{display:none}
  .action-btn{min-width:64px;padding:10px 8px}
  .nav{gap:8px}
}

/* Hero: single column on homepage after removing "Основные направления" */
.hero-grid.hero-grid-single{
  grid-template-columns:1fr;
}
.hero-kpis{margin-top:14px}

/* Blog center alignment */
.blog-center{
  display:flex;
  justify-content:center;
}
#blog-grid{
  width:100%;
  max-width:980px;
}

/* Generic carousel arrows (used in banners + service gallery) */
.carousel-arrow{
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--surface-2);
  box-shadow:var(--shadow);
  display:grid;
  place-items:center;
  font-weight:1000;
  cursor:pointer;
  user-select:none;
}
.carousel-arrow:hover{border-color:rgba(227,30,36,.35);background:rgba(227,30,36,.04)}
.carousel-arrow:focus{outline:none;box-shadow:var(--focus)}
.carousel-arrow.left{position:absolute;left:10px;top:50%;transform:translateY(-50%)}
.carousel-arrow.right{position:absolute;right:10px;top:50%;transform:translateY(-50%)}

/* Banner carousel arrows */
.banner-carousel{position:relative}
.banner-zone.with-arrows .banner-slider{padding:0 56px 10px}

/* Smaller promo banners */
.banner-zone.small .banner-slide{
  aspect-ratio:21/3.5;
}
.banner-zone.small .banner-slide .overlay{padding:14px}
.banner-zone.small .banner-slide .title{font-size:18px}
.banner-zone.small .banner-slide .subtitle{font-size:13px}

/* Service gallery carousel */
.carousel.wide{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:0 16px;
}
.carousel{position:relative}
.carousel-viewport{
  display:flex;
  gap:12px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  padding:0 40px 10px;
  -webkit-overflow-scrolling:touch;
}
.carousel-item{
  flex:0 0 auto;
  width:min(340px, 78vw);
  scroll-snap-align:start;
}
.carousel-item .media{
  aspect-ratio:4/3;
  border-radius:var(--radius);
  border:1px solid var(--line);
  overflow:hidden;
  background:var(--surface-2);
}
.carousel-item .media img{width:100%;height:100%;object-fit:cover}


/* Catalog smart search: full-width input like the button */
.catalog-smart input[type="search"]{
  width:100% !important;
  display:block;
  box-sizing:border-box;
}

@media (max-width:1180px){
  body[data-page="catalog"] .catalog-grid{grid-template-columns:1fr}
}

/* About page hero: more compact and balanced */
.about-hero{
  border-radius:24px;
  margin-top:12px;
}
.about-hero .hero-grid{
  padding:12px 0;
}
.about-hero .kpi{
  padding:14px;
}

body{
  background:var(--bg);
  color:var(--text);
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(227,30,36,.18), transparent 60%),
    radial-gradient(760px 520px at 90% 20%, rgba(15,23,42,.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,247,249,.92));
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-3;
  background-image:var(--page-bg, none);
  background-size:cover;
  background-position:center;
  filter:grayscale(.05) contrast(1.05) saturate(1.05);
  opacity:.10;
}


/* Per-page thematic photo backgrounds */
body[data-page="home"]{--page-bg:url("../assets/media/bg-tractor.webp")}
body[data-page="catalog"]{--page-bg:url("../assets/media/bg-combines.webp")}
body[data-page="service"]{--page-bg:url("../assets/media/bg-harvest.webp")}
body[data-page="delivery"]{--page-bg:url("../assets/media/bg-wheat.webp")}
body[data-page="blog"]{--page-bg:url("../assets/media/bg-combines.webp")}
body[data-page="about"]{--page-bg:url("../assets/media/photo-office-1.webp")}
body[data-page="contacts"]{--page-bg:url("../assets/media/photo-office-2.webp")}


/* Typography tweaks for contrast */
h1,h2,h3{letter-spacing:-.02em}
.sub{color:var(--muted)}
a{color:inherit}



/* Cookie consent banner */
.cookie-banner{
  position:fixed;
  left:16px;
  right:16px;
  bottom:16px;
  z-index:9999;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow);
}
.cookie-banner__text{min-width:0}
.cookie-banner__title{font-weight:900;letter-spacing:.2px;color:var(--text)}
.cookie-banner__desc{margin-top:4px;color:var(--muted);font-size:13px;line-height:1.35}
.cookie-banner__link{color:var(--accent);text-decoration:underline;text-decoration-color:rgba(227,30,36,.55)}
.cookie-banner__actions{display:flex;gap:10px;flex-shrink:0}
@media (max-width:640px){
  .cookie-banner{flex-direction:column;align-items:stretch}
  .cookie-banner__actions{justify-content:flex-end}
}


/* Icons in light theme: keep original coloring (no inversion). */
.icon-btn img,
.action-btn img,
.btn img,
.fab img,
.cart-float img,
.brands-arrow img,
.carousel-arrow img,
.cookie-banner img,
.catalog-smart img{filter:none;}

/* Brand logos should stay readable */
.brand-chip{
  background:var(--surface-2);
}
.brand-chip img{
  background:#fff;
  border-radius:12px;
  padding:6px;
}

/* PATCH: modal scroll */
.modal{max-height:calc(100vh - 40px);display:flex;flex-direction:column;}
.modal .content{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;}
.modal-backdrop.show{overflow:auto;}

/* Service center: keep the request form visually centered */
body[data-page="service"] .service-form{
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
}

/* Blog: keep spacing for the sidebar banner when "Top articles" block is removed */
body[data-page="blog"] #banner-zone-blog_sidebar{margin-top:6px}


/* === Banner size adjustments (Catalog/Home) === */
.promo-narrow{width:100%;max-width:100%;margin-left:auto;margin-right:auto}
#banner-zone-home_hero .banner-slide{aspect-ratio:21/5.25}
#banner-zone-catalog_top .banner-slide{aspect-ratio:21/4.5}
@media (max-width:720px){
  #banner-zone-home_hero .banner-slide{aspect-ratio:16/6}
  #banner-zone-catalog_top .banner-slide{aspect-ratio:16/6}
}


#banner-zone-home_hero .banner-slide .overlay{padding:22px}
#banner-zone-home_hero .banner-slide .title{font-size:26px}
#banner-zone-home_hero .banner-slide .subtitle{font-size:15px}

#banner-zone-catalog_top .banner-slide .overlay{padding:18px}
#banner-zone-catalog_top .banner-slide .title{font-size:22px}
#banner-zone-catalog_top .banner-slide .subtitle{font-size:14px}

/* === Account / Catalog UI fixes (Jan 2026) === */

/* Account page: keep footer stuck to the bottom and let the cabinet area grow */
body[data-page="account"]{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
body[data-page="account"] #main{
  flex:1 0 auto;
  display:flex;
  flex-direction:column;
}
body[data-page="account"] #footer-root{margin-top:auto;}
body[data-page="account"] .footer{margin-top:0;}

/* Phone auth: make buttons never overlap */
body[data-page="account"] .auth-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
body[data-page="account"] .auth-actions .btn{width:100%;justify-content:center;}
body[data-page="account"] #phone-auth-form[data-stage="code"] .auth-actions{grid-template-columns:1fr 1fr;}
body[data-page="account"] #changePhoneBtn{grid-column:1/-1;}
@media (max-width:520px){
  body[data-page="account"] #phone-auth-form[data-stage="code"] .auth-actions{grid-template-columns:1fr;}
}

/* Catalog: per-page control should be compact and left-aligned */
body[data-page="catalog"] #catalog-page-controls{justify-content:flex-end;}
body[data-page="catalog"] #catalog-count{margin-right:auto;}
body[data-page="catalog"] #catalog-page-controls .per-page-field{
  flex:0 0 auto;
  min-width:0;
  width:auto;
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
}
body[data-page="catalog"] #catalog-page-controls .per-page-field label{
  margin:0;
  white-space:nowrap;
}
body[data-page="catalog"] #catalog-page-controls .per-page-field select{
  width:auto;
  min-width:86px;
  padding:8px 10px;
}

/* Catalog: when scrolling to the grid, keep a gap for the sticky header */
body[data-page="catalog"] #product-grid{scroll-margin-top:96px;}

/* Banner sliders: hide internal scrollbars (keep swipe + arrow navigation) */
.banner-slider{scrollbar-width:none;}
.banner-slider::-webkit-scrollbar{width:0;height:0;display:none;}
.carousel-viewport{scrollbar-width:none;}
.carousel-viewport::-webkit-scrollbar{width:0;height:0;display:none;}

/* Blog: sidebar on the right */
body[data-page="blog"] .layout.layout-right{grid-template-columns:1fr 280px;}
@media (max-width:980px){
  body[data-page="blog"] .layout.layout-right{grid-template-columns:1fr;}
}
body[data-page="blog"] #blog-sidebar-list{display:flex;flex-direction:column;gap:8px;}
body[data-page="blog"] .sidebar-link{
  display:block;
  text-decoration:none;
  padding:10px 10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
  color:var(--text);
}
body[data-page="blog"] .sidebar-link:hover{border-color:rgba(227,30,36,.35);background:rgba(227,30,36,.04);}
body[data-page="blog"] .sidebar-link-title{font-weight:900;}

/* Product images: consistent 1:1 squares across catalog & favorites */
.product-card .media{
  aspect-ratio:1/1;
  border-radius:var(--radius) var(--radius) 0 0;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  background:var(--surface-2);
}
.product-card .media img{width:100%;height:100%;object-fit:cover;}

/* Cart drawer: make thumbnails square and consistent */
.drawer .body .row>img{width:64px;height:64px;object-fit:cover;border-radius:14px;border:1px solid var(--line);background:var(--surface-2);}

/* Prevent accidental horizontal page scroll */
html, body{max-width:100%;overflow-x:hidden;}

/* === Header search bar + home banner sizing tweaks (Feb 2026) === */

/* Make promo banner slightly narrower so it fits without horizontal "drag" */
.promo-narrow{width:92%;max-width:1100px;margin-left:auto;margin-right:auto;}

/* Home hero banner: show one slide at a time (no partial crop) */
#banner-zone-home_hero .banner-slide{flex:0 0 100%;width:100%;}

/* Header: navigation + search row (like reference #2) */
.header-navsearch{
  border-top:1px solid var(--line);
  background:rgba(15,23,42,.02);
}
.header-navsearch .container{
  padding:10px 16px;
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:14px;
}
.header-navsearch .nav{
  justify-content:flex-start;
  flex-wrap:nowrap;
  overflow:auto;
  padding-bottom:2px;
}
.header-navsearch .nav::-webkit-scrollbar{height:6px;}
.header-navsearch .nav::-webkit-scrollbar-thumb{background:rgba(15,23,42,.12);border-radius:999px;}

.header-search{position:relative;min-width:0;}
.header-search-field{
  display:flex;
  align-items:center;
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  min-width:0;
}
.header-search-field input{
  border:none;
  outline:none;
  background:transparent;
  padding:11px 12px;
  font-size:14px;
  min-width:0;
  width:100%;
}
.header-search-btn{
  border:none;
  background:transparent;
  width:46px;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.header-search-btn:hover{background:rgba(15,23,42,.03);}
.header-search-btn img{width:18px;height:18px;opacity:.85;}

#header-search-suggest{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  z-index:2000;
}

@media (max-width:860px){
  .header-navsearch .container{grid-template-columns:1fr;}
  .header-navsearch .nav{display:none;}
}



/* Home hero: text integrated into background (no white card) */
.hero.hero-home .hero-copy{padding:28px 0;max-width:980px}
.hero.hero-home .hero-text{
  display:inline-block;
  padding:18px 20px;
  border-radius:var(--radius);
  background:linear-gradient(90deg, rgba(17,24,39,.55), rgba(17,24,39,.18));
}
.hero.hero-home .breadcrumbs,
.hero.hero-home .breadcrumbs a,
.hero.hero-home .muted{color:rgba(255,255,255,.82)}
.hero.hero-home h1{color:#fff}
.hero.hero-home p{color:rgba(255,255,255,.86)}
@media (max-width: 720px){
  .hero.hero-home .hero-copy{padding:18px 0}
  .hero.hero-home .hero-text{padding:14px 14px;border-radius:16px}
  .hero.hero-home h1{font-size:28px}
}


/* === Catalog card + filters polish (Feb 2026) === */
body[data-page="catalog"] .catalog-grid{gap:16px;}

.product-card .product-title{font-weight:900}
.product-card .product-title{cursor:pointer}
.product-card .product-title:hover{text-decoration:underline}
.product-card a.product-title-link{color:inherit;text-decoration:none}
.product-card a.product-title-link:hover{text-decoration:underline}

.product-card .product-info{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:28px;
  flex-wrap:nowrap;
}
.product-card .product-ids{
  font-size:12px;
  color:var(--muted);
  font-weight:800;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  min-width:0;
}
.product-card .product-stock{flex:0 0 auto;}
.product-card .product-bottom{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}
body[data-page="catalog"] .catalog-grid .product-card .media{aspect-ratio:4/3;}
body[data-page="catalog"] .catalog-grid .product-card .body{gap:10px;}

/* Catalog sidebar: compact + unified controls */
body[data-page="catalog"] .catalog-sidebar .toolbar{padding:10px;gap:10px;}
body[data-page="catalog"] .catalog-sidebar .field{gap:6px;}
body[data-page="catalog"] .catalog-sidebar .btn.small{height:42px;justify-content:center;}
body[data-page="catalog"] .catalog-sidebar .filter-actions{display:flex;flex-direction:column;gap:10px;margin-top:2px;}
body[data-page="catalog"] .catalog-sidebar .filter-actions .btn{width:100%;}

/* Catalog per-page field: keep compact */
body[data-page="catalog"] .per-page-field{min-width:160px;flex:0 0 auto;}



/* === UI polish patches (header/menu, catalog banner, cart drawer) === */

/* Header menu: make items slightly larger but keep header height */
.header-menu a{
  font-size:15px;
  font-weight:700;
  padding:7px 8px;
}
@media (max-width: 900px){
  .header-menu a{font-size:14px;padding:8px 8px;}
}

/* Catalog: top banner aligns with catalog container */
.catalog-top-banner{margin:14px 0;}

/* Cart drawer: tidy item rows + less aggressive remove button */
.drawer .body .row{
  grid-template-columns:64px 1fr 36px;
  gap:12px;
  padding:10px;
  border-bottom:none;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
  margin:0 0 10px;
}
.drawer .body .row:last-child{margin-bottom:0}
.drawer .body .row .name{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.drawer .body .row input[type="number"]{
  width:84px !important;
  border-radius:12px !important;
  border:1px solid var(--line) !important;
  padding:8px 10px !important;
  background:var(--surface) !important;
}
.drawer .body .row .cart-remove.icon-btn{
  padding:8px;
  border-color:transparent;
  background:transparent;
  opacity:.7;
}
.drawer .body .row .cart-remove.icon-btn:hover{
  opacity:1;
  background:var(--soft);
}
.drawer .body .row .cart-remove img{width:18px;height:18px}




/* =========================
   Admin panel UI/UX (prod)
   ========================= */
body[data-page="admin"] #header-root,
body[data-page="admin"] #footer-root{display:none !important;}

body[data-page="admin"] main#main{padding-top:0;}
body[data-page="admin"] .section{padding:0;}
body[data-page="admin"].admin-authed .section>.container{max-width:100%;padding:0;}
body[data-page="admin"].admin-authed{background:#f6f7f9;}
body[data-page="admin"] #admin-login{max-width:760px;margin:26px auto;}

body[data-page="admin"] .admin-shell{
  display:grid;
  grid-template-columns:280px 1fr;
  min-height:100vh;
}

body[data-page="admin"] .admin-sidebar{
  background:var(--surface);
  border-right:1px solid var(--line);
  height:100vh;
  position:sticky;
  top:0;
  display:flex;
  flex-direction:column;
}

body[data-page="admin"] .admin-sidebar-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 14px 10px;
  border-bottom:1px solid var(--line);
}

body[data-page="admin"] .admin-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  font-weight:950;
}

body[data-page="admin"] .admin-brand img{
  width:28px;height:28px;border-radius:10px;
  box-shadow:var(--shadow-sm);
}

body[data-page="admin"] .admin-brand span{font-size:14px;letter-spacing:.01em}

body[data-page="admin"] .admin-nav{
  padding:12px;
  overflow:auto;
}

body[data-page="admin"] .admin-nav-group{margin-bottom:14px}

body[data-page="admin"] .admin-nav-title{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:var(--muted);
  font-weight:950;
  margin:10px 8px 6px;
}

body[data-page="admin"] .admin-nav a{
  display:flex;gap:10px;align-items:center;
  padding:10px 12px;border-radius:12px;
  text-decoration:none;font-weight:900;color:var(--text);
  border:1px solid transparent;
}

body[data-page="admin"] .admin-nav a:hover{
  background:rgba(0,0,0,.035);
  border-color:rgba(0,0,0,.06);
}

body[data-page="admin"] .admin-nav a.active{
  background:rgba(227,30,36,.08);
  border-color:rgba(227,30,36,.18);
}

body[data-page="admin"] .admin-nav a.active{color:var(--text)}

body[data-page="admin"] .admin-sidebar-footer{
  margin-top:auto;
  padding:12px 14px 14px;
  border-top:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:10px;
}

body[data-page="admin"] .admin-user-mini-name{
  font-weight:950;
  margin-top:2px;
}

body[data-page="admin"] .admin-logout-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:38px;
  border-radius:12px;
  background:rgba(227,30,36,.10);
  border:1px solid rgba(227,30,36,.22);
  color:var(--accent);
  font-weight:950;
  text-decoration:none;
}

body[data-page="admin"] .admin-logout-link:hover{
  background:rgba(227,30,36,.14);
  border-color:rgba(227,30,36,.30);
}

body[data-page="admin"] .admin-content{
  min-width:0;
  display:flex;
  flex-direction:column;
}

body[data-page="admin"] .admin-topbar{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(246,247,249,.92);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
  padding:10px 16px;
  display:grid;
  grid-template-columns: 1fr minmax(260px, 520px) auto;
  gap:12px;
  align-items:center;
}

body[data-page="admin"] .admin-topbar-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

body[data-page="admin"] .admin-breadcrumbs{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:950;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

body[data-page="admin"] .admin-breadcrumbs a{
  color:var(--muted);
  text-decoration:none;
  font-weight:900;
}

body[data-page="admin"] .admin-breadcrumbs a:hover{
  text-decoration:underline;
  text-decoration-color:rgba(227,30,36,.35);
}

body[data-page="admin"] .admin-breadcrumbs .admin-bc-current{
  color:var(--text);
  overflow:hidden;
  text-overflow:ellipsis;
}

body[data-page="admin"] .admin-search input{
  width:100%;
  height:38px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--surface);
  padding:0 12px;
  font-weight:800;
}

body[data-page="admin"] .admin-search input:focus{
  outline:none;
  box-shadow:var(--focus);
}

body[data-page="admin"] .admin-topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
}

body[data-page="admin"] .admin-save-status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--muted);
  font-weight:900;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  white-space:nowrap;
}

body[data-page="admin"] .admin-save-status .dot{
  width:8px;height:8px;border-radius:999px;background:var(--muted);
}

body[data-page="admin"] .admin-save-status.saving{color:#b45309;border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.08)}
body[data-page="admin"] .admin-save-status.saving .dot{background:#f59e0b}
body[data-page="admin"] .admin-save-status.ok{color:#15803d;border-color:rgba(22,163,74,.35);background:rgba(22,163,74,.08)}
body[data-page="admin"] .admin-save-status.ok .dot{background:#16a34a}
body[data-page="admin"] .admin-save-status.err{color:#b91c1c;border-color:rgba(227,30,36,.35);background:rgba(227,30,36,.08)}
body[data-page="admin"] .admin-save-status.err .dot{background:var(--accent)}

body[data-page="admin"] .admin-profile{
  display:flex;
  align-items:center;
  gap:10px;
}

body[data-page="admin"] .admin-user-label{
  max-width:220px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:950;
}

body[data-page="admin"] .admin-logout-top{
  color:var(--muted);
  font-weight:900;
  text-decoration:none;
}

body[data-page="admin"] .admin-logout-top:hover{
  color:var(--text);
  text-decoration:underline;
  text-decoration-color:rgba(227,30,36,.35);
}

body[data-page="admin"] .admin-main{
  padding:16px;
  width:100%;
  max-width:1400px;
  margin:0 auto;
}

body[data-page="admin"] .toolbar{
  display:flex;
  gap:10px;
  align-items:flex-end;
  flex-wrap:wrap;
  margin:12px 0;
}

body[data-page="admin"] .field label{font-weight:900}
body[data-page="admin"] .field input,
body[data-page="admin"] .field select,
body[data-page="admin"] .field textarea{
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--surface);
}

body[data-page="admin"] .btn{border-radius:12px}
body[data-page="admin"] .btn.small{border-radius:12px}

body[data-page="admin"] .btn.danger{
  background:rgba(227,30,36,.10);
  border:1px solid rgba(227,30,36,.22);
  color:var(--accent);
}

body[data-page="admin"] .btn.danger:hover{
  background:rgba(227,30,36,.14);
  border-color:rgba(227,30,36,.30);
}

body[data-page="admin"] .table{
  background:var(--surface);
  table-layout:fixed;
}

body[data-page="admin"] .table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:var(--surface-2);
}

body[data-page="admin"] .table td{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

body[data-page="admin"] .table tbody tr:hover{
  background:rgba(0,0,0,.02);
}

body[data-page="admin"] .admin-burger{
  width:40px;height:38px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--surface);
  display:none;
  align-items:center;
  justify-content:center;
  gap:3px;
  padding:0;
  cursor:pointer;
}

body[data-page="admin"] .admin-burger span{
  display:block;
  width:16px;
  height:2px;
  background:var(--text);
  border-radius:2px;
}

body[data-page="admin"] .admin-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:40;
}

@media (max-width: 980px){
  body[data-page="admin"] .admin-shell{grid-template-columns:1fr}
  body[data-page="admin"] .admin-sidebar{
    position:fixed;
    left:0;top:0;bottom:0;
    width:288px;
    transform:translateX(-105%);
    transition:transform .2s ease;
    z-index:50;
  }
  body[data-page="admin"].admin-sidebar-open .admin-sidebar{transform:translateX(0)}
  body[data-page="admin"] .admin-burger{display:inline-flex}
  body[data-page="admin"] .admin-topbar{grid-template-columns:1fr;gap:10px}
  body[data-page="admin"] .admin-topbar-right{justify-content:space-between}
}




/* Admin UX extras */
body[data-page="admin"] .req-star{color:var(--accent);font-weight:950}
body[data-page="admin"] .admin-bc-sep{color:var(--muted);opacity:.7}




/* Admin: hide public breadcrumbs when inside app shell */
body[data-page="admin"].admin-authed .breadcrumbs{display:none !important;}




/* Admin form validation helpers */
body[data-page="admin"] .field-error{color:var(--accent);font-size:12px;margin-top:6px;font-weight:800}
body[data-page="admin"] .field input.is-invalid,
body[data-page="admin"] .field textarea.is-invalid,
body[data-page="admin"] .field select.is-invalid{border-color:rgba(227,30,36,.55);box-shadow:0 0 0 3px rgba(227,30,36,.12)}



/* === Product grids: 4 cards desktop / 3 tablet / 2 mobile (no horizontal scroll) === */
.grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

/* Catalog page uses a dedicated grid container; keep it consistent with the global grid */
body[data-page="catalog"] .catalog-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

/* Tablet */
@media (max-width: 1200px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  body[data-page="catalog"] .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Mobile */
@media (max-width: 768px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-page="catalog"] .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* =========================
   Catalog & Product Card Compact Layout
   (No HTML changes; layout-only)
   ========================= */

/* Wider working area on Catalog page to make the sidebar feel like a real left column */
body[data-page="catalog"] main .container{max-width:1440px}

/* Sidebar + products: cleaner column proportions and stable gap */
body[data-page="catalog"] .catalog-layout{grid-template-columns:320px 1fr;gap:28px}
body[data-page="catalog"] .catalog-sidebar{width:320px}
body[data-page="catalog"] .catalog-content{min-width:0}
body[data-page="catalog"] .catalog-sidebar .card .body{padding:12px}

/* Keep mobile/tablet behavior intact */
@media (max-width:980px){
  body[data-page="catalog"] .catalog-layout{grid-template-columns:1fr}
  body[data-page="catalog"] .catalog-sidebar{width:auto;position:relative;top:auto}
}

/* Product grids (Catalog + Home products) */
body[data-page="catalog"] .catalog-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
@media (min-width:1400px){
  body[data-page="catalog"] .catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (max-width:1199px){
  body[data-page="catalog"] .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:767px){
  body[data-page="catalog"] .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}

/* Home: same compact grid for popular products */
#popular-products{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
@media (min-width:1400px){
  #popular-products{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (max-width:1199px){
  #popular-products{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:767px){
  #popular-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}

/* Compact product card */
.card.product-card{position:relative}
.card.product-card .media{
  display:block;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  background:var(--surface-2);
}
.card.product-card .media img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

/* Slightly tighter body padding for compact cards */
.card.product-card .body{padding:10px}

/* Reorder: meta under photo, then title, then bottom */
.card.product-card .product-info{order:1}
.card.product-card .product-title{order:2}
.card.product-card .product-bottom{order:3;margin-top:auto}

/* Meta row: compact pills + stock chip */
.card.product-card .product-meta{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  min-height:28px;
}
.card.product-card .product-pill,
.card.product-card .product-stock{
  font-size:11px;
  padding:3px 8px;
}
.card.product-card .product-stock{margin-left:0}

/* Hide brand & SKU on cards (kept in DOM for search/filtering). */
.card.product-card .product-pill.brand,
.card.product-card .product-pill.sku{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

/* Title: show without ellipsis, stable height */
.card.product-card .product-title{
  font-size:14px;
  line-height:1.25;
  white-space:normal;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  max-height:calc(3 * 1.25em);
  min-height:calc(3 * 1.25em);
  margin:0;
}


/* Price & bottom spacing */
.card.product-card .price{font-size:16px}
.card.product-card .product-bottom{display:flex;flex-direction:column;gap:8px}

/* Actions: only one main button; keep favorite as overlay */
.card.product-card .product-actions{display:block}
.card.product-card .product-actions [data-buy-now]{display:none !important}
.card.product-card .product-actions .btn{
  width:100%;
  justify-content:center;
}

/* Favorite heart as overlay in top-right of image */
.card.product-card .product-actions .icon-btn{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  box-shadow:0 4px 10px rgba(0,0,0,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
  grid-column:auto;
  grid-row:auto;
}
.card.product-card .product-actions .icon-btn img{width:18px;height:18px}
.card.product-card .product-actions .icon-btn:hover{background:rgba(255,255,255,1);transform:translateY(-1px)}
.card.product-card .product-actions .icon-btn:active{transform:translateY(0)}

/* Product card hover: subtle scale without shifting grid (hover-capable devices only) */
@media (hover:hover) and (pointer:fine){
  /* Improve transform rendering quality (avoid blur on scale) */
  .card.product-card{
    will-change:transform;
    backface-visibility:hidden;
    transform:translateZ(0);
    transition:transform .2s ease, box-shadow .2s ease;
  }
  .card.product-card:hover{
    transform:translateZ(0) scale(1.03);
    box-shadow:var(--shadow-sm);
    filter:none;
  }
  .card.product-card:hover img{filter:none}
}

/* Add-to-cart button state (derived from cart contents) */
.btn.primary.in-cart{
  background:#f3f4f6;
  color:#111827;
  border:1px solid var(--line);
}
.btn.primary.in-cart::before{
  content:"✓";
  display:inline-block;
  margin-right:8px;
  font-weight:900;
}
.btn.primary.in-cart:hover{
  background:#e5e7eb;
  color:#111827;
}
.btn.primary.in-cart:active{
  background:#d1d5db;
}

/* Product page polish (no redesign): hide brand+SKU chips above title and remove leave-request button */
body[data-page="product"] #product-root .card .meta .pill:nth-child(1),
body[data-page="product"] #product-root .card .meta .pill:nth-child(2){
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
body[data-page="product"] #product-root .actions [data-action="open-request"]{display:none !important}
body[data-page="product"] #product-root .card .body{padding:18px}
body[data-page="product"] #product-root .actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body[data-page="product"] #product-root .actions .btn{min-height:44px;justify-content:center}

/* Pagination + Show more UI (keep brand colors) */
#pagination{align-items:center}
#pagination .btn{
  min-width:40px;
  height:40px;
  padding:0 12px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
#pagination .btn.primary{box-shadow:none}
#pagination .btn:hover{filter:none}
#pagination .ellipsis{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;
  padding:0 8px;
  color:var(--muted);
}

#show-more-wrap .btn{min-height:44px;padding:0 16px;border-radius:14px}

/* Ensure carousel arrows are always clickable */
.carousel-arrow{z-index:2}

/* Global red buttons: keep text readable on hover/active/disabled */
.btn.primary{
  background:var(--accent);
  color:var(--accent-ink);
  border-color:transparent;
}
.btn.primary:hover{
  background:#d91b21;
  color:var(--accent-ink);
  filter:none;
}
.btn.primary:active{
  background:#c9151b;
  color:var(--accent-ink);
}
.btn.primary:disabled,
.btn.primary.disabled,
.btn.primary[aria-disabled="true"]{
  opacity:.65;
  cursor:not-allowed;
  filter:none;
}

/* Ensure no accidental horizontal scroll from long tokens */
body[data-page="catalog"] .catalog-content,
body[data-page="catalog"] .catalog-grid,
#popular-products{min-width:0}

/* ===========================
   Home page redesign (Hero + sections) — CSS only
   Keeps brand colors/typography; no JS changes.
   =========================== */
body[data-page="home"] .hero.hero-home{
  border-bottom:none;
}

/* HERO SLICES (Parts + Service) */
body[data-page="home"] .hero.hero-home .hero-slice{
  position:relative;
  background-image:var(--slice-image);
  background-size:cover;
  background-repeat:no-repeat;
  background-position:right center;
  padding:72px 0;
  min-height:520px;
  display:flex;
  align-items:center;
}
body[data-page="home"] .hero.hero-home .hero-slice::before{
  content:"";
  position:absolute;
  inset:0;
  /* Slightly lighter overlay so background photo is clearly visible */
  background:linear-gradient(90deg, rgba(9,12,18,.72) 0%, rgba(9,12,18,.48) 45%, rgba(9,12,18,.10) 100%);
}
body[data-page="home"] .hero.hero-home .hero-slice .container{
  position:relative;
  z-index:1;
}
body[data-page="home"] .hero.hero-home .hero-slice-inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
body[data-page="home"] .hero.hero-home .hero-copy{
  max-width:640px;
}
body[data-page="home"] .hero.hero-home .breadcrumbs{
  margin:0 0 14px;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  color:rgba(255,255,255,.82);
  font-weight:750;
}
body[data-page="home"] .hero.hero-home .breadcrumbs .muted{
  color:rgba(255,255,255,.72);
}
body[data-page="home"] .hero.hero-home h1{
  margin:0 0 12px;
  color:#fff;
  font-size:clamp(32px, 3.2vw, 48px);
  line-height:1.05;
  letter-spacing:-0.01em;
}
body[data-page="home"] .hero.hero-home .hero-h2{
  margin:0 0 12px;
  color:#fff;
  font-size:clamp(26px, 2.4vw, 38px);
  line-height:1.1;
  letter-spacing:-0.01em;
}
body[data-page="home"] .hero.hero-home .hero-lead{
  margin:0 0 16px;
  color:rgba(255,255,255,.88);
  font-size:16px;
  max-width:60ch;
}
body[data-page="home"] .hero.hero-home .hero-features{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
body[data-page="home"] .hero.hero-home .hero-features li{
  position:relative;
  padding-left:26px;
  color:rgba(255,255,255,.88);
  font-weight:650;
}
body[data-page="home"] .hero.hero-home .hero-features li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:rgba(255,255,255,.92);
  font-weight:900;
}
body[data-page="home"] .hero.hero-home .hero-actions{
  margin-top:20px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
body[data-page="home"] .hero.hero-home .btn.primary{
  box-shadow:0 10px 24px rgba(0,0,0,.22);
}

/* Service slice: mirrored (text right, image left) */
body[data-page="home"] .hero.hero-home .hero-slice--service{
  background-position:left center;
  min-height:440px;
}
body[data-page="home"] .hero.hero-home .hero-slice--service::before{
  background:linear-gradient(to left, rgba(9,12,18,.72) 0%, rgba(9,12,18,.48) 45%, rgba(9,12,18,.10) 100%);
}
body[data-page="home"] .hero.hero-home .hero-slice--service .hero-slice-inner{
  justify-content:flex-end;
}
body[data-page="home"] .hero.hero-home .hero-slice + .hero-slice{
  border-top:1px solid rgba(255,255,255,.10);
}

@media (max-width: 900px){
  body[data-page="home"] .hero.hero-home .hero-slice{
    padding:56px 0;
    min-height:420px;
  }
  body[data-page="home"] .hero.hero-home .hero-slice--service{
    min-height:380px;
  }
}
@media (max-width: 720px){
  body[data-page="home"] .hero.hero-home .hero-slice{
    padding:44px 0;
    min-height:auto;
    background-position:center;
  }
  body[data-page="home"] .hero.hero-home .hero-copy{
    max-width:100%;
  }
  body[data-page="home"] .hero.hero-home .hero-actions{
    margin-top:16px;
  }
}

/* BRANDS section — light, grid-like carousel */
body[data-page="home"] .section.section-brands{
  background:linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  padding:56px 0;
}
body[data-page="home"] .section.section-brands h2{
  margin:0 0 10px;
}
body[data-page="home"] .section.section-brands .sub{
  margin:0 0 14px;
  max-width:76ch;
}
body[data-page="home"] #brands-marquee .brands-viewport{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.85);
  padding:12px;
  overflow:auto;
}
body[data-page="home"] #brands-marquee .brands-track{
  /* One свободная линия (без двух рядов) */
  display:flex;
  flex-wrap:nowrap;
  gap:12px;
  align-items:center;
}
body[data-page="home"] #brands-marquee .brand-chip{
  height:74px;
  border-radius:16px;
  padding:12px;
  background:#fff;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-width:140px;
  max-width:170px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body[data-page="home"] #brands-marquee .brand-chip:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  border-color:rgba(17,24,39,.18);
}
body[data-page="home"] #brands-marquee .brand-chip img{
  max-height:42px;
  width:auto;
  filter:none;
}
@media (max-width: 760px){
  body[data-page="home"] #brands-marquee .brand-chip{
    min-width:120px;
    max-width:150px;
    height:68px;
  }
}

/* CATALOG section — premium light gradient + more air */
body[data-page="home"] .section.section-catalog{
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(227,30,36,.08) 0%, rgba(227,30,36,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  padding:64px 0;
}
body[data-page="home"] .section.section-catalog h2{
  margin:0 0 10px;
  font-size:28px;
}
body[data-page="home"] .section.section-catalog .sub{
  margin:0 0 18px;
}
body[data-page="home"] #popular-products.grid{
  gap:18px;
  grid-template-columns:repeat(4, minmax(0, 1fr));
}
@media (min-width: 1400px){
  body[data-page="home"] #popular-products.grid{
    grid-template-columns:repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1199px){
  body[data-page="home"] #popular-products.grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px){
  body[data-page="home"] #popular-products.grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

/* ARTICLES section — symmetric cards under catalog */
body[data-page="home"] .section.section-articles{
  background:#ffffff;
  padding:64px 0;
  border-top:1px solid var(--line);
}
body[data-page="home"] .section.section-articles .list{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-top:16px;
}
body[data-page="home"] .section.section-articles .article-row{
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  padding:14px;
}
body[data-page="home"] .section.section-articles .article-row img{
  width:100%;
  height:168px;
  border-radius:16px;
}
body[data-page="home"] .section.section-articles .article-row .title{
  font-size:16px;
  line-height:1.25;
}
body[data-page="home"] .section.section-articles .article-row .desc{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
@media (max-width: 1024px){
  body[data-page="home"] .section.section-articles .list{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px){
  body[data-page="home"] .section.section-articles .list{
    grid-template-columns:1fr;
  }
}

/* Bottom note section — soften card to avoid heavy blocks */
body[data-page="home"] .section.section-note{
  background:linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  padding:56px 0;
  border-top:1px solid var(--line);
}
body[data-page="home"] .section.section-note .card{
  box-shadow:var(--shadow);
  border-color:rgba(17,24,39,.12);
}

/* ===========================
   Home page tweaks (TЗ)
   - No brand redesign: only layout/grid/alignment/behavior
   - Smooth transitions (200–300ms)
   =========================== */
:root{--motion-fast:260ms}

/* Smooth UI transitions (buttons, icon buttons, carousel arrows) */
.btn,
.icon-btn,
.carousel-arrow{
  transition:
    background var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) ease,
    filter var(--motion-fast) ease,
    opacity var(--motion-fast) ease;
}

/* HERO — fix grid alignment + keep image readable (no global dark overlay) */
body[data-page="home"] .hero.hero-home .hero-slice{
  overflow:hidden; /* prevents accidental page horizontal scroll from overlays */
  padding:64px 0;
}
body[data-page="home"] .hero.hero-home .hero-slice::before{display:none}

body[data-page="home"] .hero.hero-home .hero-slice-inner{
  display:grid;
  /* Первый блок: текст слева, изображение справа */
  grid-template-columns:minmax(0, 590px) 1fr;
  gap:36px;
  align-items:center;
  justify-content:stretch;
}
body[data-page="home"] .hero.hero-home .hero-copy{
  max-width:590px;
  grid-column:1;
  justify-self:start;
  /* keep LEFT text edge aligned with container */
  padding:18px 26px 18px 0;
  border-radius:18px;
  /* local gradient only under text (does not darken whole hero image) */
  background:linear-gradient(to right, rgba(9,12,18,.58) 0%, rgba(9,12,18,.40) 55%, rgba(9,12,18,0) 100%);
}

/* Второй блок: текст справа, изображение слева */
body[data-page="home"] .hero.hero-home .hero-slice--service .hero-slice-inner{
  grid-template-columns:1fr minmax(0, 590px);
}
body[data-page="home"] .hero.hero-home .hero-slice--service .hero-copy{
  grid-column:2;
  justify-self:end;
  /* keep RIGHT text edge aligned with container */
  padding:18px 0 18px 26px;
  background:linear-gradient(to left, rgba(9,12,18,.58) 0%, rgba(9,12,18,.40) 55%, rgba(9,12,18,0) 100%);
}

/* Service slice: keep content strictly in the right column,
   but preserve the site's standard left-aligned typography for readability. */
body[data-page="home"] .hero.hero-home .hero-slice--service .hero-actions{justify-content:flex-start}

/* More compact vertical rhythm on Home */
body[data-page="home"] .section.section-brands{padding:40px 0}
body[data-page="home"] .section.section-catalog{padding:44px 0}
body[data-page="home"] .section.section-articles{padding:44px 0}
body[data-page="home"] .section.section-note{padding:44px 0}

/* BRANDS — no outer border, equal logo height, smooth scroll */
body[data-page="home"] #brands-marquee .brands-viewport{
  border:none;
  background:transparent;
  padding:0;
  scroll-behavior:smooth;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
}
body[data-page="home"] #brands-marquee .brands-viewport::-webkit-scrollbar{display:none}
body[data-page="home"] #brands-marquee .brands-track{gap:10px}
body[data-page="home"] #brands-marquee .brand-chip{
  height:70px;
  min-width:140px;
  max-width:170px;
  transition:transform var(--motion-fast) ease, filter var(--motion-fast) ease, box-shadow var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
body[data-page="home"] #brands-marquee .brand-chip img{height:38px;max-height:38px;width:auto}
body[data-page="home"] #brands-marquee .brand-chip:hover{
  transform:translateY(-1px);
  filter:brightness(.985);
}

/* POPULAR PRODUCTS — 1 line carousel (5 cards on desktop) */
body[data-page="home"] .home-products-carousel{
  position:relative;
  /* стрелки вне карточек: резервируем место по бокам */
  padding:0;
  overflow:visible;
}
body[data-page="home"] .home-products-viewport{
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  padding:2px 0 6px;
}
body[data-page="home"] .home-products-viewport::-webkit-scrollbar{display:none}

body[data-page="home"] #popular-products.home-products-track{
  display:flex;
  flex-wrap:nowrap;
  gap:14px;
  align-items:stretch;
  min-width:0;
}
body[data-page="home"] #popular-products.home-products-track > .card.product-card{
  flex:0 0 calc((100% - 56px) / 5);
}
@media (max-width: 1199px){
  body[data-page="home"] #popular-products.home-products-track > .card.product-card{
    flex-basis: calc((100% - 28px) / 3);
  }
}
@media (max-width: 767px){
  body[data-page="home"] #popular-products.home-products-track{gap:10px}
  body[data-page="home"] #popular-products.home-products-track > .card.product-card{
    flex-basis: calc((100% - 10px) / 2);
  }
}
@media (max-width: 460px){
  body[data-page="home"] #popular-products.home-products-track > .card.product-card{flex-basis: 85%}
}

/* Keep existing product card visuals; just ensure anchor cards look identical */
body[data-page="home"] a.card.product-card{color:inherit;text-decoration:none}
body[data-page="home"] a.card.product-card:focus{outline:none;box-shadow:var(--focus)}

/* “Показать все” card */
body[data-page="home"] .show-all-card .media{
  background:
    radial-gradient(180px 120px at 30% 20%, rgba(227,30,36,.16) 0%, rgba(227,30,36,0) 70%),
    var(--surface-2);
  display:flex;
  align-items:center;
  justify-content:center;
}
body[data-page="home"] .show-all-card .show-all-icon{
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(227,30,36,.22);
  background:rgba(227,30,36,.08);
  display:grid;
  place-items:center;
  transition:transform var(--motion-fast) ease, background var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
body[data-page="home"] .show-all-card:hover .show-all-icon{
  transform:translateX(2px);
  background:rgba(227,30,36,.12);
  border-color:rgba(227,30,36,.32);
}
body[data-page="home"] .show-all-card .show-all-icon img{width:18px;height:18px;opacity:.9}

/* Carousel arrows inside block (no page horizontal scroll) */
body[data-page="home"] .home-products-carousel .carousel-arrow,
body[data-page="home"] #brands-marquee .carousel-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
}
body[data-page="home"] .home-products-carousel .carousel-arrow.left,
body[data-page="home"] #brands-marquee .carousel-arrow.left{left:8px}
body[data-page="home"] .home-products-carousel .carousel-arrow.right,
body[data-page="home"] #brands-marquee .carousel-arrow.right{right:8px}

@media (max-width: 900px){
  body[data-page="home"] .hero.hero-home .hero-slice{padding:54px 0}
  body[data-page="home"] .hero.hero-home .hero-slice-inner{gap:22px;grid-template-columns:minmax(0, 560px) 1fr}
  body[data-page="home"] .hero.hero-home .hero-slice--service .hero-slice-inner{grid-template-columns:1fr minmax(0, 560px)}
}
@media (max-width: 720px){
  body[data-page="home"] .hero.hero-home .hero-slice{padding:42px 0;background-position:center}
  body[data-page="home"] .hero.hero-home .hero-slice-inner{grid-template-columns:1fr}
  body[data-page="home"] .hero.hero-home .hero-copy{
    max-width:100%;
    grid-column:auto;
    justify-self:stretch;
    /* внешний край по сетке: слева без доп. отступа */
    padding:16px 16px 16px 0;
    background:linear-gradient(to right, rgba(9,12,18,.58) 0%, rgba(9,12,18,.42) 72%, rgba(9,12,18,0) 100%);
  }
  body[data-page="home"] .hero.hero-home .hero-slice--service .hero-copy{
    grid-column:auto;
    justify-self:stretch;
    /* внешний край по сетке: справа без доп. отступа */
    padding:16px 0 16px 16px;
    text-align:left;
    background:linear-gradient(to left, rgba(9,12,18,.58) 0%, rgba(9,12,18,.42) 72%, rgba(9,12,18,0) 100%);
  }
  body[data-page="home"] .hero.hero-home .hero-slice--service .hero-features li{
    padding-right:0;
    padding-left:26px;
    text-align:left;
  }
  body[data-page="home"] .hero.hero-home .hero-slice--service .hero-features li::before{right:auto;left:0}
  body[data-page="home"] .hero.hero-home .hero-slice--service .hero-actions{justify-content:flex-start}
  /* На мобильных стрелки не нужны — остаётся свайп внутри блока */
  body[data-page="home"] .home-products-carousel{padding:0}
  body[data-page="home"] .home-products-carousel .carousel-arrow,
  body[data-page="home"] #brands-marquee .carousel-arrow{display:none}
}



/* ===========================
   HOME (strict visible fixes)
   - HERO #1 text LEFT, HERO #2 text RIGHT (grid 1fr 1fr)
   - Brands: infinite marquee autoscroll (linear, pause on hover)
   - Catalog arrows: keep outside cards
   =========================== */

/* Desktop / tablet: strict hero columns + arrows outside cards */
@media (min-width: 721px){
  /* HERO strict grid columns */
  body[data-page="home"] .hero.hero-home .hero-slice-inner{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:32px;
    align-items:center;
  }
  body[data-page="home"] .hero.hero-home .hero-visual{
    min-height:1px;
    pointer-events:none;
  }
  body[data-page="home"] .hero.hero-home .hero-slice--parts{background-position:right center;}
  body[data-page="home"] .hero.hero-home .hero-slice--service{background-position:left center;}

  body[data-page="home"] .hero.hero-home .hero-slice--parts .hero-copy{
    justify-self:start;
    max-width:620px;
    padding:18px 26px 18px 0;
    border-radius:18px;
    background:linear-gradient(to right, rgba(9,12,18,.58) 0%, rgba(9,12,18,.40) 55%, rgba(9,12,18,0) 100%);
  }
  body[data-page="home"] .hero.hero-home .hero-slice--service .hero-copy{
    justify-self:end;
    max-width:620px;
    padding:18px 0 18px 26px;
    border-radius:18px;
    background:linear-gradient(to left, rgba(9,12,18,.58) 0%, rgba(9,12,18,.40) 55%, rgba(9,12,18,0) 100%);
  }

  /* CATALOG arrows: reserve more side space so arrows never overlap cards */
  body[data-page="home"] .home-products-carousel{ padding:0 64px; }
  body[data-page="home"] .home-products-carousel .carousel-arrow.left{ left:14px; }
  body[data-page="home"] .home-products-carousel .carousel-arrow.right{ right:14px; }
}

/* Mobile: hide empty visual column */
@media (max-width: 720px){
  body[data-page="home"] .hero.hero-home .hero-visual{display:none;}
}

/* BRANDS marquee: CSS animation (JS sets --brands-shift / --brands-duration) */
body[data-page="home"] #brands-marquee .brands-viewport{
  overflow:hidden;
}
body[data-page="home"] #brands-marquee .brands-track{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  width:max-content;
  will-change:transform;
  animation:brands-marquee var(--brands-duration, 28s) linear infinite;
}
body[data-page="home"] #brands-marquee .brands-viewport:hover .brands-track,
body[data-page="home"] #brands-marquee .brands-viewport:focus-within .brands-track{
  animation-play-state:paused;
}
@keyframes brands-marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(calc(-1 * var(--brands-shift, 0px))); }
}
@media (prefers-reduced-motion: reduce){
  body[data-page="home"] #brands-marquee .brands-track{ animation:none; }
}


/* ===========================
   HOME — финальные правки (v5)
   Требования:
   ✅ HERO #1 — текст слева (по сетке контейнера)
   ✅ HERO #2 — текст справа (по сетке контейнера)
   ✅ Без чёрной рамки вокруг текстовых блоков
   ✅ Бренды: вернуть нормальный вид + плавный бесконечный автоскролл
   =========================== */

/* HERO: фиксируем явные колонки (контент 620px + визуал) и делаем приятную тёмную подложку */
@media (min-width: 721px){
  body[data-page="home"] .hero.hero-home .hero-slice-inner{display:grid;gap:32px;align-items:center;}
  body[data-page="home"] .hero.hero-home .hero-slice--parts .hero-slice-inner{grid-template-columns:minmax(0, 620px) 1fr;}
  body[data-page="home"] .hero.hero-home .hero-slice--service .hero-slice-inner{grid-template-columns:1fr minmax(0, 620px);}

  body[data-page="home"] .hero.hero-home .hero-slice--parts .hero-copy,
  body[data-page="home"] .hero.hero-home .hero-slice--service .hero-copy{
    width:100%;
    max-width:620px;
    border:none !important;
    outline:none !important;
    box-shadow:none !important;
    border-radius:18px;
    /* тёмная читаемая подложка без рамки */
    background:rgba(17,24,39,.62);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
  }
  body[data-page="home"] .hero.hero-home .hero-slice--parts .hero-copy{justify-self:start;padding:18px 22px;}
  body[data-page="home"] .hero.hero-home .hero-slice--service .hero-copy{justify-self:end;padding:18px 22px;}
}

@media (max-width: 720px){
  body[data-page="home"] .hero.hero-home .hero-copy{
    border:none !important;
    outline:none !important;
    box-shadow:none !important;
    border-radius:18px;
    background:rgba(17,24,39,.64);
    padding:16px;
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
  }
}

/* BRANDS: вернуть горизонтальную ленту (не колонкой) + бесшовная анимация */
body[data-page="home"] #brands-marquee .brands-viewport{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.85);
  padding:12px;
  overflow:hidden;
}
body[data-page="home"] #brands-marquee .brands-track{gap:0;}
body[data-page="home"] #brands-marquee .brands-group{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  width:max-content;
}
body[data-page="home"] #brands-marquee .brands-group[aria-hidden="true"]{pointer-events:none;}

/* вернуть размеры и выравнивание логотипов как было */
body[data-page="home"] #brands-marquee .brand-chip{
  height:74px;
  min-width:140px;
  max-width:170px;
  padding:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  transition:transform var(--motion-fast, 260ms) ease, box-shadow var(--motion-fast, 260ms) ease, border-color var(--motion-fast, 260ms) ease, filter var(--motion-fast, 260ms) ease;
}
body[data-page="home"] #brands-marquee .brand-chip:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  border-color:rgba(17,24,39,.18);
  filter:brightness(.99);
}
body[data-page="home"] #brands-marquee .brand-chip img{max-height:42px;width:auto;}

/* ===========================
   HOME — Главная страница (ТЗ, финал)
   - Hero slider (3 слайда) + точки/стрелки
   - Блок преимуществ
   - Популярные товары: сетка 2×3 (desktop) + горизонтальный скролл (mobile)
   - Бренды: горизонтальная карусель со скроллом + автопрокруткой (JS)
   =========================== */

/* HERO slider */
body[data-page="home"] .hero.hero-home{position:relative;isolation:isolate;}
body[data-page="home"] .hero-slider{
  display:flex;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
body[data-page="home"] .hero-slider::-webkit-scrollbar{display:none;}
body[data-page="home"] .hero-slider > .hero-slice{
  flex:0 0 100%;
  min-width:100%;
  scroll-snap-align:start;
  border-top:none !important;
}

body[data-page="home"] .hero-slider-ui{
  position:absolute;
  left:0;
  right:0;
  bottom:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  z-index:5;
  pointer-events:none;
}
body[data-page="home"] .hero-slider-ui .hero-nav,
body[data-page="home"] .hero-slider-ui .hero-dots{pointer-events:auto;}

body[data-page="home"] .hero-nav{
  width:44px;height:44px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(17,24,39,.45);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}
body[data-page="home"] .hero-nav:hover{background:rgba(17,24,39,.56);transform:translateY(-1px);}
body[data-page="home"] .hero-nav:focus{outline:none;box-shadow:var(--focus);}
body[data-page="home"] .hero-nav img{width:18px;height:18px;opacity:.95;filter:brightness(2);}

body[data-page="home"] .hero-dots{
  display:flex;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(17,24,39,.42);
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}
body[data-page="home"] .hero-dot{
  width:9px;height:9px;
  border-radius:999px;
  border:0;
  background:rgba(255,255,255,.38);
  cursor:pointer;
}
body[data-page="home"] .hero-dot.is-active{background:#fff;}
body[data-page="home"] .hero-dot:focus{outline:none;box-shadow:0 0 0 3px rgba(227,30,36,.35);}

@media (max-width: 720px){
  body[data-page="home"] .hero-slider-ui{bottom:10px;gap:8px;}
  /* На мобильных оставляем точки, стрелки прячем (свайп удобнее) */
  body[data-page="home"] .hero-slider-ui .hero-nav{display:none;}
  body[data-page="home"] .hero-dots{padding:8px 10px;}
}

@media (prefers-reduced-motion: reduce){
  body[data-page="home"] .hero-slider{scroll-behavior:auto;}
}

/* ADVANTAGES */
body[data-page="home"] .section.section-advantages{
  background:linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:34px 0;
}
body[data-page="home"] .advantages-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
}
body[data-page="home"] .adv-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.92);
  box-shadow:var(--shadow-sm);
  padding:14px 14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}
body[data-page="home"] .adv-ic{
  width:42px;height:42px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:rgba(227,30,36,.10);
  border:1px solid rgba(227,30,36,.18);
  flex:0 0 auto;
}
body[data-page="home"] .adv-ic img{width:18px;height:18px;opacity:.95;}
body[data-page="home"] .adv-t{font-weight:850;line-height:1.15;}
body[data-page="home"] .adv-d{margin-top:2px;color:var(--muted);font-size:14px;line-height:1.35;}

@media (max-width: 1024px){
  body[data-page="home"] .advantages-grid{grid-template-columns:repeat(2, minmax(0, 1fr));}
}
@media (max-width: 640px){
  body[data-page="home"] .section.section-advantages{padding:22px 0;}
  body[data-page="home"] .advantages-grid{grid-template-columns:1fr;gap:10px;}
}

/* Home catalog actions */
body[data-page="home"] .section-actions{margin-top:14px;display:flex;justify-content:center;}

/* POPULAR PRODUCTS (grid 2×3) */
body[data-page="home"] #popular-products{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}
@media (max-width: 1024px){
  body[data-page="home"] #popular-products{grid-template-columns:repeat(2, minmax(0, 1fr));}
}

/* Mobile: 1 card per row + horizontal scroll */
@media (max-width: 520px){
  body[data-page="home"] #popular-products{
    display:flex;
    gap:12px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
  }
  body[data-page="home"] #popular-products::-webkit-scrollbar{display:none;}
  body[data-page="home"] #popular-products > .card.product-card{
    flex:0 0 86%;
    scroll-snap-align:start;
  }
}

/* BRANDS: hover makes logos colored (default grayscale) */
body[data-page="home"] #brands-marquee .brands-viewport{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
body[data-page="home"] #brands-marquee .brands-viewport::-webkit-scrollbar{display:none;}
body[data-page="home"] #brands-marquee .brand-chip img{
  filter:grayscale(1) contrast(1.05) brightness(1.02);
  transition:filter var(--motion-fast, 260ms) ease;
}
body[data-page="home"] #brands-marquee .brand-chip:hover img{filter:none;}

/* BLOG (home) — cards with cover + excerpt + CTA */
body[data-page="home"] .section.section-articles .article-card .title{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body[data-page="home"] .section.section-articles .article-card .desc{
  color:var(--muted);
  font-size:13px;
  margin-top:6px;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body[data-page="home"] .section.section-articles .article-card .actions{margin-top:10px;}


/* ===========================
   HOME — updates (v6)
   Требования (февраль 2026):
   - HERO: стрелки читаемые, капсула точек без жёсткой рамки, active dot = #e31e24
   - ADVANTAGES: единый обведённый блок, 4 пункта в 1 линию без переносов (ellipsis), на узких экранах — горизонтальный скролл
   - BRANDS: блок внизу страницы, без стрелок и без рамки, лёгкие fade по краям
   =========================== */

/* HERO controls polish */
body[data-page="home"] .hero-slider-ui{z-index:10;}
body[data-page="home"] .hero-nav{
  background:rgba(15,23,42,.42);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 12px 28px rgba(0,0,0,.22);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
body[data-page="home"] .hero-nav:hover{background:rgba(15,23,42,.56);}
body[data-page="home"] .hero-nav img{
  width:18px;
  height:18px;
  opacity:.95;
  /* make the svg always white on dark glass */
  filter:brightness(0) invert(1);
}

body[data-page="home"] .hero-dots{
  background:rgba(15,23,42,.34);
  border:none;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
body[data-page="home"] .hero-dot{background:rgba(255,255,255,.36);}
body[data-page="home"] .hero-dot.is-active{
  background:var(--accent);
  box-shadow:0 0 0 3px rgba(227,30,36,.18);
}

/* HOME catalog carousel: snap by cards + hide scrollbar (still scrollable) */
body[data-page="home"] .home-products-viewport{scroll-snap-type:x mandatory;scroll-padding:0 8px;}
body[data-page="home"] #popular-products.home-products-track > .card.product-card{scroll-snap-align:start;}

/* ADVANTAGES: unified bordered box + compact one-line text */
body[data-page="home"] .section.section-advantages{
  background:transparent;
  border:none;
  padding:18px 0;
}
body[data-page="home"] .advantages-box{
  position:relative;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow-sm);
  padding:14px 14px;
}
body[data-page="home"] .advantages-box::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:3px;
  background:var(--accent);
  border-radius:var(--radius) var(--radius) 0 0;
}
body[data-page="home"] .advantages-grid{
  display:flex;
  flex-wrap:nowrap;
  gap:14px;
  align-items:stretch;
  min-width:0;
}
body[data-page="home"] .advantages-grid::-webkit-scrollbar{display:none;}
body[data-page="home"] .adv-card{
  flex:1 1 0;
  min-width:0;
  border:none;
  box-shadow:none;
  background:transparent;
  padding:10px 10px;
  border-radius:14px;
}
body[data-page="home"] .adv-ic{
  width:40px;height:40px;
  border-radius:999px;
  background:var(--accent);
  border:1px solid rgba(255,255,255,.18);
}
body[data-page="home"] .adv-ic img{width:18px;height:18px;filter:brightness(0) invert(1);opacity:1;}
body[data-page="home"] .adv-t,
body[data-page="home"] .adv-d{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body[data-page="home"] .adv-d{font-size:13px;margin-top:2px;}

@media (max-width: 1024px){
  body[data-page="home"] .advantages-grid{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-top:6px;}
  body[data-page="home"] .adv-card{flex:0 0 320px;}
}
@media (max-width: 520px){
  body[data-page="home"] .adv-card{flex-basis: 86%;}
}

/* BRANDS: light inline marquee (no frame, no arrows) + edge fade */
body[data-page="home"] #brands-marquee .brands-viewport{
  border:none !important;
  background:transparent !important;
  padding:0 !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
body[data-page="home"] #brands-marquee .brands-viewport::-webkit-scrollbar{display:none;}
/* disable any CSS marquee animation to keep JS autoscroll + manual swipe */
body[data-page="home"] #brands-marquee .brands-track{animation:none !important;transform:none !important;}
body[data-page="home"] #brands-marquee .brands-carousel{position:relative;}
body[data-page="home"] #brands-marquee .brands-carousel::before,
body[data-page="home"] #brands-marquee .brands-carousel::after{
  content:"";
  position:absolute;
  top:0;bottom:0;
  width:54px;
  pointer-events:none;
  z-index:2;
}
body[data-page="home"] #brands-marquee .brands-carousel::before{
  left:0;
  background:linear-gradient(to right, var(--bg) 0%, rgba(246,247,249,0) 100%);
}
body[data-page="home"] #brands-marquee .brands-carousel::after{
  right:0;
  background:linear-gradient(to left, var(--bg) 0%, rgba(246,247,249,0) 100%);
}


/* ===========================
   HOME — hotfix (v7)
   - Преимущества: текст не обрезается, заголовок над описанием
   - HERO: больше «воздуха», мягкая тень, выравнивание под начало поиска
   =========================== */

/* ADVANTAGES: ensure full title visible + no clipping + accent line stays inside radius */
body[data-page="home"] .advantages-box{overflow:hidden;}
body[data-page="home"] .advantages-box::before{border-radius:var(--radius) var(--radius) 0 0 !important;}

body[data-page="home"] .adv-card{
  display:grid;
  grid-template-columns:40px 1fr;
  grid-template-rows:auto auto;
  grid-template-areas:"ic title" "ic desc";
  column-gap:12px;
  row-gap:4px;
  align-items:center;
  padding:12px 14px;
  min-height:74px;
}
body[data-page="home"] .adv-ic{grid-area:ic;align-self:center;}
body[data-page="home"] .adv-t{
  grid-area:title;
  font-weight:850;
  font-size:15px;
  line-height:1.2;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
body[data-page="home"] .adv-d{
  grid-area:desc;
  font-size:13px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* HERO: softer “not-a-box” overlay + align with header search start (set by JS var) */
body[data-page="home"] .hero.hero-home .hero-slice-inner{display:block !important;}
body[data-page="home"] .hero.hero-home .hero-visual{display:none !important;}

body[data-page="home"] .hero.hero-home .hero-copy{
  position:relative;
  max-width:780px;
  border:none !important;
  outline:none !important;
  box-shadow:0 18px 55px rgba(0,0,0,.22) !important;
  border-radius:22px;
  padding:22px 26px;
  padding-right:92px;
  background:linear-gradient(90deg, rgba(9,12,18,.78) 0%, rgba(9,12,18,.56) 72%, rgba(9,12,18,0) 100%) !important;
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}

/* Delivery slide needs more dark “air” like the other banners */
body[data-page="home"] .hero.hero-home .hero-slice--delivery::before{
  background:linear-gradient(90deg, rgba(9,12,18,.78) 0%, rgba(9,12,18,.58) 58%, rgba(9,12,18,.14) 100%) !important;
}
body[data-page="home"] .hero.hero-home .hero-slice--delivery .hero-copy{
  max-width:820px;
  padding-right:130px;
}

@media (min-width: 900px){
  body[data-page="home"] .hero.hero-home .hero-copy{margin-left:var(--hero-copy-indent, 0px);}
}
@media (max-width: 899px){
  body[data-page="home"] .hero.hero-home .hero-copy{margin-left:0;}
}


/* ===========================
   PRODUCT — similar products carousel (v7)
   =========================== */
body[data-page="product"] .similar-carousel{position:relative;display:flex;align-items:center;gap:10px;margin-top:10px;}
body[data-page="product"] .similar-carousel .carousel-arrow{
  width:44px;height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(15,23,42,.42);
  box-shadow:0 12px 28px rgba(0,0,0,.18);
  display:grid;
  place-items:center;
  cursor:pointer;
}
body[data-page="product"] .similar-carousel .carousel-arrow img{width:18px;height:18px;filter:brightness(0) invert(1);opacity:1;}
body[data-page="product"] .similar-carousel .carousel-arrow:focus-visible{outline:3px solid rgba(227,30,36,.35);outline-offset:2px;}

body[data-page="product"] #similar-grid{
  display:flex !important;
  gap:14px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  padding:6px 2px 10px;
  min-width:0;
}
body[data-page="product"] #similar-grid::-webkit-scrollbar{display:none;}
body[data-page="product"] #similar-grid > .card.product-card{
  flex:0 0 280px;
  scroll-snap-align:start;
}
@media (max-width: 900px){
  body[data-page="product"] #similar-grid > .card.product-card{flex-basis: 44%;}
}
@media (max-width: 520px){
  body[data-page="product"] .similar-carousel .carousel-arrow{display:none;}
  body[data-page="product"] #similar-grid > .card.product-card{flex-basis: 86%;}
}


/* ===========================
   TZ v7 — Главная + связанные блоки
   - Преимущества: заголовок полностью виден, описание 1 строка, акцент не выезжает
   - Hero: больше «воздуха» у подложки (особенно доставка), выравнивание по началу поиска
   - Блог: 3 карточки в 1 ряд (без переносов) + кнопка ЧИТАТЬ
   - Бренды: убрать дергание автоскролла (отключить snap/smooth)
   =========================== */

/* A) ADVANTAGES — fix clipped text + keep accent inside rounded box */
body[data-page="home"] .advantages-box{overflow:hidden;}
body[data-page="home"] .advantages-box::before{border-radius:var(--radius) var(--radius) 0 0;}
body[data-page="home"] .adv-card{align-items:center;min-height:76px;}
body[data-page="home"] .adv-text{display:flex;flex-direction:column;min-width:0;}
body[data-page="home"] .adv-t{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.15;font-weight:850;font-size:15px;}
body[data-page="home"] .adv-d{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}

/* B) HERO — align content with header search (set by JS var) + softer overlay */
body[data-page="home"] .hero.hero-home .hero-slice-inner{grid-template-columns:minmax(0, 640px) 1fr;}
body[data-page="home"] .hero.hero-home .hero-slice--service .hero-slice-inner{grid-template-columns:minmax(0, 640px) 1fr;}
body[data-page="home"] .hero.hero-home .hero-slice--service .hero-visual{grid-column:2;}
body[data-page="home"] .hero.hero-home .hero-slice--service .hero-copy{grid-column:1;justify-self:start;}

body[data-page="home"] .hero.hero-home .hero-copy{
  position:relative;
  max-width:calc(680px + var(--home-hero-align-offset, 0px));
  padding:28px 34px 28px calc(34px + var(--home-hero-align-offset, 0px));
  border-radius:22px;
  background:linear-gradient(to right, rgba(9,12,18,.64) 0%, rgba(9,12,18,.42) 72%, rgba(9,12,18,0) 100%);
  box-shadow:0 18px 60px rgba(0,0,0,.18);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

/* Delivery slide — a bit more dark “air” so the panel is not tight */
body[data-page="home"] .hero.hero-home .hero-slice--delivery .hero-copy{
  max-width:calc(740px + var(--home-hero-align-offset, 0px));
  padding:32px 40px 32px calc(40px + var(--home-hero-align-offset, 0px));
  background:linear-gradient(to right, rgba(9,12,18,.70) 0%, rgba(9,12,18,.48) 78%, rgba(9,12,18,0) 100%);
}

/* C) BLOG (home) — keep 3 cards in one line (no wrapping); scroll on narrow screens */
body[data-page="home"] #latest-articles.list{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;align-items:stretch;}
body[data-page="home"] #latest-articles.list::-webkit-scrollbar{display:none;}
body[data-page="home"] #latest-articles.list > .card.article-card{flex:0 0 calc((100% - 64px)/5)!important;scroll-snap-align:start;}
@media (max-width: 1024px){body[data-page="home"] #latest-articles.list > .card.article-card{flex-basis: calc((100% - 32px)/3)!important;}}
@media (max-width: 640px){body[data-page="home"] #latest-articles.list > .card.article-card{flex-basis: 86%!important;}}

/* E) BRANDS (home) — remove snap/smooth to prevent jitter with JS autoscroll */
body[data-page="home"] #brands-marquee .brands-viewport{scroll-snap-type:none !important;scroll-behavior:auto !important;}
body[data-page="home"] #brands-marquee .brands-track{gap:0 !important;}
body[data-page="home"] #brands-marquee .brands-group{display:flex;gap:10px;align-items:center;}

/* ===========================
   HOME BLOG (v7.1)
   - компактные карточки
   - до 5 статей в одну строку на десктопе
   =========================== */

body[data-page="home"] #latest-articles.list{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;align-items:stretch;}

body[data-page="home"] #latest-articles.list > .card.article-card.article-card--mini{
  flex:0 0 calc((100% - 48px) / 5);
  min-width:0;
}

body[data-page="home"] #latest-articles .article-card--mini .media{
  display:block;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:14px 14px 0 0;
}

body[data-page="home"] #latest-articles .article-card--mini .media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

body[data-page="home"] #latest-articles .article-card--mini .body{
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

body[data-page="home"] #latest-articles .article-card--mini .meta .pill{font-size:11px;}

body[data-page="home"] #latest-articles .article-card--mini .title{
  font-size:14px;
  line-height:1.2;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  min-height:calc(2 * 1.2em);
}

body[data-page="home"] #latest-articles .article-card--mini .actions{margin-top:auto;}
body[data-page="home"] #latest-articles .article-card--mini .btn{width:100%;justify-content:center;padding:8px 10px;font-size:12px;}

@media (max-width: 1200px){
  body[data-page="home"] #latest-articles.list{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;align-items:stretch;}
  body[data-page="home"] #latest-articles.list::-webkit-scrollbar{display:none;}
  body[data-page="home"] #latest-articles.list > .card.article-card.article-card--mini{
    flex:0 0 240px;
    scroll-snap-align:start;
  }
}

@media (max-width: 520px){
  body[data-page="home"] #latest-articles.list > .card.article-card.article-card--mini{flex-basis: 82%;}
}

/* PRODUCT CARDS: allow title wrap up to 3 lines (use free space under title) */
.card.product-card .product-title{
  white-space:normal !important;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}

/* SERVICE: gallery arrows always visible + glass style (no opacity fade on hover) */
body[data-page="service"] .carousel[data-carousel="service-gallery"] .carousel-arrow{
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(15,23,42,.42);
  color:#fff;
  box-shadow:0 14px 28px rgba(0,0,0,.25);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  z-index:3;
}
body[data-page="service"] .carousel[data-carousel="service-gallery"] .carousel-arrow:hover{
  background:rgba(15,23,42,.52);
  border-color:rgba(255,255,255,.22);
}

/* Consent link style */
.consent-link{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;}
.consent-link:hover{color:var(--accent);}





/* === Header: show two phones in topbar (v11) === */
.topbar-phones{display:flex;align-items:center;gap:10px;white-space:nowrap;flex-wrap:nowrap}
.topbar-phones .topbar-sep{opacity:.55}
.topbar-phone--alt{opacity:.85}
@media (max-width: 520px){
  .topbar-phone--alt{display:none}
}

/* === Home catalog: align cards with title and overlay arrows (v11) === */
body[data-page="home"] .home-products-carousel{padding:0;overflow:visible}
body[data-page="home"] .home-products-carousel .carousel-arrow{
  z-index:6;
  background:rgba(255,255,255,.82);
  border-color:rgba(15,23,42,.14);
  backdrop-filter:saturate(140%) blur(10px);
  box-shadow:0 10px 26px rgba(0,0,0,.14);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}
body[data-page="home"] .home-products-carousel:hover .carousel-arrow{
  background:rgba(255,255,255,.90);
}
body[data-page="home"] .home-products-carousel .carousel-arrow:hover{
  z-index:9;
  transform:translateY(-50%) scale(1.04);
  box-shadow:0 16px 44px rgba(0,0,0,.22);
}
body[data-page="home"] .home-products-carousel .carousel-arrow.left{left:-10px}
body[data-page="home"] .home-products-carousel .carousel-arrow.right{right:-10px}
@media (max-width: 767px){
  body[data-page="home"] .home-products-carousel .carousel-arrow{display:none}
  body[data-page="home"] .home-products-carousel .carousel-arrow:hover{transform:translateY(-50%)}
}



/* ===========================
   v12 — Home advantages, hero autoplay, blog cards, similar products sizing
   =========================== */

/* Photo 1: Advantages — show description fully (up to 2 lines) */
body[data-page="home"] .adv-d{
  white-space:normal !important;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Photo 3: Product page — similar products cards sized like catalog (smaller) */
body[data-page="product"] #similar-grid > .card.product-card{
  flex:0 0 calc((100% - 56px) / 5);
}
@media (max-width: 1100px){
  body[data-page="product"] #similar-grid > .card.product-card{flex-basis: calc((100% - 42px) / 4);}
}
@media (max-width: 900px){
  body[data-page="product"] #similar-grid > .card.product-card{flex-basis: 44%;}
}

/* Photo 4: Home blog — hover scale like product cards + clickable title */
body[data-page="home"] #latest-articles .article-card--mini{
  transition:transform .18s ease, box-shadow .18s ease;
  will-change:transform;
}
body[data-page="home"] #latest-articles .article-card--mini:hover{
  transform:translateZ(0) scale(1.03);
  box-shadow:var(--shadow-sm);
}
body[data-page="home"] #latest-articles .article-card--mini .title{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
}
body[data-page="home"] #latest-articles .article-card--mini .title:hover{color:var(--text);}

