/* Megakabinet — homepage */
:root {
  --blue: #2074B5;
  --blue-dark: #19223F;
  --blue-deep: #00122F;
  --cyan: #00B1EB;
  --cyan-soft: #99E0F7;
  --yellow: #FFB802;
  --yellow-soft: #FFEAB3;
  --bg: #FFFFFF;
  --bg-soft: #EBF2FA;
  --bg-soft-2: #D9E8F5;
  --ink: #121212;
  --ink-2: #19223F;
  --ink-3: #475569;
  --muted: #818181;
  --line: #E2EAF3;
  --shadow-card: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.06);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: 'Rubik', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Rubik', sans-serif; margin: 0; color: var(--ink-2); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

a .contact-link { text-decoration: underline!important; }

.container { max-width: var(--container-w, 1400px); width: 100%; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
/* Kill Bootstrap clearfix pseudo-elements that become unwanted flex items */
.topbar-inner::before, .topbar-inner::after,
.header-inner::before, .header-inner::after,
.nav-inner::before, .nav-inner::after { content: none; display: none; }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--bg-soft);
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(32,116,181,0.08);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.topbar-links { display: flex; gap: 28px; padding-left: 20px;}
.topbar-links a { transition: color .15s; }
.topbar-links a:hover { color: var(--blue); }
/* Global: no ugly browser focus ring on mouse click;
   keep visible focus only for keyboard (Tab) navigation.
   Each selector listed explicitly so we beat Bootstrap's `a:focus` / `.btn:focus`
   (which have higher specificity than a bare `:focus`). */
:focus,
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
summary:focus,
[tabindex]:focus,
.btn:focus,
.dropdown-toggle:focus,
.navbar-toggle:focus { outline: none; box-shadow: none; }

:focus-visible,
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.dropdown-toggle:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Form fields: focus is already conveyed by border/box-shadow elsewhere */
input:focus-visible,
textarea:focus-visible,
select:focus-visible { outline: none; }

/* No underline on hover for header anchors (Bootstrap adds text-decoration: underline to a:hover) */
.logo, .logo:hover, .logo:focus,
.phone, .phone:hover, .phone:focus,
.cart, .cart:hover, .cart:focus,
#cart, #cart:hover, #cart:focus { text-decoration: none; }
.logo *, .logo:hover *,
.phone *, .phone:hover *,
.cart *, .cart:hover *,
#cart *, #cart:hover * { text-decoration: none; }
.topbar-socials { display: flex; gap: 14px; align-items: center; }
.topbar-socials a {
  width: 28px; height: 28px; display: grid; place-items: center;
  color: var(--blue); transition: transform .15s, color .15s;
}
.topbar-socials a:hover { color: var(--cyan); transform: translateY(-1px); }

/* ---------- HEADER ---------- */
.header { background: #fff; padding: 18px 0; }
.header-inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 32px; }
.header-inner > .logo { flex-shrink: 0; }
.header-inner > .search { flex: 1 1 auto; min-width: 0; }
.header-inner > .phone { flex-shrink: 0; }
.header-inner > #cart, .header-inner > .cart { flex-shrink: 0; }
.header-inner > .burger { flex-shrink: 0; margin-left: auto; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: auto; height: 56px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 24px; color: var(--blue);
}
.logo-tag { font-size: 11px; color: var(--ink-3); margin-top: 4px; }

.search {
  display: flex; align-items: center;
  background: #fff;
  border: 1.5px solid var(--blue);
  border-radius: 64px;
  padding: 4px 4px 4px 24px;
  height: 56px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,177,235,0.15); }
.search input {
  flex: 1; border: none; outline: none; font-family: 'Rubik', sans-serif;
  font-size: 16px; color: var(--ink); background: transparent;
}
.search input::placeholder { color: rgba(18,18,18,0.4); }
.search-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  transition: background .15s, transform .15s;
}
.search-btn:hover { background: var(--cyan); }
.search-btn:active { transform: scale(0.95); }

.phone { display: flex; align-items: center; gap: 12px; }
.phone-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-soft); color: var(--blue);
  display: grid; place-items: center;
}
.phone-text { display: flex; flex-direction: column; line-height: 1.2; }
.phone-num { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 20px; color: var(--ink-2); }
.phone-tag { font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.cart {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; padding: 4px 8px;
  transition: transform .15s;
}
.cart:hover { transform: translateY(-2px); }
.cart-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center;
}
.cart-count {
  position: absolute; top: -4px; right: 0;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--cyan); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid #fff;
}
.cart-label { font-size: 12px; color: var(--ink-3); }

/* ---------- NAV ----------
   Desktop = grid of coloured category tiles (see the desktop block near the
   bottom of this file); ≤1024px = off-canvas drawer. */
.nav {
  background: #fff;
  color: var(--ink-2);
  position: relative;
  z-index: 50;
}
.nav-inner { display: flex; align-items: stretch; gap: 4px; }
.nav-list { display: flex; flex: 1; flex-wrap: nowrap; min-width: 0; }
.nav-item {
  font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 14px;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
  position: relative;
}
.nav-item .chev { transition: transform .15s; }

/* ---------- HERO ---------- */
.hero-bg {
  background: linear-gradient(180deg, #F4F9FE 0%, #EBF2FA 100%);
  border-radius: 0 0 48px 48px;
  padding-bottom: 40px;
  margin-bottom: 8px;
  /* Full-bleed: works when the wrapper is rendered inside the home .container
     (via content_top) or directly under <body>. Relies on body { overflow-x: hidden }. */
  margin-left: calc((100vw - 100%) / -2);
  margin-right: calc((100vw - 100%) / -2);
  width: 100vw;
  max-width: 100vw;
}
/* Vertical padding only — horizontal gutter comes from .container so the hero
   aligns with every other section (shorthand here would zero it out). */
.hero { padding-top: 56px; padding-bottom: 24px; position: relative; display: grid; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
/* All slides occupy the same grid cell and crossfade via opacity. The cell
   sizes to the tallest slide, so switching never shifts the layout. */
.hero-slide { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }
/* Let grid children shrink below their content's intrinsic width so nothing
   can force horizontal overflow on narrow screens. */
.hero-grid > * { min-width: 0; }
.hero h1 {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 56px; line-height: 1.1; color: var(--ink-2);
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 18px; line-height: 1.6; color: var(--ink-3);
  max-width: 520px; margin-bottom: 32px;
}
.hero-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 36px; max-width: 640px; }
.hero-feat { display: flex; flex-direction: row; gap: 10px; align-items: center; }
.hero-feat-ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-soft); color: var(--blue);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-feat-text { font-size: 12px; color: var(--ink-2); line-height: 1.3; font-weight: 500; }
.hero-feat { display: flex; flex-direction: row; gap: 10px; align-items: center; }
.hero-feat-ic {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-soft); color: var(--blue);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-feat-text { font-size: 12px; color: var(--ink-2); line-height: 1.3; font-weight: 500; }
.hero-feat-text-dup { display: none; }
.hero-ctas { display: flex; gap: 16px; align-items: stretch; }
.hero-ctas .btn { min-width: 240px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 16px;
  padding: 18px 28px; border-radius: 12px;
  transition: transform .12s, background .15s, color .15s, box-shadow .15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 8px 20px rgba(32,116,181,0.3); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffc832; box-shadow: 0 8px 20px rgba(255,184,2,0.4); }

/* hero illustration: layered SVG circle + striped placeholder */
.hero-art {
  position: relative; aspect-ratio: 1/1; max-width: 560px; width: 100%; margin-left: auto;
}
.hero-blob {
  /* inset:0 keeps the blob square → a true circle (not an ellipse), concentric
     with the centred photo, and never spilling past .hero-art / the container. */
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--yellow) 0%, var(--yellow) 30%, var(--cyan) 70%, var(--blue) 100%);
  filter: blur(0.5px);
  opacity: 0.85;
  z-index: 0;
}
.hero-photo {
  position: relative; z-index: 1;
  width: 88%; aspect-ratio: 1/1; margin: 6% auto 0;
  border-radius: 50%; overflow: hidden;
  background: repeating-linear-gradient(135deg, #d9e8f5 0 12px, #cbdcec 12px 24px);
  display: grid; place-items: center;
  box-shadow: 0 30px 60px rgba(32,116,181,0.25);
  border: 6px solid #fff;
}
.hero-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
/* z-index lifts the dots above .hero-blob (positioned, z-index:0), whose bottom
   arc would otherwise paint over these in-flow elements and hide them. */
.hero-dots { position: relative; z-index: 2; display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-soft-2); cursor: pointer; transition: all .2s; }
.hero-dot.active { width: 28px; border-radius: 5px; background: var(--blue); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: var(--blue);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  cursor: pointer; z-index: 4;
  box-shadow: 0 8px 20px rgba(15,23,42,0.12);
  transition: background .15s, color .15s, transform .12s;
}
.hero-arrow:hover { background: var(--blue); color: #fff; }
.hero-arrow:active { transform: translateY(-50%) scale(0.95); }
.hero-arrow.left { left: -8px; }
.hero-arrow.right { right: -8px; }

/* ---------- VALUES STRIP ---------- */
.values {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 0;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.06);
}
.value { display: flex; align-items: flex-start; gap: 16px; position: relative; padding: 0 24px; }
.value:first-child { padding-left: 0; }
.value:last-child { padding-right: 0; }
.value:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(32,116,181,0.15);
}
.value-ic {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px;
  background: #fff; color: var(--blue);
  display: grid; place-items: center;
}
.value-title { font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink-2); margin-bottom: 4px; }
.value-text { font-size: 13px; color: var(--ink-3); line-height: 1.4; }

/* ---------- BREADCRUMBS ---------- */
.breadcrumb {
  list-style: none;
  margin: 20px 0 24px;
  padding: 10px 16px;
  background: #F4F7FB;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-3);
}
.breadcrumb > li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.breadcrumb > li + li::before {
  content: "›";
  margin: 0 8px 0 2px;
  color: #B6C2D6;
  font-size: 14px;
  font-weight: 600;
}
.breadcrumb > li > a {
  color: var(--ink-3);
  text-decoration: none;
  transition: color .15s;
  display: inline-block;
  max-width: 38ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.breadcrumb > li > a:hover { color: var(--blue); }
.breadcrumb > li:last-child > a {
  color: var(--ink-2);
  font-weight: 600;
  pointer-events: none;
  cursor: default;
}
.breadcrumb .fa { font-size: 14px; color: var(--ink-3); }
.breadcrumb > li > a:hover .fa { color: var(--blue); }
@media (max-width: 640px) {
  .breadcrumb {
    padding: 8px 12px;
    font-size: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .breadcrumb::-webkit-scrollbar { display: none; }
  .breadcrumb > li { flex: 0 0 auto; white-space: nowrap; }
  .breadcrumb > li > a { max-width: 22ch; }
}

/* ---------- SECTIONS ---------- */
.section { padding: 60px 0 20px; }
.section > .section-head,
.section > .section-head + * { width: 100%; }
.values, .stats, .tenders { width: 100%; }
.container > * { box-sizing: border-box; }
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 32px; color: var(--ink-2);
}
.section-link {
  font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 15px; color: var(--blue);
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap .15s;
}
.section-link:hover { gap: 12px; }

/* ---------- POPULAR CATEGORIES ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  min-height: 280px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
  overflow: hidden;
}
.cat, .cat:hover, .cat:focus { text-decoration: none; }
.cat *, .cat:hover *, .cat:focus * { text-decoration: none; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(32,116,181,0.3); }
.section-link, .section-link:hover, .section-link:focus { text-decoration: none; }
.cat-title { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 18px; color: var(--ink-2); line-height: 1.2; position: relative; z-index: 2; max-width: 70%; }
.cat-desc { font-size: 13px; color: var(--ink-3); line-height: 1.5; position: relative; z-index: 2; max-width: 65%; }
.cat-img {
  position: absolute; inset: 0;
  width: auto; height: auto;
  margin: 0; border-radius: 0;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}
.cat-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.cat-img.tone-blue,
.cat-img.tone-yellow,
.cat-img.tone-cyan { background: transparent; }

/* ---------- NUSH CABINETS ---------- */
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.room {
  position: relative;
  display: block;
  min-height: 134px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft, #f5f7fb);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  /* Stable compositor layer + matched transparent shadow → no pink/red repaint
     flicker when transform + overflow:hidden + border-radius animate on hover. */
  box-shadow: 0 1px 2px rgba(15,23,42,0), 0 8px 24px rgba(15,23,42,0);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
}
.room, .room:hover, .room:focus { text-decoration: none; }
.room:hover { transform: translate3d(0,-4px,0); box-shadow: var(--shadow-card); border-color: rgba(32,116,181,0.3); }
.room-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}
/* Light gradient on the left so the icon + caption stay readable over any photo. */
.room-grad {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.92) 30%,
    rgba(255,255,255,0.55) 56%,
    rgba(255,255,255,0) 80%);
}
.room-body {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  min-height: 134px;
  padding: 20px 24px;
  box-sizing: border-box;
}
.room-icon { flex: 0 0 auto; width: 52px; height: 52px; object-fit: contain; display: block; }
.room-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700; font-size: 20px; line-height: 1.2;
  color: var(--blue-dark);
  /* The two-line split is driven by JS (see nush_cabinets.twig), which inserts a
     <br> at the balanced midpoint so the caption stays in the readable left zone
     of the gradient. text-wrap:balance + the cap below are the no-JS fallback. */
  max-width: 60%;
  overflow-wrap: break-word;
  text-wrap: balance;
}
@media (max-width: 768px) {
  .rooms { grid-template-columns: 1fr; }
  .room-title { font-size: 18px; }
}

/* ---------- PROGRAMS ---------- */
.programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.program {
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer; position: relative; overflow: hidden;
}
.program, .program:hover, .program:focus { text-decoration: none; }
.program *, .program:hover *, .program:focus * { text-decoration: none; }
.program:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15,23,42,0.12); }
.program.p-blue { background: var(--bg-soft); }
.program.p-green { background: #b9d949; }
.program.p-cyan { background: var(--cyan); color: #fff; }
.program.p-light { background: var(--bg-soft-2); }
.program.p-yellow { background: var(--yellow); }
.program-title { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 22px; line-height: 1.15; }
.program.p-blue .program-title, .program.p-light .program-title, .program.p-yellow .program-title, .program.p-green .program-title { color: var(--ink-2); }
.program-desc { font-size: 14px; line-height: 1.5; flex: 1; }
.program.p-blue .program-desc, .program.p-light .program-desc, .program.p-yellow .program-desc, .program.p-green .program-desc { color: var(--ink-3); }
.program.p-cyan .program-desc { color: rgba(255,255,255,0.92); }
.program-link {
  font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto;
  transition: gap .15s;
}
.program-link:hover { gap: 12px; }
.program.p-blue .program-link, .program.p-light .program-link, .program.p-green .program-link { color: var(--blue); }
.program.p-yellow .program-link { color: var(--ink); }
.program.p-cyan .program-link { color: #fff; }
.program-art {
  height: 140px; border-radius: 12px;
  background: rgba(255,255,255,0.5);
  position: relative; overflow: hidden;
}
.program-art img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.program.p-cyan .program-art { background: rgba(255,255,255,0.18); }

/* ---------- PROJECTS CAROUSEL ---------- */
/* The track scrolls horizontally; CSS scroll-snap keeps cards aligned to the
   left edge, and the JS arrows call scrollBy(clientWidth) to advance one page
   (≈4 cards on desktop). Native touch swipe works out of the box. */
.projects-wrap { position: relative; }
.projects {
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.projects::-webkit-scrollbar { display: none; }
.project {
  flex: 0 0 calc((100% - 60px) / 4);  /* 4 visible, 3 gaps of 20px = 60px */
  scroll-snap-align: start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, box-shadow .2s;
  min-width: 0;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.project-img {
  height: 160px; border-radius: 14px;
  background: repeating-linear-gradient(45deg, #e8f0f8 0 10px, #d9e8f5 10px 20px);
  display: grid; place-items: center;
  font-family: 'Rubik', sans-serif; font-size: 11px; color: var(--muted);
  position: relative; overflow: hidden;
}
.project-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-title { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink-2); }
.project-place { font-size: 13px; color: var(--ink-3); }
.project-btn {
  align-self: flex-start;
  font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 13px;
  color: var(--blue);
  padding: 8px 16px; border-radius: 24px;
  border: 1.5px solid var(--blue);
  transition: background .15s, color .15s;
}
.project-btn:hover { background: var(--blue); color: #fff; text-decoration: none; }
.project-btn, .project-btn:focus { text-decoration: none; }
.proj-arrow:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* Static projects grid for the /projects landing page — reuses .project tile
   styles but lays out as a normal responsive grid (no flex carousel). */
.projects-page-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.projects-page-grid .project { flex: none; }
@media (max-width: 1024px) { .projects-page-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .projects-page-grid { grid-template-columns: 1fr; gap: 14px; } }
.proj-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--blue);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  z-index: 2;
}
.proj-arrow:hover { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(32,116,181,0.25); }
.proj-arrow.left { left: -22px; }
.proj-arrow.right { right: -22px; }

/* ---------- STATS ---------- */
.stats {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 36px 48px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin: 40px 0 0;
}
.stat { display: flex; align-items: center; gap: 16px; }
.stat-ic {
  width: 56px; height: 56px; border-radius: 16px;
  background: #fff; color: var(--blue);
  display: grid; place-items: center;
}
.stat-num { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 32px; color: var(--ink-2); line-height: 1; }
.stat-lbl { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ---------- TENDERS ---------- */
.tenders {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  /* Intro sits in the explicit 1.2fr column; each card adds an implicit 1fr
     column, so the row adapts to however many items are enabled. */
  display: grid; grid-template-columns: 1.2fr;
  grid-auto-flow: column; grid-auto-columns: 1fr; gap: 32px;
  align-items: center;
  margin-top: 60px;
}
.tenders h3 {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 24px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.2;
}
.tenders p { font-size: 14px; color: var(--ink-3); line-height: 1.5; margin-bottom: 20px; }
.tender-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--blue); color: #fff;
  padding: 14px 22px; border-radius: 32px;
  font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 14px;
  transition: background .15s;
}
.tender-btn:hover { background: var(--blue-dark); }
.tender-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; text-align: left; }
.tender-logo {
  height: 60px; display: flex; align-items: center; gap: 10px;
  font-family: 'Rubik', sans-serif; font-weight: 700;
}
.tender-logo img { display: block; max-height: 56px; width: auto; }
.tender-sub {
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 11px;
  color: var(--blue); line-height: 1.2;
}
.tender-text { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.tender-btn, .tender-btn:hover, .tender-btn:focus { text-decoration: none; color: #fff; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.faq-col { display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 22px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.faq-item:hover { border-color: var(--blue); }
.faq-item.open { background: var(--bg-soft); border-color: var(--blue); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 15px; color: var(--ink-2);
  gap: 16px;
}
.faq-q .chev { color: var(--blue); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, margin-top .3s ease;
  font-size: 14px; color: var(--ink-3); line-height: 1.55;
}
.faq-item.open .faq-a { max-height: 500px; margin-top: 12px; }

/* ---------- FOOTER ---------- */
.footer { background: #fff; padding: 60px 0 0; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; /* "Покупцям" column hidden */
}
.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-brand-text { font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.footer-soc { display: flex; gap: 12px; margin-top: 8px; }
.footer-soc a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-soft); color: var(--blue);
  display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.footer-soc a:hover { background: var(--blue); color: #fff; }
.footer-col h4 {
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 16px;
  color: var(--ink-2); margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-3); transition: color .15s; }
.footer-col a:hover { color: var(--blue); }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-3); }
.footer-contact-item .ic { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item strong { display: block; color: var(--ink-2); font-weight: 600; }

/* ---------- NEWSLETTER ---------- */
.newsletter {
  background: var(--cyan); border-radius: 24px;
  padding: 16px; margin-top: 30px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  width: 80%;
}
.news-left { display: flex; align-items: center; gap: 18px; color: #fff; }
.news-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,0.18); display: grid; place-items: center; color: #fff;
}
.news-title { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 18px; }
.news-sub { font-size: 13px; opacity: 0.9; margin-top: 4px; max-width: 320px; line-height: 1.4; }
.news-form { display: flex; gap: 12px; }
.news-form input {
  width: 100%; padding: 14px 22px; border-radius: 32px;
  border: none; outline: none; font-size: 15px; font-family: 'Rubik', sans-serif;
  background: #fff; color: var(--ink);
}
.news-form input::placeholder { color: rgba(18,18,18,0.45); }
.news-form button {
  padding: 14px 32px; border-radius: 32px;
  background: var(--yellow); color: var(--ink);
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 15px;
  transition: background .15s, transform .12s;
  white-space: nowrap;
}
.news-form button:hover { background: #ffc832; }
.news-form button:active { transform: scale(0.97); }
.news-form button.success { background: #1f8a5b; color: #fff; }

/* ---------- COPYRIGHT ---------- */
.copyright {
  border-top: 1px solid var(--line);
  padding: 20px 0; margin-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-3);
}
.copyright a:hover { color: var(--blue); }
.copyright-links { display: flex; gap: 28px; }

/* ---------- DROPDOWN MENU ---------- */
.mega {
  position: absolute; top: 100%; left: 0;
  background: #fff; color: var(--ink-2);
  min-width: 280px; border-radius: 0 0 16px 16px;
  box-shadow: 0 16px 40px rgba(15,23,42,0.15);
  padding: 12px;
  display: none;
  z-index: 60;
}
.nav-item.is-open .mega { display: block; }
.mega-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 14px; cursor: pointer;
  transition: background .15s;
}
.mega-row:hover { background: var(--bg-soft); color: var(--blue); }
.mega-row .mega-ic { color: var(--blue); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink-2); color: #fff;
  padding: 14px 24px; border-radius: 32px;
  font-size: 14px; font-family: 'Rubik', sans-serif; font-weight: 500;
  box-shadow: 0 12px 30px rgba(15,23,42,0.3);
  transition: transform .3s ease;
  z-index: 100;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .ic { color: var(--cyan); }

/* ---------- SCROLLBAR + MISC ---------- */
::selection { background: var(--cyan); color: #fff; }

@keyframes fadein {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- TECH BANNER ---------- */
.tech-banner {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 60%, var(--cyan) 120%);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
  color: #fff;
  overflow: hidden; position: relative;
}
.tech-banner::before {
  content: ''; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,184,2,0.4), transparent 70%);
  pointer-events: none;
}
.tech-banner-art {
  position: relative;
  aspect-ratio: 1.05/1;
  border-radius: 28px;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 12px, rgba(255,255,255,0.03) 12px 24px);
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
}
.tech-banner-art .ph-label {
  font-family: 'Rubik', sans-serif; font-size: 13px;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08); padding: 8px 14px; border-radius: 8px;
  position: relative; z-index: 2;
}
.tech-glow {
  position: absolute; inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--yellow), var(--cyan) 60%, transparent 80%);
  filter: blur(20px); opacity: 0.55;
}
.tech-banner-text { position: relative; z-index: 1; }
.tech-eyebrow {
  display: inline-block;
  font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--yellow);
  padding: 6px 14px; border-radius: 99px;
  background: rgba(255,184,2,0.14);
  border: 1px solid rgba(255,184,2,0.4);
  margin-bottom: 20px;
}
.tech-banner-text h2 {
  font-family: 'Rubik', sans-serif; font-weight: 700;
  font-size: 40px; line-height: 1.15; color: #fff;
  margin-bottom: 18px;
}
.tech-banner-text p {
  font-size: 16px; line-height: 1.6; color: rgba(255,255,255,0.85);
  margin-bottom: 24px; max-width: 560px;
}
.tech-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill {
  font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 13px;
  padding: 8px 16px; border-radius: 99px;
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  transition: background .15s, transform .12s;
}
.tech-pill:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

/* ====================================================
   RESPONSIVE — tablet ≤1024px and mobile ≤640px
   ==================================================== */

/* Burger menu trigger (hidden on desktop) */
.burger {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-soft); color: var(--blue);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.burger .bars { display: flex; flex-direction: column; gap: 4px; }
.burger .bars span { display: block; width: 22px; height: 2.5px; background: currentColor; border-radius: 2px; }

/* ---------- TABLET ≤ 1024px ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }

  /* Top bar: hide some links */
  .topbar-links { gap: 18px; flex-wrap: wrap; padding-left: 20px;}
  .topbar-inner { padding: 8px 0; }

  /* Header layout: wrap so search drops to its own row */
  .header-inner { flex-wrap: wrap; gap: 20px; }
  .header-inner > .search { order: 5; flex-basis: 100%; width: 100%; height: 52px; }
  .phone { display: none; }

  /* Nav at ≤1024px is the off-canvas drawer — see "MOBILE DRAWER" block below */

  /* Hero: stack */
  .hero { padding-top: 36px; padding-bottom: 24px; overflow: visible; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 16px; max-width: 100%; }
  .hero-feats { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .hero-art { max-width: 440px; margin: 0 auto; }
  .hero-arrow.left { left: 0; }
  .hero-arrow.right { right: 0; }

  /* Values, stats: 2 cols */
  .values, .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
    gap: 20px;
  }

  /* Categories, programs: 2 cols. Projects carousel: 2 cards per "page". */
  .cats, .programs { grid-template-columns: repeat(2, 1fr); }
  .project { flex: 0 0 calc((100% - 20px) / 2); }

  /* Carousel arrows inside */
  .proj-arrow.left { left: 4px; }
  .proj-arrow.right { right: 4px; }

  /* Section heading */
  .section { padding: 48px 0 16px; }
  .section-head h2 { font-size: 26px; }

  /* Tenders: stack into 2x2 */
  .tenders {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
    padding: 28px;
    gap: 24px;
  }
  .tenders > *:first-child { grid-column: 1 / -1; }

  /* FAQ: keep 2 cols but tighter */
  .faq-grid { gap: 16px; }

  /* Tech banner */
  .tech-banner { grid-template-columns: 1fr; padding: 36px; gap: 32px; }
  .tech-banner-text h2 { font-size: 32px; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }
  .footer-brand { grid-column: 1 / -1; }

  /* Newsletter */
  .newsletter {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
    width: 80%;
  }
  .news-form { width: 100%; }

  /* Show burger */
  .burger { display: inline-flex; }
}

/* ---------- MOBILE ≤ 640px ---------- */
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  /* Top bar: only socials visible */
  .topbar-links { display: none; }
  .topbar-inner { justify-content: flex-end; }

  /* Header: logo + cart + burger; search below */
  .header { padding: 14px 0; }
  .header-inner { gap: 12px; }
  .header-inner > .logo { flex: 1 1 auto; min-width: 0; }
  .logo-mark { width: auto; height: 44px; }
  .logo-name { font-size: 18px; }
  .logo-tag { display: none; }
  .cart-label { display: none; }
  .cart-icon { width: 40px; height: 40px; }

  .search { height: 48px; padding: 4px 4px 4px 18px; }
  .search input { font-size: 14px; }
  .search-btn { width: 40px; height: 40px; }

  /* Hero */
  .hero-bg { border-radius: 0 0 24px 24px; padding-bottom: 24px; }
  .hero { padding-top: 24px; padding-bottom: 12px; overflow: visible; }
  .hero-grid { gap: 28px; }
  .hero h1 { font-size: 28px; line-height: 1.15; margin-bottom: 14px; }
  .hero-lead { font-size: 15px; margin-bottom: 20px; }
  /* Inline style on .hero-feats forces N columns by feature count; override it
     here so 4 chips don't overflow the phone width. */
  .hero-feats { grid-template-columns: repeat(2, 1fr) !important; gap: 10px 12px; margin-bottom: 24px; max-width: 100%; }
  .hero-feat-ic { width: 32px; height: 32px; border-radius: 8px; }
  .hero-feat-text { font-size: 12px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn { min-width: 0; width: 100%; }
  .btn { padding: 14px 20px; font-size: 15px; justify-content: center; }
  /* Hero illustration: shrink to fit phone, stay square, never wider than viewport */
  .hero-art { max-width: min(360px, 86vw); width: 100%; margin: 0 auto; aspect-ratio: 1/1; }
  .hero-blob { inset: 0; }
  .hero-photo { width: 84%; margin: 8% auto 0; border-width: 4px; }
  .hero-photo .ph-label { font-size: 11px; padding: 5px 10px; }
  .hero-arrow { width: 32px; height: 32px; box-shadow: 0 4px 10px rgba(15,23,42,0.15); }
  .hero-arrow.left { left: 0; }
  .hero-arrow.right { right: 0; }
  .hero-dots { margin-top: 16px; }

  /* Values, stats */
  .values, .stats {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 14px;
    border-radius: var(--radius);
  }
  .value { padding: 12px 0; gap: 14px; }
  .value:first-child { padding-top: 0; }
  .value:last-child { padding-bottom: 0; }
  .value:not(:last-child)::after {
    top: auto; bottom: 0; right: 0; left: 0;
    width: 100%; height: 1px;
  }
  .value-ic { width: 40px; height: 40px; border-radius: 12px; }
  .stat-num { font-size: 26px; }

  /* Categories, programs: 1 col. Projects carousel: 1.2 cards visible. */
  .cats, .programs { grid-template-columns: 1fr; gap: 14px; }
  .projects { gap: 14px; }
  .project { flex: 0 0 82%; }
  .cat, .program { padding: 18px; }
  .cat { min-height: 200px; }
  .program { min-height: auto; }
  /* Client request (Jun 2026): on mobile the image must be a full-card cover
     *under* the text, mirroring desktop — not a separate inline band below it.
     Text keeps its desktop max-width so it stays clear of the right-composed art. */
  .cat-img {
    position: absolute; inset: 0;
    width: auto; height: auto;
    margin: 0; border-radius: 0;
  }
  .program-art { height: 110px; }

  /* Section heading */
  .section { padding: 36px 0 12px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 20px; }
  .section-head h2 { font-size: 22px; }
  .section-link { font-size: 14px; }

  /* Tenders: stack */
  .tenders {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 18px;
    border-radius: var(--radius);
  }
  .tenders h3 { font-size: 20px; }

  /* Newsletter: side-padding on the colored box */
  .newsletter { padding: 22px; gap: 16px; border-radius: var(--radius); }

  /* FAQ: single column */
  .faq-grid { grid-template-columns: 1fr; }
  .faq-item { padding: 16px 18px; }
  .faq-q { font-size: 14px; }
  .faq-a { font-size: 13px; }

  /* Tech banner */
  .tech-banner { padding: 24px; border-radius: var(--radius); }
  .tech-banner-text h2 { font-size: 24px; }
  .tech-banner-text p { font-size: 14px; }
  .tech-pill { font-size: 12px; padding: 6px 12px; }

  /* Footer */
  .footer { padding: 40px 0 0; margin-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col h4 { font-size: 15px; margin-bottom: 12px; }
  .footer-col a { font-size: 13px; }

  /* Newsletter sub-pieces */
  .news-icon { width: 44px; height: 44px; }
  .news-title { font-size: 16px; }
  .news-sub { font-size: 12px; }
  .news-form input { padding: 12px 18px; font-size: 14px; }

  /* Copyright stack */
  .copyright {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    font-size: 12px;
  }
  .copyright-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
}

/* Tiny phones ≤ 380px */
@media (max-width: 380px) {
  .hero h1 { font-size: 26px; }
  .section-head h2 { font-size: 20px; }
  .tech-banner-text h2 { font-size: 22px; }
  .logo-name { font-size: 16px; }
}

/* ====================================================
   MOBILE DRAWER (≤1024px) — off-canvas slide-in menu
   ==================================================== */

/* Drawer-header is invisible on desktop */
.nav-mobile-header { display: none; }

/* Overlay sits behind drawer, fades in/out via .show */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 150;
}
.mobile-overlay.show { opacity: 1; pointer-events: auto; }

/* Body scroll lock when drawer open */
body.no-scroll { overflow: hidden; }

@media (max-width: 1024px) {
  /* Transform .nav into off-canvas drawer */
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh; height: 100dvh;
    width: min(360px, 86vw);
    background: #fff;
    color: var(--ink-2);
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -16px 0 40px rgba(15,23,42,0.18);
    display: block;
  }
  .nav.nav-mobile-open { transform: translateX(0); }

  /* Drawer top bar with title and close */
  .nav-mobile-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    background: var(--blue); color: #fff;
    font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 18px;
    position: sticky; top: 0;
    z-index: 5;
  }
  .nav-mobile-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    cursor: pointer;
    transition: background .15s;
  }
  .nav-mobile-close:hover { background: rgba(255,255,255,0.25); }

  /* Stack inner contents vertically, no max-width */
  .nav .container.nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    max-width: 100%;
    gap: 0;
  }

  /* Top-level items — vertical list */
  .nav-list {
    display: flex; flex-direction: column;
    background: #fff;
    flex: 1;
    flex-wrap: nowrap;
  }
  .nav-item {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
    padding: 16px 20px;
    color: var(--ink-2);
    font-size: 15px; font-weight: 500;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
  }
  .nav-item:hover { background: var(--bg-soft); }
  .nav-item .nav-item-label { color: var(--ink-2); flex: 1 1 auto; min-width: 0; }
  /* The coloured tile icon belongs to the desktop bar only */
  .nav-item-icon { display: none; }
  .nav-item .chev {
    color: var(--blue);
    display: inline-flex;
    opacity: 1;
    padding: 6px 10px;
    margin: -6px -10px -6px 0;
    transition: transform .2s;
  }
  .nav-item.is-open .chev { transform: rotate(180deg); }

  /* Sub-menu under nav-item — slides open inline, full drawer width */
  .nav-item .mega {
    position: static;
    display: none;
    box-shadow: none;
    background: var(--bg-soft);
    border-radius: 0;
    margin: 12px -20px -16px;
    padding: 6px 0;
    min-width: 0;
    flex-basis: 100%;
  }
  .nav-item.is-open .mega { display: block; }
  .nav .mega-row {
    color: var(--ink-2);
    padding: 12px 20px 12px 44px;
    border-radius: 0;
  }
  .nav .mega-row:hover { background: rgba(32,116,181,0.08); color: var(--blue); }

  /* Burger visible at tablet+mobile */
  .burger { display: inline-flex; }

  /* Drawer-only: shown via the ≤1024 rules below; hidden on desktop by the
     base `.nav-info { display:none }` rule. */
  /* Topbar info links (Про нас…) cloned into the drawer — they are hidden
     in the topbar on mobile, so surface them here under the burger.
     `.nav .nav-info` (0,2,0) outranks the base `.nav-info{display:none}`
     regardless of source order. */
  .nav .nav-info {
    display: flex; flex-direction: column;
    margin-top: auto;
    border-top: 8px solid var(--bg-soft);
    background: #fff;
  }
  .nav-info-link {
    display: flex; align-items: center;
    padding: 16px 20px;
    color: var(--ink-2);
    font-size: 15px; font-weight: 500;
    border-bottom: 1px solid var(--line);
  }
  .nav-info-link:hover { background: var(--bg-soft); color: var(--blue); }
}

/* Cloned topbar links live inside .nav; only visible in the mobile drawer. */
.nav-info { display: none; }


/* ====================================================
   OPENCART OVERRIDES (drop-in for {{ search }}, {{ cart }}, {{ menu }})
   ==================================================== */

/* Search: form element reuses .search pill styles. */
.header-inner form.search { margin: 0; }

/* Menu: real OC categories. Keep mock visuals; only neutralise Bootstrap conflicts. */
.nav-item .nav-item-label { color: inherit; }

/* Reset Bootstrap base + .nav .open>a:hover (background:#eee) — the gray-fog culprit */
.nav a,
.nav a:hover,
.nav a:focus,
.nav a:active { color: inherit; text-decoration: none; outline: none; background-color: transparent; border-color: transparent; }
.nav .is-open > a:hover,
.nav .is-open > a:focus { background-color: transparent; border-color: transparent; }

/* ====================================================
   DESKTOP MAIN MENU (≥1025px) — grid of coloured category tiles
   ====================================================
   Each tile is one category: `.nav-item` paints the 2px halo (the tile colour
   at 50% opacity), `.nav-item-label` is the solid button with a 1px white
   border. Colours and icons come per-category from the admin
   (Каталог → Категорії → «Колір / Іконка плитки в меню») and land here as the
   inline `--tile` / `--tile-soft` custom properties. */
@media (min-width: 1025px) {
  /* Hairline separators off the header above and the page below — same tint as
     the topbar rule, so the whole header stack reads as one set of dividers. */
  .nav {
    padding: 8px 0;
    /* The page below the bar is white too, so the bottom rule needs clear air
       after it — otherwise it reads as the edge of one big white block. */
    margin-bottom: 8px;
    border-top: 1px solid rgba(32,116,181,0.08);
    border-bottom: 1px solid rgba(32,116,181,0.08);
  }
  .nav-inner { display: block; }

  /* 5 tiles per row at the full 1400px container, degrading to 4 and 3 as the
     viewport narrows — the design's 240px tile is the minimum track. */
  .nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 4px 20px;
  }

  .nav-item {
    display: block;
    padding: 2px;
    background: var(--tile-soft, rgba(32,116,181,0.5));
    border-radius: var(--radius-sm);
  }

  /* The tiles are a grid, so a first-row dropdown has to paint over the row
     below it. `.mega`'s own z-index is not enough: anything that makes the
     hovered `.nav-item` a stacking context (a filter, a transform, an opacity)
     traps that z-index inside the tile and the later grid items win. So raise
     the whole tile instead — and keep the hover highlight on the label, so the
     effect never applies to the open dropdown. */
  .nav-item:hover,
  .nav-item.is-open { z-index: 70; }
  .nav .nav-item > .nav-item-label { transition: filter .15s ease; }
  .nav .nav-item:hover > .nav-item-label { filter: brightness(1.06); }

  /* Specificity has to clear the `.nav a { background: transparent }` Bootstrap
     reset further up, hence the three-class selector. */
  .nav .nav-item > .nav-item-label,
  .nav .nav-item > .nav-item-label:hover,
  .nav .nav-item > .nav-item-label:focus {
    display: flex; align-items: center; gap: 8px;
    height: 60px;
    padding: 0 34px 0 8px;
    background-color: var(--tile, var(--blue));
    border: 1px solid #fff;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: 'Rubik', sans-serif; font-weight: 700;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.05;
    text-shadow: 0 4px 4px rgba(0,0,0,0.25);
  }
  .nav-item-icon {
    flex: 0 0 42px; width: 42px; height: 42px;
    object-fit: contain;
  }
  .nav-item-text { min-width: 0; overflow-wrap: break-word; }

  /* Chevron floats over the button so the whole tile stays one link */
  .nav-item .chev {
    position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    color: #fff;
    pointer-events: none;
  }
  .nav-item:hover .chev { transform: translateY(-50%) rotate(180deg); }

  /* Dropdown is pinned to the tile's own width so it can never overhang the
     container edge, whatever column the tile lands in. */
  .nav-item > .mega {
    left: 0; right: 0;
    min-width: 0;
    border-radius: var(--radius-sm);
  }
  .nav .mega-row { line-height: 1.3; }

  /* Hover-open on desktop only; tablet/mobile use the drawer with click toggles */
  .nav-item:hover > .mega { display: block; }
}

/* ====================================================
   INFORMATION PAGES (oferta, privacy, delivery, sitemap, contact, …)
   ==================================================== */

#information-information,
#information-contact,
#information-sitemap {
  padding-top: 8px;
  padding-bottom: 64px;
}

#information-information #content,
#information-contact #content,
#information-sitemap #content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow-card);
}

#information-information #content > h1,
#information-contact #content > h1,
#information-sitemap #content > h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  color: var(--ink-2);
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

/* ---- Article body (rendered from CMS HTML in {{ description }}) ---- */
#information-information #content,
#information-contact #content {
  font-family: 'Rubik', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

#information-information #content p,
#information-contact #content p {
  margin: 0 0 16px;
  max-width: 78ch;
}

#information-information #content h2,
#information-contact #content h2 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink-2);
  margin: 36px 0 14px;
}

#information-information #content h3,
#information-contact #content h3 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink-2);
  margin: 28px 0 12px;
}

#information-information #content h4,
#information-contact #content h4 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink-2);
  margin: 22px 0 10px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

#information-information #content a,
#information-contact #content a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(32,116,181,0.25);
  transition: color .15s, border-color .15s;
}
#information-information #content a:hover,
#information-contact #content a:hover {
  color: var(--blue-dark);
  border-bottom-color: var(--blue);
}

#information-information #content strong,
#information-information #content b,
#information-contact #content strong,
#information-contact #content b { color: var(--ink-2); font-weight: 600; }

#information-information #content ul,
#information-information #content ol,
#information-contact #content ul,
#information-contact #content ol {
  margin: 0 0 18px;
  padding-left: 22px;
  max-width: 78ch;
}
#information-information #content li,
#information-contact #content li { margin: 6px 0; padding-left: 4px; }
#information-information #content ul > li::marker,
#information-contact #content ul > li::marker { color: var(--blue); }
#information-information #content ol > li::marker,
#information-contact #content ol > li::marker { color: var(--blue); font-weight: 600; }

#information-information #content blockquote,
#information-contact #content blockquote {
  margin: 22px 0;
  padding: 16px 22px;
  background: var(--bg-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-2);
  font-style: italic;
}
#information-information #content blockquote p:last-child,
#information-contact #content blockquote p:last-child { margin-bottom: 0; }

#information-information #content hr,
#information-contact #content hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 32px 0;
}

#information-information #content img,
#information-contact #content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 12px 0;
}

#information-information #content table,
#information-contact #content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 15px;
}
#information-information #content table th,
#information-contact #content table th {
  text-align: left;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
#information-information #content table td,
#information-contact #content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
}
#information-information #content table tr:last-child td,
#information-contact #content table tr:last-child td { border-bottom: 0; }
#information-information #content table tr:nth-child(even) td,
#information-contact #content table tr:nth-child(even) td { background: rgba(235,242,250,0.35); }

#information-information #content code,
#information-contact #content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink-2);
}

#information-information #content > *:first-child,
#information-contact #content > *:first-child { margin-top: 0; }
#information-information #content > *:last-child,
#information-contact #content > *:last-child { margin-bottom: 0; }

/* ---- Two-column layout (when column_left/right present) ---- */
#information-information .row > #content.col-sm-9,
#information-information .row > #content.col-sm-6,
#information-contact .row > #content.col-sm-9,
#information-contact .row > #content.col-sm-6 { margin-bottom: 0; }

/* ---- Contact page specifics ---- */
#information-contact .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: none;
  margin: 0 0 24px;
  overflow: hidden;
}
#information-contact .panel-default { border-color: var(--line); }
#information-contact .panel-heading {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
}
#information-contact .panel-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-2);
  margin: 0;
}
#information-contact .panel-title > a {
  color: var(--ink-2);
  border-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#information-contact .panel-title > a:hover { color: var(--blue); }
#information-contact .panel-body { padding: 20px; }

#information-contact address {
  font-style: normal;
  margin: 6px 0 12px;
  color: var(--ink-3);
  line-height: 1.55;
}
#information-contact .img-thumbnail {
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

#information-contact fieldset {
  border: 0;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
#information-contact legend {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-2);
  border: 0;
  margin-bottom: 18px;
  padding: 0;
  width: auto;
}
#information-contact .form-horizontal .control-label {
  font-weight: 500;
  color: var(--ink-2);
  padding-top: 10px;
}
#information-contact .form-group { margin-bottom: 18px; }
#information-contact .form-group.required .control-label::after {
  content: ' *';
  color: var(--blue);
}
#information-contact .form-control {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
  height: auto;
}
#information-contact .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(32,116,181,0.12);
  outline: none;
}
#information-contact textarea.form-control { min-height: 140px; resize: vertical; }
#information-contact .text-danger { color: #c1272d; font-size: 13px; margin-top: 6px; }

#information-contact .buttons { margin-top: 24px; }
#information-contact .btn-primary,
#information-contact .btn-info {
  background: #00a046;
  color: #fff;
  border-radius: 40px;
  padding: 11px 22px;
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s, border-color .15s, transform .1s;
  text-shadow: none;
  box-shadow: none;
}
#information-contact .btn-primary:hover,
#information-contact .btn-info:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}
#information-contact .btn-primary:active,
#information-contact .btn-info:active { transform: translateY(1px); }
#information-contact .btn .fa { margin-right: 6px; }

/* ---- Sitemap ---- */
#information-sitemap #content ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 12px;
}
#information-sitemap #content ul ul {
  padding-left: 22px;
  margin-top: 6px;
  border-left: 1px dashed var(--line);
}
#information-sitemap #content li { margin: 6px 0; }
#information-sitemap #content a {
  color: var(--ink-2);
  border-bottom: 0;
  display: inline-block;
  padding: 4px 0;
  transition: color .15s;
}
#information-sitemap #content a:hover { color: var(--blue); }
#information-sitemap #content > ul > li > a {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-2);
}

/* ====================================================
   404 — NOT FOUND PAGE
   ==================================================== */

#error-not-found {
  padding-top: 8px;
  padding-bottom: 72px;
}

#error-not-found #content {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 48px 64px;
  box-shadow: var(--shadow-card);
  text-align: center;
  overflow: hidden;
}

/* Decorative gradient blobs behind the artwork */
#error-not-found #content::before,
#error-not-found #content::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}
#error-not-found #content::before {
  width: 260px; height: 260px;
  top: -80px; left: -60px;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%);
}
#error-not-found #content::after {
  width: 320px; height: 320px;
  bottom: -120px; right: -80px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
}

#error-not-found #content > * { position: relative; z-index: 1; }

/* The big "404" with a magnifier in the zero */
.error-404-art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  line-height: 1;
  margin: 0 auto 24px;
  user-select: none;
}
.error-404-digit {
  font-size: 180px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -.04em;
}
.error-404-zero {
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 14px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%) border-box;
  display: grid;
  place-items: center;
  margin: 0 4px;
  box-shadow: 0 18px 40px rgba(32,116,181,0.18);
}
.error-404-zero .fa {
  font-size: 60px;
  color: var(--blue);
  transform: rotate(-12deg);
}

#error-not-found h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: var(--ink-2);
  margin: 0 0 14px;
}

#error-not-found #content > p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0 auto 36px;
}

#error-not-found .buttons {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

#error-not-found .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--blue);
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 32px;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-shadow: none;
  box-shadow: 0 6px 18px rgba(32,116,181,0.22);
  transition: background .15s, box-shadow .15s, transform .1s;
}
#error-not-found .btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 10px 24px rgba(32,116,181,0.32);
}
#error-not-found .btn-primary:active { transform: translateY(1px); }

/* ====================================================
   PRODUCT LISTING PAGES (search, category)
   ==================================================== */

#product-search,
#product-category {
  padding-top: 8px;
  padding-bottom: 64px;
}

#product-search .page-title,
#product-category .page-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink-2);
  margin: 4px 0 24px;
}

/* ---- Category intro (thumb + description) ---- */
.category-intro {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}
.category-intro:only-child,
.category-intro:has(.category-intro-text):not(:has(.category-intro-thumb)) { grid-template-columns: 1fr; }
.category-intro-thumb {
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 12px;
}
.category-intro-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.category-intro-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}
.category-intro-text > *:first-child { margin-top: 0; }
.category-intro-text > *:last-child { margin-bottom: 0; }
.category-intro-text p { margin: 0 0 10px; }
.category-intro-text a {
  color: var(--blue);
  border-bottom: 1px solid rgba(32,116,181,0.25);
  transition: color .15s, border-color .15s;
}
.category-intro-text a:hover {
  color: var(--blue-dark);
  border-bottom-color: var(--blue);
  text-decoration: none;
}

/* ---- Refine: subcategory chips ---- */
.category-refine {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 28px;
}
.category-refine-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.category-refine-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.category-refine-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  transition: color .15s, border-color .15s, background .15s, transform .1s;
}
.category-refine-list a > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-refine-list .fa {
  color: var(--blue);
  font-size: 14px;
  transition: transform .15s;
}
.category-refine-list a:hover {
  color: var(--blue);
  border-color: rgba(32,116,181,0.4);
  background: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.category-refine-list a:hover .fa { transform: translateX(3px); }

/* ---- Sidebar module: list-group (category nav) ---- */
#column-left,
#column-right {
  padding-top: 4px;
}
#column-left .list-group,
#column-right .list-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
#column-left .list-group-item,
#column-right .list-group-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: color .15s, background .15s;
  position: relative;
}
#column-left .list-group-item + .list-group-item,
#column-right .list-group-item + .list-group-item {
  margin-top: 2px;
}
#column-left .list-group-item:hover,
#column-right .list-group-item:hover {
  background: var(--bg-soft);
  color: var(--blue);
  text-decoration: none;
}
#column-left .list-group-item.active,
#column-right .list-group-item.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
#column-left .list-group-item.active:hover,
#column-right .list-group-item.active:hover {
  background: var(--blue-dark);
  color: #fff;
}
/* Child rows (rendered with leading &nbsp; in OpenCart's category module) */
#column-left .list-group-item:not(:first-child),
#column-right .list-group-item:not(:first-child) {
  font-weight: 500;
  font-size: 13.5px;
}
#column-left .list-group .list-group-item.active + .list-group-item,
#column-right .list-group .list-group-item.active + .list-group-item {
  margin-top: 6px;
}

/* ---- Search filter card ---- */
.search-filter {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-card);
}
.search-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr auto;
  gap: 16px;
  align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.search-field > label {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.search-filter .form-control {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-filter select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%232074B5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.search-filter .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(32,116,181,0.12);
  outline: none;
}
.search-field-submit { display: flex; }
.search-filter .btn-primary {
  height: 46px;
  padding: 0 24px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, border-color .15s, transform .1s;
  box-shadow: none;
  text-shadow: none;
}
.search-filter .btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}
.search-filter .btn-primary:active { transform: translateY(1px); }

.search-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.search-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  cursor: pointer;
  margin: 0;
}
.search-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
  margin: 0;
}
.search-check input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Results section heading ---- */
.results-head { margin: 8px 0 16px; }
.results-head h2 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-2);
  margin: 0;
}

/* ---- Toolbar ---- */
.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 24px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.product-toolbar-views { display: inline-flex; gap: 6px; }
.view-btn {
  width: 38px; height: 38px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-sm);
  color: var(--ink-3);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.view-btn:hover { color: var(--blue); border-color: rgba(32,116,181,0.4); }
.view-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.view-btn .fa { font-size: 14px; }

.product-toolbar-compare { margin-right: auto; }
.compare-link {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  background: none;
  border: 0;
  padding: 8px 4px;
  transition: color .15s;
}
.compare-link:hover { color: var(--blue-dark); text-decoration: none; }

.product-toolbar-controls { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.product-toolbar-controls .control {
  display: inline-flex; align-items: center; gap: 8px;
}
.product-toolbar-controls .control > label {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
}
.product-toolbar-controls .form-control {
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  color: var(--ink-2);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1.5L6 6.5L11 1.5' stroke='%232074B5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 160px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.product-toolbar-controls .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(32,116,181,0.12);
  outline: none;
}

/* ---- Product results grid ---- */
.product-results { margin: 0 -10px; }
.product-results > .product-layout { padding: 10px; }

/* Grid card */
.product-thumb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(32,116,181,0.3);
}
.product-thumb > .image {
  background: var(--bg-soft);
  display: grid; place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 16px;
}
.product-thumb > .image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .25s;
}
.product-thumb:hover > .image img { transform: scale(1.04); }
.product-thumb-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
  gap: 14px;
}
.product-thumb .caption { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.product-thumb .caption h4 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink-2);
  margin: 0;
}
.product-thumb .caption h4 a { color: inherit; transition: color .15s; }
.product-thumb .caption h4 a:hover { color: var(--blue); text-decoration: none; }
.product-thumb .product-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-thumb .price {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--ink-2);
  margin: auto 0 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.product-thumb .price-new { color: var(--blue); }
.product-thumb .price-old {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
}
.product-thumb .price-tax {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  width: 100%;
}
.product-thumb .rating {
  color: var(--yellow);
  font-size: 14px;
}
.product-thumb .rating .fa-stack { width: 1em; height: 1em; line-height: 1em; }
.product-thumb .rating .fa-star-o { color: var(--line); }

.product-thumb .button-group {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.product-thumb .button-group .btn-cart {
  flex: 1;
  height: 42px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.product-thumb .button-group .btn-cart:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}
.product-thumb .button-group .btn-cart:active { transform: translateY(1px); }
.product-thumb .button-group .btn-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-grid; place-items: center;
  transition: color .15s, border-color .15s, background .15s;
}
.product-thumb .button-group .btn-icon:hover {
  color: var(--blue);
  border-color: rgba(32,116,181,0.4);
  background: var(--bg-soft);
}

/* List view variant */
.product-list .product-thumb {
  flex-direction: row;
  align-items: stretch;
}
.product-list .product-thumb > .image {
  flex: 0 0 220px;
  aspect-ratio: auto;
  height: auto;
  min-height: 220px;
  border-right: 1px solid var(--line);
}
.product-list .product-thumb-body { flex: 1; padding: 20px 24px; }
.product-list .product-thumb .product-desc {
  -webkit-line-clamp: 4;
}
.product-list .product-thumb .button-group { max-width: 360px; }

@media (max-width: 640px) {
  .product-list .product-thumb { flex-direction: column; }
  .product-list .product-thumb > .image {
    flex: none;
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---- Pagination + result count ---- */
.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.product-foot-results {
  font-size: 14px;
  color: var(--ink-3);
}
.product-foot .pagination {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  border-radius: 0;
}
.product-foot .pagination > li { display: inline-flex; list-style: none; }
.product-foot .pagination > li > a,
.product-foot .pagination > li > span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.product-foot .pagination > li > a:hover {
  color: var(--blue);
  border-color: rgba(32,116,181,0.4);
  background: var(--bg-soft);
}
.product-foot .pagination > .active > span,
.product-foot .pagination > .active > a {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---- Empty state ---- */
.search-empty {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.search-empty-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid; place-items: center;
  color: var(--blue);
}
.search-empty-text {
  font-size: 16px;
  color: var(--ink-3);
  margin: 0;
  max-width: 480px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .search-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-field-submit { grid-column: 1 / -1; }
  .search-filter .btn-primary { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  #product-search .page-title,
  #product-category .page-title { font-size: 24px; }
  .category-intro {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }
  .category-intro-thumb { aspect-ratio: 16 / 9; max-width: 280px; margin: 0 auto; }
  .category-refine { padding: 16px 18px; }
  .category-refine-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .category-refine-list a { padding: 10px 12px; font-size: 13px; }
  .search-filter { padding: 18px 16px; }
  .search-filter-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .search-filter-options { gap: 10px 18px; }
  .product-toolbar {
    padding: 12px 14px;
    gap: 10px;
  }
  .product-toolbar-compare { width: 100%; margin: 0; order: 3; }
  .product-toolbar-controls { width: 100%; }
  .product-toolbar-controls .control { flex: 1; }
  .product-toolbar-controls .form-control { min-width: 0; flex: 1; }
  .product-foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .product-foot .pagination { justify-content: center; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  #information-information #content,
  #information-contact #content,
  #information-sitemap #content { padding: 24px 20px; }
  #information-information #content > h1,
  #information-contact #content > h1,
  #information-sitemap #content > h1 { font-size: 26px; margin-bottom: 20px; padding-bottom: 14px; }
  #information-information #content h2,
  #information-contact #content h2 { font-size: 20px; margin-top: 28px; }
  #information-information #content h3,
  #information-contact #content h3 { font-size: 17px; }
  #information-contact .form-horizontal .control-label {
    text-align: left;
    padding-top: 0;
    margin-bottom: 6px;
  }
  #information-contact fieldset { padding-top: 18px; margin-top: 18px; }
  #information-contact legend { font-size: 19px; }
  #information-contact .buttons .pull-right { float: none !important; }
  #information-contact .btn-primary { width: 100%; }

  /* 404 page */
  #error-not-found #content { padding: 36px 20px 44px; border-radius: var(--radius); }
  #error-not-found h1 { font-size: 24px; }
  #error-not-found #content > p { font-size: 15px; margin-bottom: 28px; }
  .error-404-art { gap: 2px; margin-bottom: 20px; }
  .error-404-digit { font-size: 110px; }
  .error-404-zero { width: 92px; height: 92px; border-width: 9px; margin: 0 2px; }
  .error-404-zero .fa { font-size: 38px; }
  #error-not-found .btn-primary { width: 100%; padding: 14px 22px; }
}

@media (max-width: 380px) {
  .error-404-digit { font-size: 86px; }
  .error-404-zero { width: 72px; height: 72px; border-width: 7px; }
  .error-404-zero .fa { font-size: 30px; }
}


/* ---------- CONSULTATION BUTTON + MODAL ---------- */
.consult-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink);
  border: none; cursor: pointer;
  padding: 8px 16px 8px 10px; border-radius: 40px;
  font-family: 'Rubik', sans-serif; font-weight: 500; font-size: 14px; line-height: 1.15;
  transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
}
.consult-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.consult-btn-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(25,34,63,0.08); color: var(--ink-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.consult-btn-label { text-align: center; }

.consult-modal { position: fixed; inset: 0; z-index: 2000; display: none; }
.consult-modal.is-open { display: block; }
.consult-modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,18,47,0.55);
  backdrop-filter: blur(2px);
}
.consult-modal-dialog {
  position: relative; z-index: 1;
  max-width: 460px; width: calc(100% - 32px);
  margin: 6vh auto 0; max-height: 88vh; overflow-y: auto;
  background: var(--bg); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: 0 24px 64px rgba(0,18,47,0.35);
  animation: consultIn .2s ease;
}
@keyframes consultIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.consult-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--muted);
}
.consult-modal-close:hover { color: var(--ink); }
.consult-modal-title { font-size: 22px; margin-bottom: 6px; }
.consult-modal-intro { color: var(--ink-3); font-size: 14px; margin: 0 0 20px; }

.consult-field { margin-bottom: 14px; }
.consult-field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.consult-field label span { color: #e11d48; }
.consult-field input,
.consult-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; color: var(--ink);
  background: var(--bg-soft); transition: border-color .15s, background .15s;
}
.consult-field input:focus,
.consult-field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
}
.consult-field textarea { resize: vertical; min-height: 76px; }
.consult-error { color: #e11d48; font-size: 12px; margin-top: 4px; }
.consult-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.consult-form-msg { font-size: 14px; margin: 4px 0 12px; }
.consult-form-msg.is-error { color: #e11d48; }
.consult-form-msg.is-success { color: #15803d; }

.consult-submit {
  width: 100%; border: none; cursor: pointer;
  background: #00a046; color: #fff;
  padding: 13px; border-radius: 40px;
  font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 15px;
  transition: background .15s, opacity .15s;
}
.consult-submit:hover { background: var(--blue-dark); }
.consult-submit:disabled { opacity: .6; cursor: default; }
.consult-submit.is-loading { opacity: .7; }

@media (max-width: 1024px) {
  .consult-btn-label { display: none; }
  .consult-btn { padding: 6px; }
  .consult-btn-icon { width: 40px; height: 40px; }
}

/* SEO related products */

.seo-related-products {
    margin-top: 50px;
    margin-bottom: 50px;
}

.seo-related-header {
    margin-bottom: 24px;
}

.seo-related-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
}

.seo-related-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.seo-related-item {
    min-width: 0;
}

.seo-related-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 12px;
}

.seo-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.seo-related-name {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    text-decoration: none;
}

.seo-related-name:hover {
    text-decoration: underline;
}

.seo-related-price {
    margin-top: 8px;
    font-weight: 600;
}

.seo-related-price-old {
    margin-left: 7px;
    text-decoration: line-through;
    opacity: .6;
}

@media (max-width: 1199px) {

    .seo-related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}

@media (max-width: 767px) {

    .seo-related-products {
        margin-top: 35px;
        margin-bottom: 35px;
    }

    .seo-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

}

