:root {
  --blue-900: #072a67;
  --blue-800: #0f3d91;
  --blue-700: #1f5eff;
  --blue-600: #2f71ff;
  --ink: #0f172a;
  --muted: #667085;
  --line: #e6edf7;
  --soft: #f5f8ff;
  --surface: #ffffff;
  --accent: #ff6a00;
  --green: #0a8f50;
  --shadow: 0 18px 50px rgba(10, 30, 80, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

.topbar {
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: #4f5f7a;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
}
.topbar p { margin: 0; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a:hover { color: var(--blue-800); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.header-main {
  display: grid;
  grid-template-columns: 250px minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 86px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 10px 22px rgba(19, 73, 177, 0.22);
}
.brand-mark svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .dot { fill: #7ec2ff; stroke: none; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong {
  font-size: 38px;
  letter-spacing: -1.4px;
  color: var(--blue-900);
  line-height: 0.95;
}
.brand-copy small {
  font-size: 12px;
  color: #42526e;
  margin-top: 5px;
}

.search-bar {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d8e3f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 50, 110, 0.06);
}
.search-bar input {
  flex: 1;
  min-height: 52px;
  border: 0;
  padding: 0 18px;
  color: var(--ink);
  outline: none;
}
.search-bar button {
  width: 58px;
  min-height: 52px;
  border: 0;
  background: var(--blue-900);
  color: #fff;
  cursor: pointer;
}
.search-bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: #18325e;
}
.header-actions a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.header-actions a:hover { color: var(--blue-800); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 6px 0;
  border-radius: 99px;
}

.main-nav {
  border-top: 1px solid #eef3fa;
  border-bottom: 1px solid #eef3fa;
  background: #fff;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 56px;
}
.nav-inner a {
  position: relative;
  font-size: 15px;
  color: #17335f;
}
.nav-inner a.active,
.nav-inner a:hover { color: var(--blue-800); }
.nav-inner a.active::after,
.nav-inner a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  height: 3px;
  border-radius: 99px;
  background: var(--blue-700);
}

.hero {
  background: linear-gradient(135deg, #08357f, #1860e3);
  color: #fff;
  padding: 26px 0 18px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.hero-copy, .hero-media {
  min-height: 410px;
  border-radius: 26px;
}
.hero-copy {
  padding: 36px 4px 34px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1.1px;
  font-weight: 800;
  color: #9ec5ff;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -2.6px;
  margin: 14px 0 16px;
  max-width: 630px;
}
.hero p {
  max-width: 620px;
  margin: 0;
  color: #dbe7ff;
  font-size: 19px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}
.button.primary {
  background: #fff;
  color: var(--blue-900);
}
.button.primary:hover { background: #edf4ff; }
.button.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.24);
}
.button.ghost:hover { background: rgba(255,255,255,0.08); }
.button.white {
  background: #fff;
  color: var(--blue-900);
}
.button.small { min-height: 42px; font-size: 14px; }
.hero-dots { display: flex; gap: 10px; margin-top: 24px; }
.hero-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.hero-dots .active { background: #fff; }

.hero-media {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.hero-products {
  position: relative;
  min-height: 360px;
}
.hero-products img {
  position: absolute;
  border-radius: 22px;
  box-shadow: 0 24px 40px rgba(0,0,0,0.18);
}
.hero-products .phone { width: 140px; left: 20px; top: 58px; }
.hero-products .headphones { width: 230px; left: 120px; top: 120px; }
.hero-products .watch { width: 138px; left: 240px; top: 180px; }
.hero-products .notebook { width: 260px; right: 0; top: 20px; }
.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 15px;
  color: #eaf2ff;
}
.hero-points li {
  padding-left: 18px;
  position: relative;
}
.hero-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #a8d0ff;
  font-weight: 700;
}

.categories {
  padding: 18px 0 4px;
}
.category-row {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 14px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 6px;
  border-radius: 18px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.category-card img { width: 70px; height: 70px; }
.category-card span { font-size: 14px; font-weight: 600; color: #193159; }

.section { padding: 36px 0 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.section-head h2 {
  margin: 0;
  font-size: 42px;
  letter-spacing: -1.6px;
}
.section-head p { margin: 8px 0 0; color: var(--muted); }
.section-head a, .text-link { color: var(--blue-800); font-weight: 700; }
.section-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #dae5f8;
  background: #fff;
  color: #224178;
  cursor: pointer;
}
.chip.active, .chip:hover { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.cards-grid { display: grid; gap: 18px; }
.offers-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.offer-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}
.offer-top {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8fbff;
}
.offer-top img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.offer-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.offer-title { font-size: 18px; line-height: 1.24; min-height: 45px; margin: 0; }
.meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7b889d;
  font-size: 13px;
}
.rating { color: #f59e0b; font-weight: 700; }
.old-price { color: #93a2b7; text-decoration: line-through; font-size: 15px; }
.price { font-size: 32px; line-height: 1; font-weight: 800; color: var(--blue-900); }
.store-line { color: #57657d; font-size: 14px; margin-top: -4px; }
.offer-body .button { margin-top: auto; background: var(--blue-800); color: #fff; }
.offer-body .button:hover { background: var(--blue-900); }

.feature-band {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 20px;
  align-items: start;
}
.feature-article {
  position: relative;
  min-height: 460px;
  border-radius: 24px;
  overflow: hidden;
}
.feature-article img { width: 100%; height: 100%; object-fit: cover; }
.feature-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px;
  background: linear-gradient(180deg, rgba(4, 20, 43, 0) 0%, rgba(4, 20, 43, 0.88) 74%);
  color: #fff;
}
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 700;
}
.feature-overlay h3 { font-size: 38px; line-height: 1; letter-spacing: -1.4px; margin: 12px 0 12px; max-width: 640px; }
.feature-overlay p { max-width: 540px; color: #dce6fa; margin: 0 0 18px; }
.feature-side { display: grid; gap: 18px; }
.box {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}
.box-head h3 { margin: 0; font-size: 28px; letter-spacing: -1px; }
.box-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.list-box ol {
  margin: 16px 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.list-box li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.list-box li span.number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--blue-900);
  font-weight: 800;
}
.list-box b { font-size: 15px; display: block; }
.deals-box { background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%); }
.quick-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #dce7fb;
}
.quick-item:last-child { border-bottom: 0; }
.quick-item img {
  width: 60px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
}
.quick-item b { display: block; font-size: 14px; }
.quick-item span { display: block; margin-top: 4px; color: var(--blue-900); font-weight: 800; }

.compact h2 { font-size: 36px; }
.reviews-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.review-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.review-card img { width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; background: #f5f8ff; }
.review-content { padding: 14px; }
.review-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--blue-800);
  background: #eef4ff;
  border-radius: 999px;
  padding: 6px 8px;
  margin-bottom: 10px;
}
.review-content h3 { margin: 0; font-size: 20px; line-height: 1.2; }

.compare-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.compare-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: #fff;
}
.compare-card img { width: 82px; height: 74px; object-fit: cover; border-radius: 12px; background: #f5f8ff; }
.compare-card h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.15; }
.compare-card p { margin: 0; color: var(--muted); font-size: 14px; }

.about-section { padding: 58px 0; background: linear-gradient(180deg, #f7faff 0%, #f0f5ff 100%); margin-top: 42px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.about-grid h2 { font-size: 44px; line-height: 1; letter-spacing: -1.6px; margin: 10px 0 14px; }
.about-grid p { color: #5f708a; font-size: 17px; line-height: 1.6; margin: 0; }
.about-points { display: grid; gap: 16px; }
.about-points > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #dbe6ff;
}
.about-points strong { font-size: 24px; color: var(--blue-800); }
.about-points span { display: flex; flex-direction: column; gap: 4px; }
.about-points small { color: #6e7e96; }

.newsletter-wrap { padding: 38px 0 62px; }
.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  background: linear-gradient(180deg, #edf4ff 0%, #e1ecff 100%);
  border: 1px solid #d1dffc;
  border-radius: 20px;
}
.newsletter h2 { margin: 0 0 6px; font-size: 32px; letter-spacing: -1px; }
.newsletter p { margin: 0; color: #536887; }
.newsletter-form { display: flex; gap: 10px; width: min(460px, 100%); }
.newsletter-form input {
  flex: 1;
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid #c9d8f7;
  background: #fff;
  padding: 0 16px;
  outline: none;
}
.newsletter-form .button.primary {
  background: var(--blue-800);
  color: #fff;
  min-width: 160px;
}
.newsletter-form .button.primary:hover { background: var(--blue-900); }

.site-footer { background: #071c44; color: #eaf2ff; padding: 54px 0 18px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 38px; }
.footer-brand .brand-copy strong { color: #fff; font-size: 34px; }
.footer-brand .brand-copy small { color: #bcd3ff; }
.footer-branding p { color: #c8d9ff; line-height: 1.55; font-size: 14px; max-width: 430px; }
.site-footer h4 { margin: 0 0 14px; font-size: 14px; color: #fff; }
.site-footer a { display: block; margin-bottom: 9px; color: #bfd2ff; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 32px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #b2c6f0;
  font-size: 13px;
}

.search-highlight { outline: 2px solid #2f71ff; box-shadow: 0 0 0 5px rgba(47, 113, 255, 0.14); }
.is-hidden { display: none !important; }

@media (max-width: 1200px) {
  .header-main { grid-template-columns: 220px minmax(260px, 1fr) auto; }
  .header-actions { gap: 14px; font-size: 13px; }
  .offers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-links { display: none; }
  .header-main { grid-template-columns: 1fr auto auto; }
  .search-bar { grid-column: 1 / -1; order: 3; }
  .header-actions { display: none; }
  .menu-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    padding: 16px 0;
  }
  .nav-inner a.active::after, .nav-inner a:hover::after { display: none; }
  .hero-grid,
  .feature-band,
  .about-grid,
  .newsletter,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-media { grid-template-columns: 1fr; }
  .hero-products { min-height: 320px; }
  .hero-points { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 16px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1180px); }
  .brand-copy strong { font-size: 28px; }
  .brand-copy small { font-size: 11px; }
  .hero { padding-top: 18px; }
  .hero-copy, .hero-media { min-height: auto; }
  .hero h1 { font-size: 40px; letter-spacing: -1.7px; }
  .hero p { font-size: 16px; }
  .hero-products { min-height: 250px; }
  .hero-products .phone { width: 92px; left: 8px; top: 36px; }
  .hero-products .headphones { width: 160px; left: 78px; top: 84px; }
  .hero-products .watch { width: 90px; left: 174px; top: 144px; }
  .hero-products .notebook { width: 165px; right: 0; top: 16px; }
  .category-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-head,
  .section-head.compact { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 32px; }
  .section-tools { align-items: flex-start; width: 100%; }
  .chips { justify-content: flex-start; }
  .offers-grid,
  .reviews-grid,
  .compare-grid { grid-template-columns: 1fr; }
  .offer-title { min-height: 0; }
  .feature-overlay h3,
  .about-grid h2,
  .newsletter h2 { font-size: 30px; }
  .newsletter-form { width: 100%; flex-direction: column; }
  .newsletter-form .button.primary { width: 100%; }
  .footer-bottom { flex-direction: column; }
}
