:root {
  --ink: #14201f;
  --muted: #65706d;
  --surface: #f7f8f4;
  --card: #ffffff;
  --line: #dfe5db;
  --mint: #1f8f75;
  --coral: #ef6b4a;
  --sun: #f3bd4e;
  --night: #172a3a;
  --shadow: 0 18px 45px rgba(23, 42, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 248, 244, 0.92);
  border-bottom: 1px solid rgba(223, 229, 219, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.main-nav,
.hero-actions,
.product-row,
.tabs {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.main-nav {
  gap: 26px;
  color: #344340;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--mint);
}

.header-actions {
  gap: 10px;
}

.icon-button,
.cart-button,
.product-row button,
.tab {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  font-size: 1.4rem;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100vh - 72px));
  overflow: hidden;
  color: #fff;
  background: var(--night);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 32, 31, 0.9), rgba(20, 32, 31, 0.54) 42%, rgba(20, 32, 31, 0.1)),
    url("https://images.unsplash.com/photo-1511707171634-5f897ff02aa9?auto=format&fit=crop&w=1800&q=86") center / cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(720px, 100%);
  padding: clamp(72px, 10vw, 132px) clamp(20px, 6vw, 72px) 110px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.84;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
}

.button.primary {
  color: #fff;
  background: var(--mint);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.button.dark {
  color: #fff;
  background: var(--night);
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: 28px;
  z-index: 1;
  display: grid;
  gap: 6px;
  width: min(360px, calc(100% - 40px));
  padding: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-label,
.tag {
  width: fit-content;
  padding: 5px 8px;
  color: var(--mint);
  background: #e9f4ef;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 850;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.quick-strip div {
  display: grid;
  gap: 4px;
  padding: 22px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.quick-strip span,
.product-card p,
.service-list p,
.support-panel p,
.site-footer {
  color: var(--muted);
}

.section,
.support-panel {
  padding: clamp(64px, 8vw, 104px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-heading.inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

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

.category-card {
  display: grid;
  align-content: end;
  min-height: 245px;
  padding: 20px;
  color: #fff;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.category-card span {
  opacity: 0.78;
}

.category-card strong {
  margin-top: 6px;
  font-size: 1.4rem;
  line-height: 1.1;
}

.phones {
  background-image: linear-gradient(180deg, transparent, rgba(20, 32, 31, 0.82)), url("https://images.unsplash.com/photo-1512499617640-c2f999098c01?auto=format&fit=crop&w=760&q=80");
}

.audio {
  background-image: linear-gradient(180deg, transparent, rgba(20, 32, 31, 0.82)), url("https://images.unsplash.com/photo-1606220945770-b5b6c2c55bf1?auto=format&fit=crop&w=760&q=80");
}

.power {
  background-image: linear-gradient(180deg, transparent, rgba(20, 32, 31, 0.82)), url("https://images.unsplash.com/photo-1583863788434-e58a36330cf0?auto=format&fit=crop&w=760&q=80");
}

.care {
  background-image: linear-gradient(180deg, transparent, rgba(20, 32, 31, 0.82)), url("https://images.unsplash.com/photo-1581092580497-e0d23cbdf1dc?auto=format&fit=crop&w=760&q=80");
}

.tabs {
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.tab.active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

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

.product-card {
  display: grid;
  gap: 18px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card[hidden] {
  display: none;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.product-card h3 {
  margin: 12px 0 8px;
  font-size: 1.35rem;
}

.product-card p {
  margin-bottom: 0;
  line-height: 1.5;
}

.product-row {
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.product-row button {
  min-width: 72px;
  min-height: 40px;
  border-radius: 8px;
  font-weight: 800;
}

.deal-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px clamp(18px, 4vw, 56px);
  padding: clamp(28px, 5vw, 54px);
  background: var(--sun);
  border-radius: 8px;
}

.deal-band div {
  max-width: 780px;
}

.deal-band .eyebrow {
  color: #7b391f;
}

.deal-band p:last-child {
  margin-bottom: 0;
  color: #4a3826;
  font-size: 1.05rem;
  line-height: 1.55;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: clamp(28px, 5vw, 70px);
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-icon {
  grid-row: span 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background: var(--coral);
  border-radius: 8px;
  font-weight: 900;
}

.service-list h3 {
  margin-bottom: 6px;
}

.support-panel {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 440px);
  gap: 28px;
  margin: 0 clamp(18px, 4vw, 56px) 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.recommend-form {
  display: grid;
  gap: 14px;
}

.recommend-form label,
.search-dialog label {
  display: grid;
  gap: 8px;
  color: #32413d;
  font-weight: 800;
}

select,
input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.search-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 26px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-dialog::backdrop {
  background: rgba(20, 32, 31, 0.55);
}

.search-dialog .close {
  margin-left: auto;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .quick-strip,
  .category-grid,
  .product-grid,
  .service-layout,
  .support-panel {
    grid-template-columns: 1fr;
  }

  .section-heading.inline,
  .deal-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-card {
    min-height: 190px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
  }

  .brand span:last-child,
  .cart-button span:last-child {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 72px;
  }

  h1 {
    font-size: clamp(3.25rem, 18vw, 5rem);
  }

  .hero-panel {
    left: 20px;
    right: 20px;
  }

  .quick-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
