/* =========================================================
   Машаня — главная страница
   1. Токены и база
   2. Утилиты и общие компоненты
   3. Шапка, навигация, поиск
   4. Мобильное меню
   5. Промо-слайдер
   6. Преимущества
   7. Каталог категорий
   8. Товары и фильтры
   9. Акция и таймер
   10. Карусель хитов
   11. Лукбук
   12. Подписка
   13. Подвал
   14. Корзина
   15. Служебные элементы
   16. Адаптив и анимации
   ========================================================= */

/* 1. Токены и база
   ========================================================= */
:root {
  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  --bg: #F8F6FB;
  --surface: #FFFFFF;
  --surface-alt: #EFE9F5;
  --sand: #E7DFF0;

  --ink: #2B2233;
  --ink-soft: #4C3E58;
  --muted: #7B6D86;
  --line: #E5DCEF;
  --line-strong: #D6C9E4;

  --brand: #3F2347;
  --brand-deep: #2C1533;
  --accent: #7A4B86;
  --accent-deep: #5A2D63;
  --accent-soft: #CBB6DB;
  --gold: #D4AF37;
  --favorite: #C2407A;
  --sage: #71806A;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 4px 16px rgba(74, 36, 71, .06);
  --shadow: 0 24px 60px -32px rgba(74, 36, 71, .35);

  --container: 1240px;
  --gutter: clamp(18px, 4vw, 32px);
  --grid-gap: clamp(16px, 2vw, 26px);
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* 2. Утилиты и общие компоненты
   ========================================================= */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.icon[hidden] {
  display: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--surface);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* Заголовки и подписи */
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.02em;
}

em {
  font-style: italic;
  color: var(--accent);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow__line {
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.eyebrow--light {
  color: rgba(248, 244, 252, .7);
}

/* Кнопки и ссылки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.btn .icon {
  width: 17px;
  height: 17px;
  transition: transform .25s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--brand);
  color: var(--surface);
  box-shadow: 0 10px 24px -14px rgba(44, 21, 51, .5);
}

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

.btn--light {
  background: var(--surface);
  color: var(--brand);
}

.btn--light:hover {
  background: #F1EBF7;
  transform: translateY(-1px);
}

.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(67, 54, 47, .35);
  font-size: 13px;
  font-weight: 600;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform .25s var(--ease);
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.icon-btn:hover {
  background: var(--surface-alt);
}

.circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}

.circle-btn .icon {
  width: 18px;
  height: 18px;
}

.circle-btn:hover {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}

.circle-btn:disabled {
  opacity: .32;
  cursor: default;
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

/* Секции */
.section,
section[id] {
  scroll-margin-top: 96px;
}

.section {
  padding-block: clamp(56px, 7vw, 96px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(26px, 3.5vw, 40px);
}

.section-head__main {
  max-width: 620px;
}

.section-head__text {
  max-width: 470px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-head__link {
  flex: 0 0 auto;
  margin-bottom: 6px;
}

.section-head__link {
  white-space: nowrap;
}

/* 3. Шапка, навигация, поиск
   ========================================================= */
.topbar {
  background: var(--brand-deep);
  color: rgba(248, 244, 252, .78);
  font-size: 11.5px;
  letter-spacing: .015em;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 38px;
}

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

.topbar__note .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-soft);
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar__links a {
  transition: color .2s var(--ease);
}

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

.topbar__phone {
  color: #F8F4FC;
  font-weight: 600;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 248, .96);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}

.header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(74, 36, 71, .35);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 36px);
  min-height: 84px;
}

.header__burger {
  display: none;
  margin-left: -10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--brand);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1;
}

.logo__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.01em;
}

.logo__tagline {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  margin-inline: auto;
}

.nav__link {
  position: relative;
  padding-block: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.nav__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link--sale {
  color: var(--accent);
}

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

.count {
  position: absolute;
  top: 3px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.count[hidden] {
  display: none;
}

.count.is-pulsing {
  animation: countPulse .45s var(--ease);
}

/* Поиск */
.search-panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -35px rgba(74, 36, 71, .3);
  animation: panelIn .25s var(--ease);
}

.search-panel[hidden] {
  display: none;
}

.search-panel__inner {
  padding-block: 22px 18px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 820px;
  min-height: 58px;
  margin-inline: auto;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
}

.search-form:focus-within {
  border-color: var(--brand);
}

.search-form__icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.search-form__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
}

.search-form__input::placeholder {
  color: var(--muted);
  opacity: .75;
}

.search-form__input::-webkit-search-cancel-button,
.search-form__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-form__submit {
  min-height: 44px;
  padding-inline: 22px;
}

.search-form__close {
  width: 38px;
  height: 38px;
}

.search-quick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11.5px;
}

.search-quick button {
  padding: 0;
  border: 0;
  border-bottom: 1px dotted var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.search-quick button:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* 4. Мобильное меню
   ========================================================= */
.drawer,
.cart {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .38s;
}

.drawer.is-open,
.cart.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.drawer__backdrop,
.cart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 22, 18, .48);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.drawer.is-open .drawer__backdrop,
.cart.is-open .cart__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(380px, 88vw);
  padding: 22px;
  background: var(--surface);
  transform: translateX(-102%);
  transition: transform .38s var(--ease);
}

.drawer.is-open .drawer__panel {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.logo--small .logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 20px;
}

.logo--small .logo__name {
  font-size: 21px;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
}

.drawer__nav a {
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
}

.drawer__nav a:hover {
  color: var(--accent);
}

.drawer__nav .is-sale {
  color: var(--accent);
}

.drawer__footer {
  margin-top: auto;
  padding-top: 28px;
  color: var(--muted);
  font-size: 12px;
}

.drawer__phone {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.drawer__mail {
  display: inline-block;
  margin-top: 5px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
}

/* 5. Промо-слайдер
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
}

.hero__viewport {
  overflow: hidden;
}

.hero__track {
  display: flex;
  transition: transform .75s cubic-bezier(.65, .05, .25, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  flex: 0 0 100%;
  min-height: clamp(510px, 52vw, 640px);
  background: #EFE9F5;
}

.hero-slide--cream {
  background: radial-gradient(120% 120% at 80% 0%, #FAF7FD 0%, #E9E1F2 100%);
}

.hero-slide--sage {
  background: radial-gradient(120% 120% at 80% 0%, #F3F0F8 0%, #DDD5E8 100%);
}

.hero-slide--blush {
  background: radial-gradient(120% 120% at 80% 0%, #F8EFF8 0%, #EBDCEE 100%);
}

.hero-slide__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(46px, 6vw, 82px) 40px clamp(96px, 8vw, 118px) var(--edge);
}

.hero-slide__title {
  max-width: 660px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5vw, 4.55rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.hero-slide__title em {
  color: var(--accent);
}

.hero-slide__text {
  max-width: 440px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

.hero-slide__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 30px;
}

.hero-slide__note {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 440px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(67, 54, 47, .14);
  color: var(--muted);
  font-size: 11.5px;
}

.hero-slide__note .icon {
  width: 16px;
  height: 16px;
  color: var(--sage);
}

.hero-slide__media {
  position: relative;
  min-height: 100%;
}

.hero-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%);
  mask-image: linear-gradient(to right, transparent 0, #000 10%);
}

.hero__badge {
  position: absolute;
  bottom: 30px;
  left: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(67, 54, 47, .16);
  border-radius: 50%;
  background: rgba(255, 253, 249, .88);
  color: var(--brand);
  text-align: center;
  transform: rotate(-8deg);
  backdrop-filter: blur(4px);
}

.hero__badge strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.hero__badge span {
  margin-top: 4px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero__controls {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.hero__dots {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: -6px;
  pointer-events: auto;
}

.hero__dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.hero__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  opacity: .22;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), opacity .3s var(--ease);
}

.hero__dot.is-active::after {
  width: 26px;
  opacity: 1;
}

.hero__dot:hover::after {
  opacity: .6;
}

.hero__arrows {
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: auto;
}

.hero__counter {
  margin-right: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.hero__counter strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__arrows .circle-btn {
  width: 40px;
  height: 40px;
  border-color: rgba(67, 54, 47, .2);
  background: rgba(255, 253, 249, .45);
  backdrop-filter: blur(4px);
}

.hero__arrows .circle-btn:hover {
  background: var(--brand);
}

.hero__pause .icon {
  width: 14px;
  height: 14px;
}

@media (min-width: 1304px) {
  .hero__controls {
    padding-left: 32px;
  }
}

/* 6. Преимущества
   ========================================================= */
.benefits {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

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

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 25px 22px 25px 0;
}

.benefit + .benefit {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.benefit__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--brand);
}

.benefit__icon .icon {
  width: 21px;
  height: 21px;
}

.benefit h3 {
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.benefit p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

/* 7. Каталог категорий
   ========================================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.category-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-alt);
  isolation: isolate;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform .7s var(--ease);
}

.category-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 22, 18, .82) 0%, rgba(30, 22, 18, .16) 50%, transparent 72%);
}

.category-card__meta {
  position: absolute;
  right: 15px;
  bottom: 16px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #F8F4FC;
}

.category-card__name {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
}

.category-card__count {
  color: rgba(255, 250, 244, .85);
  font-size: 10px;
  letter-spacing: .03em;
}

.category-card__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: rgba(255, 253, 249, .85);
  color: var(--brand);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.category-card__arrow .icon {
  width: 15px;
  height: 15px;
}

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

.category-card:hover .category-card__arrow,
.category-card:focus-visible .category-card__arrow {
  opacity: 1;
  transform: none;
}

/* 8. Товары и фильтры
   ========================================================= */

.products-count {
  flex: 0 0 auto;
  margin-bottom: 6px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.chips {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  min-height: 37px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.chip:hover {
  border-color: var(--ink-soft);
}

.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--surface);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 40px) var(--grid-gap);
}

.product-grid__item {
  min-width: 0;
}

.product-grid__item[hidden] {
  display: none;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .4);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 12px 34px -24px rgba(74, 36, 71, .32);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, .7);
  box-shadow: 0 22px 45px -24px rgba(212, 175, 55, .45), 0 10px 24px -20px rgba(74, 36, 71, .3);
}

.product-card[hidden] {
  display: none;
}

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #FFFFFF;
}

.product-card__media-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  cursor: zoom-in;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform .7s var(--ease);
}

.product-card:hover .product-card__img {
  transform: scale(1.06);
}

.product-card__view {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(63, 35, 71, .88);
  color: #FFF;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
}

.product-card:hover .product-card__view,
.product-card__media-link:focus-visible .product-card__view {
  opacity: 1;
  transform: none;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #FFF;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  box-shadow: 0 5px 14px -8px rgba(44, 21, 51, .7);
  pointer-events: none;
}

.product-card__badge--out {
  color: var(--accent-deep);
  background: #F3E8F6;
}

.product-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(138, 107, 168, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink-soft);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.product-card__fav .icon {
  width: 18px;
  height: 18px;
  transition: fill .2s var(--ease);
}

.product-card__fav:hover {
  background: var(--surface);
  color: var(--favorite);
  transform: scale(1.05);
}

.product-card__fav.is-active,
.product-card__fav[aria-pressed="true"] {
  color: var(--favorite);
}

.product-card__fav.is-active .icon,
.product-card__fav[aria-pressed="true"] .icon {
  fill: currentColor;
  animation: heart-pop .38s var(--ease);
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 14px 14px 16px;
}

.product-card__cat {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.product-card__title {
  margin: 4px 0 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
}

.product-card__title a {
  display: -webkit-box;
  overflow: hidden;
  transition: color .2s var(--ease);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__title a:hover {
  color: var(--accent);
}

.product-card__stock {
  margin: -6px 0 10px;
  color: var(--sage);
  font-size: 10.5px;
  line-height: 1.4;
}

.product-card__stock--low {
  color: #8A5A35;
}

.product-card--out .product-card__img {
  opacity: .72;
}

.product-card__cart:disabled {
  background: var(--line-strong);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  white-space: nowrap;
}

.price__current {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.price__old {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
  text-decoration: line-through;
}

.product-card__cart {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: var(--surface);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.product-card__cart .icon {
  width: 18px;
  height: 18px;
}

.product-card__cart:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.product-card__cart.is-added {
  background: var(--sage);
}

.empty-state {
  margin-top: 36px;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

/* 9. Акция и таймер
   ========================================================= */
.promo {
  padding-block: clamp(10px, 2vw, 24px);
}

.promo__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: #F8F4FC;
  isolation: isolate;
}

.promo__panel::before {
  content: "";
  position: absolute;
  top: -160px;
  right: 22%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(248, 244, 252, .13);
  border-radius: 50%;
  pointer-events: none;
}

.promo__content {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 64px);
}

.promo__title {
  max-width: 560px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.promo__percent {
  color: var(--accent-soft);
  white-space: nowrap;
}

.promo__text {
  max-width: 470px;
  margin-top: 16px;
  color: rgba(248, 244, 252, .7);
  font-size: 13.5px;
  line-height: 1.7;
}

.countdown {
  display: flex;
  gap: 9px;
  margin: 26px 0 28px;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 10px 8px 9px;
  border: 1px solid rgba(248, 244, 252, .14);
  border-radius: 12px;
  background: rgba(248, 244, 252, .07);
}

.countdown__num {
  font-family: var(--font-display);
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown__label {
  margin-top: 5px;
  color: rgba(248, 244, 252, .55);
  font-size: 8px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.promo__media {
  position: relative;
  min-height: 430px;
}

.promo__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

/* 10. Единый каталог
   ========================================================= */
.social-link[hidden] {
  display: none;
}

.catalog-panel {
  scroll-margin-top: 106px;
  margin-top: clamp(38px, 5vw, 60px);
}

.catalog-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.catalog-panel__head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.catalog-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.catalog-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.catalog-tab span {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1;
}

.catalog-tab:hover {
  background: var(--surface-alt);
}

.catalog-tab.is-active {
  background: var(--brand);
  color: #FFFFFF;
}

.catalog-tab.is-active span {
  background: rgba(255, 255, 255, .16);
  color: #FFFFFF;
}

.product-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card__collection {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid rgba(194, 64, 122, .22);
  border-radius: 999px;
  background: #FBEFF6;
  color: var(--favorite);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* 12. Подписка
   ========================================================= */
.newsletter {
  padding-block: clamp(56px, 7vw, 96px);
}

.newsletter__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  overflow: hidden;
  padding: clamp(30px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  isolation: isolate;
}

.newsletter__panel::after {
  content: "";
  position: absolute;
  top: -170px;
  right: -120px;
  z-index: -1;
  width: 420px;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.newsletter__title {
  font-size: clamp(2rem, 3.3vw, 2.9rem);
}

.newsletter__text {
  max-width: 440px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.newsletter__form {
  max-width: 520px;
}

.newsletter__row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color .2s var(--ease);
}

.newsletter__row:focus-within {
  border-color: var(--brand);
}

.newsletter__row.is-error {
  border-color: #b0472c;
}

.newsletter__input {
  flex: 1 1 auto;
  min-width: 0;
  padding-inline: 16px;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.newsletter__input::placeholder {
  color: var(--muted);
  opacity: .8;
}

.newsletter__row .btn {
  min-height: 46px;
  padding-inline: 22px;
}

.form-note {
  min-height: 18px;
  margin-top: 7px;
  padding-left: 18px;
  color: #a3412b;
  font-size: 11.5px;
  line-height: 1.4;
}

.newsletter__consent {
  margin-top: 8px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.55;
}

.newsletter__consent a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.newsletter__success {
  padding: 20px 24px;
  border: 1px solid #c9d3bd;
  border-radius: var(--radius);
  background: #f1f5ec;
  color: #46543b;
  font-size: 13px;
  line-height: 1.6;
}

.newsletter__success[hidden] {
  display: none;
}

.newsletter__rule {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.promo-modal[hidden] {
  display: none;
}

.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 18, 25, .48);
  backdrop-filter: blur(4px);
}

.promo-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 34px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(28, 18, 25, .2);
  text-align: center;
}

.promo-modal__panel h2 {
  margin: 8px 0 20px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
}

.promo-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.promo-modal__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--brand);
  border-radius: 14px;
  background: var(--surface-alt);
}

.promo-modal__code strong {
  font-size: 24px;
  letter-spacing: .12em;
  color: var(--brand);
}

.promo-modal__text {
  margin: 18px 0 22px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

/* 13. Подвал
   ========================================================= */
.footer {
  padding-top: clamp(48px, 6vw, 72px);
  background: var(--brand-deep);
  color: rgba(248, 244, 252, .82);
  scroll-margin-top: 84px;
}

.footer .logo__mark {
  background: var(--surface);
  color: var(--brand);
}

.footer .logo__name {
  color: #F8F4FC;
}

.footer .logo__tagline {
  color: rgba(248, 244, 252, .48);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.45fr .8fr .9fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
}

.footer__about {
  max-width: 290px;
  margin-top: 20px;
  color: rgba(248, 244, 252, .6);
  font-size: 12px;
  line-height: 1.7;
}

.footer__socials {
  display: flex;
  gap: 7px;
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(248, 244, 252, .16);
  border-radius: 999px;
  color: rgba(248, 244, 252, .7);
  font-size: 10px;
  letter-spacing: .02em;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.social-link .icon {
  width: 14px;
  height: 14px;
}

.social-link:hover {
  background: var(--surface);
  border-color: var(--surface);
  color: var(--brand);
  transform: translateY(-1px);
}

.footer__title {
  margin-bottom: 16px;
  color: rgba(248, 244, 252, .58);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer__list li + li {
  margin-top: 9px;
}

.footer__list a {
  color: rgba(248, 244, 252, .78);
  font-size: 12.5px;
  transition: color .2s var(--ease);
}

.footer__list a:hover {
  color: #F8F4FC;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__contact {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: rgba(248, 244, 252, .78);
  font-size: 12.5px;
  line-height: 1.55;
}

.footer__contact + .footer__contact {
  margin-top: 10px;
}

.footer__contact .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: rgba(248, 244, 252, .38);
}

.footer__contact:hover {
  color: #F8F4FC;
}

.footer__bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 26px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-block: 20px 26px;
  border-top: 1px solid rgba(248, 244, 252, .12);
}

.footer__copyright {
  color: rgba(248, 244, 252, .58);
  font-size: 10.5px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer__legal a {
  color: rgba(248, 244, 252, .62);
  font-size: 10.5px;
}

.footer__legal a:hover {
  color: rgba(248, 244, 252, .8);
}

.footer__admin {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(248, 244, 252, .6);
  font-size: 10.5px;
  transition: color .2s var(--ease);
}

.footer__admin .icon {
  width: 12px;
  height: 12px;
}

.footer__admin:hover {
  color: rgba(248, 244, 252, .85);
}

/* 14. Корзина
   ========================================================= */
.cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 94vw);
  background: var(--surface);
  transform: translateX(102%);
  transition: transform .38s var(--ease);
}

.cart.is-open .cart__panel {
  transform: none;
}

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.cart__title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
}

.cart__count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  line-height: 1;
  vertical-align: 3px;
}

.cart__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 22px;
}

.cart__item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart__item-thumb {
  width: 74px;
  height: 96px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-alt);
}

.cart__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.9);
}

.cart__item-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.cart__item-price {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11.5px;
}

.cart__qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.cart__qty button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
}

.cart__qty button:hover {
  color: var(--accent);
}

.cart__qty .icon {
  width: 14px;
  height: 14px;
}

.cart__qty span {
  min-width: 22px;
  font-size: 12px;
  text-align: center;
}

.cart__remove {
  align-self: start;
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  transition: color .2s var(--ease);
}

.cart__remove:hover {
  color: var(--accent);
}

.cart__remove .icon {
  width: 16px;
  height: 16px;
}

.cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  padding: 30px 26px;
  text-align: center;
}

.cart__empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--muted);
}

.cart__empty-icon .icon {
  width: 26px;
  height: 26px;
}

.cart__empty p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.cart__empty[hidden] {
  display: none;
}

.cart__foot {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.cart__foot[hidden] {
  display: none;
}

.cart__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.cart__total strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.cart__note {
  margin: 5px 0 14px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

/* Оформление заказа внутри корзины */
.checkout {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.checkout[hidden] {
  display: none;
}

.checkout__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.checkout__head .icon-btn {
  width: 38px;
  height: 38px;
}

.checkout__heading .eyebrow {
  margin-bottom: 2px;
  font-size: 9px;
}

.checkout__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
}

.checkout__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 22px 24px;
}

.checkout__summary {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.checkout__summary-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-block: 5px;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.checkout__summary-item span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout__summary-item strong {
  font-weight: 600;
  white-space: nowrap;
}

.checkout__summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.checkout__summary-total strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
}

.checkout__form {
  margin-top: 18px;
}

.checkout__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 11px;
}

.field__label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13px;
  outline: none;
  transition: border-color .2s var(--ease);
}

.field__input:focus {
  border-color: var(--brand);
}

.field__input--area {
  min-height: 64px;
  padding: 10px 12px;
  resize: vertical;
}

.checkout__form .btn {
  margin-top: 4px;
  min-height: 48px;
}

.checkout__consent {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.checkout__consent a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.checkout__consent-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.checkout__consent-field input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.checkout__consent-field a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(680px, calc(100% - 40px));
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 18px 50px rgba(40, 24, 35, .14);
}

.cookie-banner__content {
  min-width: 0;
}

.cookie-banner__title {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.cookie-banner__text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.cookie-banner__text a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.cookie-banner__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.cookie-banner__link {
  color: var(--ink-soft);
  font-size: 11px;
  white-space: nowrap;
}

.checkout__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 10px 20px;
  text-align: center;
}

.checkout__success[hidden] {
  display: none;
}

.checkout__success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #eef3e8;
  color: #526541;
}

.checkout__success-icon .icon {
  width: 26px;
  height: 26px;
}

.checkout__success-title {
  font-size: 28px;
}

.checkout__success p {
  max-width: 290px;
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.checkout__success strong {
  color: var(--ink);
}

/* 15. Служебные элементы
   ========================================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 500;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #F8F4FC;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}

.to-top .icon {
  width: 18px;
  height: 18px;
}

/* 16. Адаптив и анимации
   ========================================================= */
@keyframes panelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes countPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.js .hero-slide.is-active .hero-slide__content > * {
  animation: heroIn .7s var(--ease) both;
}

.js .hero-slide.is-active .hero-slide__content > :nth-child(2) { animation-delay: .08s; }
.js .hero-slide.is-active .hero-slide__content > :nth-child(3) { animation-delay: .16s; }
.js .hero-slide.is-active .hero-slide__content > :nth-child(4) { animation-delay: .24s; }
.js .hero-slide.is-active .hero-slide__content > :nth-child(5) { animation-delay: .32s; }

.js.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js.reveal-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  .nav {
    gap: 16px;
  }

  .nav__link {
    font-size: 12.5px;
  }

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

  .category-card__name {
    font-size: 19px;
  }

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

  .footer__top {
    grid-template-columns: 1.3fr .8fr 1fr;
  }

  .footer__contacts {
    grid-column: 2 / 4;
  }
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  section[id] {
    scroll-margin-top: 84px;
  }

  .footer {
    scroll-margin-top: 76px;
  }

  .header__burger {
    display: inline-flex;
  }

  .header__inner {
    min-height: 74px;
  }

  .header__actions {
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-slide__content {
    padding: 46px var(--gutter) 34px;
  }

  .hero-slide__title {
    font-size: clamp(2.5rem, 8vw, 3.6rem);
  }

  .hero-slide__text {
    max-width: 540px;
  }

  .hero-slide__note {
    margin-top: 24px;
  }

  .hero-slide__media {
    height: clamp(280px, 52vw, 420px);
    min-height: 0;
  }

  .hero-slide__media img {
    object-position: center 68%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
  }

  .hero__badge {
    display: none;
  }

  .hero__controls {
    position: static;
    padding: 14px var(--gutter) 20px;
    background: var(--surface-alt);
  }

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

  .benefit:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .benefit:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .promo__panel {
    grid-template-columns: 1fr;
  }

  .promo__media {
    height: 300px;
    min-height: 0;
  }

  .newsletter__panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

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

  .footer__contacts {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .topbar__links a:not(.topbar__phone) {
    display: none;
  }

  .hero-slide__title {
    font-size: clamp(2.25rem, 9vw, 3.1rem);
  }

  .hero-slide__text {
    font-size: 13.5px;
  }

  .hero-slide__actions .btn {
    min-height: 48px;
    padding-inline: 20px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-head__link {
    margin-bottom: 0;
  }

  .products-count {
    margin-bottom: 0;
  }

  .filter-row {
    position: relative;
  }

  .filter-row::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 40px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }

  .product-card__title {
    font-size: 16.5px;
  }

  .price__current {
    font-size: 15px;
  }

  .product-card__cart {
    width: 37px;
    height: 37px;
  }

  .newsletter__row {
    flex-direction: column;
    padding: 8px;
    border-radius: 18px;
  }

  .newsletter__input {
    min-height: 46px;
  }

  .newsletter__row .btn {
    width: 100%;
  }

  .form-note,
  .newsletter__consent {
    padding-left: 6px;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  section[id] {
    scroll-margin-top: 76px;
  }

  .footer {
    scroll-margin-top: 70px;
  }

  .topbar__inner {
    min-height: 34px;
    gap: 12px;
  }

  .topbar__note {
    font-size: 9.5px;
    min-width: 0;
  }

  .topbar__note .icon {
    width: 14px;
    height: 14px;
  }

  .topbar__phone {
    font-size: 10.5px;
  }

  .header__inner {
    gap: 8px;
    min-height: 68px;
  }

  .logo__mark {
    width: 37px;
    height: 37px;
    border-radius: 11px;
    font-size: 20px;
  }

  .logo__name {
    font-size: 21px;
  }

  .logo__tagline {
    font-size: 7.5px;
  }

  .header__actions .icon-btn {
    width: 39px;
    height: 39px;
  }

  .header__actions .icon {
    width: 20px;
    height: 20px;
  }

  .header__burger {
    width: 39px;
    height: 39px;
  }

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

  .category-card__name {
    font-size: 17px;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .benefit,
  .benefit + .benefit,
  .benefit:nth-child(3) {
    padding: 16px 0;
    border-left: 0;
  }

  .benefit + .benefit {
    border-top: 1px solid var(--line);
  }

  .benefit__icon {
    width: 38px;
    height: 38px;
  }

  .section {
    padding-block: 48px;
  }

  .section-head__text {
    margin-top: 10px;
    font-size: 13px;
  }

  .chip {
    min-height: 34px;
    padding-inline: 14px;
    font-size: 11.5px;
  }

  .chips {
    flex-wrap: wrap;
    overflow: visible;
  }

  .filter-row::after {
    display: none;
  }

  .product-card__badge {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 9.5px;
  }

  .product-card__fav {
    top: 7px;
    right: 7px;
    width: 32px;
    height: 32px;
  }

  .product-card__cat {
    font-size: 8.5px;
  }

  .product-card__title {
    font-size: 15px;
  }

  .price__old {
    display: none;
  }

  .product-card__cart {
    width: 34px;
    height: 34px;
  }

  .promo__content {
    padding: 28px 22px 30px;
  }

  .countdown {
    gap: 6px;
    margin: 20px 0 24px;
  }

  .countdown__item {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 4px;
  }

  .countdown__num {
    font-size: 19px;
  }

  .promo__media {
    height: 230px;
  }

  .newsletter__panel {
    padding: 26px 20px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer__brand,
  .footer__contacts {
    grid-column: auto;
  }

  .footer__bottom {
    padding-bottom: 22px;
  }

  .cart__panel {
    width: 100%;
  }

  .cart__item {
    grid-template-columns: 64px 1fr auto;
  }

  .cart__item-thumb {
    width: 64px;
    height: 84px;
  }

  .checkout__head {
    padding: 12px 16px;
  }

  .checkout__scroll {
    padding: 16px;
  }

  .checkout__fields {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .search-form__submit {
    display: inline-flex;
    min-height: 40px;
    padding-inline: 14px;
    font-size: 11px;
  }

  .search-panel__inner {
    padding-block: 16px 14px;
  }

  .toast {
    bottom: 20px;
  }

  .to-top {
    display: none;
  }
}

@media (max-width: 380px) {
  .topbar__phone {
    display: none;
  }

  .eyebrow {
    gap: 8px;
    font-size: 10px;
    letter-spacing: .12em;
  }

  .eyebrow__line {
    width: 20px;
  }

  .hero__arrows {
    gap: 6px;
  }

  .hero__arrows .circle-btn {
    width: 36px;
    height: 36px;
  }

  .hero__counter {
    margin-right: 4px;
    font-size: 10px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide__actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .js.reveal-enabled .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__pause {
    display: none;
  }
}

/* 15. Быстрый просмотр товара
   ========================================================= */
.quick-view {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}

.quick-view.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.quick-view__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 19, 43, .58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.quick-view__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  width: min(1060px, 100%);
  height: min(90vh, 780px);
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .42);
  border-radius: 26px;
  background: #FFFFFF;
  box-shadow: 0 36px 90px -36px rgba(36, 18, 43, .62);
  transform: translateY(16px) scale(.985);
  transition: transform .3s var(--ease);
}

.quick-view.is-open .quick-view__dialog {
  transform: none;
}

.quick-view__dialog:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.quick-view__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(138, 107, 168, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--ink-soft);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.quick-view__close:hover {
  background: var(--surface-alt);
  color: var(--accent-deep);
  transform: rotate(90deg);
}

.quick-view__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  background: #FAF7FD;
}

.quick-view__main {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  max-height: calc(90vh - 130px);
  aspect-ratio: 3 / 4;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 18px;
  background: #FFFFFF;
}

.quick-view__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #FFFFFF;
  pointer-events: none;
}

.quick-view__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(63, 35, 71, .78);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
}

.quick-view__thumbs {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.quick-view__thumb {
  flex: 0 0 62px;
  width: 62px;
  height: 82px;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid transparent;
  border-radius: 11px;
  background: #FFFFFF;
  opacity: .68;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}

.quick-view__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.quick-view__thumb:hover,
.quick-view__thumb.is-active {
  opacity: 1;
  border-color: rgba(212, 175, 55, .85);
}

.quick-view__thumb.is-active {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, .16);
}

.quick-view__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  max-height: calc(90vh - 40px);
  overflow: hidden;
  padding: 34px 34px 28px;
}

.quick-view__details {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 18px;
  padding-right: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.quick-view__details .quick-view__section:first-child {
  margin-top: 0;
}

.quick-view__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-right: 38px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.quick-view__title {
  margin: 8px 0 6px;
  padding-right: 34px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.quick-view__brand {
  color: var(--muted);
  font-size: 12px;
}

.quick-view__brand span {
  color: var(--ink-soft);
  font-weight: 600;
}

.quick-view__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 20px;
}

.quick-view__price strong {
  font-size: clamp(23px, 2.6vw, 29px);
  line-height: 1;
  letter-spacing: -.02em;
}

.quick-view__price s {
  color: var(--muted);
  font-size: 14px;
}

.quick-view__discount {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

.quick-view__sizes {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.quick-view__sizes legend {
  margin-bottom: 9px;
  padding: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quick-view__size-hint {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.quick-view__size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.size-chip {
  min-width: 48px;
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.size-chip:hover {
  border-color: var(--accent);
}

.size-chip.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #FFFFFF;
}

.quick-view__section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.quick-view__section h3 {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quick-view__section p {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre-line;
}

.quick-view__buy {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.quick-view__qty {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-view__qty-label {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.qty-stepper {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #FFFFFF;
}

.qty-stepper button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
}

.qty-stepper button:hover:not(:disabled) {
  background: var(--surface-alt);
  color: var(--accent-deep);
}

.qty-stepper button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.qty-stepper .icon {
  width: 15px;
  height: 15px;
}

.qty-stepper span {
  min-width: 26px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.quick-view__add {
  flex: 1 1 210px;
  min-height: 46px;
  border-radius: 999px;
}

.quick-view__error {
  min-height: 0;
  margin: 6px 0 0;
  padding-left: 0;
}

.quick-view__stock {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10.5px;
}

.quick-view__stock.is-out {
  color: #A3412B;
}

.quick-view__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.quick-view__favourite {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
}

.quick-view__favourite.is-active,
.quick-view__favourite[aria-pressed="true"] {
  border-color: rgba(194, 64, 122, .4);
  background: #FBEFF6;
  color: var(--favorite);
}

.quick-view__favourite.is-active .icon,
.quick-view__favourite[aria-pressed="true"] .icon {
  fill: currentColor;
  animation: heart-pop .38s var(--ease);
}

.quick-view__wb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 600;
}

.quick-view__wb:hover {
  border-color: var(--accent);
}

.quick-view__wb .icon {
  width: 14px;
  height: 14px;
}

.quick-view__wb[hidden] {
  display: none;
}

.cart__item-size {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.product-card__media-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  border-radius: 0;
}

@media (max-width: 920px) {
  .quick-view {
    align-items: flex-start;
    padding: 14px;
  }

  .quick-view__dialog {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 22px;
  }

  .quick-view__gallery {
    padding: 14px;
  }

  .quick-view__main {
    flex: 0 0 auto;
    width: 100%;
    max-height: 46vh;
    aspect-ratio: 3 / 4;
  }

  .quick-view__info {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 22px 22px 24px;
  }

  .quick-view__details {
    overflow: visible;
    padding-right: 0;
  }

  .quick-view__close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 560px) {
  .quick-view {
    padding: 0;
  }

  .quick-view__dialog {
    width: 100%;
    max-height: 90vh;
    border: 0;
    border-radius: 0;
  }

  .quick-view__main {
    max-height: 38vh;
  }

  .quick-view__gallery {
    gap: 9px;
    padding: 10px;
  }

  .quick-view__info {
    padding: 18px 16px 24px;
  }

  .quick-view__title {
    padding-right: 0;
    font-size: 27px;
  }

  .quick-view__meta {
    padding-right: 32px;
  }

  .quick-view__buy {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .quick-view__qty {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .quick-view__add {
    flex-basis: auto;
    width: 100%;
  }

  .quick-view__actions {
    gap: 12px;
  }

  .quick-view__thumb {
    flex-basis: 54px;
    width: 54px;
    height: 72px;
  }
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
}

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--surface-alt);
  color: var(--accent-deep);
  transform: none;
}

/* 16. Информационные страницы
   ========================================================= */
.info-page {
  background: var(--bg);
}

.info-main {
  min-height: 60vh;
}

.info-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(42px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 92% 0%, rgba(203, 182, 219, .28), transparent 62%),
    linear-gradient(180deg, #FAF7FD 0%, var(--bg) 100%);
}

.info-hero__inner {
  max-width: 880px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .04em;
}

.breadcrumbs a {
  transition: color .2s var(--ease);
}

.breadcrumbs a:hover {
  color: var(--accent-deep);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--line-strong);
}

.info-hero h1 {
  max-width: 800px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.4vw, 3.9rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.info-hero__lead {
  max-width: 640px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.info-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.info-section {
  padding-block: clamp(38px, 5vw, 64px);
}

.info-section + .info-section {
  padding-top: 0;
}

.info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.info-content {
  max-width: 820px;
  min-width: 0;
}

.info-content h2 {
  margin: 34px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.info-content h2:first-child {
  margin-top: 0;
}

.info-content h3 {
  margin: 24px 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.info-content p,
.info-content li {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.info-content p + p {
  margin-top: 10px;
}

.info-content ul,
.info-content ol {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.info-content ul li,
.info-content ol li {
  position: relative;
  padding-left: 21px;
}

.info-content ul li::before {
  content: "";
  position: absolute;
  top: .68em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.info-content ol {
  counter-reset: info-step;
}

.info-content ol li {
  counter-increment: info-step;
  padding-left: 32px;
}

.info-content ol li::before {
  content: counter(info-step);
  position: absolute;
  top: .1em;
  left: 0;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.info-content a {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .2s var(--ease);
}

.info-content a:hover {
  border-color: var(--accent);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 0;
}

.info-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  min-width: 0;
  padding: 22px 20px;
  border: 1px solid rgba(138, 107, 168, .16);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 12px 28px -24px rgba(74, 36, 71, .28);
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--accent-deep);
}

.info-card__icon .icon {
  width: 19px;
  height: 19px;
}

.info-card h3 {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.info-card p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.info-card strong {
  color: var(--ink);
}

.info-note {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: #FAF7FD;
}

.info-note p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.info-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.info-cta p {
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.info-cta strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
}

.info-aside {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 12px;
}

.info-aside__card {
  padding: 20px;
  border: 1px solid rgba(138, 107, 168, .16);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.info-aside__card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.info-aside__card p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.info-aside__card .btn {
  width: 100%;
  margin-top: 14px;
  min-height: 44px;
  font-size: 11.5px;
}

.info-aside__links {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}

.info-aside__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11.5px;
}

.info-aside__links a:hover {
  color: var(--accent-deep);
}

.info-aside__links a:last-child {
  border-bottom: 0;
}

.info-aside__links .icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.size-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
}

.size-table caption {
  padding: 16px 18px 0;
  color: var(--muted);
  font-size: 10.5px;
  text-align: left;
}

.size-table th,
.size-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}

.size-table th {
  background: #FAF7FD;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.size-table td {
  color: var(--ink-soft);
}

.size-table tbody tr:last-child td {
  border-bottom: 0;
}

.size-table tbody tr:hover {
  background: #FBF8FE;
}

.size-table th:first-child,
.size-table td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.size-table .size-table__plus {
  color: var(--accent-deep);
  font-weight: 600;
}

.faq-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.faq-item {
  border: 1px solid rgba(138, 107, 168, .16);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease);
}

.faq-item[open] {
  border-color: rgba(122, 75, 134, .34);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent-deep);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  transition: transform .2s var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__body {
  padding: 0 20px 18px;
}

.faq-item__body p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
  margin-top: 26px;
}

.contact-card {
  padding: 26px;
  border: 1px solid rgba(138, 107, 168, .16);
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.1;
}

.contact-card > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.contact-list .icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--accent-deep);
}

.contact-list a:hover {
  color: var(--accent-deep);
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.contact-socials .social-link {
  border-color: var(--line);
  background: #FAF7FD;
  color: var(--ink-soft);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form .field__input {
  min-height: 44px;
  background: #FAF7FD;
  border-color: var(--line-strong);
}

.contact-form .field__input:focus {
  background: #FFFFFF;
  border-color: var(--accent);
}

.contact-form .field__input--area {
  min-height: 108px;
  padding: 11px 13px;
  resize: vertical;
}

.contact-form .form-note {
  min-height: 17px;
  margin: 0;
  padding: 0;
}

.contact-form .btn {
  min-height: 46px;
  justify-self: start;
}

.contact-form__note {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

.contact-success {
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid #C9D3BD;
  border-radius: 12px;
  background: #F1F5EC;
  color: #46543B;
  font-size: 12px;
  line-height: 1.65;
}

.contact-success[hidden] {
  display: none;
}

.info-page .footer {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .info-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 30px;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .info-layout {
    grid-template-columns: 1fr;
  }

  .info-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .info-hero {
    padding-block: 34px;
  }

  .info-hero h1 {
    font-size: clamp(2.15rem, 9vw, 2.9rem);
  }

  .info-hero__lead {
    font-size: 13px;
  }

  .info-grid,
  .info-grid--two,
  .info-aside {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: 18px;
  }

  .info-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-form .btn {
    width: 100%;
  }
}

/* 17. Промокод, доставка и Яндекс-оплата
   ========================================================= */
.cart__extras {
  flex: 0 0 auto;
  padding: 14px 22px 0;
  border-top: 1px solid var(--line);
}

.cart__extras[hidden] {
  display: none;
}

.cart__promo-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cart__promo-row {
  display: flex;
  gap: 6px;
}

.cart__promo-input {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #FAF7FD;
  font-size: 11.5px;
  outline: none;
}

.cart__promo-input:focus {
  border-color: var(--accent);
  background: #FFFFFF;
}

.cart__promo-row .btn {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 10.5px;
}

.cart__promo .form-note {
  min-height: 15px;
  margin: 5px 0 0;
  padding-left: 0;
  font-size: 10px;
}

.cart__summary {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
}

.cart__summary div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}

.cart__summary dt,
.cart__summary dd {
  margin: 0;
}

.cart__summary dd {
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.cart__split {
  margin: 5px 0 10px;
  color: var(--accent-deep);
  font-size: 10.5px;
  font-weight: 600;
}

.cart__item-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  align-self: start;
}

.cart__favourite {
  padding: 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.cart__favourite:hover {
  color: var(--favorite);
  transform: scale(1.08);
}

.cart__favourite .icon {
  width: 16px;
  height: 16px;
}

.cart__item-thumb img {
  transform: scale(1.05);
}

.checkout__yandex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #FAF7FD;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.checkout__yandex:hover {
  border-color: var(--accent);
  background: var(--surface-alt);
}

.checkout__yandex-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--brand);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1;
}

.checkout__options {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.checkout__options legend {
  margin-bottom: 7px;
  padding: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.checkout-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #FAF7FD;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.checkout-option:has(input:checked) {
  border-color: var(--accent);
  background: #F7F0FA;
}

.checkout-option input {
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.checkout-option__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.checkout-option__body strong {
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}

.checkout-option__body small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.checkout-option__price {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

.checkout__totals {
  display: grid;
  gap: 5px;
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.checkout__totals div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}

.checkout__totals dt,
.checkout__totals dd {
  margin: 0;
}

.checkout__totals dd {
  color: var(--ink-soft);
  font-weight: 600;
}

.checkout__totals-total {
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-size: 13px !important;
}

.checkout__totals-total dd {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400 !important;
}

.checkout__split {
  margin: 7px 0 10px;
  color: var(--accent-deep);
  font-size: 10.5px;
  font-weight: 600;
}

.checkout__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 9.5px;
}

.checkout__secure .icon {
  width: 13px;
  height: 13px;
  color: var(--accent-deep);
}

@media (max-width: 560px) {
  .cart__extras {
    padding-inline: 16px;
  }

  .checkout-option {
    min-height: 48px;
  }
}

@media (max-width: 620px) {
  .catalog-panel__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .catalog-tabs {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  .catalog-tab {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 36px;
    padding-inline: 8px;
    font-size: 10.5px;
  }

  .product-card__collection {
    padding-inline: 5px;
    font-size: 7px;
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }

  .cookie-banner__actions {
    justify-content: space-between;
  }
}
