:root {
  --ink: #171b1a;
  --ink-soft: #3d463f;
  --sand: #f5efe7;
  --mist: #edf3ee;
  --sage: #7f9d8c;
  --sage-deep: #516f59;
  --terracotta: #d78666;
  --line: rgba(23, 27, 26, 0.12);
  --card: #fffdfb;
  --shadow: 0 24px 50px rgba(31, 39, 35, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f9f6f1 0%, #f4f0ea 100%);
  font-family: "Manrope", sans-serif;
}
button, input { font: inherit; }
button, a { cursor: pointer; }
img { display: block; max-width: 100%; }
.header-wrap { height: 88px; background: rgba(249, 246, 241, 0.9); }
.header {
  z-index: 10;
  height: 88px;
  max-width: 1440px;
  margin: auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
}
.header.fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  max-width: none;
  box-shadow: 0 10px 28px rgba(24, 31, 28, 0.08);
  background: #f9f6f1;
  padding-inline: max(56px, calc((100vw - 1440px) / 2 + 56px));
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2.8px;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ink) 0%, var(--sage-deep) 100%);
  color: #f9f6f1;
  font-family: "Playfair Display", serif;
  font-size: 24px;
  box-shadow: 0 12px 24px rgba(31, 39, 35, 0.18);
}
.nav { display: flex; gap: 34px; }
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color .2s ease;
}
.nav a:hover { color: var(--terracotta); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .menu-button {
  border: 1px solid rgba(23, 27, 26, 0.08);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-radius: 50%;
}
.icon-button {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 10px;
}
.icon-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cart-count {
  position: absolute;
  right: 3px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.menu-button { display: none; width: 46px; height: 46px; }
.menu-button span {
  display: block;
  width: 18px;
  height: 1.8px;
  background: var(--ink);
  margin: 5px auto;
  border-radius: 999px;
}
.hero {
  max-width: 1440px;
  min-height: 655px;
  margin: auto;
  display: grid;
  grid-template-columns: 42% 58%;
  background: linear-gradient(135deg, rgba(245, 239, 231, 0.9), rgba(237, 243, 238, 0.9));
  border-radius: 0 0 36px 36px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.hero-content { padding: 110px 56px 56px 56px; }
.eyebrow {
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 2.8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--terracotta);
}
h1, h2, h3 { font-family: "Playfair Display", serif; }
h1 {
  margin: 0;
  font-size: clamp(54px, 5vw, 84px);
  line-height: 0.96;
  letter-spacing: -3px;
}
.hero-text {
  max-width: 450px;
  margin: 28px 0 36px;
  line-height: 1.8;
  color: rgba(31, 39, 35, 0.74);
  font-size: 15px;
}
.primary-button, .light-button {
  border: 0;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.primary-button {
  background: linear-gradient(135deg, var(--ink) 0%, var(--sage-deep) 100%);
  color: white;
  box-shadow: 0 18px 30px rgba(31, 39, 35, 0.16);
}
.primary-button:hover { background: linear-gradient(135deg, var(--terracotta), var(--sage-deep)); }
.hero-image {
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(255,255,255,0.4);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}
.hero-note {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 240px;
  padding: 22px 22px 18px;
  background: rgba(255, 253, 251, 0.88);
  border: 1px solid rgba(23, 27, 26, 0.06);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.hero-note span {
  color: var(--terracotta);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.8px;
}
.hero-note strong {
  display: block;
  margin-top: 10px;
  font-family: "Playfair Display";
  font-size: 20px;
  line-height: 1.2;
}
.benefits {
  max-width: 1440px;
  margin: auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.22);
}
.benefits div {
  min-height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid var(--line);
}
.benefits div:last-child { border-right: 0; }
.benefits strong {
  font-family: "Playfair Display";
  font-size: 32px;
}
.benefits span {
  color: rgba(23, 27, 26, 0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.catalog-section {
  max-width: 1440px;
  margin: auto;
  padding: 95px 56px 110px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 42px;
}
.section-heading h2, .consultation h2 { margin: 0; font-size: 50px; }
.filters { display: flex; gap: 18px; flex-wrap: wrap; }
.filter {
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  color: rgba(23, 27, 26, 0.76);
  font-size: 13px;
  font-weight: 700;
}
.filter.active {
  border-color: rgba(23, 27, 26, 0.15);
  background: var(--ink);
  color: #fff;
}
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  background: rgba(255,255,255,0.42);
  border: 1px solid rgba(23, 27, 26, 0.06);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-card.hidden { display: none; }
.product-image {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: #eeeae3;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-image img { transform: scale(1.04); }
.badge {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  background: var(--terracotta);
  color: white;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.badge.new { background: var(--sage-deep); }
.favorite {
  position: absolute;
  z-index: 2;
  right: 14px;
  top: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.9);
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(31, 39, 35, 0.11);
}
.favorite.active { color: var(--terracotta); }
.product-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 8px;
}
.product-info p { margin: 0 0 4px; color: rgba(23, 27, 26, 0.6); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.product-info h3 { margin: 0; font-size: 24px; }
.product-info strong { font-size: 15px; }
.add-button {
  display: block;
  width: calc(100% - 30px);
  height: 46px;
  margin: 0 auto 18px;
  border: 1px solid rgba(23, 27, 26, 0.12);
  background: transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.add-button:hover {
  border-color: transparent;
  background: var(--ink);
  color: white;
}
.consultation {
  max-width: 1440px;
  min-height: 280px;
  margin: auto;
  padding: 60px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, var(--sage-deep) 0%, var(--ink) 100%);
  color: white;
  border-radius: 28px;
}
.consultation .eyebrow { color: rgba(255,255,255,0.72); }
.light-button {
  min-width: 260px;
  background: white;
  color: var(--ink);
  box-shadow: 0 20px 35px rgba(18, 24, 21, 0.16);
}
footer {
  max-width: 1440px;
  margin: auto;
  min-height: 190px;
  padding: 48px 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
footer p {
  max-width: 330px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(23, 27, 26, 0.76);
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(23, 27, 26, 0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.3);
}
.search-panel {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  top: 0;
  height: 180px;
  padding: 60px 15%;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(18px);
  transform: translateY(-100%);
  transition: transform .3s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
}
.search-panel.open { transform: translateY(0); }
.search-panel input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(23, 27, 26, 0.45);
  outline: 0;
  padding: 15px 0;
  font-family: "Playfair Display";
  font-size: 30px;
  background: transparent;
}
.close-button { border: 0; background: transparent; font-size: 32px; line-height: 1; }
.search-panel .close-button { margin-right: 30px; }
.overlay { position: fixed; z-index: 15; inset: 0; background: rgba(23, 27, 26, 0.35); opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.visible { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  z-index: 30;
  right: 0;
  top: 0;
  width: min(420px, 100%);
  height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: #fffdfb;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -20px 0 35px rgba(0,0,0,.09);
}
.cart-drawer.open { transform: translateX(0); }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.drawer-header h2 { margin: 0; font-size: 30px; }
.cart-items { flex: 1; padding: 20px 0; overflow-y: auto; }
.empty-cart { color: rgba(23, 27, 26, 0.7); text-align: center; margin-top: 60px; }
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 27, 26, 0.08);
  font-size: 13px;
}
.cart-line button { border: 0; background: none; color: var(--terracotta); }
.cart-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.checkout-button {
  height: 54px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink), var(--sage-deep));
  color: white;
  font-weight: 700;
}
.modal {
  position: fixed;
  z-index: 40;
  left: 50%;
  top: 50%;
  width: min(500px, calc(100% - 32px));
  padding: 42px;
  background: #fffdfb;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,.14);
  transform: translate(-50%, -48%) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.modal.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.modal h2 { margin: 0 0 28px; font-size: 38px; }
.modal-close { position: absolute; right: 18px; top: 14px; }
.modal form { display: grid; gap: 12px; }
.modal input {
  height: 52px;
  border: 1px solid rgba(23, 27, 26, 0.12);
  border-radius: 14px;
  padding: 0 16px;
  outline: none;
  background: #fff;
}
.modal input:focus { border-color: var(--sage-deep); }

@media (max-width: 900px) {
  .header-wrap { height: 72px; }
  .header { height: 72px; padding: 0 20px; }
  .header.fixed { height: 72px; padding: 0 20px; }
  .nav {
    position: fixed;
    z-index: 12;
    inset: 72px 0 auto;
    height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,0.96);
    transition: height .3s ease;
  }
  .nav.open { height: 220px; border-bottom: 1px solid var(--line); }
  .nav a { padding: 18px 20px; border-top: 1px solid rgba(23,27,26,0.08); }
  .menu-button { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 64px 20px 50px; }
  .hero-image { height: 420px; }
  h1 { font-size: 52px; }
  .benefits {
    grid-template-columns: 1fr 1fr;
    padding: 18px 20px;
  }
  .benefits div {
    min-height: 90px;
    padding: 0 10px;
    border-right: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .catalog-section { padding: 70px 20px; }
  .section-heading { align-items: start; flex-direction: column; gap: 20px; }
  .section-heading h2 { font-size: 38px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-image { height: 260px; }
  .consultation {
    min-height: auto;
    padding: 50px 20px;
    flex-direction: column;
    align-items: start;
    gap: 30px;
    border-radius: 24px;
  }
  .consultation h2 { font-size: 38px; }
  footer { min-height: 220px; padding: 40px 20px; flex-direction: column; align-items: start; }
}
@media (max-width: 560px) {
  .hero-image { height: 330px; }
  .hero-note { right: 15px; bottom: 15px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-image { height: 380px; }
  .filters { width: 100%; gap: 12px; overflow-x: auto; }
}

