:root {
  --brand: #193f8f;
  --brand-dark: #071d49;
  --accent: #ff8a1f;
  --accent-2: #00a6fb;
  --success: #20b26b;
  --text: #10234d;
  --muted: #6b7a99;
  --line: #dbe3f0;
  --surface: #ffffff;
  --page: #f4f7fb;
  --soft-green: #e4f5ed;
  --soft-blue: #dff5fb;
  --soft-peach: #fff1e5;
  --shadow: 0 18px 45px rgba(16, 35, 77, .09);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.promo-bar {
  min-height: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 8px clamp(16px, 4vw, 64px);
  background: linear-gradient(90deg, #ff9d28, #ff7b26);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.promo-bar span { text-align: center; }
.promo-bar button {
  border: 0;
  background: rgba(255,255,255,.2);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
}

.topbar {
  height: 44px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 72px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--brand);
  font-size: 13px;
}
.topbar nav { display: flex; gap: 22px; }
.topbar p { margin: 0; }
.topbar p:last-child { justify-self: end; }
.topbar strong { color: var(--success); }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: grid;
  grid-template-columns: 230px minmax(280px, 560px) 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 72px);
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
  font-weight: 900;
  letter-spacing: -.03em;
}
.logo__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #ffd36a);
  box-shadow: 0 12px 26px rgba(255, 138, 31, .28);
}
.logo__text { font-size: clamp(22px, 2vw, 28px); }
.logo__text span { color: var(--accent-2); }
.search {
  height: 50px;
  display: flex;
  overflow: hidden;
  border: 1px solid #cfd9ea;
  border-radius: 14px;
  background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(25, 63, 143, .1); }
.search select, .search input, .search button { border: 0; background: transparent; outline: 0; }
.search select { width: 185px; padding: 0 14px; color: var(--brand); border-right: 1px solid var(--line); }
.search input { flex: 1; padding: 0 16px; min-width: 0; }
.search button { padding: 0 20px; background: var(--brand); color: #fff; font-weight: 800; cursor: pointer; }
.search button:hover { background: var(--brand-dark); }

.main-nav, .actions { display: flex; align-items: center; gap: 20px; color: var(--brand); font-weight: 700; }
.main-nav a.active, .main-nav a:hover, .actions a:hover { color: var(--accent); }
.actions { gap: 14px; white-space: nowrap; }
.actions span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.layout { display: grid; grid-template-columns: 74px 1fr; }
.sidebar {
  position: sticky;
  top: 79px;
  height: calc(100vh - 79px);
  z-index: 15;
  width: 74px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  transition: width .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.sidebar:hover, .sidebar-open .sidebar { width: 318px; box-shadow: var(--shadow); }
.sidebar__toggle {
  width: 100%;
  height: 50px;
  border: 0;
  background: #f7f9fd;
  color: var(--brand);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}
.sidebar ul { margin: 0; padding: 8px 0; list-style: none; }
.sidebar li { position: relative; }
.sidebar li > a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 20px;
  color: #6074a8;
  font-weight: 700;
}
.sidebar li > a:hover { color: var(--accent); background: #fff8f0; }
.category-icon {
  display: grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  font-size: 22px;
}
.sidebar li > a span:last-child { white-space: nowrap; }
.submenu { display: none; padding: 4px 0 12px 66px; }
.sidebar li:hover .submenu { display: grid; }
.submenu a { padding: 7px 0; color: #6677a1; font-size: 15px; }
.submenu a:hover { color: var(--brand-dark); }

.content { min-width: 0; padding-bottom: 44px; }
.quick-menu {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 13px clamp(16px, 3vw, 44px);
  background: #edf2f8;
  border-bottom: 1px solid var(--line);
  color: var(--brand);
  white-space: nowrap;
  font-weight: 650;
}
.quick-menu a:not(:last-child)::after { content: '|'; margin-left: 18px; color: #7f8eb0; }

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  padding: 26px clamp(16px, 3vw, 44px);
}
.hero-card {
  min-height: 310px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.hero-card--big {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) 1fr;
  align-items: center;
  background: linear-gradient(135deg, var(--soft-peach), #fff8f1);
}
.hero-card--big img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(16,35,77,.14);
}
.hero-card--soft { background: linear-gradient(135deg, var(--soft-green), #f4fff9); text-align: center; }
.hero-card--cyan { background: linear-gradient(135deg, var(--soft-blue), #effcff); text-align: center; }
.hero-card--soft img, .hero-card--cyan img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  border-radius: 16px;
  margin: 24px auto 0;
}
.badge {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #5ac58c;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-card h1, .hero-card h2 { margin: 14px 0 8px; color: var(--brand-dark); line-height: 1.08; }
.hero-card h1 { font-size: clamp(30px, 3vw, 46px); }
.hero-card h2 { font-size: clamp(22px, 2vw, 30px); }
.hero-card p { color: #008ed1; font-weight: 700; }
.hero-card strong { color: #ff6b24; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  margin-top: 10px;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(16,35,77,.15); }
.btn::after { content: '›'; font-size: 20px; }
.btn--orange { background: var(--accent); }
.btn--blue { background: var(--brand); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 44px) 22px;
}
.trust-strip article {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16,35,77,.04);
}
.trust-strip strong { color: var(--brand-dark); }
.trust-strip span { color: var(--muted); font-size: 14px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 12px clamp(16px, 3vw, 44px) 34px;
}
.product-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(16,35,77,.04);
  overflow: hidden;
}
.product-panel header {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}
.product-panel h3 { margin: 0; color: var(--brand); font-size: 22px; }
.product-panel header a { color: var(--accent-2); font-size: 14px; font-weight: 800; }
.product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 22px 22px;
}
.product-mini__image {
  display: grid;
  place-items: center;
  min-height: 132px;
  border-radius: 12px;
  background: #f3f6fb;
  overflow: hidden;
}
.product-mini__image img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  transition: transform .2s;
}
.product-mini:hover img { transform: scale(1.06); }
.product-mini__meta { padding-top: 12px; }
.product-mini h4 {
  min-height: 38px;
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 14px;
  line-height: 1.35;
}
.rating { display: flex; align-items: center; gap: 5px; color: #ffad32; font-size: 13px; }
.rating small { color: var(--muted); }
.price-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--brand); font-size: 14px; }
del { color: #97a4bd; }

@media (max-width: 1420px) {
  .header { grid-template-columns: 210px minmax(260px, 1fr) auto; }
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-card--big { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 940px) {
  .promo-bar { grid-template-columns: 1fr auto; }
  .promo-bar span:nth-child(n+2) { display: none; }
  .topbar { display: none; }
  .header { grid-template-columns: 1fr; gap: 12px; position: relative; }
  .actions { justify-content: space-between; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; height: 100vh; transform: translateX(-100%); width: 318px; top: 0; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar__toggle { text-align: left; padding-left: 20px; }
  .hero-grid, .product-grid, .trust-strip { grid-template-columns: 1fr; }
  .hero-card--big { grid-template-columns: 1fr; }
  .hero-card--big img { margin-top: 20px; }
}
@media (max-width: 620px) {
  .search { height: auto; flex-wrap: wrap; }
  .search select, .search input, .search button { width: 100%; min-height: 44px; }
  .search select { border-right: 0; border-bottom: 1px solid var(--line); }
  .product-row { grid-template-columns: 1fr; }
  .hero-card { padding: 24px; }
  .hero-card--big img, .hero-card--soft img, .hero-card--cyan img { height: 190px; }
}
