:root {
  --navy: #0b1d36;
  --navy-2: #122a4a;
  --red: #d61f26;
  --red-dark: #b0181e;
  --ink: #121826;
  --muted: #5b6577;
  --line: #e6e9ef;
  --bg: #f4f6f9;
  --white: #fff;
  --shadow: 0 10px 30px rgba(11, 29, 54, .08);
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Manrope, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
.container { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 0; border-radius: 10px; padding: 11px 16px;
  font-weight: 700; cursor: pointer;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }

.topbar {
  background: var(--navy); color: #c9d4e5; font-size: 13px; padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; }

.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 12px 0;
}
.brand, .brand a, .custom-logo-link { display: flex; align-items: center; min-width: 0; }
.custom-logo, .brand img {
  display: block !important;
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.brand-text { font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.brand-text span { color: var(--red); }

.header-search {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  min-width: 0;
}
.header-search input {
  flex: 1; border: 0; background: transparent; padding: 12px 16px; outline: none; min-width: 0; font-size: 15px;
}
.header-search button {
  border: 0; background: var(--navy); color: #fff; padding: 0 18px; cursor: pointer; font-weight: 700;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; background: var(--navy); color: #fff;
  border: 0; border-radius: 10px; align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: #fff; position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.site-nav { background: var(--navy-2); }
.site-nav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; }
.site-nav a {
  display: block; color: #d7e0ee; padding: 12px 14px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }

.hero {
  position: relative; min-height: 460px; display: grid; align-items: center; color: #fff;
  background: #050b14 url("../img/hero.jpg") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,16,32,.88), rgba(7,16,32,.35) 70%);
}
.hero-content { position: relative; padding: 64px 0; max-width: 640px; }
.kicker {
  display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 14px; }
.hero p { color: #d5deea; font-size: 18px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 22px; }
.section-head p, .text-link { color: var(--muted); }
.page-hero { background: var(--navy); color: #fff; padding: 36px 0; }
.page-hero h1 { font-size: 34px; letter-spacing: -.03em; }
.crumbs { color: #9fb0c8; font-size: 13px; margin-bottom: 8px; }
.crumbs a { color: #fff; }
.crumbs.light { color: var(--muted); margin: 24px 0 8px; }
.crumbs.light a { color: var(--navy); }

.cat-grid, .prod-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.cat-card, .card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.cat-card { padding: 22px; }
.cat-card:hover { transform: translateY(-3px); }
.cat-icon { width: 48px; height: 48px; border-radius: 12px; background: #fde8e9; margin-bottom: 14px; position: relative; }
.cat-icon::after { content: ""; position: absolute; inset: 18px; background: var(--red); border-radius: 50%; }
.cat-card h3 { font-size: 17px; }
.cat-card p { color: var(--muted); font-size: 13px; }

.card { overflow: hidden; display: flex; flex-direction: column; }
.card-img { height: 190px; display: grid; place-items: center; padding: 16px; background: #fff; }
.card-img img { max-height: 160px; width: auto; object-fit: contain; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.badge {
  display: inline-block; width: fit-content; background: #eef2f8; color: var(--navy);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 8px; border-radius: 999px;
}
.card h3 { font-size: 16px; line-height: 1.3; }
.sku { color: var(--muted); font-size: 12px; }
.price { font-size: 20px; font-weight: 800; color: var(--navy); margin-top: auto; }
.price small { font-size: 12px; color: var(--muted); font-weight: 600; }

.catalog-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.filters { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: 92px; }
.filters h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filters a { display: block; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.filters a.is-active { font-weight: 800; color: var(--red); }
.toolbar { display: flex; justify-content: space-between; margin-bottom: 16px; }

.product-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; padding: 12px 0 48px; }
.gallery { background: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow); display: grid; place-items: center; min-height: 420px; }
.gallery img { max-height: 380px; object-fit: contain; }
.prod-info h1 { font-size: 30px; letter-spacing: -.03em; margin: 8px 0 10px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.prod-price { font-size: 34px; font-weight: 800; color: var(--navy); margin: 10px 0 18px; }
.spec { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec th, .spec td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec th { color: var(--muted); font-weight: 600; width: 40%; }
.entry { margin: 12px 0; }
.empty-search { background: #fff; padding: 32px; border-radius: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pager { margin-top: 28px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.page-content { padding-bottom: 24px; }

.site-footer { background: var(--navy); color: #c5d1e2; padding: 48px 0 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 7px 0; }
.copyright { border-top: 1px solid #1e3353; padding-top: 16px; font-size: 13px; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; z-index: 50;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 10px; }
  .custom-logo, .brand img { height: 36px; max-width: 160px; }
  .header-search { grid-column: 1 / -1; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; background: var(--navy); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .cat-grid, .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-wrap, .product-wrap, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .filters { position: static; }
}

@media (max-width: 640px) {
  .custom-logo, .brand img {
    display: block !important;
    height: 32px !important;
    max-width: 44vw;
  }
  .header-actions .btn-ghost { display: none; }
  .header-search input { font-size: 16px; }
  .prod-grid, .cat-grid { grid-template-columns: 1fr; }
  .hero { min-height: 380px; }
}
