:root {
  --text: #242424;
  --muted: #717171;
  --line: #ececec;
  --soft: #f7f7f5;
  --accent: #202020;
  --sale: #d93636;
  --green: #0f8b6f;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Arial, "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.top-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 28px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  color: #4d4d4d;
  font-size: 12px;
}

.top-strip__promo {
  font-weight: 700;
  text-decoration: underline;
}

.top-strip__right {
  text-align: right;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.site-header__nav,
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 700;
}

.site-header__actions {
  justify-content: flex-end;
}

.brand {
  font-size: 28px;
  font-weight: 900;
}

.sale-pill {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
}

.icon-action,
.menu-toggle,
.tab,
.filter-list button {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-action {
  padding: 0;
  font-weight: 700;
}

.cart-action span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
}

.menu-toggle {
  display: none;
  justify-self: end;
  font-size: 24px;
}

.hero {
  min-height: 520px;
  background: var(--soft);
}

.hero__stage {
  display: flex;
  min-height: 520px;
  background-color: #f7f7f5;
  background-image: url("../img/hero-bg-air-water.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  outline: none;
  transition: background-image 420ms ease;
}

.hero__stage:focus-visible {
  box-shadow: inset 0 0 0 3px var(--accent);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: min(36%, 465px);
  min-width: 320px;
  padding: 48px;
  text-align: center;
}

.hero__copy p,
.listing-hero p,
.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 460px;
  margin: 0 0 40px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.08;
}

.primary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  height: 42px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0;
  text-align: center;
}

.section h2,
.listing-hero h1 {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.15;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 34px;
}

.tab {
  min-width: 118px;
  height: 34px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #333;
  font-weight: 700;
}

.tab.is-active,
.filter-list button.is-active {
  background: #efefef;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 24px;
  text-align: left;
}

.product-grid--deals {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  min-width: 0;
}

.product-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--soft);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.product-card:hover img {
  transform: scale(1.025);
}

.product-card__image span {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--sale);
  font-size: 12px;
  font-weight: 800;
}

.product-card__name {
  display: block;
  min-height: 38px;
  margin-top: 12px;
  overflow: hidden;
  color: #323232;
  font-size: 14px;
  line-height: 1.35;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
  font-size: 14px;
}

.product-card__price strong {
  font-size: 16px;
}

.product-card__price del {
  color: #9b9b9b;
}

.section-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.service-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-band div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 16px;
  background: #fff;
}

.service-band span {
  color: var(--muted);
  font-size: 13px;
}

.listing-hero {
  padding: 72px 24px;
  background: var(--soft);
  text-align: center;
}

.listing-hero span {
  color: var(--muted);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 74px;
}

.filters h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.filter-list {
  display: grid;
  gap: 8px;
}

.filter-list button {
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: left;
  font-weight: 700;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-bottom: 14px;
}

.search-field,
.sort-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-field input,
.sort-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.result-count {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 48px 16px;
  background: var(--soft);
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 56px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.detail-image {
  background: var(--soft);
}

.detail-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-copy {
  align-self: center;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: 38px;
  line-height: 1.15;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}

.detail-price strong {
  font-size: 28px;
}

.detail-price del {
  color: var(--muted);
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.detail-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 30px;
  padding-left: 18px;
}

.legal-page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 76px;
  color: #333;
}

.legal-page h2 {
  margin: 38px 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

.legal-page p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.text-link {
  display: inline-flex;
  margin-left: 18px;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 120px;
  gap: 48px;
  align-items: start;
  padding: 56px max(48px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #f8f8f8;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 16px;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer img {
  width: 110px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #fff;
}

.copyright {
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .top-strip {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 8px 16px;
    text-align: center;
  }

  .top-strip__side {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    min-height: 58px;
    padding: 0 16px;
  }

  .brand {
    justify-self: center;
    font-size: 22px;
  }

  .site-header__nav {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .site-header__nav.is-open {
    display: flex;
  }

  .site-header__nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header__actions {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero__stage,
  .hero__copy {
    min-height: 320px;
  }

  .hero__stage {
    background-position: center bottom;
    background-size: auto 100%;
  }

  .hero__copy {
    width: 40%;
    min-width: 250px;
    padding: 32px 18px;
  }

  .product-grid,
  .product-grid--deals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .service-band,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 44px 0;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .product-grid,
  .product-grid--deals {
    grid-template-columns: 1fr;
  }

  .hero__stage {
    min-height: 620px;
    align-items: flex-start;
    background-position: center bottom;
    background-size: auto 62%;
  }

  .hero__copy {
    width: 100%;
    min-width: 0;
    min-height: 300px;
  }

  .detail-copy h1 {
    font-size: 30px;
  }

  .text-link {
    margin: 16px 0 0;
  }
}
