:root {
  --ivory: #fbfaf7;
  --paper: #ffffff;
  --sand: #eee7dc;
  --beige: #d8c9b6;
  --taupe: #9b8870;
  --gold: #b99662;
  --graphite: #1f1f1d;
  --muted: #6e6a64;
  --line: #e9e1d6;
  --danger: #9b3f32;
  --success: #4f724f;
  --shadow: 0 18px 50px rgba(31, 31, 29, .08);
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--graphite);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

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

.narrow { width: min(100% - 40px, 760px); }

.site-header {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
}

.top-strip {
  background: linear-gradient(90deg, #dfd5c8, #f6f1ea);
  font-size: 13px;
  color: #3d372f;
}

.top-strip__inner {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.top-strip__links { display: flex; gap: 30px; }
.top-strip__links a:hover { color: var(--gold); }

.header-main {
  min-height: 84px;
  display: grid;
  grid-template-columns: 220px minmax(260px, 1fr) 190px 330px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.brand__name {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.brand__tag {
  font-size: 10px;
  letter-spacing: .42em;
  color: var(--taupe);
  margin-top: 7px;
}

.brand--footer { align-items: flex-start; margin-bottom: 18px; }

.search {
  height: 46px;
  display: flex;
  align-items: center;
  background: #f5f1ec;
  border: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}

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

.search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 18px;
}

.search button,
.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--graphite);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  color: var(--gold);
}

.header-main__burger { display: none; }
.header-search-trigger { display: none; }

.header-contact a {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0;
}

.header-contact span { color: var(--muted); font-size: 12px; }

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.header-action b {
  position: absolute;
  top: -12px;
  left: 17px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  background: #4a3822;
  color: #fff;
  font-size: 11px;
}

.category-nav {
  border-top: 1px solid var(--line);
}

.category-nav__inner {
  height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav__inner a {
  white-space: nowrap;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 650;
}

.category-nav__inner a:hover,
.category-nav__inner a.is-active { color: var(--gold); }

.search-overlay {
  position: fixed;
  inset: 0 0 auto;
  z-index: 95;
  background: rgba(251,250,247,.98);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform .24s ease;
  padding: 24px 0;
}
.search-overlay.is-open { transform: none; }
.search-overlay__inner {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 14px;
  align-items: center;
}
.search-overlay__form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 10px;
}
.search-overlay__form input {
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 0 16px;
  outline-color: var(--gold);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--graphite);
  padding: 0 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--graphite); color: #fff; }
.btn--dark:hover { background: #352b22; border-color: #352b22; }
.btn--light { background: #fff; color: var(--graphite); border-color: var(--line); }
.btn--small { min-height: 38px; padding-inline: 16px; font-size: 12px; }
.btn.is-disabled { pointer-events: none; opacity: .45; }

.eyebrow {
  display: inline-block;
  color: #5b4632;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 700;
}

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

.hero__slider {
  position: relative;
  width: min(100% - 22px, 1514px);
  margin: 0 auto;
  min-height: 342px;
  background: linear-gradient(90deg, #e6dbcd 0%, #f4eee6 42%, #d8c9b6 100%);
  overflow: hidden;
}

.hero__inner {
  min-height: 342px;
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-left: 56px;
}

.hero h1 {
  max-width: 560px;
  margin: 16px 0 18px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.15vw, 45px);
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: 0;
}

.hero p {
  max-width: 470px;
  color: #4f4a44;
  margin: 0 0 24px;
}

.hero__media {
  height: 342px;
  align-self: stretch;
  position: relative;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -90px;
  width: 190px;
  background: linear-gradient(90deg, #e6dbcd 0%, rgba(230,219,205,.88) 45%, rgba(230,219,205,0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
}

.hero__arrow--left { left: 18px; }
.hero__arrow--right { right: 18px; }

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero__dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
}

.hero__dots .is-active { background: #fff; }

.benefits {
  background: #fff;
  padding: 27px 0;
}

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

.benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
}

.benefit b {
  display: block;
  color: var(--graphite);
  font-size: 13px;
}

.benefit span { color: var(--muted); font-size: 12px; }

.section { padding: 46px 0; }
.section--split { padding-top: 18px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head h2,
.promo-column h2,
.seo-block h2,
.page-hero h1,
.product-summary h1,
.cabinet-content h1,
.form-card h2,
.summary-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

.section-head h2,
.promo-column h2 { font-size: 31px; }

.section-head a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #5b4632;
}

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

.category-card {
  min-width: 0;
  display: block;
}

.category-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--sand);
  transition: transform .28s ease, filter .28s ease;
}

.category-card:hover img {
  transform: translateY(-3px);
  filter: saturate(1.05) contrast(1.02);
}

.category-card strong {
  display: block;
  margin-top: 10px;
  font-size: 15px;
}

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

.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

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

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

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid #f0ebe4;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #dfd3c5;
}

.product-card__image {
  display: block;
  background: #f4f0eb;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .3s ease;
}

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

.product-card__body { padding: 14px; }
.product-card__rating { color: var(--gold); font-size: 12px; display: flex; gap: 4px; align-items: center; margin-bottom: 7px; }
.product-card__title { min-height: 46px; display: block; font-weight: 650; }

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}

.price-row strong { font-size: 18px; }
.price-row span { color: var(--muted); text-decoration: line-through; }
.price-row em { color: var(--danger); font-style: normal; font-weight: 700; }

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  background: #3d2c18;
  color: #fff;
  padding: 4px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.badge--sale { left: auto; right: 9px; background: var(--danger); }

.promo-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promo-tile {
  min-height: 220px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, #eee7dc, #fff);
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.promo-tile h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 27px;
  line-height: 1.2;
}

.promo-tile p { color: var(--muted); margin: 0 0 18px; }
.promo-tile img { width: 100%; aspect-ratio: 1.2 / 1; object-fit: cover; }
.promo-tile--dark { display: block; background: #2b2925; color: #fff; }
.promo-tile--dark p { color: #ddd5ca; }
.link-more { display: inline-flex; align-items: center; gap: 8px; color: #5b4632; font-weight: 700; }
.promo-tile--dark .link-more { color: #e4c591; }

.seo-block {
  padding: 64px 0;
  background: #f3eee7;
}

.seo-block__inner {
  max-width: 900px;
}

.seo-block h2 {
  margin: 12px 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

.seo-block p { color: #504c47; }

.subscription-band {
  background: #2d2924;
  color: #fff;
  padding: 42px 0;
}

.subscription-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 34px;
  align-items: center;
}

.subscription-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  margin: 8px 0 8px;
}

.subscription-band p { color: #ddd4c8; margin: 0; }

.subscribe-form {
  display: flex;
  background: #fff;
  padding: 6px;
}

.subscribe-form input {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0 16px;
  outline: 0;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  padding: 46px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 38px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.footer-grid a,
.footer-grid span {
  display: block;
  color: var(--muted);
  margin: 8px 0;
}

.footer-grid p { color: var(--muted); max-width: 320px; }
.socials { display: flex; gap: 10px; }
.socials a { color: var(--graphite); border-bottom: 1px solid var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.flash {
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.flash--success { border-color: rgba(79,114,79,.35); color: var(--success); }
.flash--error { border-color: rgba(155,63,50,.35); color: var(--danger); }

.page-hero {
  padding: 46px 0;
  background: linear-gradient(135deg, #f5efe7, #fff);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 48px);
  margin: 10px 0 12px;
}

.page-hero p { max-width: 690px; color: var(--muted); margin: 0; }
.breadcrumbs { display: flex; gap: 8px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--gold); }

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 30px;
}

.filters,
.summary-card,
.form-card,
.auth-card,
.cabinet-nav,
.bonus-card,
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
}

.filters { align-self: start; position: sticky; top: 170px; }
.filters h2 { margin: 0 0 18px; font-family: var(--serif); font-weight: 400; }
.filters label, .form-card label, .auth-card label, .checkout-form label, .admin-form label { display: grid; gap: 7px; margin-bottom: 14px; color: #4d4841; }
.filters input, .filters select, .form-card input, .form-card textarea, .auth-card input, .checkout-form input, .checkout-form textarea, .admin-form input, .admin-form textarea, .admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  min-height: 42px;
  padding: 10px 12px;
  outline-color: var(--gold);
}

.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-categories { margin-top: 26px; display: grid; gap: 9px; }
.filter-categories h3 { margin: 0 0 4px; font-size: 15px; }
.filter-categories a { color: var(--muted); }
.filter-categories a.is-active, .filter-categories a:hover { color: var(--gold); }
.catalog-toolbar { display: flex; justify-content: space-between; margin-bottom: 18px; color: var(--muted); }

.pagination {
  margin-top: 28px;
  display: flex;
  gap: 8px;
}

.pagination a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.pagination a.is-active { background: var(--graphite); color: #fff; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 44px;
}

.product-gallery__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--sand);
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.product-gallery__thumbs button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
}

.product-gallery__thumbs img { aspect-ratio: 1 / 1; object-fit: cover; }
.product-summary h1 { font-size: clamp(34px, 4vw, 50px); margin: 10px 0 12px; line-height: 1.1; }

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 13px;
}
.product-meta span { display: inline-flex; align-items: center; gap: 5px; }
.stock-ok { color: var(--success); }
.stock-no { color: var(--danger); }
.price-row--large strong { font-size: 30px; }

.variant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.variant-grid label input { position: absolute; opacity: 0; pointer-events: none; }
.variant-grid label span {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #fff;
}
.variant-grid input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

.buy-panel {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 10px;
  margin-bottom: 20px;
}
.buy-panel input { border: 1px solid var(--line); text-align: center; }
.delivery-note { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 4px; color: var(--muted); }
.delivery-note b { color: var(--graphite); }

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-top: 44px;
}
.tabs button {
  border: 0;
  background: transparent;
  padding: 15px 18px;
  color: var(--muted);
}
.tabs button.is-active { color: var(--graphite); border-bottom: 2px solid var(--gold); }
.tab-panel { display: none; padding: 24px 0; }
.tab-panel.is-active { display: block; }
.specs { display: grid; grid-template-columns: 220px 1fr; gap: 10px 22px; }
.specs dt { color: var(--muted); }
.review { background: #fff; border: 1px solid var(--line); padding: 18px; margin-bottom: 12px; }
.review span { color: var(--gold); display: block; margin: 4px 0; }

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr 110px 74px 110px 74px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.cart-item img { width: 88px; height: 88px; object-fit: cover; }
.cart-item a { font-weight: 700; display: block; }
.cart-item span { color: var(--muted); font-size: 13px; }
.cart-item input { width: 70px; border: 1px solid var(--line); min-height: 38px; text-align: center; }
.link-button { border: 0; background: transparent; color: var(--danger); padding: 0; }

.summary-card {
  position: sticky;
  top: 170px;
  display: grid;
  gap: 12px;
}
.summary-card div { display: flex; justify-content: space-between; gap: 16px; }
.summary-card__total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 19px; }
.coupon-form { display: flex; gap: 6px; margin: 8px 0; }
.coupon-form input { min-width: 0; width: 100%; border: 1px solid var(--line); padding: 0 12px; }
.coupon-form button { border: 1px solid var(--graphite); background: #fff; padding: 0 12px; }

.checkout-form { display: grid; gap: 16px; }
.choice-grid { display: grid; gap: 10px; }
.choice-grid label {
  grid-template-columns: 22px 1fr;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  margin: 0;
}
.choice-grid small { display: block; color: var(--muted); }

.auth-page {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 58px 20px;
  background: linear-gradient(135deg, #f4eee6, #fff);
}
.auth-card { width: min(100%, 420px); box-shadow: var(--shadow); }
.auth-card h1 { font-family: var(--serif); font-weight: 400; margin: 8px 0 20px; }
.auth-card p { display: flex; justify-content: space-between; gap: 16px; }

.cabinet-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.cabinet-nav { display: grid; gap: 10px; position: sticky; top: 170px; }
.cabinet-nav a, .cabinet-nav button { color: var(--muted); border: 0; background: transparent; text-align: left; padding: 0; }
.cabinet-nav a:hover, .cabinet-nav button:hover { color: var(--gold); }
.cabinet-content { min-width: 0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 30px;
}
.stat-grid div {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
}
.stat-grid span { display: block; color: var(--muted); }
.stat-grid b { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.order-row {
  display: grid;
  grid-template-columns: 1fr 140px 120px;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.bonus-card b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.prose { font-size: 17px; }
.prose h2 { font-family: var(--serif); font-weight: 400; margin-top: 30px; }

.quick-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(31,31,29,.42);
  display: none;
  place-items: center;
  padding: 20px;
}
.quick-modal.is-open { display: grid; }
.quick-modal__panel {
  position: relative;
  width: min(100%, 780px);
  background: #fff;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.2);
}
.quick-modal__close { position: absolute; top: 12px; right: 12px; }
.quick-view { display: grid; grid-template-columns: 260px 1fr; gap: 28px; }
.quick-view img { width: 260px; aspect-ratio: 1 / 1; object-fit: cover; }

@media (max-width: 1180px) {
  .header-main { grid-template-columns: 200px minmax(220px,1fr) 170px 260px; gap: 18px; }
  .benefits__inner { grid-template-columns: repeat(3, 1fr); }
  .category-row { grid-template-columns: repeat(4, 1fr); }
  .product-grid, .product-grid--compact { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .container { width: min(100% - 28px, 1120px); }
  .top-strip__links, .header-contact, .header-actions span { display: none; }
  .header-main { min-height: 70px; grid-template-columns: 42px 1fr auto; }
  .header-main__burger { display: inline-flex; }
  .brand { align-items: flex-start; }
  .brand__name { font-size: 23px; }
  .brand__tag { font-size: 9px; letter-spacing: .28em; }
  .search { grid-column: 1 / -1; order: 5; margin-bottom: 12px; }
  .header-actions { display: flex; gap: 8px; }
  .header-search-trigger { display: inline-flex; }
  .header-action { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--line); }
  .category-nav { display: none; }
  .category-nav.is-open { display: block; }
  .category-nav__inner { height: auto; padding: 16px 0; flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 16px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { padding: 42px 28px 24px; }
  .hero__media { height: 260px; }
  .hero__media::before { display: none; }
  .hero__arrow { display: none; }
  .benefits__inner { grid-template-columns: repeat(2, 1fr); }
  .home-columns, .catalog-layout, .product-detail, .cart-layout, .checkout-layout, .cabinet-layout, .footer-grid, .subscription-band__inner {
    grid-template-columns: 1fr;
  }
  .filters, .summary-card, .cabinet-nav { position: static; }
  .product-grid, .product-grid--compact { grid-template-columns: repeat(2, 1fr); }
  .category-row { grid-template-columns: repeat(3, 1fr); }
  .buy-panel { grid-template-columns: 78px 1fr; }
  .buy-panel .btn--light { grid-column: 1 / -1; }
  .cart-item { grid-template-columns: 72px 1fr 70px; }
  .cart-item strong, .cart-item b { font-size: 14px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .hero__slider { width: 100%; }
  .hero h1 { font-size: 32px; }
  .section { padding: 34px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .category-row { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid--compact { grid-template-columns: 1fr; }
  .benefits__inner { grid-template-columns: 1fr; }
  .promo-tile { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form input { min-height: 44px; }
  .tabs { overflow-x: auto; }
  .specs { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .order-row { grid-template-columns: 1fr; }
  .quick-view { grid-template-columns: 1fr; }
  .quick-view img { width: 100%; }
}

body { overflow-x: hidden; }

.section--tight { padding: 34px 0; }
.section--muted { background: #f4f0ea; padding: 42px 0; }
.home-columns--balanced { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease, box-shadow .22s ease, border-color .22s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.header-actions { position: relative; }
.mini-cart {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  width: 330px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 60;
}
.header-actions:hover .mini-cart,
.header-actions:focus-within .mini-cart {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mini-cart__item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.mini-cart__item img { width: 54px; height: 54px; object-fit: cover; }
.mini-cart__item span { font-weight: 700; }
.mini-cart__item small { display: block; color: var(--muted); font-weight: 400; }
.mini-cart__total { display: flex; justify-content: space-between; padding: 14px 0; }

.product-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card__image { position: relative; }
.product-card__overlay {
  position: absolute;
  inset: auto 12px 12px;
  min-height: 38px;
  display: grid;
  place-items: center;
  background: rgba(31,31,29,.86);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}
.product-card:hover .product-card__overlay { opacity: 1; transform: none; }
.product-card__badges {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 56px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.product-card__badges .badge { position: static; }
.badge--new { background: #7c775f; }
.product-card__favorite {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
}
.product-card__favorite .icon-btn { background: rgba(255,255,255,.92); }
.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.product-card__meta {
  min-height: 22px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.product-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.product-card__title { flex: 1; }
.product-card__actions form { flex: 1; }
.product-card__actions .btn { width: 100%; }
.btn.is-added,
.btn .is-added { background: var(--success); border-color: var(--success); }

.filters-toggle { display: none; margin-bottom: 14px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.filters__close { display: none; }
.filters__reset { display: inline-block; color: var(--muted); margin-top: 12px; }
.check-line {
  grid-template-columns: 18px 1fr;
  align-items: center;
  color: var(--graphite);
}
.check-line input { width: 18px; height: 18px; min-height: 0; padding: 0; }
.category-seo-text {
  margin-top: 34px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  color: #4f4a44;
}
.category-seo-text h2 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
}

.option-group { margin: 22px 0; }
.option-group > b { display: block; margin-bottom: 10px; }
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.swatch-grid label input { position: absolute; opacity: 0; pointer-events: none; }
.swatch-grid label span {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.swatch-grid input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.one-click-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 20px;
}
.one-click-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 0 12px;
}
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.delivery-grid article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px;
}
.delivery-grid span { display: block; color: var(--muted); margin-top: 6px; }

.lifestyle-block {
  padding: 48px 0;
  background: #fff;
}
.lifestyle-block__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 38px;
  align-items: center;
}
.lifestyle-block img {
  width: 100%;
  aspect-ratio: 1.7 / 1;
  object-fit: cover;
}
.lifestyle-block h2,
.faq-block h2 {
  margin: 12px 0 14px;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 400;
}
.lifestyle-block p,
.faq-block p { color: var(--muted); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
}
.review-card span { color: var(--gold); letter-spacing: .08em; }
.review-card p { min-height: 92px; color: #4f4a44; }

.faq-block {
  padding: 46px 0;
  background: #f4f0ea;
}
.faq-block__inner {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 42px;
}
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}
.faq-list p { margin-bottom: 0; }

.footer-trust {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-trust span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  color: var(--muted);
  background: #fbfaf7;
}

@media (max-width: 900px) {
  .mini-cart { display: none; }
  .filters-toggle { display: inline-flex; }
  .filters {
    position: fixed;
    inset: 0 16% 0 0;
    z-index: 90;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 20px 0 80px rgba(31,31,29,.18);
  }
  .filters.is-open { transform: none; }
  .filters__close { display: inline-flex; }
  .has-drawer-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(31,31,29,.34);
    z-index: 80;
  }
  .lifestyle-block__inner,
  .faq-block__inner,
  .delivery-grid,
  .review-grid,
  .one-click-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section--tight { padding: 28px 0; }
  .filters { inset-right: 0; }
  .one-click-form .btn { width: 100%; }
  .product-card__overlay { display: none; }
  .review-card p { min-height: 0; }
  .category-seo-text { padding: 20px; }
}
