body {
  margin: 0;
  font-family: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, #f3f7fb 0%, #e8eef5 100%);
}

body.mobile-menu-open {
  overflow: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 52px);
}

.section {
  padding: clamp(34px, 4.4vw, 48px) 0;
}

.section-head p {
  margin: 6px 0 0;
  max-width: 680px;
  color: #5d7388;
  font-size: 14px;
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #dce6f1;
  box-shadow: 0 3px 10px rgba(7, 27, 47, 0.06);
}

.header-topline {
  background: linear-gradient(120deg, #0d2c4b, #0d4f8b 65%, #0f6dbf);
  color: #d7e8fa;
  font-size: 12px;
}

.topline-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  gap: 10px;
}

.topline-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.topline-right a {
  color: #ffffff;
}

.header-row {
  display: grid;
  grid-template-columns: 240px 1fr 290px;
  gap: 14px;
  align-items: center;
  min-height: 84px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  gap: 2px;
}

.logo-primary {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0f2134;
  position: relative;
}

.logo-primary::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: #0a66c2;
  margin-top: 4px;
}

.logo-sub {
  font-size: 10px;
  color: #6b7d8f;
  font-weight: 400;
  letter-spacing: 0.35px;
  margin-top: 2px;
  max-width: 220px;
  white-space: normal;
  line-height: 1.25;
}

.logo-link:hover .logo-primary {
  color: #0a66c2;
}

.header-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.header-search input {
  border: 1px solid #c5d4e3;
  border-radius: 9px;
  padding: 11px 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.header-search button {
  border: 0;
  border-radius: 9px;
  padding: 10px 16px;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(16, 73, 130, 0.18);
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
}

.contact-main {
  color: #163450;
  font-size: 18px;
  font-weight: 800;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #c6d5e5;
  color: #21435f;
  font-weight: 700;
}

.cart-link span {
  min-width: 22px;
  text-align: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 1px 6px;
}

.main-nav {
  background: #f2f7fc;
  border-top: 1px solid #dde8f3;
  position: relative;
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  min-height: 46px;
  align-items: center;
}

.nav-row a {
  padding: 10px 13px;
  border-radius: 7px;
  color: #223a52;
  font-weight: 700;
}

.nav-row a:hover {
  background: #e7f1fc;
  color: #0d5ea8;
}

.catalog-split {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bdd3e6;
  border-radius: 8px;
  background: linear-gradient(120deg, #e9f3ff, #f8fcff);
  overflow: hidden;
}

.catalog-link {
  padding: 10px 12px;
  color: #173a59;
  font-weight: 800;
  border-right: 1px solid #c7dbec;
}

.catalog-link:hover {
  background: #dfeefc;
  color: #0d5ea8;
}

.catalog-trigger,
.mobile-menu-trigger {
  padding: 10px 14px;
  border: 1px solid #bdd3e6;
  border-radius: 8px;
  color: #173a59;
  font-weight: 800;
  background: linear-gradient(120deg, #e9f3ff, #f8fcff);
}

.catalog-split .catalog-trigger {
  border: 0;
  border-radius: 0;
  min-width: 40px;
  padding: 10px 10px;
}

.catalog-trigger[aria-expanded="true"] {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: #0a4d90;
}

.mobile-menu-trigger {
  display: none;
  margin-left: auto;
}

.catalog-mega {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-top: 1px solid #d7e3ef;
  border-bottom: 1px solid #d7e3ef;
  box-shadow: 0 14px 30px rgba(15, 38, 63, 0.14);
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 90;
  max-height: calc(100vh - var(--header-offset, 150px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mega-layout {
  display: grid;
  grid-template-columns: 228px minmax(250px, 0.95fr) minmax(320px, 1.2fr) minmax(220px, 0.82fr);
  gap: 0;
  padding: 0;
  min-height: 540px;
}

.mega-panel {
  min-width: 0;
  padding: 18px 16px;
  border-right: 1px solid #e3edf6;
  background: rgba(255, 255, 255, 0.9);
}

.mega-panel:last-child {
  border-right: 0;
}

.mega-panel--roots {
  background: linear-gradient(180deg, #f5f9fd 0%, #edf5fb 100%);
}

.mega-panel--groups,
.mega-panel--nested,
.mega-panel--aside {
  position: relative;
  max-height: calc(100vh - var(--header-offset, 150px) - 2px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mega-panel-head,
.mega-node-head,
.mega-heading,
.mega-group-head,
.mobile-menu-node-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mega-panel-head {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4edf6;
  position: sticky;
  top: -18px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(5px);
}

.mega-panel h3,
.mega-col h3 {
  margin: 0;
  font-size: 15px;
  color: #183a56;
}

.mega-panel h3 a,
.mega-heading-meta,
.mega-panel-meta,
.mega-group-count,
.mobile-menu-count {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf3ff;
  border: 1px solid #cfe0f0;
  color: #244a69;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.mega-panel h3 a,
.mega-col h3 a {
  color: #183a56;
  text-decoration: none;
}

.mega-panel h3 a:hover,
.mega-col h3 a:hover {
  color: #0f5ea7;
}

.mega-link-all {
  margin-top: 10px;
  display: inline-flex;
  font-weight: 700;
  color: #0f5ea7;
}

.mega-root-list,
.mega-node-list,
.mega-quick-links {
  display: grid;
  gap: 7px;
}

.mega-root-tab {
  width: 100%;
  border: 1px solid #d6e3ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 12px 14px;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.mega-root-tab:hover,
.mega-root-tab.is-active {
  border-color: #9ec1df;
  box-shadow: 0 10px 18px rgba(20, 47, 75, 0.06);
  background: #ffffff;
}

.mega-root-title {
  color: #183a56;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.mega-root-meta {
  color: #5d7890;
  font-size: 12px;
}

.mega-node {
  border: 1px solid #deebf6;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  padding: 9px 11px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.mega-node:hover,
.mega-node.is-active {
  border-color: #b6cfe6;
  box-shadow: 0 8px 14px rgba(19, 46, 74, 0.05);
  background: #fbfdff;
}

.mega-node-title {
  color: #173a59;
  font-size: 13px;
  font-weight: 800;
}

.mega-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  align-content: start;
}

.mega-sub-card {
  border: 1px solid #deebf6;
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfdff 0%, #f2f7fb 100%);
  padding: 10px 11px;
  min-height: 64px;
  display: grid;
  align-content: start;
  gap: 4px;
  color: #234764;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.mega-sub-card:hover {
  border-color: #b6cee3;
  box-shadow: 0 10px 18px rgba(22, 51, 80, 0.08);
  transform: translateY(-1px);
}

.mega-sub-card-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.mega-sub-card-meta {
  font-size: 11px;
  color: #5c7690;
}

.mega-child-panel {
  transition: margin-top 0.14s ease;
}

.mega-empty-state {
  border: 1px dashed #cddceb;
  border-radius: 12px;
  padding: 14px;
  color: #5e768e;
  font-size: 13px;
  background: #f9fbfd;
}

.mega-quick-links a {
  color: #31506d;
  font-size: 13px;
  padding: 6px 0 6px 10px;
  border-left: 2px solid #d7e5f3;
}

.mega-quick-links a:hover {
  color: #0f5ea7;
  border-left-color: #9ec1df;
}

.mega-brand-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.mega-brand-strip a {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef5fb;
  border: 1px solid #cfe1f2;
  color: #264764;
  text-align: center;
}

.mega-brand-strip a:hover {
  background: #dcecff;
  color: #0f5ea7;
}

.mega-products {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.mega-product {
  border: 1px solid #d9e6f2;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f7fb 100%);
  padding: 8px;
  display: grid;
  gap: 5px;
}

.mega-product img {
  width: 100%;
  height: 64px;
  object-fit: contain;
}

.mega-product .sku {
  font-size: 10px;
  color: #5f7892;
  font-weight: 700;
  text-transform: uppercase;
}

.mega-product .title {
  font-size: 11px;
  color: #274966;
  line-height: 1.25;
  max-height: 30px;
  overflow: hidden;
}

.mega-group-panel[hidden],
.mega-child-panel[hidden],
.mega-aside-panel[hidden] {
  display: none !important;
}

.mobile-catalog-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(90vw, 360px);
  background: #fff;
  z-index: 200;
  border-right: 1px solid #d7e3ef;
  box-shadow: 12px 0 28px rgba(11, 31, 52, 0.18);
  max-height: 100vh;
  overflow: hidden;
}

.mobile-drawer-head {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #d7e3ef;
}

.mobile-drawer-head button {
  border: 0;
  background: #eef5fc;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.mobile-drawer-body {
  padding: 10px 12px 16px;
  overflow-y: auto;
  max-height: calc(100vh - 56px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-group {
  border-bottom: 1px solid #ebf0f6;
  padding: 7px 0;
}

.mobile-menu-group summary {
  font-weight: 700;
  color: #1f3f5b;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mobile-menu-links {
  margin-top: 8px;
  display: grid;
  gap: 6px;
  padding-left: 8px;
}

.mobile-menu-node {
  display: grid;
  gap: 4px;
  padding: 6px 0;
  border-bottom: 1px solid #edf2f7;
}

.mobile-menu-node:last-child {
  border-bottom: 0;
}

.mobile-menu-links a {
  color: #365775;
  font-size: 14px;
}

.mobile-menu-sublinks {
  display: grid;
  gap: 4px;
  padding-left: 12px;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu-sublinks a {
  font-size: 12px;
  color: #5a7792;
}

.mobile-quick-links {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.mobile-quick-links a {
  border: 1px solid #d4e3f3;
  border-radius: 8px;
  padding: 9px 10px;
  color: #20486c;
  background: #f5faff;
  font-weight: 700;
}

.hero {
  padding: 26px 0;
  background: radial-gradient(circle at 20% -40%, #dfeeff 0%, #f5f9ff 52%, #f0f5fa 100%);
  border-bottom: 1px solid #dbe6f2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 16px;
}

.hero-grid--home {
  align-items: stretch;
}

.hero-main,
.hero-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.hero-side ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.hero-side li {
  margin: 6px 0;
}

.hero-side--search h2 {
  font-size: 21px;
  margin-bottom: 10px;
}

.hero-side-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hero-chips span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #cfe0f1;
  background: #eef5fc;
  color: #215078;
  font-size: 13px;
  font-weight: 600;
}

.home-top-zone {
  padding-top: 20px;
}

.home-top-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 260px;
  gap: 12px;
  align-items: start;
}

.home-top-cats,
.home-top-carousel,
.home-top-benefits,
.home-category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-top-cats,
.home-top-benefits {
  padding: 14px;
}

.home-top-cats h2,
.home-top-benefits h2 {
  font-size: 19px;
}

.home-top-cats ul,
.home-top-benefits ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.home-top-cats a {
  color: #1f4a71;
  font-weight: 600;
}

.home-top-carousel {
  padding: 12px;
}

.home-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.home-mini-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid #d6e4f2;
  border-radius: 10px;
  background: #f9fcff;
  overflow: hidden;
  scroll-snap-align: start;
}

.home-mini-card .img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4fa;
  height: 176px;
  min-height: 176px;
  padding: 16px;
  overflow: hidden;
}

.home-mini-card .img img {
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 132px;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0 auto;
  flex: 0 0 auto;
}

.home-mini-body {
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 146px;
}

.home-mini-sku {
  font-size: 12px;
  font-weight: 800;
  color: #153a5d;
}

.home-mini-brand {
  font-size: 12px;
  color: #59768f;
}

.home-mini-title {
  color: #1f3f5c;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-mini-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
}

.home-mini-meta .in {
  color: #126f3f;
  font-weight: 700;
}

.home-mini-meta .out {
  color: #9b5a11;
  font-weight: 700;
}

.home-mini-body .btn-ghost {
  font-size: 12px;
  padding: 7px 10px;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-category-card {
  padding: 14px;
}

.home-category-card h3 {
  font-size: 18px;
}

.home-category-card p {
  margin-bottom: 10px;
}

.home-category-card a {
  font-weight: 700;
}

.site-footer {
  margin-top: 30px;
  background: linear-gradient(135deg, #0c1b2b, #11273d 60%, #173958);
  color: #dae6f3;
  padding: 34px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 22px;
}

.footer-grid h4 {
  color: #fff;
  margin: 0 0 10px;
  font-size: 15px;
}

.footer-grid a {
  display: block;
  color: #d8e6f4;
  margin-bottom: 6px;
}

.footer-grid p {
  color: #c0d0df;
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(217, 231, 244, 0.25);
  color: #bbcede;
  font-size: 13px;
}
