/* =====================================================================
   Главная alnur — botanical green & white.
   Токены — в theme.css. Ритм: белый → мятный → изумрудный.
   ===================================================================== */

.page-home {
  --hx-gap: clamp(56px, 7vw, 104px);
  --hx-card-w: clamp(196px, 18.5vw, 248px);
}

.page-home main.shell { width: 100%; max-width: none; }

.hx-section { padding-top: var(--hx-gap); }

/* --- section header --- */
.hx-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 0 0 28px;
}

.hx-head h2 { margin: 0; }
.hx-head .hx-tag { margin-bottom: 14px; }

.hx-head-note {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 15px;
  text-align: right;
  text-wrap: pretty;
}

.hx-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.hx-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.hx-link::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 250ms var(--ease-out);
}

@media (hover: hover) {
  .hx-link:hover { border-color: var(--forest); background: var(--forest); color: var(--white); }
  .hx-link:hover::after { transform: translateX(3px); }
}

/* --- 1. hero --- */
.hx-hero { padding-top: 20px; }

.hx-hero-frame { position: relative; }

.hx-hero-track {
  position: relative;
  height: clamp(560px, 74vh, 700px);
}

.hx-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--ease-out), visibility 0s linear 700ms;
}

.hx-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms var(--ease-out), visibility 0s;
}

.hx-theme-forest { background: var(--green); color: var(--white); }
.hx-theme-mint { background: var(--mint); color: var(--ink); }
.hx-theme-green { background: var(--forest); color: var(--white); }

.hx-theme-forest h1,
.hx-theme-forest h2,
.hx-theme-green h2 { color: var(--white); }

.hx-theme-forest .lede,
.hx-theme-green .lede { color: rgba(255, 255, 255, 0.8); }

.hx-theme-forest .hx-tag,
.hx-theme-green .hx-tag { background: rgba(255, 255, 255, 0.12); color: #c6d6b8; }

.hx-theme-mint .hx-tag { background: var(--white); }

.hx-slide-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 5vw, 72px);
}

.hx-slide-copy .hx-tag { margin-bottom: 22px; }

.hx-slide-copy h1,
.hx-slide-title {
  max-width: 13ch;
  margin: 0 0 20px;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hx-slide-copy .lede { max-width: 40ch; margin: 0 0 32px; font-size: 17px; }

.hx-slide-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hx-theme-forest .hx-link,
.hx-theme-green .hx-link { border-color: rgba(255, 255, 255, 0.3); color: var(--white); }

@media (hover: hover) {
  .hx-theme-forest .hx-link:hover,
  .hx-theme-green .hx-link:hover { background: var(--white); color: var(--forest); border-color: var(--white); }
}

.hx-slide-copy > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.hx-slide.is-active .hx-slide-copy > * { opacity: 1; transform: none; }
.hx-slide.is-active .hx-slide-copy > :nth-child(2) { transition-delay: 80ms; }
.hx-slide.is-active .hx-slide-copy > :nth-child(3) { transition-delay: 160ms; }
.hx-slide.is-active .hx-slide-copy > :nth-child(4) { transition-delay: 240ms; }
.hx-slide.is-active .hx-slide-copy > :nth-child(5) { transition-delay: 320ms; }

.hx-stats {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hx-stats div { min-width: 0; }
.hx-stats dt { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hx-stats dd { margin: 4px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.7); }

.hx-slide-media { position: relative; min-width: 0; overflow: hidden; }

.hx-slide-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.06);
  transition: transform 7s linear;
}

.hx-slide.is-active .hx-slide-media > img { transform: scale(1); }

.hx-float {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(360px, calc(100% - 48px));
  padding: 10px 18px 10px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 300ms var(--ease-out);
}

.hx-float-media {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--mint-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hx-float-media img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.hx-float-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hx-float-copy small { font-size: 12px; font-weight: 600; color: var(--green); }
.hx-float-copy strong { font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hx-float-copy em { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }

@media (hover: hover) {
  .hx-float:hover { transform: translateY(-3px); }
}

.hx-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hx-hero .hx-dot {
  width: 40px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.hx-dot i {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.hx-dot i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
}

.hx-dot.is-active i::after { transform: scaleX(1); }
.hx-hero.is-playing .hx-dot.is-active i::after { animation: hx-progress 6.5s linear; }

@keyframes hx-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* --- 2. perks --- */
.hx-perks { padding-top: 28px; }

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

.hx-perk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--mint-soft);
  min-width: 0;
}

.hx-perk svg {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: var(--white);
  fill: none;
  stroke: var(--green);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hx-perk strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.hx-perk span { display: block; font-size: 13px; color: var(--muted); }

/* --- 3. quick categories --- */
.hx-quick { padding-top: var(--hx-gap); }

.hx-quick-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hx-quick-track::-webkit-scrollbar { display: none; }

.hx-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  scroll-snap-align: start;
}

.hx-quick-media {
  width: 100%;
  max-width: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--mint-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow 250ms var(--ease-out), background-color 250ms var(--ease-out);
}

.hx-quick-media svg {
  width: 54%;
  height: 54%;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transition: transform 500ms var(--ease-out);
}

.hx-quick-media svg .tone {
  fill: var(--green);
  stroke: none;
  opacity: 0.22;
}

.hx-quick-media svg .ink {
  fill: var(--forest);
  stroke: none;
}

.hx-quick-media svg .glint {
  stroke: var(--forest);
  opacity: 0.45;
}

.hx-quick-name { font-size: 14px; font-weight: 500; line-height: 1.3; text-wrap: balance; }
.hx-quick-item small { margin-top: -6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (hover: hover) {
  .hx-quick-item:hover .hx-quick-media { background: var(--mint); box-shadow: inset 0 0 0 1.5px var(--green); }
  .hx-quick-item:hover .hx-quick-media svg { transform: scale(1.06); }
  .hx-quick-item:hover .hx-quick-media svg .tone { opacity: 0.34; }
}

/* --- tabs --- */
.hx-tabs {
  display: flex;
  gap: 8px;
  margin: -4px 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hx-tabs::-webkit-scrollbar { display: none; }

.hx-tabs .hx-tab {
  flex: none;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--mint-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.hx-tabs .hx-tab.is-active { background: var(--forest); color: var(--white); }

@media (hover: hover) {
  .hx-tabs .hx-tab:not(.is-active):hover { background: var(--mint); }
}

.hx-panel-foot { margin-top: 28px; display: flex; justify-content: center; }

/* --- rails --- */
.hx-rail { position: relative; }

.hx-rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--hx-card-w);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hx-rail-track::-webkit-scrollbar { display: none; }

.hx-rail-item { position: relative; display: flex; min-width: 0; scroll-snap-align: start; }
.hx-rail-item > .card { width: 100%; }

.hx-rank {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.hx-ranked .card-badge { inset-inline-start: auto; inset-inline-end: 12px; }

.hx-rail .hx-rail-btn {
  position: absolute;
  z-index: 5;
  top: calc(var(--hx-card-w) / 2);
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 200ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.hx-rail-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hx-prev { left: -20px; }
.hx-next { right: -20px; }
.hx-rail .hx-rail-btn:disabled { opacity: 0; pointer-events: none; }
.hx-rail.is-static .hx-rail-btn { display: none; }

@media (hover: hover) {
  .hx-rail .hx-rail-btn:hover { background: var(--forest); color: var(--white); }
}

/* --- 5. routine --- */
.hx-routine { padding-top: var(--hx-gap); }

.hx-routine > .home-wrap {
  padding: clamp(32px, 4.5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--mint);
}

.hx-routine .hx-tag { background: var(--white); }

.hx-routine-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hx-routine-steps li { min-width: 0; }

.hx-routine-steps a {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 20px;
  border-radius: 22px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.hx-routine-num {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hx-routine-media {
  aspect-ratio: 1;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--mint-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hx-routine-media img { width: 70%; height: 70%; object-fit: contain; mix-blend-mode: multiply; transition: transform 500ms var(--ease-out); }

.hx-routine-steps strong { padding: 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.hx-routine-note { padding: 0 4px; font-size: 14px; color: var(--muted); }
.hx-routine-steps small { padding: 8px 4px 0; font-size: 13px; font-weight: 600; color: var(--green); }

@media (hover: hover) {
  .hx-routine-steps a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .hx-routine-steps a:hover img { transform: scale(1.06); }
}

/* --- 6. category mosaic --- */
.hx-cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.hx-cat {
  grid-column: span 2;
  position: relative;
  display: block;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--mint-soft);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 300ms var(--ease-out);
}

.hx-cat:nth-child(1),
.hx-cat:nth-child(2) { grid-column: span 3; }

.hx-cat-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 11;
  padding-bottom: 56px;
}

.hx-cat:nth-child(-n + 2) .hx-cat-media { aspect-ratio: 16 / 9; }

.hx-cat-media img { width: 52%; height: 78%; object-fit: contain; mix-blend-mode: multiply; transition: transform 600ms var(--ease-out); }
.hx-cat-media img.is-photo { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }

.hx-cat-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.hx-cat-copy strong { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }

.hx-cat-copy small {
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .hx-cat:hover { background: var(--mint); }
  .hx-cat:hover .hx-cat-media img { transform: scale(1.05); }
}

/* --- 7. brands --- */
.hx-brands-band { padding-top: var(--hx-gap); }

.hx-brands-band > .home-wrap {
  padding: clamp(32px, 4.5vw, 64px) clamp(24px, 4.5vw, 64px) 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--forest);
}

.hx-brands-band h2 { color: var(--white); }
.hx-brands-band .hx-tag { background: rgba(255, 255, 255, 0.12); color: #c6d6b8; }
.hx-brands-band .hx-link { border-color: rgba(255, 255, 255, 0.3); color: var(--white); }

@media (hover: hover) {
  .hx-brands-band .hx-link:hover { background: var(--white); color: var(--forest); border-color: var(--white); }
}

.hx-brands {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hx-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  transition: background-color 250ms var(--ease-out), transform 250ms var(--ease-out);
}

.hx-brand-media {
  width: 80px;
  aspect-ratio: 1;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hx-brand-media img { width: 70%; height: 70%; object-fit: contain; mix-blend-mode: multiply; }
.hx-brand-media em { font-size: 30px; font-weight: 600; color: var(--forest); }

.hx-brand-name {
  max-width: 100%;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hx-brand small { font-size: 13px; color: rgba(255, 255, 255, 0.62); }

@media (hover: hover) {
  .hx-brand:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-3px); }
}

.hx-marquee {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 0 32px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: var(--forest);
  overflow: hidden;
}

.hx-marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: hx-marquee 55s linear infinite;
}

.hx-marquee-track span {
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.3);
}

.hx-marquee-track span:nth-child(3n + 1) { color: #a9c48f; }

@keyframes hx-marquee { to { transform: translateX(-50%); } }

/* --- 8. brand spotlight --- */
.hx-spot {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hx-spot-copy h2 { margin: 0 0 16px; font-size: clamp(36px, 4vw, 60px); letter-spacing: -0.04em; }
.hx-spot-copy .hx-tag { margin-bottom: 18px; }
.hx-spot-copy p { color: var(--muted); margin: 0 0 28px; max-width: 38ch; font-size: 16px; }

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

/* --- 9. ingredients --- */
.hx-ingr {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hx-ingr-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 168px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--mint-soft);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 250ms var(--ease-out), color 250ms var(--ease-out);
}

.hx-ingr-num { font-size: 13px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; margin-bottom: auto; }
.hx-ingr-item strong { margin-top: 20px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.hx-ingr-item span:not(.hx-ingr-num) { font-size: 14px; color: var(--muted); }
.hx-ingr-item small { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--forest); }

.hx-ingr-item::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e4529' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 250ms var(--ease-out);
}

@media (hover: hover) {
  .hx-ingr-item:hover { background: var(--forest); color: var(--white); }
  .hx-ingr-item:hover span:not(.hx-ingr-num) { color: rgba(255, 255, 255, 0.72); }
  .hx-ingr-item:hover small,
  .hx-ingr-item:hover .hx-ingr-num { color: #a9c48f; }
  .hx-ingr-item:hover::after { transform: rotate(45deg); }
}

/* --- 12. collections --- */
.hx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }

/* --- 13. price bands --- */
.hx-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hx-price {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 230px;
  padding: 28px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  overflow: hidden;
  transition: transform 300ms var(--ease-out);
}

.hx-price:nth-child(1) { background: var(--mint); color: var(--ink); }
.hx-price:nth-child(2) { background: var(--green); color: var(--white); }
.hx-price:nth-child(3) { background: var(--forest); color: var(--white); }

.hx-price-note { margin-bottom: auto; font-size: 15px; font-weight: 500; opacity: 0.85; }
.hx-price strong { font-size: clamp(40px, 4vw, 60px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.hx-price strong em { font-size: 0.4em; font-weight: 500; letter-spacing: -0.01em; opacity: 0.8; }
.hx-price small { font-size: 14px; opacity: 0.8; }

.hx-price-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 18px;
  transition: transform 300ms var(--ease-out), background-color 300ms var(--ease-out);
}

.hx-price:nth-child(1) .hx-price-arrow { background: var(--white); }

@media (hover: hover) {
  .hx-price:hover { transform: translateY(-4px); }
  .hx-price:hover .hx-price-arrow { transform: rotate(-45deg); }
}

/* --- 11. editorial --- */
.page-home .hx-editorial {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1360px;
  margin: var(--hx-gap) auto 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
}

.hx-editorial .home-editorial-media { border-radius: var(--radius-lg); aspect-ratio: 5 / 4; }
.hx-editorial .home-look-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hx-editorial .home-look-motion { display: none; }
  .hx-editorial .home-look-still { display: block; }
}
.hx-editorial .home-editorial-copy { max-width: 500px; }
.hx-editorial .home-editorial-copy .hx-tag { margin-bottom: 18px; }
.hx-editorial .home-editorial-copy h2 { margin: 0 0 20px; }
.hx-editorial .home-points { border-top: 0; margin: 24px 0 32px; padding: 0; list-style: none; display: grid; gap: 10px; }

.hx-editorial .home-points li {
  position: relative;
  padding: 0 0 0 34px;
  border: 0;
  font-size: 15px;
}

.hx-editorial .home-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c5a37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* --- 14. lookbook --- */
.page-home .hx-lookbook { margin-top: var(--hx-gap); gap: 16px; }
.hx-lookbook .home-look img,
.hx-lookbook .home-look video { border-radius: var(--radius-lg); }
.hx-lookbook .home-look-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hx-lookbook .home-look-motion { display: none; }
  .hx-lookbook .home-look-still { display: block; }
}
.hx-lookbook .home-look figcaption { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* --- 15. help --- */
.hx-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.hx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.hx-steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--mint-soft);
}

.hx-steps li > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.hx-steps h3 { margin: 4px 0 4px; font-size: 18px; }
.hx-steps p { margin: 0; color: var(--muted); font-size: 15px; }

.hx-faq-title { margin: 0 0 20px; font-size: clamp(24px, 2.2vw, 32px); }

.hx-faq details {
  border-radius: var(--radius);
  background: var(--white);
  border: 1.5px solid var(--line);
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.hx-faq details + details { margin-top: 10px; }
.hx-faq details[open] { border-color: var(--mint); background: var(--mint-soft); }

.hx-faq summary {
  position: relative;
  padding: 20px 60px 20px 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

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

.hx-faq summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e4529' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transform: translateY(-50%);
  transition: transform 300ms var(--ease-out);
}

.hx-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background-color: var(--white); }
.hx-faq details p { margin: -4px 22px 20px; color: var(--muted); font-size: 15px; max-width: 56ch; }

/* --- 16. wholesale --- */
.page-home .hx-boutique {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1360px;
  margin: var(--hx-gap) auto 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  border-radius: var(--radius-lg);
  background: var(--forest);
}

.hx-boutique .home-boutique-media { min-height: 460px; }
.hx-boutique .home-boutique-copy { color: var(--white); }
.hx-boutique .home-boutique-copy .hx-tag { margin-bottom: 18px; background: rgba(255, 255, 255, 0.12); color: #c6d6b8; }
.hx-boutique .home-boutique-copy h2 { color: var(--white); font-weight: 600; }
.hx-boutique .home-boutique-copy p { color: rgba(255, 255, 255, 0.76); }
.hx-boutique .btn { background: var(--white); color: var(--forest); }

@media (hover: hover) {
  .hx-boutique .btn:hover { background: var(--mint); color: var(--forest); }
}

/* --- responsive --- */
@media (max-width: 1200px) {
  .hx-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hx-spot { grid-template-columns: 1fr; }
  .hx-spot-copy { max-width: 560px; }
  .hx-ingr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .page-home { --hx-card-w: clamp(168px, 44vw, 232px); }

  .hx-hero { padding-top: 12px; }
  .hx-hero-track { height: auto; display: grid; }
  .hx-slide {
    position: relative;
    grid-area: 1 / 1;
    grid-template-columns: 1fr;
    grid-template-rows: auto 260px;
    border-radius: 24px;
  }
  .hx-slide-copy { padding: 32px 24px 28px; }
  .hx-slide-copy h1,
  .hx-slide-title { font-size: clamp(34px, 9vw, 46px); }
  .hx-slide-copy .lede { font-size: 16px; margin-bottom: 24px; }
  .hx-stats { margin-top: 28px; padding-top: 20px; gap: 20px; }
  .hx-stats dd { font-size: 12px; }
  .hx-float { left: 12px; bottom: 12px; padding: 8px 14px 8px 8px; }
  .hx-float-media { width: 52px; height: 52px; }

  .hx-perks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hx-perk { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .hx-perk svg { width: 38px; height: 38px; padding: 9px; }

  .hx-head { flex-wrap: wrap; }
  .hx-head-note { text-align: left; }

  .hx-quick-track { grid-auto-columns: 92px; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .hx-quick-name { font-size: 13px; }

  .hx-tabs { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }

  .hx-rail .hx-rail-btn { display: none; }
  .hx-rail-track { gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }

  .hx-routine > .home-wrap { padding: 28px 0 28px 20px; border-radius: 24px; }
  .hx-routine .hx-head { padding-right: 20px; }
  .hx-routine-steps {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(172px, 46vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-right: 20px;
  }
  .hx-routine-steps li { scroll-snap-align: start; }

  .hx-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hx-cat,
  .hx-cat:nth-child(2) { grid-column: span 1; }
  .hx-cat:nth-child(1) { grid-column: span 2; }
  .hx-cat-media { padding-bottom: 64px; aspect-ratio: 1; }
  .hx-cat:nth-child(1) .hx-cat-media { aspect-ratio: 16 / 10; }
  .hx-cat:nth-child(2) .hx-cat-media { aspect-ratio: 1; }
  .hx-cat-copy { left: 14px; right: 14px; bottom: 14px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .hx-cat-copy strong { font-size: 16px; }

  .hx-brands-band > .home-wrap { padding: 28px 16px 0; border-radius: 24px 24px 0 0; }
  .hx-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hx-brand { padding: 16px 6px 14px; }
  .hx-brand-media { width: 56px; margin-bottom: 6px; }
  .hx-brand-name { font-size: 13px; }
  .hx-brand small { font-size: 12px; }
  .hx-marquee { border-radius: 0 0 24px 24px; }

  .hx-spot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }

  .hx-ingr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hx-ingr-item { min-height: 150px; padding: 16px; }
  .hx-ingr-item strong { font-size: 17px; }
  .hx-ingr-item::after { width: 28px; height: 28px; top: 14px; right: 14px; }

  .hx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }

  .hx-prices { grid-template-columns: 1fr; gap: 10px; }
  .hx-price { min-height: 170px; padding: 22px; border-radius: 24px; }

  .page-home .hx-editorial { grid-template-columns: 1fr; }
  .page-home .hx-boutique { grid-template-columns: 1fr; border-radius: 24px; }
  .hx-boutique .home-boutique-media { min-height: 0; aspect-ratio: 16 / 10; }

  .hx-help { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hx-stats div:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-slide,
  .hx-slide-media > img,
  .hx-slide-copy > * { transition: none !important; }
  .hx-marquee-track { animation: none; }
}

.hx-price strong { white-space: nowrap; font-size: clamp(36px, 3.6vw, 56px); }

/* --- brand wall v2: логотипы на белых плашках --- */
.hx-brand { padding: 10px 10px 16px; gap: 12px; align-items: stretch; text-align: left; }

.hx-brand-plate {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
}

.hx-brand-logo {
  max-width: 100%;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* все логотипы — в одном тёмно-оливковом тоне */
  filter: brightness(0) saturate(100%);
  opacity: 0.86;
  transition: opacity 250ms var(--ease-out), transform 300ms var(--ease-out);
}

.hx-brand-word {
  max-width: 100%;
  color: var(--forest);
  font-size: clamp(15px, 1.25vw, 19px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hx-brand-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 6px; }
.hx-brand-meta .hx-brand-name { font-size: 14px; }

@media (hover: hover) {
  .hx-brand:hover .hx-brand-logo { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 960px) {
  .hx-brand { padding: 6px 6px 10px; gap: 8px; }
  .hx-brand-plate { padding: 10px; border-radius: 10px; }
  .hx-brand-logo { max-height: 28px; }
  .hx-brand-word { font-size: 11.5px; letter-spacing: 0.04em; }
  .hx-brand-meta { flex-direction: column; gap: 0; padding: 0 2px; }
  .hx-brand-meta .hx-brand-name { font-size: 12px; }
}
.hx-brand:not(.has-logo) .hx-brand-meta .hx-brand-name { display: none; }
.hx-brand:not(.has-logo) .hx-brand-meta { justify-content: center; }
