/* ============================================================
   CONCRETE PASSION — STYLESHEET v2
   Brandbook v4.1 · Neue Montreal + Manrope · Mobile-first
   ============================================================ */

/* === 0. FONTS === */
@font-face {
  font-family: 'Neue Montreal';
  src: url('../assets/fonts/NeueMontreal-Regular.woff2') format('woff2'),
       url('../assets/fonts/NeueMontreal-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Montreal';
  src: url('../assets/fonts/NeueMontreal-Medium.woff2') format('woff2'),
       url('../assets/fonts/NeueMontreal-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Montreal';
  src: url('../assets/fonts/NeueMontreal-Bold.woff2') format('woff2'),
       url('../assets/fonts/NeueMontreal-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope-Regular-cyrillic.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope-Medium-cyrillic.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* === 1. DESIGN TOKENS === */
:root {
  /* Brandbook v4 palette */
  --clr-bg:        #1F1F1F;   /* Graphite Deep — основной фон */
  --clr-surface:   #2A2A2A;   /* Warm Anthracite — карточки, шторы */
  --clr-surface-2: #4F4B46;   /* Dark Concrete — elevated */
  --clr-surface-3: #6E6A66;   /* Raw Concrete — hover */
  --clr-text:      #D6D2C8;   /* Warm Light — основной текст */
  --clr-muted:     #9A9690;   /* Raw Concrete Light — вторичный текст */
  --clr-accent:    #5B6463;   /* Dusty Steel — акцент */
  --clr-deep:      #1C2F56;   /* Deep Ocean — редкий акцент */
  --clr-border:    #2A2A2A;   /* Warm Anthracite — разделители */
  --clr-green:     #5B6463;   /* Dusty Steel — бейдж «В наличии» */
  --clr-img-bg:    #D6D2C8;   /* Warm Light — подложка под фото */

  /* Brandbook v4 fonts */
  --ff:      'Neue Montreal', system-ui, sans-serif;
  --ff-body: 'Manrope', system-ui, sans-serif;

  --fs-xs:   0.72rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  2rem;
  --fs-4xl:  2.75rem;
  --fs-5xl:  3.75rem;

  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.25rem;  --sp-6: 1.5rem;
  --sp-8: 2rem;     --sp-10: 2.5rem;  --sp-12: 3rem;
  --sp-16: 4rem;    --sp-20: 5rem;    --sp-24: 6rem;

  --max-w: 1280px;
  --gutter: 1.25rem;
  --header-h: 64px;
  --transition: 200ms ease;
  --transition-slow: 380ms cubic-bezier(.4,0,.2,1);
}

/* === 2. RESET === */
*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* === 3. UTILITIES === */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* === 4. TYPOGRAPHY === */
h1,h2,h3,h4 { font-family: var(--ff); font-weight: 300; line-height: 1.12; letter-spacing: -0.02em; }

.section-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: var(--sp-4);
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  margin-bottom: var(--sp-8);
  letter-spacing: -0.02em;
}

/* === 5. BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.9rem 2rem;
  font-family: var(--ff);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  touch-action: manipulation;
  min-height: 48px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), opacity var(--transition),
              transform var(--transition);
}
/* Primary: light on dark */
.btn--primary { background: var(--clr-text); color: var(--clr-bg); }
.btn--primary:hover { background: #fff; }
.btn--primary:active { transform: scale(0.98); }

/* Outline: bordered, matches dark bg */
.btn--outline { background: transparent; color: var(--clr-text); border: 1px solid rgba(237,232,223,0.3); }
.btn--outline:hover { background: var(--clr-text); color: var(--clr-bg); border-color: var(--clr-text); }

/* Same as outline — used on dark backgrounds */
.btn--outline-white { background: transparent; color: var(--clr-text); border: 1px solid rgba(237,232,223,0.35); }
.btn--outline-white:hover { background: var(--clr-text); color: var(--clr-bg); }

.btn--ghost {
  background: transparent;
  color: var(--clr-muted);
  padding-inline: 0;
  border-bottom: 1px solid transparent;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
}
.btn--ghost:hover { color: var(--clr-text); border-bottom-color: var(--clr-muted); }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn--loading { pointer-events: none; opacity: 0.6; }

/* === 6. HEADER === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition-slow), box-shadow var(--transition-slow),
              transform var(--transition-slow);
}
/* On homepage: transparent over hero */
.header--transparent { background: transparent; }
/* Default + after scroll */
.header--solid {
  background: var(--clr-bg);
  box-shadow: 0 1px 0 var(--clr-border);
}
.header--hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  font-family: var(--ff);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-text);
  transition: opacity var(--transition);
  z-index: 1;
}
.logo:hover { opacity: 0.7; }

.header__nav { display: none; gap: var(--sp-8); align-items: center; }
.nav-link {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  transition: color var(--transition);
  padding-block: var(--sp-2);
}
.nav-link:hover { color: var(--clr-text); }

.header__right { display: flex; align-items: center; gap: var(--sp-3); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  transition: color var(--transition);
  min-height: 44px;
  padding: var(--sp-2);
}
.cart-btn:hover { color: var(--clr-text); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: var(--clr-text);
  color: var(--clr-bg);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--transition);
}
.cart-count.visible { opacity: 1; }

/* Burger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: var(--sp-2);
  color: var(--clr-muted);
}
.nav-toggle__line {
  display: block;
  width: 22px; height: 1px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.nav-toggle.open .nav-toggle__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open .nav-toggle__line:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* === 7. MOBILE NAV === */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--clr-bg);
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  padding-inline: var(--gutter);
  padding-bottom: var(--sp-8);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  margin-top: var(--sp-10);
}
.mobile-nav__link {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--clr-text);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--transition);
}
.mobile-nav__link:hover { color: var(--clr-muted); }
.mobile-nav__footer { margin-top: auto; color: var(--clr-muted); font-size: var(--fs-sm); }

/* === 8. HERO === */
.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  display: flex;
  align-items: flex-start;
  padding-top: calc(var(--header-h) + var(--sp-10));
  padding-bottom: var(--sp-12);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__bg {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.38);
  transform: scale(1.02);
}
/* Dark gradient at top for text readability, fades toward bottom */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22, 20, 15, 0.72) 0%,
    rgba(22, 20, 15, 0.40) 55%,
    rgba(22, 20, 15, 0.15) 100%
  );
}
/* Foreground layer hidden — lamp lives in background only */
.hero__fg { display: none; }
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero__eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(237,232,223,0.45);
  margin-bottom: var(--sp-6);
}
.hero__title {
  font-size: clamp(2.5rem, 10vw, 7rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--clr-text);
  margin-bottom: var(--sp-4);
}
.hero__sub {
  font-size: var(--fs-base);
  font-weight: 300;
  color: rgba(214,210,200,0.7);
  margin-bottom: var(--sp-8);
  max-width: 100%;
  line-height: 1.65;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* === 9. SECTIONS — tonal progression, no harsh jumps === */
.section { padding-block: var(--sp-12); }
.section--lg { padding-block: var(--sp-16); }

/* Barely-perceptible lift from base */
.section--surface { background: var(--clr-surface); }

.section__header { margin-bottom: var(--sp-12); }
.section__header--row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* === 10. CATEGORIES === */
.categories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
.category-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: block;
  border-radius: 12px;
}
.category-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
  transition: transform 800ms ease, filter 600ms ease;
}
.category-card:hover .category-card__img { transform: scale(1.04); filter: brightness(0.95); }
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22,20,15,0.72) 0%, transparent 55%);
}
.category-card__label {
  position: absolute;
  bottom: var(--sp-6);
  left: var(--sp-6);
}
.category-card__name {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--clr-text);
}
.category-card__count {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(237,232,223,0.5);
  margin-top: var(--sp-1);
}

/* === 11. PRODUCT GRID === */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2) var(--sp-3);
}

/* === 12. PRODUCT CARD === */
.product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: var(--sp-3);
}
.product-card--hidden { display: none !important; }

.product-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--clr-img-bg); /* warm off-white — product rests on neutral surface */
  border-radius: 12px;
}
.product-card__image-wrap .carousel {
  position: absolute;
  inset: 0;
}
.product-card__image-wrap .carousel__slide {
  position: relative;
  overflow: hidden;
}
.product-card__image-wrap .carousel__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Legacy single-image fallback */
.product-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.product-card__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 400ms ease;
}
.product-card:hover .product-card__img--main { transform: scale(1.03); }
.product-card:hover .product-card__img--hover { opacity: 1; }

/* Badge */
.product-card__badge {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--clr-bg);
  color: var(--clr-text);
  padding: 3px var(--sp-3);
  z-index: 2;
}
.badge--in-stock::before, .badge--order::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge--in-stock::before { background: var(--clr-green); }
.badge--order::before { background: var(--clr-muted); }

.product-card__name {
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.product-card__material {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--clr-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: -var(--sp-1);
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: var(--sp-2);
}
.product-card__price { font-size: var(--fs-lg); font-weight: 400; }
.product-card__action {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  transition: color var(--transition);
  flex-shrink: 0;
}
.product-card:hover .product-card__action { color: var(--clr-text); }

/* === 13. CAROUSEL (on product cards) === */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 420ms cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.carousel__slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--clr-img-bg);
  user-select: none;
  -webkit-user-drag: none;
}

/* Dots */
.carousel__dots {
  position: absolute;
  bottom: var(--sp-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
}
.carousel__dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(237,232,223,0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 280ms ease, background 280ms ease, border-radius 280ms ease;
  touch-action: manipulation;
  flex-shrink: 0;
}
.carousel__dot.active {
  width: 18px;
  border-radius: 3px;
  background: var(--clr-text);
}

/* Arrow buttons — visible on hover */
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  touch-action: manipulation;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(22,20,15,0.7);
  color: var(--clr-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 3;
  border: 1px solid rgba(237,232,223,0.15);
}
.carousel__btn--prev { left: var(--sp-2); }
.carousel__btn--next { right: var(--sp-2); }
.product-card__image-wrap:hover .carousel__btn { opacity: 1; }

/* === 14. ABOUT TEASER === */
.about-teaser__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.about-teaser__media { overflow: hidden; aspect-ratio: 4/3; border-radius: 12px; }
.about-teaser__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform 900ms ease;
}
.about-teaser__media:hover img { transform: scale(1.03); }
.about-teaser__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  line-height: 1.2;
}
.about-teaser__text {
  color: var(--clr-muted);
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: var(--sp-8);
}

/* === 14b. ABOUT AUTHOR === */
.about-author { background: var(--clr-surface); }
.about-author__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.about-author__photo {
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 320px;
  margin-inline: auto;
  width: 100%;
  border-radius: 12px;
}
.about-author__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(15%) contrast(1.05);
  transition: transform 900ms ease;
}
.about-author__photo:hover img { transform: scale(1.03); }
.about-author__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
  line-height: 1.2;
}
.about-author__text {
  color: var(--clr-muted);
  font-size: var(--fs-lg);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: var(--sp-6);
}

/* === 15. ORDER CTA BAND — slightly lifted dark surface === */
.order-cta {
  background: var(--clr-surface-2);
  padding-block: var(--sp-16);
  text-align: center;
}
.order-cta__title {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--sp-5);
}
.order-cta__sub {
  color: var(--clr-muted);
  font-size: var(--fs-lg);
  font-weight: 300;
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
  line-height: 1.7;
}

/* === 16. NEWSLETTER — back to base === */
.newsletter { padding-block: var(--sp-12); text-align: center; }
.newsletter__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}
.newsletter__sub { color: var(--clr-muted); font-weight: 300; margin-bottom: var(--sp-8); }
.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 500px;
  margin-inline: auto;
}
.newsletter__input {
  width: 100%; height: 52px;
  padding-inline: var(--sp-5);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--clr-border);
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--clr-text);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter__input:focus { border-color: var(--clr-accent); }
.newsletter__input::placeholder { color: var(--clr-muted); }

/* === 17. FOOTER — same dark as base === */
.footer {
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  padding-block: var(--sp-12);
  color: var(--clr-muted);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
}
.footer__logo {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-text);
  margin-bottom: var(--sp-3);
}
.footer__desc { font-size: var(--fs-sm); font-weight: 300; line-height: 1.7; max-width: 260px; }
.footer__heading {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-4);
}
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__link { font-size: var(--fs-sm); font-weight: 300; color: var(--clr-muted); transition: color var(--transition); }
.footer__link:hover { color: var(--clr-text); }
.footer__bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 300;
}
.footer__social { display: flex; gap: var(--sp-5); }
.footer__social-link { color: var(--clr-muted); font-size: var(--fs-sm); transition: color var(--transition); }
.footer__social-link:hover { color: var(--clr-text); }

/* === 18. CART DRAWER === */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(22,20,15,0.7);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
  backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 201;
  width: min(420px, 100vw);
  background: var(--clr-surface);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overscroll-behavior: contain;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-6) var(--sp-6) var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  flex-shrink: 0;
}
.cart-drawer__title { font-size: var(--fs-xl); font-weight: 400; letter-spacing: -0.01em; }
.cart-close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--clr-muted);
  transition: color var(--transition);
}
.cart-close:hover { color: var(--clr-text); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-6); }

.cart-empty { text-align: center; padding-block: var(--sp-16); color: var(--clr-muted); }
.cart-empty__icon { font-size: 2rem; margin-bottom: var(--sp-4); opacity: 0.2; }
.cart-empty__text { margin-bottom: var(--sp-6); font-weight: 300; }

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
  align-items: start;
}
.cart-item__img {
  width: 72px; height: 72px;
  object-fit: cover;
  background: var(--clr-img-bg);
  flex-shrink: 0;
}
.cart-item__info { display: flex; flex-direction: column; gap: var(--sp-1); }
.cart-item__name { font-size: var(--fs-base); font-weight: 400; }
.cart-item__material { font-size: var(--fs-xs); color: var(--clr-muted); font-weight: 400; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-2); }
.cart-item__price { font-size: var(--fs-base); font-weight: 500; }
.cart-item__remove {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  text-decoration: underline;
  transition: color var(--transition);
  font-weight: 400;
}
.cart-item__remove:hover { color: var(--clr-text); }

.cart-drawer__footer {
  padding: var(--sp-6);
  border-top: 1px solid var(--clr-border);
  flex-shrink: 0;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-5);
}
.cart-total__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-muted); }
.cart-total__price { font-size: var(--fs-2xl); font-weight: 300; }
.cart-note { font-size: var(--fs-xs); color: var(--clr-muted); text-align: center; margin-top: var(--sp-3); line-height: 1.5; font-weight: 300; }

/* === 19. PRODUCT MODAL === */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(22,20,15,0.7);
  z-index: 200;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
  backdrop-filter: blur(2px);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.product-modal {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 201;
  width: min(460px, 100vw);
  background: var(--clr-surface);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.product-modal.open { transform: translateX(0); }

.product-modal__bar {
  position: sticky; top: 0; z-index: 2;
  background: var(--clr-surface);
  display: flex;
  justify-content: flex-end;
  padding: var(--sp-3) var(--sp-4);
}
.modal-close {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  color: var(--clr-muted);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color var(--transition), color var(--transition);
}
.modal-close:hover { border-color: var(--clr-accent); color: var(--clr-text); }

/* Modal gallery */
.modal-gallery { flex-shrink: 0; }
.modal-gallery__main {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--clr-img-bg);
  transition: opacity 200ms ease;
}
.modal-gallery__thumbs {
  display: flex;
  gap: 2px;
  padding: 2px 0 0;
}
.modal-gallery__thumb {
  flex: 1;
  max-width: 100px;
  aspect-ratio: 1/1;
  overflow: hidden;
  opacity: 0.45;
  border: 2px solid transparent;
  transition: opacity var(--transition), border-color var(--transition);
  cursor: pointer;
}
.modal-gallery__thumb.active {
  opacity: 1;
  border-color: var(--clr-text);
}
.modal-gallery__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.product-modal__layout {
  display: flex;
  flex-direction: column;
}
.product-modal__gallery {
  flex-shrink: 0;
  position: relative;
  width: calc(100% - var(--sp-10));
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--clr-img-bg);
  margin: var(--sp-4) auto 0;
  border-radius: 12px;
}
.product-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery carousel */
.gallery-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.gallery-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}
.gallery-carousel__slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}
.gallery-carousel__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  touch-action: manipulation;
  background: rgba(31, 31, 31, 0.72);
  border: 1px solid rgba(214, 210, 200, 0.18);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
  color: var(--clr-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-carousel:hover .gallery-carousel__btn { opacity: 1; }
.gallery-carousel__btn:hover { background: rgba(31, 31, 31, 0.92); }
.gallery-carousel__btn--prev { left: var(--sp-3); }
.gallery-carousel__btn--next { right: var(--sp-3); }
.gallery-carousel__dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  pointer-events: none;
}
.gallery-carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  pointer-events: all;
  transition: background 0.2s;
  padding: 0;
}
.gallery-carousel__dot.active { background: rgba(255, 255, 255, 0.95); }
.product-modal__body { padding: var(--sp-5) var(--sp-5) var(--sp-12); }
.product-modal__badge { margin-bottom: var(--sp-5); display: inline-flex; }
.product-modal__name {
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}
.product-modal__material {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.product-modal__price {
  font-size: var(--fs-3xl);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}
.product-modal__lead {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--clr-muted);
  margin-bottom: var(--sp-6);
}
.product-modal__lead::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--clr-muted);
  flex-shrink: 0;
}
.product-modal__desc {
  color: var(--clr-muted);
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: var(--sp-8);
}
.product-modal__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4) var(--sp-6);
  padding-block: var(--sp-6);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--sp-8);
}
.spec__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--clr-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-1);
}
.spec__value { font-size: var(--fs-sm); font-weight: 400; overflow-wrap: break-word; }
.product-modal__actions { display: flex; flex-direction: column; gap: var(--sp-3); }
.product-modal__contact {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  margin-top: var(--sp-3);
}
.product-modal__contact a { text-decoration: underline; }

/* Sticky mobile CTA */
.modal-sticky-cta {
  display: none;
  position: sticky;
  bottom: 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: var(--sp-4) var(--sp-6);
  z-index: 3;
}

/* === 20. TOAST === */
.toast {
  position: fixed;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--clr-text);
  color: var(--clr-bg);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* === 21. PAGE HERO (inner pages) === */
.page-hero {
  padding-top: calc(var(--header-h) + var(--sp-16));
  padding-bottom: var(--sp-10);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: var(--sp-8);
}
.page-hero__title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: var(--sp-3);
}
.page-hero__sub { color: var(--clr-muted); font-size: var(--fs-lg); font-weight: 300; }

/* === 22. FILTER BAR === */
.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  padding-block: var(--sp-3);
  margin-bottom: var(--sp-10);
}
.filter-bar__scroll {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.filter-bar__scroll::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding-inline: var(--sp-4);
  font-family: var(--ff);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  color: var(--clr-muted);
  background: transparent;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
.filter-chip:hover { border-color: var(--clr-accent); color: var(--clr-text); }
.filter-chip.active { background: var(--clr-text); border-color: var(--clr-text); color: var(--clr-bg); }

.catalog-count { font-size: var(--fs-xs); font-weight: 500; color: var(--clr-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--sp-6); }
.catalog-empty { text-align: center; padding-block: var(--sp-20); color: var(--clr-muted); }
.catalog-empty__text { margin-bottom: var(--sp-4); }

/* === 23. ORDER PAGE === */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-16);
}
.step {
  padding: var(--sp-8);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.step:hover { border-color: var(--clr-accent); }
.step__num {
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--clr-muted);
  line-height: 1;
  margin-bottom: var(--sp-5);
  user-select: none;
}
.step__title { font-size: var(--fs-xl); font-weight: 400; letter-spacing: -0.01em; margin-bottom: var(--sp-3); }
.step__desc { color: var(--clr-muted); font-size: var(--fs-sm); font-weight: 300; line-height: 1.75; }

/* Form */
.order-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-12); align-items: start; }
.form-title { font-size: var(--fs-3xl); font-weight: 300; letter-spacing: -0.02em; margin-bottom: var(--sp-8); }
.field { margin-bottom: var(--sp-6); }
.field__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: var(--sp-2);
}
.field__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--clr-muted);
  padding: var(--sp-3) 0;
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--clr-text);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.field__input:focus { border-color: var(--clr-accent); }
.field__input::placeholder { color: var(--clr-border); }
.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover,
.field__input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--clr-surface) inset;
  -webkit-text-fill-color: var(--clr-text);
  caret-color: var(--clr-text);
  transition: background-color 5000s ease-in-out 0s;
}
/* Fix for date/select visibility on dark */
.field__input option { background: var(--clr-surface-3); color: var(--clr-text); }
.field__input.is-error { border-color: #b85c5c; }
textarea.field__input { resize: none; height: 120px; }
.field__error { display: block; font-size: var(--fs-xs); color: #c07070; margin-top: var(--sp-2); min-height: 1em; }
.files-list { margin-top: var(--sp-3); }
.file-item { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) 0; border-bottom: 1px solid var(--clr-border); font-size: var(--fs-sm); color: var(--clr-text); }
.file-item__icon { flex-shrink: 0; }
.file-item__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item__remove { background: none; border: none; color: var(--clr-muted); cursor: pointer; font-size: 1.2em; padding: 0 var(--sp-1); line-height: 1; transition: color var(--transition); }
.file-item__remove:hover { color: #c07070; }
.field--row { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.upload-area {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border: 1px dashed var(--clr-border);
  cursor: pointer;
  transition: border-color var(--transition);
  position: relative;
}
.upload-area:hover { border-color: var(--clr-accent); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 1.25rem; opacity: 0.3; flex-shrink: 0; }
.upload-text { font-size: var(--fs-sm); color: var(--clr-muted); }
.upload-hint { font-size: var(--fs-xs); color: var(--clr-border); }
.form-actions { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-8); }
.form-note { font-size: var(--fs-xs); color: var(--clr-muted); font-weight: 300; }
.consent-label { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--clr-muted); cursor: pointer; line-height: 1.5; }
.consent-label input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; accent-color: var(--clr-accent); width: 16px; height: 16px; cursor: pointer; }
.consent-label a { color: var(--clr-text); text-decoration: underline; }
.newsletter__consent { font-size: var(--fs-xs); color: var(--clr-muted); margin-top: var(--sp-3); font-weight: 300; }
.newsletter__consent a { color: var(--clr-muted); text-decoration: underline; }
.form-success { display: none; text-align: center; padding: var(--sp-12) var(--sp-8); border: 1px solid var(--clr-border); }
.form-success.visible { display: block; }
.form-success__icon { font-size: 2rem; margin-bottom: var(--sp-4); color: var(--clr-green); }
.form-success__title { font-size: var(--fs-3xl); font-weight: 300; letter-spacing: -0.02em; margin-bottom: var(--sp-4); }
.form-success__text { color: var(--clr-muted); font-size: var(--fs-lg); font-weight: 300; }

/* Order sidebar */
.order-sidebar { display: flex; flex-direction: column; gap: var(--sp-5); }
.order-sidebar__card { padding: var(--sp-6); border: 1px solid var(--clr-border); }
.order-sidebar__title { font-size: var(--fs-lg); font-weight: 400; letter-spacing: -0.01em; margin-bottom: var(--sp-4); }
.order-sidebar__list { display: flex; flex-direction: column; gap: var(--sp-4); }
.order-sidebar__item { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-sm); font-weight: 300; color: var(--clr-muted); }
.order-sidebar__item-icon { flex-shrink: 0; color: var(--clr-border); margin-top: 2px; }

/* FAQ */
.faq { border-top: 1px solid var(--clr-border); }
.faq__item { border-bottom: 1px solid var(--clr-border); }
.faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  text-align: left;
  padding-block: var(--sp-5);
  font-size: var(--fs-lg);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--clr-text);
  gap: var(--sp-4);
  cursor: pointer;
  touch-action: manipulation;
}
.faq__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--clr-border);
  color: var(--clr-muted);
  font-size: 1rem;
  font-weight: 300;
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}
.faq__item.open .faq__icon { transform: rotate(45deg); border-color: var(--clr-accent); color: var(--clr-text); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 420ms ease; }
.faq__item.open .faq__a { max-height: 400px; }
.faq__a-inner { padding-bottom: var(--sp-5); color: var(--clr-muted); font-size: var(--fs-base); font-weight: 300; line-height: 1.8; }

/* === 23b. PRIVACY PAGE === */
.privacy-section {
  margin-bottom: var(--sp-12);
}
.privacy-section h2 {
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--clr-border);
}
.privacy-section p {
  color: var(--clr-muted);
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}
.privacy-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  padding-left: var(--sp-4);
}
.privacy-section ul li {
  color: var(--clr-muted);
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.8;
}
.privacy-section ul li::before {
  content: '—';
  margin-right: var(--sp-2);
  color: var(--clr-border);
}
.privacy-section a { text-decoration: underline; color: var(--clr-muted); }
.privacy-section a:hover { color: var(--clr-text); }

/* === 24. NOT FOUND === */
.not-found {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--sp-8);
}
.not-found__num {
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--clr-border);
}
.not-found__title { font-size: var(--fs-3xl); font-weight: 300; letter-spacing: -0.02em; margin-bottom: var(--sp-4); }
.not-found__text { color: var(--clr-muted); font-weight: 300; margin-bottom: var(--sp-8); }
.not-found__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* === 25. RESPONSIVE: TABLET 768px+ === */
@media (min-width: 768px) {
  :root { --gutter: 2rem; --header-h: 72px; }

  .header__nav { display: flex; }
  .nav-toggle { display: none; }

  /* Restore section padding */
  .section { padding-block: var(--sp-20); }
  .section--lg { padding-block: var(--sp-24); }
  .newsletter { padding-block: var(--sp-20); }

  /* Hero: restore desktop spacing */
  .hero { padding-bottom: var(--sp-16); }
  .hero__sub { font-size: var(--fs-lg); max-width: 380px; }

  .categories__grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
  .category-card { aspect-ratio: 1/1; }

  .products-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
  .product-card__name { font-size: var(--fs-base); }

  .about-teaser__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-20); }
  .about-teaser__media { aspect-ratio: auto; height: 580px; }

  .about-author__inner { grid-template-columns: 1fr 1.4fr; gap: var(--sp-20); }
  .about-author__photo { max-width: none; margin-inline: 0; aspect-ratio: auto; height: 580px; }

  .order-cta { padding-block: var(--sp-24); }

  .newsletter__form { flex-direction: row; }
  .newsletter__input { flex: 1; }

  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }

  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .field--row { grid-template-columns: 1fr 1fr; }
  .order-layout { grid-template-columns: 1.4fr 1fr; gap: var(--sp-16); }

  .modal-sticky-cta { display: none !important; }
}

/* === 26. RESPONSIVE: DESKTOP 1024px+ === */
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }

  /* Hero: lamp shows in full on the right, text on the left */
  .hero__bg {
    object-fit: contain;
    object-position: right center;
    filter: brightness(0.65);
    transform: none;
    /* Mask transitions across the visible image: edge starts at near-zero opacity,
       grows to full on the right — no visible boundary between photo and bg */
    -webkit-mask-image: linear-gradient(to right, transparent 40%, black 100%);
            mask-image: linear-gradient(to right, transparent 40%, black 100%);
  }
  /* Solid dark on text side; lamp side gets only the light overlay */
  .hero__overlay {
    background: linear-gradient(
      to right,
      var(--clr-bg) 0%,
      rgba(22, 20, 15, 0.78) 38%,
      rgba(22, 20, 15, 0.20) 65%,
      transparent 90%
    );
  }
}

/* === 27. LANDSCAPE MOBILE — hero fits without scrolling === */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 360px;
    height: 100svh;
    padding-top: calc(var(--header-h) + var(--sp-4));
    padding-bottom: var(--sp-6);
  }
  .hero__title { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hero__eyebrow { margin-bottom: var(--sp-3); }
  .hero__sub { margin-bottom: var(--sp-4); }
  .hero__actions { gap: var(--sp-2); }
}

/* === 28. FOCUS === */
:focus-visible { outline: 1px solid var(--clr-accent); outline-offset: 3px; }

/* === 29. REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* === 30. MOBILE STICKY MODAL CTA === */
@media (max-width: 767px) {
  .modal-sticky-cta { display: block; }
  .product-modal__actions { display: none; }
  .product-modal__body { padding-bottom: var(--sp-4); }

  /* Gallery не больше 42% экрана на маленьких телефонах */
  .product-modal__gallery { max-height: 42vh; }

  /* На тач-устройствах стрелки всегда немного видны */
  .gallery-carousel__btn { opacity: 0.65; }
}
