/* ============================================================
   MOTHER'S HOME — Homepage
   Pixel-faithful recreation of the provided desktop mockup
   ============================================================ */

/* ---------- Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Noto+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");

/* ---------- Design tokens (Mother'sHome Brand System v3.0 — Colors & Typography) ---------- */
:root {
  /* === Brand palette v3.0 (exact HEX from the brandbook) === */
  --mh-cream: #f7f3ed; /* Mother'sHome Cream — page bg, cards, packaging   */
  --mh-sage: #a9b4a0; /* Mother'sHome Sage  — logo, icons, calm accents   */
  --mh-sage-logo: #6e8569; /* Mother'sHome Sage  — logo, icons, calm accents   */
  --mh-dusty-rose: #d8b7b7; /* Dusty Rose         — women collections, club     */
  --mh-lavender: #d9d3e8; /* Lavender Mist      — kids line, gentle blocks    */
  --mh-baby-blue: #d8e7f0; /* Baby Blue          — kids line, summer blocks    */
  --mh-pink: #e5007e; /* Mother'sHome Pink  — CTA, links, active elements */
  --mh-pink-hover: #c40069; /* CTA Hover                                        */
  --mh-warm-stone: #c8c1b8; /* Warm Stone         — lines, captions, dividers   */

  /* === Website text colors v3.0 === */
  --mh-text-primary: #3f3a36; /* headings, menu, descriptions, product cards */
  --mh-text-secondary: #6e6964; /* captions, secondary text, specs, dates      */

  /* === Surfaces & lines v3.0 === */
  --mh-line: #e9e4de;
  --mh-card: #ffffff;

  /* Derived tints (soft washes of the brand colors, for fills) */
  --pink-soft: #fbe7f1;
  --rose-soft: #f4e9e8;
  --sage-soft: #e9ede3;
  --sage-dark: #95a18b; /* sage deepened ~9% for icon contrast */

  /* ---- Legacy aliases used throughout the layout, remapped to v3 ---- */
  --milk: var(--mh-cream);
  --warm-cream: #f3ece4; /* secondary cream panels, top bar */
  --graphite: var(--mh-text-primary);
  --sage: var(--mh-sage);
  --rose: var(--mh-dusty-rose);
  --beige: var(--mh-line); /* card borders, dividers */
  --brown: var(--mh-warm-stone);
  --white: var(--mh-card);

  --cream: var(--mh-cream);
  --cream-soft: var(--warm-cream);
  --promo: var(--warm-cream);
  --paper: var(--mh-card);

  --ink: var(--mh-text-primary);
  --text: var(--mh-text-primary);
  --muted: var(--mh-text-secondary);
  --placeholder: #95908a;
  --tan: var(--mh-warm-stone);
  --gold: var(--mh-line);

  --line: var(--mh-line);
  --line-soft: #efeae4;

  /* Layout */
  --maxw: 1400px; /* matches hero max-width — content lines up edge-to-edge */
  --gut: 40px; /* default horizontal gutter; overridden in media queries */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-btn: 5px;

  /* Bootstrap-equivalent breakpoints (for reference / documentation):
     sm  ≥ 576px
     md  ≥ 768px
     lg  ≥ 992px
     xl  ≥ 1200px
     xxl ≥ 1400px                                                       */

  /* === Typography v3.0: headings — Cormorant/EB Garamond, body — Noto Sans === */
  --mh-font-heading: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --mh-font-body: "Noto Sans", "Inter", Arial, sans-serif;
  --serif: var(--mh-font-heading);
  --garamond: var(--mh-font-heading);
  --sans: var(--mh-font-body);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  color: var(--text);
  background: #fcfcfa;
  font-size: 18px; /* Body 18px — Brand System v3.0 */
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
ul {
  list-style: none;
}

/* shared helpers */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mh-sage);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-btn);
  transition: 0.25s ease;
}
.btn--primary {
  background: var(--mh-sage);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--sage-dark);
}
.btn--outline {
  background: transparent;
  color: var(--graphite);
  border: 1px solid var(--mh-warm-stone);
}
.btn--outline:hover {
  background: var(--warm-cream);
  border-color: var(--beige);
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mh-sage);
  transition: 0.2s;
  white-space: nowrap;
}
.link-cta:hover {
  color: var(--sage-dark);
}
.link-cta::after {
  content: "";
  width: 34px;
  height: 12px;
  flex: none;
  background-color: currentColor; /* или var(--mh-pink) */
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 16"><path d="M0 7.1h33.4l-5.2-5.2 1.4-1.4 7.6 7.6-7.6 7.6-1.4-1.4 5.2-5.2H0z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 16"><path d="M0 7.1h33.4l-5.2-5.2 1.4-1.4 7.6 7.6-7.6 7.6-1.4-1.4 5.2-5.2H0z"/></svg>') no-repeat center / contain;
  transition: transform 0.2s;
}
.link-cta:hover::after {
  transform: translateX(5px);
}
/* white arrow variant for dark/overlay surfaces (collection cards) */
.col-card__body .link-cta::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 16"><path fill="%23ffffff" d="M0 7.1h33.4l-5.2-5.2 1.4-1.4 7.6 7.6-7.6 7.6-1.4-1.4 5.2-5.2H0z"/></svg>');
}

/* ============================================================
   TOP PROMO BAR
   ============================================================ */
.promo {
  background: #f5f4f0; /* Dusty Rose top bar (per request) */
  font-size: 13px;
  color: var(--ink);
}
.promo__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.promo__left {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.01em;
}
.promo__left img {
  width: 22px;
  height: 22px;
  opacity: 1;
}
.promo__right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.lang {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.lang span {
  color: rgba(63, 58, 54, 0.45);
}
.lang a {
  color: rgba(63, 58, 54, 0.75);
}
.lang a.is-active {
  color: var(--mh-text-primary);
  font-weight: 600;
}
.lang a.is-active {
  color: var(--ink);
  font-weight: 600;
}
.promo__icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.promo__icons a {
  position: relative;
  display: inline-flex;
}
.promo__icons img {
  width: 21px;
  height: 21px;
}
.bag-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--mh-sage);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  background: transparent;
  position: relative;
  z-index: 3;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}
.logo {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.logo img {
  height: 100px;
  width: auto;
  display: block;
}
.logo sup {
  font-size: 0.5em;
  font-weight: 400;
}
.nav {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-top: 23px;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: 0.2s;
}
.nav a:hover {
  color: var(--mh-sage);
}
.nav a.is-active {
  color: var(--mh-sage);
}
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--mh-sage);
}

/* Burger + mobile nav */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  justify-content: center;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--graphite);
  border-radius: 2px;
  transition: 0.25s;
}
body.nav-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .burger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--beige);
  padding: 8px var(--gut);
}
.mobile-nav a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--graphite);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a.is-active {
  color: var(--mh-sage);
}
body.nav-open .mobile-nav {
  display: flex;
}

/* ============================================================
   HERO — full-bleed image slider
   Edge-to-edge below 1400px; locks at 1400px above that.
   ============================================================ */
.hero {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--cream);
  position: relative;
  z-index: 1;
}

.hero__viewport {
  position: relative;
  overflow: hidden;
  /* Aspect ratio keeps the slide proportional on every viewport.
     Re-tuned per breakpoint below.                              */
  aspect-ratio: 1400 / 560;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero__slide {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Soft veil so text remains legible regardless of the slide photo */
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 80px;
}
.hero__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(247, 243, 237, 0.92) 0%, rgba(247, 243, 237, 0.72) 22%, rgba(247, 243, 237, 0.28) 45%, rgba(247, 243, 237, 0) 65%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 560px;
  padding: 20px 0 60px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

.hero__cta {
  gap: 12px;
  padding: 0 24px;
  height: 52px;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.hero__cta svg {
  transition: transform 0.25s ease;
}
.hero__cta:hover svg {
  transform: translateX(4px);
}

/* ---- Arrows ---- */
.hero__nav {
  position: absolute;
  top: auto;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--graphite);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(64, 59, 55, 0.08);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  z-index: 3;
}
.hero__nav:hover {
  background: #fff;
  transform: translateY(-1px);
}
.hero__nav:focus-visible {
  outline: 2px solid var(--mh-sage);
  outline-offset: 3px;
}
.hero__nav--prev {
  left: 22px;
}
.hero__nav--next {
  right: 22px;
}

/* ---- Dots ---- */
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: transparent;
  border: 1.4px solid var(--graphite);
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
  opacity: 0.7;
}
.hero__dot:hover {
  opacity: 1;
  transform: scale(1.1);
}
.hero__dot.is-active {
  background: var(--mh-sage);
  border-color: var(--mh-sage);
  opacity: 1;
}
.hero__dot:focus-visible {
  outline: 2px solid var(--mh-sage);
  outline-offset: 3px;
}

/* ============================================================
   FEATURES — category card menu under the hero
   Rounded card, 1px border, image on top, white panel below
   with a circular icon overlapping the seam.
   ============================================================ */
.features {
  padding: 28px 0 8px;
  position: relative;
  z-index: 2;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.feat-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.feat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -16px rgba(64, 59, 55, 0.25);
  border-color: var(--line);
}
.feat-card__media {
  aspect-ratio: 2 / 1; /* square media on big screens */
  overflow: hidden;
}
.feat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.feat-card:hover .feat-card__media img {
  transform: scale(1.04);
}
.feat-card__body {
  background: var(--white);
  padding: 10px 12px 10px;
  text-align: center;
  position: relative;
}
.feat-card__icon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  border: 0px solid var(--beige);
  color: var(--graphite);
  z-index: 0;
}
.feat-card__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
/* Pastel tints from the v3 palette — kids line gets Lavender/Baby Blue */
.feat-card__icon--cream {
  /* background: var(--mh-cream); */
}
.feat-card__icon--rose {
  /* background: var(--mh-dusty-rose);
}
.feat-card__icon--blue {
 /* background: var(--mh-baby-blue); */
}
.feat-card__icon--lavender {
  /* background: var(--mh-lavender); */
}
.feat-card__icon--pink {
  /* background: var(--pink-soft); */
}
.feat-card__icon--sage {
  /* background: var(--sage-soft); */
}
.feat-card__title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0;
  position: relative;
  z-index: 12;
}

/* ============================================================
   COLLECTIONS
   ============================================================ */
.collections {
  padding: 64px 0 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.section-head h2 {
  /* H2 — Garamond 40px (Brand System v3.0) */
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink);
}

.collections__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.col-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 466/464;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.col-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.col-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(60, 46, 33, 0.78) 0%, rgba(70, 55, 40, 0.32) 42%, rgba(80, 65, 48, 0) 70%);
}
.col-card__body {
  position: relative;
  z-index: 1;
  padding: 26px 24px 26px;
}
.col-card__body h3 {
  /* H3 — Garamond 32px (Brand System v3.0) */
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.col-card__body p {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
  max-width: 30ch;
}
.col-card__body .link-cta {
  color: #fff;
  font-size: 11.5px;
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  padding: 0 0 54px 0;
}
.philosophy__panel {
  background: var(--warm-cream);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr) minmax(0, 0.72fr);
  align-items: stretch;
}
.philosophy__media {
  position: relative;
  min-height: 100%;
}
.philosophy__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.philosophy__text {
  padding: 48px 44px 48px 50px;
  align-self: center;
}
.philosophy__text h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.15;
  margin: 14px 0 24px;
  letter-spacing: -0.01em;
}
.philosophy__text p {
  font-size: 18px; /* Body 18px — v3 */
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 18px;
  max-width: 46ch;
}
.philosophy__text p.lead {
  font-size: 19px;
  color: var(--ink);
  font-weight: 500;
}
.philosophy__text .link-cta {
  margin-top: 8px;
}

.values {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 48px 44px 48px 0;
  align-self: center;
}
.value {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}
.value img {
  width: 34px;
  height: 34px;
  margin-top: 2px;
}
.value h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 7px;
}
.value p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   CLUB
   ============================================================ */
.club {
  padding: 0 0 64px;
}
.club__card {
  /* Dusty Rose wash — club / women's emotional block (v3) */
  background: linear-gradient(150deg, var(--rose-soft) 0%, var(--mh-cream) 100%);
  border: 1px solid #e6d6d4;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
  align-items: stretch;
}
.club__intro {
  padding: 46px 44px;
}
.club__intro .eyebrow {
  margin-bottom: 14px;
}
.club__intro h2 {
  font-family: var(--garamond);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.club__intro p {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.6;
  max-width: 36ch;
  margin-bottom: 34px;
}
.club__benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.benefit {
  text-align: center;
}
.benefit img {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
}
.benefit span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 500;
}

.club__media {
  position: relative;
  min-height: 100%;
}
.club__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club__form {
  padding: 46px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.field {
  background: var(--white);
  border: 1px solid var(--mh-warm-stone);
  border-radius: var(--radius-btn);
  height: 48px;
  padding: 0 18px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--graphite);
  width: 100%;
  margin-bottom: 14px;
}
.field::placeholder {
  color: var(--placeholder);
}
.field:focus {
  outline: none;
  border-color: var(--mh-sage);
}
.club__form .btn {
  width: 100%;
  margin-top: 6px;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--mh-warm-stone);
  border-radius: 3px;
  margin-top: 2px;
  flex: none;
  background: var(--white);
}
.consent input:checked {
  background: var(--mh-sage);
  border-color: var(--mh-sage);
}

/* ============================================================
   JOURNAL
   ============================================================ */
.journal {
  padding: 0 0 70px;
}
.journal .section-head h2 {
  font-size: clamp(24px, 2.6vw, 34px);
}
.journal__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.post img {
  width: 100%;
  aspect-ratio: 287/150;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 14px;
}
.post p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--cream-soft);
  border-top: 1px solid var(--line-soft);
  padding-top: 54px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.1fr;
  gap: 30px;
  padding-bottom: 46px;
}
.footer__brand {
  padding-right: 56px;
}
.footer__brand .logo {
  display: block;
  margin-top: -6px;
  margin-bottom: 22px;
}
.footer__brand .logo img {
  height: 55px;
  width: auto;
  display: block;
}
.footer__brand p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 22px;
}
.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social img {
  width: 30px;
  height: 30px;
  opacity: 0.8;
  transition: 0.2s;
}
.footer__social a:hover img {
  opacity: 1;
}
.footer__col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.footer__col li {
  margin-bottom: 11px;
}
.footer__col a {
  font-size: 14px;
  color: var(--text);
  transition: 0.2s;
}
.footer__col a:hover {
  color: var(--mh-sage);
}
.footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.1fr;
  gap: 30px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.footer__bottom span:first-child {
  padding-right: 56px;
}
.footer__bottom a:hover {
  color: var(--mh-sage);
}

/* ============================================================
   RESPONSIVE — Bootstrap-style breakpoints
   sm  ≥ 576px     md  ≥ 768px     lg  ≥ 992px
   xl  ≥ 1200px    xxl ≥ 1400px
   We use max-width (mobile-first overrides) for legacy targets,
   and min-width to lock the wrap container width.
   ============================================================ */

/* ---- WRAP container: Bootstrap-style fluid → fixed widths ---- */
.wrap {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 576px) {
  .wrap {
    max-width: 540px;
    padding-inline: 16px;
  }
}
@media (min-width: 768px) {
  .wrap {
    max-width: 720px;
    padding-inline: 20px;
  }
}
@media (min-width: 992px) {
  .wrap {
    max-width: 960px;
    padding-inline: 24px;
  }
}
@media (min-width: 1200px) {
  .wrap {
    max-width: 1140px;
    padding-inline: 32px;
  }
}
@media (min-width: 1400px) {
  .wrap {
    max-width: 1360px;
    padding-inline: 40px;
  }
}

/* The promo bar and header share the same wrap, so they line up
   horizontally with the rest of the page automatically.          */

/* ============================================================
   ≤ 1199.98px   (below xl)
   ============================================================ */
@media (max-width: 1199.98px) {
  .philosophy__panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr) minmax(0, 0.78fr);
  }
  .philosophy__text {
    padding: 38px 30px 38px 34px;
  }
  .values {
    padding: 38px 32px 38px 0;
    gap: 22px;
  }
  .philosophy__text h2 {
    font-size: clamp(28px, 3.2vw, 38px);
  }

  .hero__overlay {
    padding: 0 56px;
  }
  .hero__content {
    max-width: 480px;
  }

  /* logo + nav need a bit more breathing room when content is narrower */
  .header__inner {
    height: 96px;
  }
  .logo img {
    height: 72px;
  }
  .nav {
    gap: 28px;
  }
  .nav a {
    font-size: 14px;
  }
}

/* ============================================================
   ≤ 991.98px   (below lg) — tablet
   ============================================================ */
@media (max-width: 991.98px) {
  /* Nav -> burger */
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }

  /* Hero proportions: taller relative to width on tablet */
  .hero__viewport {
    aspect-ratio: 1000 / 540;
  }
  .hero__overlay {
    padding: 0 40px;
  }
  .hero__content {
    max-width: 440px;
    padding: 12px 0 70px;
  }
  .hero__title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 26px;
  }

  /* Features: 3 columns */
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  /* Collections / Club / Journal / Footer collapses */
  .collections__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .club__card {
    grid-template-columns: 1fr;
  }
  .club__media {
    min-height: 280px;
  }
  .journal__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer__top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1/-1;
    padding-right: 0;
  }
  .footer__bottom {
    grid-template-columns: 1fr 1fr;
  }
  .footer__bottom span:first-child {
    padding-right: 0;
  }

  /* Philosophy two-column layout (image + text+values) */
  .philosophy__panel {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
  }
  .philosophy__media {
    grid-row: 1 / 3;
  }
  .philosophy__text {
    padding: 34px 30px 16px;
  }
  .values {
    padding: 0 30px 34px;
    grid-column: 2;
  }
}

/* ============================================================
   ≤ 767.98px   (below md) — mobile landscape & small tablets
   ============================================================ */
@media (max-width: 767.98px) {
  .header__inner {
    height: 84px;
  }

  .hero__viewport {
    aspect-ratio: 4 / 5;
  }
  .hero__overlay {
    padding: 0 24px;
    align-items: flex-start;
  }
  .hero__overlay::before {
    /* On portrait crops we need a heavier veil on the top half */
    background: linear-gradient(180deg, rgba(247, 243, 237, 0.9) 0%, rgba(247, 243, 237, 0.6) 35%, rgba(247, 243, 237, 0.05) 70%);
  }
  .hero__content {
    max-width: 100%;
    padding: 36px 0 90px;
  }
  .hero__title {
    font-size: clamp(26px, 7vw, 34px);
    margin-bottom: 22px;
  }
  .hero__cta {
    height: 48px;
    padding: 0 20px;
    font-size: 12.5px;
  }

  .hero__nav {
    width: 38px;
    height: 38px;
    bottom: 22px;
  }
  .hero__nav--prev {
    left: 14px;
  }
  .hero__nav--next {
    right: 14px;
  }
  .hero__dots {
    bottom: 30px;
    gap: 8px;
  }
  .hero__dot {
    width: 9px;
    height: 9px;
  }

  /* Features: 2 columns */
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .feat-card__body {
    padding: 28px 8px 16px;
  }
  .feat-card__icon {
    width: 46px;
    height: 46px;
  }
  .feat-card__icon svg {
    width: 22px;
    height: 22px;
  }
  .feat-card__title {
    font-size: 13px;
  }

  .promo__left span {
    display: none;
  }
  .collections__grid {
    grid-template-columns: 1fr;
  }

  .philosophy__panel {
    grid-template-columns: 1fr;
  }
  .philosophy__media {
    min-height: 260px;
    grid-row: auto;
  }
  .philosophy__text {
    padding: 28px 22px 18px;
  }
  .values {
    padding: 0 22px 30px;
    grid-column: auto;
    flex-direction: column;
  }

  .club__benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .club__intro,
  .club__form {
    padding: 32px 24px;
  }

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

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__bottom {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }

  /* Section heading + CTA wrap to two rows when the row is too tight */
  .section-head {
    flex-wrap: wrap;
    gap: 10px 16px;
  }
  .section-head h2 {
    font-size: 24px;
  }
  body {
    font-size: 16px;
  }
  .section-head .link-cta {
    font-size: 11.5px;
  }

  .hero__btns {
    flex-direction: column;
  }
  .hero__btns .btn {
    width: 100%;
  }
}

/* ============================================================
   ≤ 575.98px   (below sm) — small mobile
   ============================================================ */
@media (max-width: 575.98px) {
  .hero__title {
    font-size: clamp(24px, 8vw, 30px);
  }
  .hero__content {
    padding: 28px 0 80px;
  }

  /* Single-column card menu on tiny screens */
  .features__grid {
    grid-template-columns: 1fr;
  }
  .feat-card {
    flex-direction: row;
    align-items: stretch;
  }
  .feat-card__media {
    aspect-ratio: 16 / 10;
    flex: 0 0 45%;
  }
  .feat-card__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px 14px 36px;
  }
  .feat-card__icon {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
  }
  .feat-card__title {
    font-size: 14px;
  }
}

/* ============================================================
   ≥ 1400px   (xxl) — hero locks at 1400px wide, centered
   The hero already has max-width: 1400px, this just adds
   a soft side bleed so the locked frame doesn't feel abrupt.
   ============================================================ */
@media (min-width: 1400px) {
  .hero {
    border-radius: 0;
  }
}

/* ============================================================
   EMOTION BANNER — Editorial card with image
   Background image on the right, text content on the left
   inside a soft cream card with rounded corners.
   ============================================================ */
.emotion-banner {
  padding: 28px 0 16px;
}
.emotion-banner__card {
  position: relative;
  /* Baby Blue — summer/gentle block (Brand System v3.0) */
  background: linear-gradient(135deg, var(--mh-baby-blue) 0%, #e7f0f5 60%, var(--mh-cream) 100%);
  border: 1px solid #c9dce8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
  min-height: 240px;
}
.emotion-banner__content {
  position: relative;
  z-index: 2;
  padding: 40px 44px 40px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.emotion-banner__eyebrow {
  margin-bottom: 16px;
}
.emotion-banner__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 18px;
}
.emotion-banner__lead {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 26px;
  max-width: 36ch;
}
.emotion-banner__cta {
  align-self: flex-start;
  color: var(--ink);
}
.emotion-banner__media {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}
.emotion-banner__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Soft gradient that fades the photo into the cream text panel so
   the seam doesn't read as a hard cut on wide screens. */
.emotion-banner__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #e2edf3 0%, rgba(226, 237, 243, 0.55) 12%, rgba(226, 237, 243, 0) 32%);
  pointer-events: none;
  z-index: 1;
}

/* Emotion banner responsive */
@media (max-width: 991.98px) {
  .emotion-banner__card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    min-height: 220px;
  }
  .emotion-banner__content {
    padding: 32px 28px;
  }
}
@media (max-width: 767.98px) {
  .emotion-banner__card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .emotion-banner__content {
    padding: 28px 24px 26px;
    order: 2;
  }
  .emotion-banner__media {
    order: 1;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .emotion-banner__media::before {
    background: linear-gradient(180deg, rgba(226, 237, 243, 0) 60%, #e2edf3 100%);
  }
  .emotion-banner__lead {
    font-size: 15px;
    margin-bottom: 22px;
  }
}

/* ============================================================
   POPULAR PRODUCTS — Horizontal slider of product cards
   • outer slider: native scroll + scroll-snap, arrow controls,
     touch swipe is native, hidden scrollbar
   • peek effect: the card after the last visible one shows a
     fragment so the user knows there's more
   • breakpoints control how many cards are visible:
       ≥1200px  5      992–1199px  4
       576–991  3      <576        2
   ============================================================ */
.popular {
  padding: 18px 0 30px;
}
.popular .section-head {
  margin-bottom: 22px;
}
.popular__slider {
  position: relative;
}
.popular__track {
  --pp-gap: 16px;
  --pp-visible: 5;
  --pp-peek: 56px;

  display: flex;
  gap: var(--pp-gap);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* small bottom padding so card lift-on-hover shadow isn't clipped */
  padding-bottom: 6px;
  /* tiny side padding so first/last card don't kiss the arrow */
  padding-inline: 2px;
  margin-inline: -2px;
  outline: none;
}
.popular__track::-webkit-scrollbar {
  display: none;
}

/* Per-breakpoint visible cards + peek values are tuned for
   pleasant proportions, not just math. */
@media (max-width: 1199.98px) {
  .popular__track {
    --pp-visible: 4;
    --pp-peek: 50px;
  }
}
@media (max-width: 991.98px) {
  .popular__track {
    --pp-visible: 3;
    --pp-peek: 44px;
    --pp-gap: 14px;
  }
}
@media (max-width: 575.98px) {
  .popular__track {
    --pp-visible: 2;
    --pp-peek: 32px;
    --pp-gap: 12px;
  }
}

/* ---- Product card ---- */
.product {
  flex: 0 0 calc((100% - var(--pp-visible) * var(--pp-gap) - var(--pp-peek)) / var(--pp-visible));
  scroll-snap-align: start;
  background: #fcfcfa;
  border: 1px solid var(--beige);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px rgba(64, 59, 55, 0.28);
  border-color: var(--line);
}

/* ---- Product media (image carousel inside the card) ---- */
.product__media {
  position: relative;
  aspect-ratio: 1 / 1.18;
  overflow: hidden;
  background: var(--warm-cream);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
/* Inner swipe-capture zone: a transparent rectangle exactly half
   the width and half the height of the image, centred. Created
   by JS (popular-products.js) when each card's carousel inits.
   `touch-action: pan-y` is the load-bearing piece — it tells the
   browser to keep vertical page-scroll alive but to stop handling
   horizontal panning here, so a horizontal swipe inside the rect
   drives only this card's image carousel and never bleeds into
   the outer popular-products scroller. Outside the rect, swipes
   propagate to the outer slider as before. */
.product__swipe-zone {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 50%;
  height: 50%;
  z-index: 1; /* above the image, below dots/badge/fav (z-index 2) */
  touch-action: pan-y;
  background: transparent;
}
.product__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.product__track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Favourite (heart) icon */
.product__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  z-index: 2;
  color: var(--graphite);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.product__fav:hover {
  background: #fff;
  color: var(--mh-sage);
  transform: scale(1.04);
}
.product__fav.is-active {
  color: var(--mh-sage);
}
.product__fav.is-active svg {
  fill: var(--mh-sage);
  stroke: var(--mh-sage);
}

/* Sale / "new" badge — soft rose, not loud red */
.product__badge {
  position: absolute;
  bottom: 14px;
  left: 12px;
  z-index: 2;
  background: var(--rose);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 5px;
}
.product__badge--new {
  background: var(--mh-sage);
  color: var(--mh-text-primary); /* v3 sage is lighter — dark text for contrast */
}

/* Image carousel dots (inside media) */
.product__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(64, 59, 55, 0.18);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.product__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    width 0.2s ease;
}
.product__dot.is-active {
  background: #fff;
  width: 16px;
  border-radius: 3px;
}
.product__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---- Product body (price, title, rating, CTA) ---- */
.product__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}
.product__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.product__price-current {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--mh-text-primary);
  letter-spacing: 0;
  white-space: nowrap;
}
.product__price-old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  white-space: nowrap;
}
.product__title {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* reserve two lines so card heights line up even with short titles */
  min-height: calc(13.5px * 1.4 * 2);
}
.product__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--ink);
  margin-top: 2px;
}
.product__star {
  color: var(--mh-pink);
  flex: none;
}
.product__rating-value {
  font-weight: 600;
}
.product__rating-count {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 400;
}
.product__buy {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--mh-sage);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  height: 44px;
  border-radius: var(--radius-btn);
  transition: background 0.25s ease;
  padding: 0 14px;
  width: 100%;
}
.product__buy:hover {
  background: var(--sage-dark);
}
.product__buy svg {
  flex: none;
  stroke: currentColor;
}

/* ---- Outer slider navigation arrows ---- */
.popular__nav {
  position: absolute;
  /* vertical centre roughly halfway down the image area
     (cards are ~1.18 portrait, body adds ~135px) */
  top: 36%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--graphite);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(64, 59, 55, 0.14);
  z-index: 5;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
  transform: translateY(-50%);
}
.popular__nav:hover {
  background: #fff;
  transform: translateY(calc(-50% - 1px));
}
.popular__nav:focus-visible {
  outline: 2px solid var(--mh-sage);
  outline-offset: 3px;
}
.popular__nav--prev {
  left: -10px;
}
.popular__nav--next {
  right: -10px;
}
.popular__nav.is-disabled {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .popular__nav {
    width: 38px;
    height: 38px;
  }
  .popular__nav--prev {
    left: -4px;
  }
  .popular__nav--next {
    right: -4px;
  }
}
@media (max-width: 575.98px) {
  /* on tiny screens swipe is the primary affordance —
     keep arrows but pull them inside so they don't clip */
  .popular__nav--prev {
    left: 0;
  }
  .popular__nav--next {
    right: 0;
  }
  .product__body {
    padding: 12px 12px 14px;
  }
  .product__price-current {
    font-size: 16px;
  }
  .product__buy {
    height: 40px;
    font-size: 11.5px;
    letter-spacing: 0.06em;
  }
  .product__buy span {
    /* keep label even on small — bag icon stays as cue */
  }
}

/* ============================================================
   READY SOLUTIONS — single wide featured card ("Вечерний дом")
   ============================================================ */
.ready-solutions {
  padding: 8px 0 28px;
}
.ready-solutions .section-head {
  margin-bottom: 20px;
}
.solution-hero {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  min-height: 360px;
  background: #3a2e26;
  isolation: isolate;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.solution-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(58, 46, 38, 0.5);
}
.solution-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.solution-hero__media img,
.solution-hero__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* veil that fades from left so headline stays legible regardless of image */
.solution-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(95deg, rgba(35, 26, 20, 0.85) 0%, rgba(35, 26, 20, 0.6) 28%, rgba(35, 26, 20, 0.18) 52%, rgba(35, 26, 20, 0) 70%);
}
.solution-hero__content {
  position: relative;
  z-index: 2;
  max-width: 460px;
  padding: 56px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.solution-hero__content h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: #fff;
}
.solution-hero__content p {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34ch;
  margin-bottom: 8px;
}
.solution-hero__content .btn {
  align-self: flex-start;
}

/* ============================================================
   BRAND CARDS — 4 feature cards (Why / Club / Journal / Materials)
   ============================================================ */
.brand-cards {
  padding: 8px 0 28px;
}
.brand-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bc {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 32px 30px 30px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  background: #faf5ef;
  border: 1px solid var(--mh-line);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.bc:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -20px rgba(64, 59, 55, 0.25);
}
.bc h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.15;
  color: var(--mh-text-primary);
  margin-bottom: 14px;
  max-width: 18ch;
  position: relative;
  z-index: 2;
}
.bc p,
.bc ul {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--mh-text-secondary);
  max-width: 26ch;
  position: relative;
  z-index: 2;
}
.bc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.bc ul li {
  position: relative;
  padding-left: 18px;
}
.bc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mh-sage);
}
.bc--club ul li::before {
  background: var(--mh-dusty-rose);
  border: 2px solid #fff;
  width: 11px;
  height: 11px;
  left: -2px;
  top: 5px;
}
.bc__cta {
  margin-top: auto;
  padding-top: 22px;
  position: relative;
  z-index: 2;
}
.bc__cta .btn {
  height: 44px;
  padding: 0 22px;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.bc__art {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Variant fills (brand pastels per v3) */
.bc--why {
  background: linear-gradient(180deg, #fbf6ef 0%, #f7f1e8 100%);
}
.bc--why .bc__art {
  right: -10px;
  bottom: -10px;
  width: 60%;
  max-width: 220px;
  opacity: 0.55;
}
.bc--club {
  background: linear-gradient(180deg, #f6dde1 0%, #efc9d0 100%);
  border-color: #e8c6cc;
}
.bc--club h3,
.bc--club p {
  color: var(--mh-text-primary);
}
.bc--club .bc__art {
  right: -20px;
  bottom: -20px;
  width: 65%;
  max-width: 220px;
}
.bc--journal {
  background: linear-gradient(180deg, #fbf6ef 0%, #f6efe5 100%);
}
.bc--journal .bc__art {
  right: -10px;
  bottom: -8px;
  width: 62%;
  max-width: 220px;
}
.bc--materials {
  background: linear-gradient(180deg, #fbf6ef 0%, #f3ebde 100%);
}
.bc--materials .bc__art {
  right: -10px;
  bottom: -10px;
  width: 65%;
  max-width: 220px;
}

/* ============================================================
   INSPIRATION — 3 image cards + app promo card
   ============================================================ */
.inspiration {
  padding: 8px 0 64px;
}
.inspiration .section-head {
  margin-bottom: 22px;
}
.inspiration__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.4fr;
  gap: 18px;
}
.insp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mh-line);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  text-decoration: none;
  color: var(--mh-text-primary);
}
.insp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -20px rgba(64, 59, 55, 0.25);
}
.insp-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.insp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.insp-card:hover .insp-card__media img {
  transform: scale(1.03);
}
.insp-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.insp-card__body h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--mh-text-primary);
  letter-spacing: -0.005em;
}
.insp-card__body p {
  font-size: 14px;
  color: var(--mh-text-secondary);
  line-height: 1.5;
}

/* App card (dusty-rose tile) */
.app-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #f3d8df 0%, #ecc2cd 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 10px;
  padding: 0px 32px 0px 36px;
  align-items: stretch;
  color: var(--mh-text-primary);
  min-height: 100%;
}
.app-card__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.app-card__text h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.15;
  color: var(--mh-text-primary);
  max-width: 14ch;
}
.app-card__text p {
  font-size: 15px;
  color: var(--mh-text-primary);
  opacity: 0.78;
  line-height: 1.5;
  max-width: 28ch;
}
.app-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}
.app-card__badges a {
  display: inline-flex;
  transition: transform 0.2s ease;
}
.app-card__badges a:hover {
  transform: translateY(-2px);
}
.app-card__badges img {
  height: 46px;
  width: auto;
  display: block;
}
.app-card__phone {
  position: relative;
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 220px;
  margin-bottom: -32px;
  margin-right: -10px;
}
.app-card__phone img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 30px rgba(120, 60, 80, 0.25));
}

/* ============================================================
   NEW BLOCKS — Responsive (Bootstrap-style breakpoints)
   xxl ≥1400 | xl ≥1200 | lg ≥992 | md ≥768 | sm ≥576 | xs <576
   ============================================================ */
@media (max-width: 1199.98px) {
  /* xl- */
  .solution-hero {
    min-height: 320px;
  }
  .solution-hero__content {
    padding: 44px 44px;
    max-width: 420px;
  }
  .brand-cards__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .bc {
    min-height: 280px;
  }
  /* inspiration: 3 photo cards in row, app card full-width below */
  .inspiration__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .inspiration__grid .app-card {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    padding: 32px 32px 28px 36px;
  }
  .app-card__phone {
    max-width: 240px;
    margin-bottom: -28px;
  }
}
@media (max-width: 991.98px) {
  /* lg- */
  .solution-hero {
    min-height: 280px;
  }
  .solution-hero::before {
    background: linear-gradient(95deg, rgba(35, 26, 20, 0.88) 0%, rgba(35, 26, 20, 0.55) 50%, rgba(35, 26, 20, 0.1) 80%);
  }
  .solution-hero__content {
    padding: 36px 36px;
    max-width: 380px;
  }
  .inspiration__grid {
    grid-template-columns: 1fr 1fr;
  }
  .inspiration__grid .app-card {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767.98px) {
  /* md- */
  .solution-hero {
    min-height: 0;
  }
  .inspiration__grid .app-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    padding: 28px 26px 0;
    text-align: left;
  }
  .solution-hero::before {
    background: linear-gradient(180deg, rgba(35, 26, 20, 0.85) 0%, rgba(35, 26, 20, 0.5) 60%, rgba(35, 26, 20, 0.2) 100%);
  }
  .solution-hero__media {
    position: relative;
    aspect-ratio: 16 / 9;
  }
  .solution-hero__content {
    position: absolute;
    inset: 0;
    padding: 28px 26px;
    max-width: 100%;
    gap: 12px;
  }
  .solution-hero__content p {
    font-size: 15px;
  }
  .brand-cards__grid {
    grid-template-columns: 1fr;
  }
  .bc {
    min-height: 240px;
    padding: 28px 24px;
  }
  .bc--why .bc__art,
  .bc--club .bc__art,
  .bc--journal .bc__art,
  .bc--materials .bc__art {
    max-width: 180px;
    width: 50%;
  }
  .inspiration__grid {
    grid-template-columns: 1fr;
  }
  .app-card__phone {
    max-width: 200px;
    margin: 6px auto -28px;
    justify-self: center;
  }
  .app-card__badges img {
    height: 42px;
  }
}
@media (max-width: 575.98px) {
  /* sm- (xs) */
  .ready-solutions,
  .brand-cards,
  .inspiration {
    padding-left: 0;
    padding-right: 0;
  }
  .solution-hero__content h3 {
    font-size: clamp(26px, 7vw, 32px);
  }
  .insp-card__body h3 {
    font-size: 20px;
  }
}

/* ============================================================
   SIZE PICKER MODAL
   Opens from product "В корзину" buttons.
   ============================================================ */
.size-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.size-modal.is-open {
  display: flex;
}
.size-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(64, 59, 55, 0.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: sm-fade 0.22s ease;
}
.size-modal__panel {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  padding: 34px 36px 30px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 70px rgba(64, 59, 55, 0.25);
  animation: sm-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
@keyframes sm-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes sm-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.size-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.size-modal__close:hover {
  background: var(--warm-cream);
  color: var(--graphite);
}
.size-modal__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 3.4vw, 30px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 32px 12px 0;
}
.size-modal__product {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.4;
}
.size-modal__guide {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px dashed var(--muted);
  padding-bottom: 1px;
  margin-bottom: 22px;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.size-modal__guide:hover {
  color: var(--graphite);
  border-color: var(--graphite);
}
.size-modal__sizes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
@media (max-width: 575.98px) {
  .size-modal__panel {
    padding: 28px 22px 24px;
    border-radius: 14px;
  }
  .size-modal__sizes {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}
.size-option {
  border: 1.5px solid var(--mh-line);
  border-radius: 10px;
  padding: 10px 4px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--white);
  color: var(--graphite);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
  font-family: var(--sans);
}
.size-option:hover {
  border-color: var(--mh-warm-stone);
}
.size-option:active {
  transform: translateY(1px);
}
.size-option.is-active {
  border-color: var(--mh-sage);
  background: var(--pink-soft);
}
.size-option__label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.size-option__dims {
  font-size: 12px;
  color: var(--muted);
}
.size-option.is-active .size-option__dims {
  color: var(--sage-dark);
}
.size-option:focus-visible {
  outline: 2px solid var(--mh-sage);
  outline-offset: 2px;
}
.size-modal__add {
  width: 100%;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--mh-sage);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  transition: background 0.25s ease;
}
.size-modal__add:hover {
  background: var(--sage-dark);
}
.size-modal__add svg {
  stroke: currentColor;
  flex: none;
}

body.no-scroll {
  overflow: hidden;
}

/* Prefer-reduced-motion: disable slide/fade animations everywhere */
@media (prefers-reduced-motion: reduce) {
  .product__track,
  .popular__track,
  .size-modal__backdrop,
  .size-modal__panel {
    transition: none !important;
    animation: none !important;
  }
}

/* ============================================================
   2026-06-15 UI refinement
   Bright pink is reserved exclusively for the cart counter.
   Buttons use a warm cream fill and a thin warm-stone outline.
   Responsive ranges follow Bootstrap breakpoints exactly.
   ============================================================ */
.bag-badge {
  background: #e5007d;
  color: #fff;
}

.btn,
.btn--primary,
.btn--outline,
.size-modal__add {
  background: rgba(247, 243, 237, 0.94);
  color: var(--mh-text-primary);
  border: 0px solid var(--mh-warm-stone);
  border-radius: 10px;
  box-shadow: none;
}
.btn:hover,
.btn--primary:hover,
.btn--outline:hover,
.size-modal__add:hover {
  background: var(--mh-card);
  color: var(--mh-text-primary);
  border-color: var(--mh-sage);
}
.product__buy {
  min-height: 46px;
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 14px;
  font-weight: 500;

  background: #fefefe;
  color: var(--mh-pink);
  border: 1px solid var(--mh-pink);
  border-radius: 10px;
  box-shadow: none;
}
.product__buy:hover {
  background: #fbefef;
}

.size-modal__add svg {
  color: var(--mh-sage-logo);
}
.hero__cta {
  background: var(--mh-sage);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav a:hover,
.nav a.is-active,
.mobile-nav a.is-active,
.eyebrow {
  color: var(--mh-sage);
}
.link-cta {
  color: var(--mh-pink);
}
.nav a.is-active::after,
.hero__dot.is-active,
.consent input:checked,
.bc ul li::before {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--mh-sage);
}
.product__fav:hover,
.product__fav.is-active {
  color: var(--mh-sage);
}
.product__fav.is-active svg {
  fill: var(--mh-sage);
  stroke: var(--mh-sage);
}
.field:focus,
.size-option.is-active {
  border-color: var(--mh-sage);
}
.size-option.is-active {
  background: var(--sage-soft);
}

/* xs: <576px */
@media (max-width: 575.98px) {
  .btn,
  .product__buy,
  .size-modal__add {
    width: 100%;
  }
}
/* sm: >=576px and <768px */
@media (min-width: 576px) and (max-width: 767.98px) {
}
/* md: >=768px and <992px */
@media (min-width: 768px) and (max-width: 991.98px) {
}
/* lg: >=992px and <1200px */
@media (min-width: 992px) and (max-width: 1199.98px) {
}
/* xl: >=1200px and <1400px */
@media (min-width: 1200px) and (max-width: 1399.98px) {
}
/* xxl: >=1400px */
@media (min-width: 1400px) {
}
