/* ========================================
   SALAM WORLD — Premium edition
   Тихий, дорогой, с большим воздухом
   ======================================== */

:root {
  /* Палитра — тёплый молочный, угольный, едва заметный шампань */
  --bg: #f4f0e8;            /* основной — тёплый молочный */
  --bg-alt: #ebe6db;        /* чуть глубже */
  --bg-deep: #e0dac9;       /* акцент-фон */
  --paper: #fafaf7;         /* белый карточек */
  --ink: #1a1816;           /* основной текст */
  --ink-soft: #4a453d;      /* вторичный */
  --ink-muted: #8c8578;     /* серый, метаданные */
  --line: #d8d2c2;          /* границы */
  --line-soft: #e6dfcf;
  --accent: #8b6f47;        /* приглушённый бронзовый — единственный акцент */
  --accent-deep: #6b5436;
  --dark: #131210;          /* для тёмных секций */
  --dark-soft: #2a2622;

  /* Шрифты */
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-body: 'Inter', -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* Размеры */
  --container: 1320px;
  --container-narrow: 1100px;

  /* Тайминг */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--ink); color: var(--bg); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ========================================
   ТИПОГРАФИКА — БАЗА
   ======================================== */
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
}

em { font-style: italic; }

/* ========================================
   ШАПКА
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  gap: 40px;
}

.logo {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  display: inline-block;
}

.logo__text em {
  font-style: normal;
  color: var(--accent);
  margin: 0 2px;
  font-weight: 400;
}

.logo--light { color: var(--bg); }
.logo--light em { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 40px;
  flex: 1;
  justify-content: center;
}

.nav__links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
}

.nav__links a:hover { color: var(--ink); }

.nav__links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%) translateY(-4px);
  transition: all .3s var(--ease);
}

.nav__links a:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.icon-btn:hover { background: var(--bg-alt); color: var(--ink); }
.icon-btn--menu { display: none; }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: all .3s var(--ease);
}
.cart-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cart-btn__count {
  font-family: var(--f-mono);
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  padding: 0 6px;
  transition: all .3s var(--ease);
}
.cart-btn__count[data-empty="true"] {
  background: var(--bg-alt);
  color: var(--ink-muted);
}

/* поиск */
.search-bar {
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  animation: slideDown .35s var(--ease);
}
@keyframes slideDown {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 80px; }
}
.search-bar .container {
  display: flex;
  align-items: center;
  padding: 22px 40px;
  gap: 16px;
}
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 22px;
  font-family: var(--f-display);
  font-weight: 400;
  font-style: italic;
  outline: none;
  color: var(--ink);
}
.search-bar input::placeholder { color: var(--ink-muted); }
.search-bar__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}
.search-bar__close:hover { background: var(--bg-alt); }

/* ========================================
   HERO — компактный, в один экран
   ======================================== */
.hero {
  padding: 60px 0 80px;
  position: relative;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - 240px);
}

.hero__text {
  max-width: 540px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 36px;
}

.hero__since { color: var(--accent); font-weight: 500; }

.hero__divider {
  flex: 0 0 40px;
  height: 1px;
  background: var(--line);
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  color: var(--ink);
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero__lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 460px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* HERO IMAGE */
.hero__image {
  position: relative;
}

.hero__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--paper);
  padding: 36px;
  max-height: 70vh;
}

.hero__image figcaption {
  position: absolute;
  bottom: -24px;
  left: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
/* ========================================
   КНОПКИ
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all .35s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  padding: 18px 36px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .4s var(--ease);
  z-index: 0;
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover { border-color: var(--accent); }
.btn--primary:hover::before { transform: translateY(0); }

.btn--text {
  font-family: var(--f-body);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 4px 0;
}
.btn--text span {
  display: inline-block;
  transition: transform .35s var(--ease);
}
.btn--text:hover { color: var(--accent); border-color: var(--accent); }
.btn--text:hover span { transform: translateX(4px); }

.btn--block { width: 100%; justify-content: center; }

/* HERO IMAGE */
.hero__image {
  position: relative;
}

.hero__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--paper);
  padding: 40px;
}

.hero__image figcaption {
  position: absolute;
  bottom: -28px;
  left: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ========================================
   ПРИНЦИПЫ
   ======================================== */
.principles {
  padding: 100px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

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

.principles__item {}

.principles__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
}

.principles__item h3 {
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.principles__item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 320px;
}

/* ========================================
   SECTION HEAD
   ======================================== */
.section-head {
  margin-bottom: 80px;
}

.section-head__num {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.section-head__title {
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 900px;
}

.section-head__title em {
  font-style: italic;
  color: var(--ink-soft);
  font-weight: 300;
}

.section-head__title--light { color: var(--bg); }
.section-head__title--light em { color: var(--ink-muted); }

/* ========================================
   КАТАЛОГ
   ======================================== */
.catalog {
  padding: 140px 0;
}

.catalog__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}

/* Фильтры */
.filters {
  position: sticky;
  top: 110px;
}

.filters__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
}

.filters__head h3 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
}

.filters__reset {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.filters__reset:hover { color: var(--accent); }

.filter-group {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.filter-group:last-child { border-bottom: none; }

.filter-group h4 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 18px;
  font-weight: 500;
}

.filter-options { display: flex; flex-direction: column; gap: 12px; }

.filter-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color .25s var(--ease);
  font-weight: 300;
}
.filter-options label:hover { color: var(--ink); }

.filter-options input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all .25s var(--ease);
  flex-shrink: 0;
  border-radius: 0;
}
.filter-options input[type="checkbox"]:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.filter-options input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--bg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.filter-options label:has(input:checked) { color: var(--ink); }

.price-range {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-range input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  outline: none;
  transition: border-color .25s var(--ease);
  -moz-appearance: textfield;
  border-radius: 0;
}
.price-range input::-webkit-outer-spin-button,
.price-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-range input:focus { border-color: var(--ink); }
.price-range input::placeholder { color: var(--ink-muted); font-style: italic; }
.price-range span { color: var(--ink-muted); }

/* Тулбар */
.catalog__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
  flex-wrap: wrap;
  gap: 16px;
}

.filters-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
}

.catalog__count {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}
.catalog__count span {
  color: var(--ink);
  font-weight: 500;
}

.catalog__sort select {
  background: transparent;
  border: none;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  font-family: var(--f-body);
  color: var(--ink-soft);
  font-style: italic;
  padding-right: 16px;
}
.catalog__sort select:hover { color: var(--ink); }

.active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  min-height: 0;
}

.active-tags:empty { display: none; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 400;
}
.tag button {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1;
  transition: color .2s;
}
.tag button:hover { color: var(--accent); }

/* ТОВАРЫ */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 60px 32px;
}

.product {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  position: relative;
}

.product__image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper);
  overflow: hidden;
  display: grid;
  place-items: center;
  transition: background .5s var(--ease);
}

.product__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
  transition: transform .8s var(--ease-slow);
}

.product:hover .product__image { background: var(--bg-alt); }
.product:hover .product__image img { transform: scale(1.04); }

.product__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  color: var(--ink-muted);
  font-style: italic;
  font-size: 14px;
}

.product__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.product__quick-add {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: all .35s var(--ease);
  z-index: 2;
}

.product:hover .product__quick-add {
  opacity: 1;
  transform: translateY(0);
}
.product__quick-add:hover { background: var(--accent); }

.product__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}

.product__category {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.product__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}

.product__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}

.product__price strong {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--f-body);
  letter-spacing: 0.01em;
}

.product__price del {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 300;
}

/* пустое состояние */
.empty {
  text-align: center;
  padding: 100px 20px;
}
.empty h3 {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 12px;
}
.empty p {
  color: var(--ink-muted);
  margin-bottom: 32px;
  font-weight: 300;
}

/* ========================================
   ИСТОРИЯ (тёмная секция)
   ======================================== */
.story {
  padding: 160px 0;
  background: var(--dark);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.story::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dark-soft), transparent);
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px 100px;
  align-items: start;
}

.story__head {
  grid-column: 1 / -1;
}

.story__head .section-head__num { color: var(--accent); }

.story__content {
  padding-right: 40px;
}

.story__lead {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 32px;
  color: var(--bg);
  letter-spacing: -0.01em;
}

.story__content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(244, 240, 232, 0.7);
  font-weight: 300;
  max-width: 540px;
}

.story__list {
  margin-top: 48px;
  display: grid;
  gap: 16px;
}

.story__list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--dark-soft);
  font-size: 14px;
  color: rgba(244, 240, 232, 0.85);
  font-weight: 300;
}
.story__list li:last-child { border-bottom: 1px solid var(--dark-soft); }
.story__list li span {
  color: var(--accent);
  flex-shrink: 0;
  font-style: italic;
  font-family: var(--f-display);
  font-size: 16px;
  min-width: 90px;
}

.story__visual {
  position: sticky;
  top: 110px;
}

.story__visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--dark-soft);
  padding: 60px;
}

/* ========================================
   ДОСТАВКА
   ======================================== */
.delivery { padding: 140px 0; }

.delivery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.delivery__item {
  background: var(--bg);
  padding: 56px 48px;
  transition: background .35s var(--ease);
}

.delivery__item:hover { background: var(--bg-alt); }

.delivery__item h3 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.delivery__item p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 380px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--dark);
  color: var(--bg);
  padding-top: 100px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--dark-soft);
}

.footer__brand .logo { color: var(--bg); margin-bottom: 24px; }

.footer__brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 240, 232, 0.6);
  max-width: 280px;
  font-weight: 300;
}

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

.footer h4 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}

.footer ul li {
  padding: 8px 0;
  font-size: 14px;
  color: rgba(244, 240, 232, 0.75);
  font-weight: 300;
}

.footer ul li a:hover { color: var(--bg); }

.footer__bottom {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 232, 0.5);
}

/* ========================================
   КОРЗИНА
   ======================================== */
.cart {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 460px;
  height: 100vh;
  background: var(--bg);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .5s var(--ease-slow);
  display: flex;
  flex-direction: column;
}
.cart.is-open { transform: translateX(0); }

.cart__head {
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
}

.cart__head h3 {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.cart__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.cart__close:hover { background: var(--bg-alt); color: var(--ink); }

.cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 40px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.cart-item__img {
  width: 80px;
  height: 80px;
  background: var(--paper);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.cart-item__title {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cart-item__meta {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cart-item__price {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 12px;
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}
.cart-item__qty button {
  width: 28px;
  height: 28px;
  font-size: 14px;
  display: grid;
  place-items: center;
  transition: all .2s var(--ease);
  color: var(--ink-soft);
}
.cart-item__qty button:hover { background: var(--ink); color: var(--bg); }
.cart-item__qty span {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--f-mono);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.cart-item__remove {
  color: var(--ink-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all .25s var(--ease);
}
.cart-item__remove svg { width: 14px; height: 14px; }
.cart-item__remove:hover { color: var(--accent); }

.cart__empty {
  padding: 60px 40px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  justify-content: center;
}
.cart__empty p {
  font-family: var(--f-display);
  font-size: 22px;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
}
.cart__empty.is-hidden { display: none; }

.cart__footer {
  padding: 32px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.cart__total span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cart__total strong {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 18, 16, 0.55);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all .4s var(--ease);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.overlay.is-active { opacity: 1; visibility: visible; }

/* ========================================
   МОДАЛКИ
   ======================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal.is-open {
  display: grid;
  animation: fadeIn .35s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal__inner {
  background: var(--bg);
  padding: 56px 48px;
  max-width: 520px;
  width: 100%;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp .5s var(--ease-slow);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: all .3s var(--ease);
}
.modal__close:hover { background: var(--bg-alt); }

.modal__eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.modal__inner h3 {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.modal__sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 32px;
  font-weight: 300;
}

.form { display: flex; flex-direction: column; gap: 20px; }

.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form label > span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form input,
.form textarea {
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 0;
  font-size: 16px;
  outline: none;
  transition: border-color .25s var(--ease);
  font-family: inherit;
  resize: vertical;
  border-radius: 0;
}
.form input:focus,
.form textarea:focus { border-color: var(--ink); }

.form button[type="submit"] { margin-top: 16px; }

.modal__inner--success {
  text-align: center;
  padding: 64px 48px;
}
.modal__inner--success h3 { margin-bottom: 16px; }
.modal__inner--success p {
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-weight: 300;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: var(--bg);
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 400;
  z-index: 300;
  opacity: 0;
  transition: all .4s var(--ease);
  letter-spacing: 0.02em;
}
.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   АДАПТИВ
   ======================================== */
@media (max-width: 1100px) {
  .container { padding: 0 32px; }
  .nav { padding: 22px 32px; }
  .catalog__layout { grid-template-columns: 200px 1fr; gap: 48px; }
  .principles__grid { gap: 48px; }
  .story__grid { grid-template-columns: 1fr; gap: 60px; }
  .story__visual { position: static; }
  .footer__top { grid-template-columns: 1fr; gap: 48px; }
  .hero__layout { grid-template-columns: 1fr; gap: 48px; min-height: auto; }
  .hero__image img { max-height: 480px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { padding: 18px 20px; gap: 16px; }
  .nav__links { display: none; }
  .icon-btn--menu { display: grid; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 10px 14px; }

  .hero { padding: 40px 0 60px; }
  .hero__meta { font-size: 10px; gap: 10px; margin-bottom: 24px; }
  .hero__divider { flex: 0 0 24px; }
  .hero__title { margin-bottom: 20px; font-size: 40px; }
  .hero__lead { font-size: 16px; margin-bottom: 28px; }
  .hero__cta { gap: 16px; flex-direction: column; align-items: stretch; }
  .hero__cta .btn--primary { text-align: center; justify-content: center; }
  .hero__image img { padding: 20px; max-height: 380px; }

  .principles { padding: 64px 0; }
  .principles__grid { grid-template-columns: 1fr; gap: 40px; }

  .catalog { padding: 80px 0; }
  .catalog__layout { grid-template-columns: 1fr; gap: 0; }
  .filters {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: 180;
    padding: 80px 24px 24px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .4s var(--ease);
    display: block !important;
  }
  .filters.is-mobile-open { transform: translateX(0); }
  .filters-toggle { display: inline-flex; }

  .section-head { margin-bottom: 56px; }

  .story { padding: 100px 0; }
  .story__content { padding-right: 0; }
  .story__lead { font-size: 22px; }

  .delivery { padding: 80px 0; }
  .delivery__grid { grid-template-columns: 1fr; }
  .delivery__item { padding: 40px 28px; }

  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; padding: 24px 0; text-align: center; }

  .cart { max-width: 100%; }
  .cart__head, .cart__footer { padding: 24px; }
  .cart__items { padding: 8px 24px; }

  .modal__inner { padding: 40px 28px; }
  .modal__inner h3 { font-size: 28px; }

  .products { gap: 40px 16px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .product__title { font-size: 17px; }
  .product__image img { padding: 16px; }
}

@media (max-width: 480px) {
  .principles__item h3 { font-size: 24px; }
}

[hidden] { display: none !important; }

/* плавное появление товаров */
@media (prefers-reduced-motion: no-preference) {
  .product {
    animation: productIn .6s var(--ease) backwards;
  }
  @keyframes productIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
