/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #faf9f7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-accent: #2f6f61;
  --color-accent-hover: #245a4e;
  --color-border: rgba(0,0,0,.08);
  --color-badge: #2f6f61;
  --color-badge-sale: #c45c26;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
  --container: 1180px;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,247,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo__icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color .2s;
}

.nav__link:hover { color: var(--color-text); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--color-text);
  transition: background .2s;
}

.icon-btn:hover { background: rgba(0,0,0,.05); }

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: .2s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  transition: all .2s;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-text);
}

/* ===== Hero ===== */
.hero {
  padding: 64px 0 80px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__text {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 440px;
  margin-bottom: 32px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  position: relative;
  height: 420px;
}

.hero__card {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero__card-img {
  width: 100%;
  height: 100%;
}

.hero__card--1 {
  width: 260px;
  height: 320px;
  top: 0;
  left: 10%;
  z-index: 2;
}

.hero__card--2 {
  width: 200px;
  height: 240px;
  top: 80px;
  right: 5%;
  z-index: 1;
}

.hero__card--3 {
  width: 160px;
  height: 160px;
  bottom: 20px;
  left: 35%;
  z-index: 3;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-surface);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section__subtitle {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* ===== Categories ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform .25s, box-shadow .25s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card__img {
  height: 160px;
}

.category-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 16px 16px 4px;
}

.category-card span {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding: 0 16px 16px;
}

/* ===== Products ===== */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform .25s, box-shadow .25s;
}

.section--alt .product-card {
  background: var(--color-surface);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card__img {
  position: relative;
  height: 240px;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-badge);
  color: #fff;
  border-radius: 999px;
}

.product-card__badge--sale {
  background: var(--color-badge-sale);
}

.product-card__body {
  padding: 16px 18px 20px;
}

.product-card__cat {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.product-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ===== Benefits ===== */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.benefit {
  text-align: center;
  padding: 8px;
}

.benefit__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: rgba(47, 111, 97, 0.1);
  color: var(--color-accent);
  border-radius: 50%;
}

.benefit h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.benefit p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ===== CTA ===== */
.cta {
  padding: 80px 0;
  background: linear-gradient(160deg, #2f6f61 0%, #1e4a40 100%);
  color: #fff;
}

.cta__inner {
  text-align: center;
  max-width: 560px;
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 28px;
}

.cta__form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}

.cta__form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
}

.cta__form .btn {
  flex-shrink: 0;
  background: #1a1a1a;
}

.cta__form .btn:hover {
  background: #000;
}

.cta__note {
  margin-top: 16px;
  font-size: 0.9375rem;
  opacity: 0.95;
}

/* ===== Footer ===== */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand p {
  margin-top: 16px;
  font-size: 0.875rem;
  color: rgba(255,255,255,.6);
  max-width: 280px;
  line-height: 1.6;
}

.footer .logo { color: #fff; }
.footer .logo__icon { color: #7eb8a8; }

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

.footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  color: rgba(255,255,255,.5);
}

.footer__col a {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 10px;
  transition: color .2s;
}

.footer__col a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.45);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 300px; order: -1; }
  .hero__card--1 { width: 200px; height: 240px; left: 5%; }
  .hero__card--2 { width: 150px; height: 180px; right: 8%; }
  .hero__card--3 { width: 120px; height: 120px; }

  .categories { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .nav.is-open { display: flex; }

  .burger { display: flex; }

  .hero { padding: 40px 0 60px; }
  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; }

  .categories { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }

  .cta__form { flex-direction: column; }
  .cta__form .btn { width: 100%; }

  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
}
