/* ============================================================
   NFS Homepage — extracted from claude-design/Главная.html
   Prefix rules to prevent theme conflicts
   ============================================================ */
/* Hide theme header-bottom on NFS homepage */
body.page-template-nfs-homepage-php .header-bottom { display: none !important; }

.nfs-home { all: initial; font-family: 'Manrope', sans-serif; }
.nfs-home *, .nfs-home *::before, .nfs-home *::after { box-sizing: border-box; }

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --blue: #1d4ed8;
  --blue-600: #1e40af;
  --blue-700: #1d3fa8;
  --blue-deep: #0a2540;
  --navy: #0b1d3a;
  --text: #1f2937;
  --text-2: #6b7280;
  --line: #e5e7eb;
  --line-2: #eef0f3;
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #ea580c;
  --yellow: #f59e0b;
}

/* ============================================================
   Base reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   Container
   ============================================================ */
.container { width: 1400px; margin: 0 auto; padding: 0 16px; }

/* ============================================================
   Top utility bar
   ============================================================ */
.topbar {
  background: #f3f4f6;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: #4b5563;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.topbar-left { display: flex; align-items: center; gap: 28px; }
.city {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #111827;
}
.city svg { width: 14px; height: 14px; }
.top-links { display: flex; gap: 24px; }
.top-links a:hover { color: var(--blue); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right .phone {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #111827;
}
.topbar-right .hours { color: #6b7280; font-size: 12px; }

/* ============================================================
   Header
   ============================================================ */
.header { border-bottom: 1px solid var(--line); background: #fff; }
.header .container {
  display: grid;
  grid-template-columns: 220px 180px 1fr auto;
  align-items: center;
  gap: 24px;
  height: 96px;
}

/* ============================================================
   Logo
   ============================================================ */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2f6fe6 0%, #1d4ed8 55%, #14338f 100%);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.18), 0 4px 12px rgba(29,78,216,0.25);
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute; inset: 10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #1d4ed8 0 90deg, #4b7eff 90deg 180deg, #1d4ed8 180deg 270deg, #4b7eff 270deg 360deg);
  mask: radial-gradient(circle, transparent 6px, #000 7px, #000 9px, transparent 10px);
  -webkit-mask: radial-gradient(circle, transparent 6px, #000 7px, #000 9px, transparent 10px);
}
.logo-text { line-height: 1; }
.logo-text b {
  display: block; font-weight: 800; font-size: 17px; letter-spacing: 0.02em; color: #0a2540;
}
.logo-text span {
  display: block; font-size: 10.5px; color: #6b7280; margin-top: 4px; letter-spacing: 0.04em;
}

/* ============================================================
   Catalog button
   ============================================================ */
.btn-catalog {
  height: 48px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px;
  transition: background .15s;
}
.btn-catalog:hover { background: var(--blue-600); }

/* ============================================================
   Search
   ============================================================ */
.search {
  position: relative;
  height: 48px;
}
.search input {
  width: 100%; height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 56px 0 18px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s;
}
.search input:focus { border-color: var(--blue); }
.search input::placeholder { color: #9ca3af; }
.search-btn {
  position: absolute; right: 6px; top: 6px;
  width: 36px; height: 36px;
  background: var(--blue); border-radius: 6px;
  display: grid; place-items: center;
}
.search-btn svg { width: 16px; height: 16px; color: #fff; }

/* ============================================================
   Header actions
   ============================================================ */
.header-actions { display: flex; gap: 26px; align-items: center; }
.ha-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 12px; color: #374151; position: relative;
}
.ha-item svg { width: 22px; height: 22px; color: #111827; }
.ha-item .badge {
  position: absolute; top: -4px; right: -10px;
  background: var(--blue); color: #fff; border-radius: 999px;
  font-size: 10px; font-weight: 700; padding: 1px 5px;
  min-width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
}
.ha-item:hover svg { color: var(--blue); }

/* ============================================================
   Hero Slider
   ============================================================ */
.hero-wrap { padding-top: 18px; }
.hero { display: grid; grid-template-columns: 1fr 230px; gap: 16px; position: relative; }
.slider { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 2.5 / 1; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: flex; }
.slide.active { opacity: 1; z-index: 1; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide-overlay { position: absolute; inset: 0; }
.slide-content { position: relative; z-index: 2; padding: 40px 48px 60px; display: flex; flex-direction: column; gap: 10px; max-width: 45%; height: 100%; justify-content: center; }
.slide-pill { display: inline-flex; align-items: center; background: #f59e0b; color: #1a1300; font-weight: 800; font-size: 10px; letter-spacing: 0.1em; padding: 5px 12px; border-radius: 4px; align-self: flex-start; text-transform: uppercase; }
.slide-title { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 4px 0; color: #0a2540; }
.slide-subtitle { font-size: 14px; font-weight: 600; color: #374151; margin: 0; }
.slide-desc { font-size: 13px; color: #6b7280; max-width: 320px; line-height: 1.5; margin: 4px 0 0; }
.slide-cta { align-self: flex-start; background: var(--blue); color: #fff; border: none; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; transition: background .2s; }
.slide-cta:hover { background: var(--blue-600); }
.slide-image { position: absolute; right: 0; bottom: 0; top: 0; width: 58%; z-index: 1; display: flex; align-items: flex-end; justify-content: center; }
.slide-image img { height: 100%; width: 100%; object-fit: cover; object-position: center bottom; }

/* light slide */
.slide--light { background: linear-gradient(110deg, #f8f9fb 0%, #eef1f6 40%, #e8ecf2 100%); }
.slide--light .slide-overlay { background: linear-gradient(90deg, rgba(248,249,251,0.95) 0%, rgba(248,249,251,0.6) 40%, transparent 58%); }

/* dark slide */
.slide--dark { background: linear-gradient(110deg, #040b1a 0%, #0a1630 40%, #0e1e42 100%); }
.slide--dark .slide-overlay { background: linear-gradient(90deg, rgba(4,11,26,0.92) 0%, rgba(4,11,26,0.5) 38%, transparent 58%); }
.slide--dark .slide-title { color: #fff; }
.slide--dark .slide-subtitle { color: rgba(255,255,255,0.85); }
.slide--dark .slide-desc { color: rgba(255,255,255,0.65); }

/* Slider — numbered pagination */
.slider-dots { position: absolute; bottom: 2px; left: 48px; display: flex; gap: 6px; z-index: 10; align-items: center; }
.slider-dot { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: none; background: none; padding: 0; font-family: inherit; }
.slider-dot-num { font-size: 13px; font-weight: 800; color: rgba(0,0,0,0.25); transition: color .25s; }
.slider-dot-line { width: 0; height: 3px; border-radius: 2px; background: var(--blue); transition: width .25s; }
.slider-dot.active .slider-dot-num { color: #0a2540; }
.slider-dot.active .slider-dot-line { width: 40px; }
.slide--dark ~ .slider-dots .slider-dot-num { color: rgba(255,255,255,0.35); }
.slide--dark ~ .slider-dots .slider-dot.active .slider-dot-num { color: #fff; }
.slide--dark ~ .slider-dots .slider-dot.active .slider-dot-line { background: #fff; }

/* Slider — arrows (show on hover) */
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid rgba(0,0,0,0.08); display: grid; place-items: center; z-index: 10; cursor: pointer; transition: opacity .25s, background .2s; opacity: 0; padding: 0; margin: 0; }
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: rgba(255,255,255,0.85); }
.slider-arrow.left { left: 16px; }
.slider-arrow.right { right: 16px; }
.slider-arrow svg { width: 16px; height: 16px; color: #374151; }
/* Simple (image-only) slide active: hide dots counter (arrows kept for navigation) */
.slider.slider--simple-active .slider-dots { display: none; }

/* ============================================================
   Hero side cards (with blue accent bar, gradient bg)
   ============================================================ */
.hero-side {
  display: flex; flex-direction: column; gap: 10px;
}
.hero-side-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border: 1px solid #e0e7f1;
  border-radius: 14px;
  padding: 20px 18px;
  flex: 1;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 8px rgba(29,78,216,0.06);
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hero-side-card::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(180deg, var(--blue) 0%, #3b82f6 100%);
  border-radius: 0 2px 2px 0;
}
.hero-side-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(29,78,216,0.12); border-color: #bfcfea; }
.hero-side-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #eef3ff 0%, #dbeafe 100%);
  color: var(--blue);
  display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(29,78,216,0.12);
}
.hero-side-icon svg { width: 22px; height: 22px; }
.hero-side-card h4 { margin: 0; font-size: 15px; font-weight: 800; color: #0a2540; white-space: nowrap; }
.hero-side-card p { margin: 3px 0 0; font-size: 12px; color: #6b7280; line-height: 1.3; }

/* ── Hero mode: full (hidden cards) ── */
.hero--hidden { grid-template-columns: 1fr; }

/* ── Hero mode: overlay (cards over slider) ── */
.hero--overlay { grid-template-columns: 1fr; position: relative; }
.hero--overlay .hero-side {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  flex-direction: row;
  gap: 10px;
}
.hero--overlay .hero-side-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 16px;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.hero--overlay .hero-side-card::before {
  display: none;
}

/* ============================================================
   Section title
   ============================================================ */
.section { padding: 36px 0 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0; font-size: 24px; font-weight: 800; color: #0a2540; letter-spacing: -0.01em;
}
.section-head a {
  color: var(--blue); font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
}
.section-head a:hover { text-decoration: underline; }

/* ============================================================
   Categories (Ключевые направления)
   ============================================================ */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 220px;
  color: #fff;
  isolation: isolate;
  display: block;
  transition: transform .3s, box-shadow .3s;
}
.cat:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.15); }
.cat-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s; }
.cat:hover .cat-bg { transform: scale(1.04); }
.cat-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.65) 75%, rgba(0,0,0,0.85) 100%) !important;
}
.cat-inner {
  position: relative; z-index: 1;
  padding: 22px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.cat h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800 !important; line-height: 1.1; letter-spacing: inherit; color: #fff; }
.cat p { margin: 0; font-size: 12.5px; opacity: 0.9; max-width: 280px; line-height: 1.4; }
.cat-arrow {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  display: grid; place-items: center; backdrop-filter: blur(4px);
  z-index: 2;
}
.cat-arrow svg { width: 14px; height: 14px; color: #fff; }
.cat:hover .cat-arrow { background: var(--blue); border-color: var(--blue); }

/* ============================================================
   Three blocks: opt / retail / brands
   ============================================================ */
.three {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.95fr;
  gap: 16px;
}
.three-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  padding: 26px 28px;
  min-height: var(--tc-min-h, 250px);
  display: flex; flex-direction: column; gap: 14px;
  isolation: isolate;
  transition: transform .25s, box-shadow .25s;
}
.three-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.2); }
.three-card.opt::before, .three-card.retail::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
}
.three-card.opt::before {
  background-image: var(--tc-bg, linear-gradient(105deg, rgba(7,17,38,0.93) 0%, rgba(7,17,38,0.75) 55%, rgba(7,17,38,0.4) 100%));
}
.three-card.retail::before {
  background-image: var(--tc-bg, linear-gradient(105deg, rgba(2,76,58,0.93) 0%, rgba(11,116,93,0.78) 55%, rgba(20,150,120,0.4) 100%));
}
.three-tag {
  display: inline-flex; align-self: flex-start;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.25);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px; backdrop-filter: blur(4px);
}
.three-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.01em;
  max-width: 80%;
}
.three-card ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.three-card ul li {
  font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.92);
}
.three-card ul li::before {
  content: ""; width: 16px; height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 12px;
  flex-shrink: 0; opacity: 0.85;
}
.three-btn {
  background: #fff; color: #0a2540;
  padding: 11px 18px; border-radius: 8px;
  font-weight: 700; font-size: 13px;
  align-self: flex-start;
  margin-top: auto;
}
.three-btn.green { background: #16a34a; color: #fff; }
.three-btn:hover { transform: translateY(-1px); }

.brands-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.brands-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.brands-card h3 {
  margin: 0 0 16px; font-size: 18px; font-weight: 800; color: #0a2540;
}
.brands-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  flex: 1;
}
.brand-logo {
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 56px;
  display: grid; place-items: center;
  font-weight: 800;
  color: #1f2937;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.brand-logo:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.brand-logo--img { padding: 6px 10px; }
.brand-logo img { max-width: 100%; max-height: 38px; width: auto; height: auto; object-fit: contain; display: block; }
.brand-logo.serif { font-family: 'Times New Roman', serif; font-style: italic; }
.brand-logo .mark {
  display: inline-flex; align-items: center; gap: 4px;
}
.brand-logo .dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.brands-all {
  text-align: right;
  color: var(--blue); font-size: 13px; font-weight: 600;
  margin-top: 14px;
}

/* Product cards — managed by WooCommerce */

/* ============================================================
   Promo pair
   ============================================================ */
.promo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.promo-banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  min-height: 220px;
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 12px;
  isolation: isolate;
}
.promo-banner::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--promo-bg);
  background-size: cover;
  background-position: var(--promo-bg-pos, center);
}
.promo-banner h3 {
  margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.01em; color: #fff;
}
.promo-banner p { margin: 0; font-size: 14px; opacity: 0.9; max-width: 340px; }
.promo-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: auto; max-width: 230px; }
.promo-buttons.row { flex-direction: row; max-width: none; }
.promo-btn {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  backdrop-filter: blur(4px);
}
.promo-btn:hover { background: rgba(255,255,255,0.24); }
.promo-product { position: absolute; right: 30px; bottom: 0; height: 85%; z-index: 1; opacity: 0.9; }
.promo-product img { height: 100%; object-fit: contain; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35)); }
.promo-brand { position: absolute; right: 40px; top: 24px; opacity: 0.7; z-index: 1; }
.promo-brand img { height: 40px; object-fit: contain; filter: brightness(0) invert(1); }

/* ============================================================
   Popular categories (icons row)
   ============================================================ */
.popcats-wrap { position: relative; }
.popcats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding: 0 44px;
}
.popcats::-webkit-scrollbar { display: none; }
.popcat {
  flex: 0 0 132px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  background: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
/* Carousel arrows */
.popcats-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #0a2540;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(10,37,64,0.12);
  transition: opacity .15s, visibility .15s, background .15s, border-color .15s;
}
.popcats-arrow:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.popcats-arrow svg { width: 18px; height: 18px; }
.popcats-arrow.left  { left: -8px; }
.popcats-arrow.right { right: -8px; }
.popcats-arrow.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.popcat:hover { box-shadow: 0 8px 20px rgba(29,78,216,0.1); border-color: var(--blue); }
.popcat-icon {
  width: 58px; height: 58px; border-radius: 0;
  background: transparent; color: var(--blue);
  display: grid; place-items: center;
  transition: background .2s;
}
.popcat:hover .popcat-icon { background: transparent; }
.popcat-icon svg { width: 24px; height: 24px; }
.popcat span {
  font-size: 12px; font-weight: 600; color: #0a2540; line-height: 1.3;
}

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 28px;
  box-shadow: 0 4px 24px rgba(11,29,58,0.15);
}
.stat {
  display: flex; align-items: center; gap: 14px;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding-right: 16px;
}
.stat:last-child { border-right: 0; }
.stat-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.08); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat b { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
.stat span { display: block; font-size: 11.5px; color: rgba(255,255,255,0.7); margin-top: 2px; }

/* ============================================================
   Special pair + consult
   ============================================================ */
.special-pair {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.special {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  min-height: 180px;
  padding: 26px 30px;
  display: flex; flex-direction: column; gap: 10px;
  isolation: isolate;
}
.special::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--special-bg, url("../img/promo-warehouse.png"));
  background-size: cover; background-position: center;
}
.special-tag {
  display: inline-flex; align-self: flex-start;
  background: #1d4ed8; padding: 5px 10px;
  border-radius: 4px; font-size: 10px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.special h3 {
  margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; max-width: 90%; color: #fff;
}
.special p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.85); max-width: 50%; }
.special-btn {
  background: #fff; color: #0a2540;
  padding: 12px 20px; border-radius: 8px;
  font-weight: 700; font-size: 13px;
  align-self: flex-start; margin-top: 10px;
}
.consult {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 26px;
  display: flex; gap: 18px;
  align-items: center;
}
.consult-icon {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--blue);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.consult-icon svg { width: 36px; height: 36px; }
.consult-body { flex: 1; }
.consult h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: #0a2540; }
.consult p { margin: 0 0 12px; font-size: 13px; color: #4b5563; line-height: 1.45; }
.consult-btn {
  background: var(--blue); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font-weight: 600; font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px;
}
.consult-btn:hover { background: var(--blue-600); }

/* ============================================================
   Delivery + map
   ============================================================ */
.delivery {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  margin-top: 28px;
  padding-bottom: 36px;
}
.delivery-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px;
}
.delivery h3 {
  margin: 0 0 20px; font-size: 18px; font-weight: 800; color: #0a2540;
}
.deliv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.deliv-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13.5px; color: #374151; line-height: 1.45;
}
.deliv-list li::before {
  content: ""; width: 20px; height: 20px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 14px;
  flex-shrink: 0; margin-top: 1px;
  background-color: #f0fdf4;
  border-radius: 50%;
}
.deliv-more {
  color: var(--blue); font-weight: 600; font-size: 13px;
  margin-top: 20px; display: inline-flex; align-items: center; gap: 6px;
}
.zones {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}
.zones-legend ul {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
}
.zones-legend li {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.zone-dot {
  width: 14px; height: 14px; border-radius: 50%;
  flex-shrink: 0;
}
.zones-legend b { display: block; font-size: 13.5px; color: #0a2540; font-weight: 700; }
.zones-legend span { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }
.map {
  border-radius: 12px;
  overflow: hidden;
  background: #eff6ff;
  height: 180px;
  position: relative;
}
.map svg { width: 100%; height: 100%; display: block; }
.map .zones-map-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.map--embed { height: 180px; }
.map--embed iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }
.nfs-zones-map { width: 100%; height: 100%; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 36px 0 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr 0.9fr 1.3fr;
  gap: 36px;
}
.foot-logo .logo { margin-bottom: 14px; }
.foot-logo p { font-size: 12px; color: #6b7280; line-height: 1.5; margin: 0 0 14px; }
.foot-social { display: flex; gap: 8px; }
.foot-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: #f3f4f6; color: #4b5563;
  display: grid; place-items: center;
}
.foot-social a:hover { background: var(--blue); color: #fff; }
.foot-social svg { width: 16px; height: 16px; }
.foot-col h4 { margin: 0 0 14px; font-size: 13px; font-weight: 800; color: #0a2540; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-col a { font-size: 13px; color: #4b5563; }
.foot-col a:hover { color: var(--blue); }
.foot-sub p { font-size: 13px; color: #4b5563; margin: 0 0 10px; }
.foot-sub-input {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.foot-sub-input input {
  flex: 1; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; font-family: inherit; outline: none;
}
.foot-sub-input input:focus { border-color: var(--blue); }
.foot-sub-input button {
  background: var(--blue); color: #fff;
  padding: 0 14px; border-radius: 6px;
  font-weight: 600; font-size: 13px;
}
.foot-sub small { color: #9ca3af; font-size: 11px; line-height: 1.4; display: block; }
.foot-bottom {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: #9ca3af;
}
.foot-bottom a { color: #6b7280; }
.pay { display: flex; gap: 8px; }
.pay-card {
  height: 22px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 4px;
  display: inline-flex; align-items: center; font-size: 10px;
  font-weight: 700; color: #4b5563; letter-spacing: 0.05em;
}

/* ============================================================
   Mobile menu
   ============================================================ */
.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-menu-btn svg { width: 22px; height: 22px; color: #111827; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #fff;
  display: none;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }

.mobile-menu-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.mobile-menu-close svg { width: 18px; height: 18px; color: #374151; }

/* ============================================================
   Responsive — 1024px and below
   ============================================================ */
@media (max-width: 1024px) {
  .container { width: 100% !important; max-width: 100%; }
  .header .container { grid-template-columns: auto 1fr auto auto; height: 72px; gap: 16px; }
  .btn-catalog { font-size: 13px; height: 42px; padding: 0 14px; }
  .header-actions { gap: 16px; }
  .slide-title { font-size: 30px; }
  /* products grid managed by WooCommerce */
  .cats { grid-template-columns: repeat(2, 1fr); }
  .three { grid-template-columns: 1fr 1fr; }
  .three .brands-card { grid-column: 1 / -1; }
  .popcats { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .delivery { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 24px; }
}

/* ============================================================
   Responsive — 768px and below
   ============================================================ */
@media (max-width: 768px) {
  .topbar { display: none; }
  .header .container {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
  }
  .btn-catalog { display: none; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .header-actions { display: none; }
  .mobile-menu-btn { display: inline-flex !important; }

  .hero { grid-template-columns: 1fr; gap: 12px; }
  .hero-side { display: none; }
  .slider { border-radius: 12px; }
  .slide-content { padding: 24px 24px 50px; max-width: 55% !important; gap: 6px; }
  .slide-title { font-size: 24px; }
  .slide-subtitle { font-size: 12px; }
  .slide-desc { font-size: 11px; }
  .slide-pill { font-size: 9px; padding: 4px 8px; }
  .slide-cta { padding: 10px 16px; font-size: 12px; }
  .slider-dots { display: none; }
  .slider-arrow { display: none; }

  .section { padding: 24px 0 0; }
  .section-head h2 { font-size: 20px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { height: 160px; }
  .cat h3 { font-size: 16px; }
  .cat p { font-size: 11px; }

  .three { grid-template-columns: 1fr; gap: 12px; }
  .three .brands-card { grid-column: auto; }
  .three-card { min-height: 200px; padding: 20px 22px; }
  .three-card h3 { font-size: 20px; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }

  /* products grid managed by WooCommerce */
  .product h4 { font-size: 12px; min-height: auto; }
  .product .price { font-size: 16px; }
  .product-image { height: 120px; }
  .btn-fav { display: none; }

  .promo-pair { grid-template-columns: 1fr; gap: 12px; }
  .promo-banner { min-height: 180px; padding: 20px 22px; }
  .promo-banner h3 { font-size: 22px; }
  .promo-product { right: 16px; height: 75%; }

  .popcats { gap: 6px; }
  .popcats-arrow { display: none; }
  .popcat { padding: 12px 6px; flex: 0 0 96px; }
  .popcat span { font-size: 10px; }
  .popcat-icon { width: 36px; height: 36px; }
  .popcat-icon svg { width: 18px; height: 18px; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px 20px; }
  .stat { border-right: 0; padding-right: 0; }
  .stat b { font-size: 12px; }
  .stat span { font-size: 10px; }

  .special-pair { grid-template-columns: 1fr; gap: 12px; }
  .special { min-height: 160px; padding: 20px 24px; }
  .special h3 { font-size: 20px; max-width: 100%; }
  .special p { max-width: 100%; }
  .consult { flex-direction: column; text-align: center; padding: 20px; }
  .consult-icon { width: 56px; height: 56px; }
  .consult h3 { font-size: 16px; }

  .delivery { grid-template-columns: 1fr; gap: 12px; }
  .delivery-card { padding: 20px; }
  .zones { grid-template-columns: 1fr; gap: 16px; }
  .map { height: 160px; }

  .foot-grid { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }
  .foot-logo { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .pay { justify-content: center; }
}

/* ============================================================
   Responsive — 480px and below
   ============================================================ */
@media (max-width: 480px) {
  .slide-content { padding: 18px 18px 40px; max-width: 55% !important; }
  .slide-title { font-size: 20px; }
  .slide-subtitle { font-size: 10px; }
  .slide-desc { display: none; }
  .slide-cta { padding: 8px 14px; font-size: 11px; }

  .cats { grid-template-columns: 1fr; }
  .cat { height: 140px; }

  /* products grid managed by WooCommerce */
  .product { padding: 10px; }
  .product-image { height: 100px; }
  .product .price { font-size: 15px; margin-bottom: 8px; }
  .btn-add { font-size: 11px; padding: 7px 8px; }

  .popcats { grid-template-columns: repeat(3, 1fr); }

  .stats { grid-template-columns: 1fr 1fr; }

  .brands-grid { grid-template-columns: repeat(2, 1fr); }

  .foot-grid { grid-template-columns: 1fr !important; }
  .foot-sub-input { flex-direction: column; }
  .foot-sub-input button { width: 100%; height: 38px; }
}
