:root {
  --green: #86bd25;
  --pink: #ee2b8f;
  --dark: #2c2c2c;
  --muted: #7b7b7b;
  --line: #ececec;
  --light: #f8f8f8;
  --shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--dark);
  background: #fff;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

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

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

a:hover {
  color: var(--green);
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: #111;
  color: #d8d8d8;
  font-size: 12px;
}

.topbar__inner,
.mainbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__inner {
  min-height: 39px;
}

.topbar a {
  color: #fff;
}

.topbar .sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  margin: 0 10px;
  vertical-align: middle;
  background: #444;
}

.claim {
  margin-left: 18px;
  color: #bfbfbf;
}

.topbar__right {
  text-align: right;
  color: #e8e8e8;
}

.mainbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.mainbar__inner {
  min-height: 94px;
}

.logo img {
  width: 148px;
  height: auto;
}

.search {
  flex: 1 1 420px;
  max-width: 520px;
}

.search input {
  width: 100%;
  height: 43px;
  padding: 0 16px;
  border: 1px solid #ddd;
  border-radius: 2px;
  outline: 0;
  color: #777;
  background: #fafafa;
}

.search input:focus {
  border-color: var(--green);
  background: #fff;
}

.account-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #555;
  font-size: 13px;
  white-space: nowrap;
}

.cart {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.nav {
  position: relative;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 17px 15px;
  color: #444;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.nav a:hover {
  background: #f9f9f9;
  color: var(--green);
}

.hero {
  position: relative;
  height: clamp(250px, 35vw, 420px);
  overflow: hidden;
  background: #f4f4f4;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  animation: slider 15s infinite;
}

.hero__slide--one {
  background-image: url("/img/baner1.jpg");
}

.hero__slide--two {
  background-image: url("/img/baner2.jpg");
  animation-delay: 5s;
}

.hero__slide--three {
  background-image: url("/img/baner1.jpg");
  animation-delay: 10s;
}

@keyframes slider {
  0%, 7% { opacity: 0; }
  10%, 31% { opacity: 1; }
  35%, 100% { opacity: 0; }
}

.section {
  padding: 56px 0 24px;
}

.section h2 {
  position: relative;
  margin: 0 0 34px;
  color: #333;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}

.section h2::after {
  content: "";
  display: block;
  width: 45px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--green);
}

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

.category-card {
  position: relative;
  display: block;
  min-height: 80px;
  background: var(--green);
}

.category-card img {
  width: 100%;
  height: 235px;
  object-fit: cover;
  transition: transform .35s ease;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .54), rgba(0, 0, 0, 0) 62%);
}

.category-card h3 {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  text-align: center;
}

.category-card span {
  color: #e9e9e9;
  font-weight: 400;
}

.products {
  padding-top: 60px;
}

.tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -10px 0 34px;
}

.tabs a {
  padding: 8px 17px;
  border: 1px solid var(--line);
  color: #777;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.tabs a.active,
.tabs a:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

.product-card {
  position: relative;
  min-width: 0;
  background: #fff;
}

.product-image {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 16px;
  background: #f4f4f4;
  border: 1px solid #f0f0f0;
}

.product-image img {
  width: 100%;
  aspect-ratio: 3 / 3.7;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
  opacity: .92;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 9px;
  color: #fff;
  background: #222;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0 0 8px;
  color: #333;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.price {
  margin: 0 0 10px;
  color: #111;
  font-size: 15px;
  font-weight: 800;
}

.product-card p:not(.price) {
  margin: 0 0 14px;
  color: #777;
  font-size: 13px;
}

.more {
  display: inline-block;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.partners {
  margin-top: 44px;
  padding: 35px 0;
  background: #fafafa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr 3.2fr;
  align-items: center;
  gap: 36px;
}

.partner-row img {
  max-height: 72px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(10%);
}

.features {
  padding: 42px 0;
  background: #fff;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
}

.feature__icon {
  grid-column: 1;
  grid-row: 1 / 3;
	display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.feature h3 {
  grid-column: 2;
  grid-row: 1;
}

.feature p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: none;
  width: auto;
  white-space: normal;
}

.footer {
  padding: 48px 0 24px;
  color: #cbcbcb;
  background: #242424;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr 1.7fr;
  gap: 36px;
}

.footer h4 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin: 6px 0;
}

.footer a {
  color: #cfcfcf;
}

.footer a:hover {
  color: var(--green);
}

.mission p {
  margin: 0;
}

.copyright {
  margin-top: 32px;
  padding-top: 20px;
  color: #969696;
  border-top: 1px solid #333;
  font-size: 12px;
}

@media (max-width: 1040px) {
  .topbar__inner,
  .mainbar__inner {
    flex-wrap: wrap;
  }

  .topbar__right {
    width: 100%;
    padding-bottom: 10px;
    text-align: left;
  }

  .nav ul {
    flex-wrap: wrap;
  }

  .nav a {
    padding: 12px 10px;
  }

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

  .partner-row,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 13px;
  }

  .mainbar__inner {
    align-items: flex-start;
    padding: 20px 0;
  }

  .search,
  .account-links {
    flex-basis: 100%;
    max-width: none;
  }

  .account-links {
    justify-content: space-between;
    white-space: normal;
  }

  .hero {
    height: 220px;
  }

  .hero__slide {
    background-size: cover;
  }

  .category-grid,
  .product-grid,
  .feature-grid,
  .partner-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .feature__icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}
