: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;
}
*, *::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 { 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 { 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; }
.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 { 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 { 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 ============ */
.hero-wrap { padding-top: 18px; }
.hero { display: grid; grid-template-columns: 1fr 260px; gap: 16px; position: relative; }
.hero-slide { position: relative; height: 380px; border-radius: 14px; overflow: hidden; background: #0a1a2e; color: #fff; isolation: isolate; }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-slide-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,17,38,0.92) 0%, rgba(7,17,38,0.78) 45%, rgba(7,17,38,0.15) 100%); }
.hero-content { position: relative; z-index: 1; padding: 44px 48px; display: flex; flex-direction: column; gap: 18px; max-width: 60%; height: 100%; }
.hero-pill { display: inline-flex; align-items: center; background: #f59e0b; color: #1a1300; font-weight: 800; font-size: 11px; letter-spacing: 0.08em; padding: 6px 12px; border-radius: 4px; align-self: flex-start; text-transform: uppercase; }
.hero-title { font-size: 44px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; margin: 0; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,0.85); max-width: 380px; line-height: 1.45; margin: 0; }
.hero-cta { align-self: flex-start; background: var(--blue); color: #fff; padding: 14px 22px; border-radius: 8px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.hero-cta:hover { background: var(--blue-600); }
.hero-product { position: absolute; right: 24px; bottom: 0; top: 0; width: 50%; display: flex; align-items: center; justify-content: center; z-index: 1; }
.hero-product img { height: 92%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,0.5)); }
.hero-dots { position: absolute; bottom: 20px; right: 48px; display: flex; gap: 8px; z-index: 2; }
.hero-dots span { width: 28px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 2px; font-size: 0; }
.hero-dots span.active { background: #fff; width: 28px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.85); display: grid; place-items: center; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.hero-arrow.left { left: -16px; }
.hero-arrow.right { right: -16px; }
.hero-arrow svg { width: 16px; height: 16px; color: #111827; }
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hero-side-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; flex: 1; display: flex; align-items: center; gap: 14px; }
.hero-side-icon { width: 40px; height: 40px; border-radius: 8px; background: #eaf1ff; color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.hero-side-icon svg { width: 22px; height: 22px; }
.hero-side-card h4 { margin: 0; font-size: 14px; font-weight: 700; color: #0a2540; white-space: nowrap; }
.hero-side-card p { margin: 2px 0 0; font-size: 12px; color: #6b7280; }

/* ============ Section ============ */
.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; }
.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.05) 0%, rgba(0,0,0,0.55) 70%, rgba(0,0,0,0.85) 100%); }
.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: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; }
.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 ============ */
.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: 250px; display: flex; flex-direction: column; gap: 14px; isolation: isolate; }
.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: linear-gradient(105deg, rgba(7,17,38,0.93) 0%, rgba(7,17,38,0.75) 55%, rgba(7,17,38,0.4) 100%), url("https://images.unsplash.com/photo-1565891741441-64926e441838?auto=format&fit=crop&w=1200&q=80"); }
.three-card.retail::before { background-image: linear-gradient(105deg, rgba(2,76,58,0.93) 0%, rgba(11,116,93,0.78) 55%, rgba(20,150,120,0.4) 100%), url("https://images.unsplash.com/photo-1607082352121-fa243f3dde32?auto=format&fit=crop&w=1200&q=80"); }
.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; 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; }
.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; }
.brand-logo:hover { border-color: var(--blue); color: var(--blue); }
.brand-logo.serif { font-family: 'Times New Roman', serif; font-style: italic; }
.brands-all { text-align: right; color: var(--blue); font-size: 13px; font-weight: 600; margin-top: 14px; }

/* ============ Product cards ============ */
.products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s, transform .15s; position: relative; }
.product:hover { border-color: #d1d5db; box-shadow: 0 8px 24px rgba(15,23,42,0.06); }
.product-image { height: 140px; background: #fafafa; border-radius: 8px; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; }
.product-image img { max-height: 130px; max-width: 100%; object-fit: contain; }
.product h4 { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: #0a2540; line-height: 1.3; min-height: 34px; }
.product .vol { font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.product .rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #374151; margin-bottom: 6px; }
.product .rating .stars { color: #f59e0b; display: inline-flex; }
.product .rating .stars svg { width: 12px; height: 12px; }
.product .reviews { color: #6b7280; font-size: 11.5px; margin-bottom: 10px; }
.product .price { font-size: 18px; font-weight: 800; color: #0a2540; margin-bottom: 10px; }
.product-actions { display: flex; gap: 6px; margin-top: auto; }
.btn-add { flex: 1; background: var(--blue); color: #fff; padding: 9px 10px; border-radius: 6px; font-weight: 600; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-add:hover { background: var(--blue-600); }
.btn-add svg { width: 14px; height: 14px; }
.btn-fav { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; color: #6b7280; }
.btn-fav:hover { color: var(--red); border-color: #fecaca; }
.btn-fav svg { width: 16px; height: 16px; }
.badge-hit { position: absolute; top: 10px; left: 10px; background: #16a34a; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.05em; text-transform: uppercase; z-index: 2; }
.badge-action { position: absolute; top: 10px; left: 10px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.05em; text-transform: uppercase; z-index: 2; }

/* ============ Promo pair ============ */
.promo-pair { display: grid; grid-template-columns: 1fr 1.4fr; 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-size: cover; background-position: center; }
.promo-banner.cool::before { background-image: linear-gradient(95deg, rgba(7,17,38,0.92) 0%, rgba(7,17,38,0.6) 50%, rgba(7,17,38,0.05) 100%), url("https://images.unsplash.com/photo-1542362567-b07e54358753?auto=format&fit=crop&w=1200&q=80"); }
.promo-banner.engine::before { background-image: linear-gradient(95deg, rgba(89,28,8,0.92) 0%, rgba(140,55,17,0.6) 50%, rgba(180,80,20,0.05) 100%), url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1400&q=80"); }
.promo-banner h3 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.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); }

/* ============ Popular categories ============ */
.popcats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.popcat { 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: border-color .15s, transform .15s; }
.popcat:hover { border-color: var(--blue); }
.popcat-icon { width: 44px; height: 44px; border-radius: 50%; background: #f1f5fb; color: var(--blue); display: grid; place-items: center; }
.popcat-icon svg { width: 24px; height: 24px; }
.popcat span { font-size: 12px; font-weight: 600; color: #0a2540; line-height: 1.3; }

/* ============ Stats ============ */
.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; }
.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 + 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: linear-gradient(95deg, rgba(7,17,38,0.94) 0%, rgba(7,17,38,0.7) 45%, rgba(7,17,38,0.2) 100%), url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1400&q=80"); 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: 60%; }
.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 ============ */
.delivery { display: grid; grid-template-columns: 1fr 1.5fr; gap: 32px; margin-top: 28px; padding-bottom: 36px; }
.delivery h3 { margin: 0 0 16px; font-size: 18px; font-weight: 800; color: #0a2540; }
.deliv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.deliv-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #374151; line-height: 1.45; }
.deliv-list li::before { content: ""; width: 18px; height: 18px; 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: 2px; }
.deliv-more { color: var(--blue); font-weight: 600; font-size: 13px; margin-top: 16px; 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: 10px; }
.zones-legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.zone-dot { width: 12px; height: 12px; border-radius: 50%; }
.zones-legend b { display: block; font-size: 13px; color: #0a2540; font-weight: 700; }
.zones-legend span { display: block; font-size: 11.5px; color: #6b7280; }
.map { border-radius: 10px; overflow: hidden; background: #eff6ff; aspect-ratio: 1.6 / 1; position: relative; }
.map svg { width: 100%; height: 100%; display: block; }

/* ============ Footer ============ */
footer { background: #fff; border-top: 1px solid var(--line); padding: 36px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr 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; }

/* ============ Breadcrumbs ============ */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #6b7280; margin: 16px 0 18px; }
.crumbs a:hover { color: var(--blue); }
.crumbs svg { width: 10px; height: 10px; }
.page-title { font-size: 32px; font-weight: 800; color: #0a2540; letter-spacing: -0.01em; margin: 0 0 18px; }

/* ============================================================
   Mobile menu (base — hidden by default, toggled via JS)
   ============================================================ */
.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%;
    max-width: 1400px;
    padding: 0 16px;
  }

  /* Header: switch from 4-column grid to natural stacking */
  .header .container {
    grid-template-columns: auto 1fr auto auto;
    gap: 14px;
    height: 72px;
  }

  .btn-catalog {
    font-size: 13px;
    padding: 0 14px;
    height: 42px;
    gap: 7px;
  }

  .header-actions {
    flex-direction: row;
    gap: 16px;
  }

  /* Products grid: 4 columns */
  .products { grid-template-columns: repeat(4, 1fr); }

  /* Shop catalog grid: 3 columns */
  .shop-products { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Responsive — 768px and below
   ============================================================ */
@media (max-width: 768px) {
  /* --- Utility bar --- */
  .topbar { display: none; }

  /* --- Header: logo + hamburger row, search below --- */
  .header .container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 10px;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    align-items: center;
  }

  /* Logo stays top-left */
  .logo { grid-column: 1; grid-row: 1; }

  /* Hamburger top-right */
  .mobile-menu-btn {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  /* Search spans full width below */
  .search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  /* Hide catalog button and actions (moved to mobile menu) */
  .btn-catalog { display: none; }
  .header-actions { display: none; }

  /* --- Hero --- */
  .hero { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .hero-slide { height: 280px; }
  .hero-content { max-width: 100%; padding: 24px 20px; }
  .hero-title { font-size: 28px; }
  .hero-arrow { display: none; }

  /* --- Section headings --- */
  .section-head h2 { font-size: 20px; }

  /* --- Page title --- */
  .page-title { font-size: 24px; }

  /* --- Products grid: 3 columns --- */
  .products { grid-template-columns: repeat(3, 1fr); }

  /* --- Shop catalog grid: 2 columns --- */
  .shop-products { grid-template-columns: repeat(2, 1fr); }

  /* --- Shop layout: single column (hide sidebar) --- */
  .shop-layout { grid-template-columns: 1fr !important; }
  .shop-sidebar { display: none; }
  .shop-arrow-side { display: none; }

  /* --- Categories --- */
  .cats { grid-template-columns: repeat(2, 1fr); }

  /* --- Popular categories --- */
  .popcats { grid-template-columns: repeat(4, 1fr); }

  /* --- Three-block section --- */
  .three { grid-template-columns: 1fr; }

  /* --- Promo pair --- */
  .promo-pair { grid-template-columns: 1fr; }

  /* --- Stats: 3 columns --- */
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { border-right: none; padding-right: 0; }

  /* --- Special + consult pair --- */
  .special-pair { grid-template-columns: 1fr; }

  /* --- Delivery section --- */
  .delivery { grid-template-columns: 1fr; gap: 20px; }

  /* --- Footer --- */
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .foot-bottom { flex-direction: column; gap: 12px; text-align: center; }

  /* --- Page-specific layouts --- */
  .product-page { grid-template-columns: 1fr !important; }
  .cart-layout { grid-template-columns: 1fr !important; }
  .account-layout { grid-template-columns: 1fr !important; }
  .acc-top { grid-template-columns: 1fr !important; }
  .acc-bottom { grid-template-columns: 1fr !important; }
  .recon { flex-direction: column !important; }
}

/* ============================================================
   Responsive — 480px and below
   ============================================================ */
@media (max-width: 480px) {
  /* --- Products grid: 2 columns --- */
  .products { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* --- Categories: 1 column --- */
  .cats { grid-template-columns: 1fr; }

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

  /* --- Stats: 2 columns --- */
  .stats { grid-template-columns: repeat(2, 1fr); }

  /* --- Footer: 1 column --- */
  .foot-grid { grid-template-columns: 1fr; }
}
