/* ═══════════════════════════════════════════════
   SECTIONS — Brands, About, Quality, CTA, Footer
═══════════════════════════════════════════════ */

/* (Shared bg removed) */

/* ══════════════════════════════════════════════
   CERTIFICATES — Framed A4 wall gallery + lightbox
══════════════════════════════════════════════ */
.certificates .sec-header {
  text-align: center;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
}
.certificates .sec-label { justify-content: center; }
.certificates .sec-desc { margin-left: auto; margin-right: auto; }

/* ── Wall (2 frames, centered) ── */
.cert-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 320px));
  justify-content: center;
  gap: 64px;
  max-width: 760px;
  margin: 0 auto;
}

/* ── Frame ── */
.cert-frame {
  cursor: pointer;
  outline: none;
}

.cert-frame__mat {
  background: var(--warm-white);
  border: 1px solid var(--border-d);
  border-radius: var(--radius);
  padding: 20px 20px 26px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.cert-frame:hover .cert-frame__mat,
.cert-frame:focus-visible .cert-frame__mat {
  transform: translateY(-8px);
  border-color: var(--green);
  box-shadow: 0 24px 48px rgba(0,0,0,0.14);
}

/* A4 portrait ratio: 210 × 297 mm */
.cert-frame__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  background: #fff;
  border-radius: calc(var(--radius) - 6px);
  box-shadow: inset 0 0 0 1px var(--border-d);
}
.cert-frame__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.cert-frame:hover .cert-frame__img,
.cert-frame:focus-visible .cert-frame__img { transform: scale(1.05); }

/* Placeholder shown only if the certificate image is missing */
.cert-frame__placeholder {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  background: linear-gradient(150deg, var(--cream-2), var(--warm-white));
  color: var(--text-3);
  text-align: center; padding: 24px;
}
.cert-frame__placeholder svg { width: 30px; height: 30px; opacity: 0.5; }
.cert-frame__placeholder span {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
}

/* Zoom hint icon, appears on hover */
.cert-frame__zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(10,9,7,0.55); backdrop-filter: blur(6px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.85);
  transition: var(--transition);
  pointer-events: none;
}
.cert-frame:hover .cert-frame__zoom,
.cert-frame:focus-visible .cert-frame__zoom { opacity: 1; transform: scale(1); }

.cert-frame__label {
  display: block; margin-top: 16px; text-align: center;
  font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-3);
}

/* ── Lightbox (click to enlarge) ── */
.cert-lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(10,9,7,0.94);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.cert-lightbox.open { opacity: 1; pointer-events: all; }

.cert-lightbox__stage {
  position: relative;
  max-width: min(88vw, 620px);
  max-height: 78vh;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  transform: scale(0.94) translateY(14px);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
}
.cert-lightbox.open .cert-lightbox__stage { transform: scale(1) translateY(0); }

.cert-lightbox__img {
  max-width: 100%; max-height: 78vh;
  width: auto; height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 32px 88px rgba(0,0,0,0.55);
}

.cert-lightbox__caption {
  margin-top: 22px;
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

.cert-lightbox__close,
.cert-lightbox__nav {
  position: fixed; z-index: 10;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.cert-lightbox__close:hover,
.cert-lightbox__nav:hover { background: rgba(255,255,255,0.18); color: #fff; }

.cert-lightbox__close {
  top: 24px; right: 24px;
  width: 44px; height: 44px;
}
.cert-lightbox__nav {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
}
.cert-lightbox__nav--prev { left: 24px; }
.cert-lightbox__nav--next { right: 24px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .cert-wall { gap: 32px; max-width: 520px; grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .cert-frame__mat { padding: 14px 14px 20px; }
}

@media (max-width: 600px) {
  .cert-wall {
    grid-template-columns: minmax(0, 280px);
    gap: 40px;
  }

  .cert-lightbox { padding: 24px 16px 100px; }
  .cert-lightbox__stage { max-width: 92vw; max-height: 70vh; }
  .cert-lightbox__img { max-height: 70vh; }
  .cert-lightbox__close { top: 16px; right: 16px; width: 40px; height: 40px; }
  .cert-lightbox__nav { width: 44px; height: 44px; }
  .cert-lightbox__nav--prev { left: 8px; }
  .cert-lightbox__nav--next { right: 8px; }
  .cert-lightbox__caption { font-size: 11px; margin-top: 16px; }
}

/* ══ BRANDS (BENTO) ══ */
.brands { 
  background: #F5F3EE;
  padding: 100px 0 64px;
  position: relative;
}

.brands .container {
  max-width: 1040px;
}

/* ── Brands editorial header ── */
.brands-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  margin-bottom: 0;
}

.brands-header__left {
  flex-shrink: 0;
}

.brands-header__title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  color: #1A1A1A;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0;
}

.brands-header__title em {
  font-style: italic;
  font-weight: 300;
  color: #5C6B4A;
}

.brands-header__right {
  max-width: 320px;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.brands-header__desc {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #8C8680;
  line-height: 1.65;
  margin: 0;
}

.brands-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

/* Scroll reveal utility */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Base card */
.bento-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bento-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

/* Width: wide cells span 2 columns */
.bento-card--wide {
  grid-column: span 2;
}

/* Graphic zone at the top of each card */
.bento-card__graphic {
  flex-shrink: 0;
  margin-bottom: 24px;
  height: 72px;
  display: flex;
  align-items: flex-end;
}

.bento-card__graphic svg {
  max-height: 72px;
  width: auto;
}

/* Right-aligned graphic (for Zdorovya) */
.bento-card__graphic--right {
  justify-content: flex-end;
}

/* ── Road Track Row (Between bento rows) ── */
.bento-road-row {
  grid-column: 1 / -1; /* span all 3 columns */
  position: relative;
  width: 100%;
  height: 32px; /* thinner row */
  margin: 12px 0;
  overflow: hidden;
}

.bento-road-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: #E2DDD8;
  border-top: 1px solid #D0CAC4;
}

.bento-road-markings {
  position: absolute;
  top: 50%;
  left: -50px;
  right: -50px;
  height: 1.5px;
  background: repeating-linear-gradient(90deg, #C4BEB8 0px, #C4BEB8 16px, transparent 16px, transparent 28px);
  animation: markScroll 0.9s linear infinite;
}

@keyframes markScroll {
  to { transform: translateX(-28px); }
}

.bento-truck {
  position: absolute;
  bottom: 2px;
  left: 0;
  will-change: transform;
  transform: translateZ(0); /* Force GPU acceleration */
}

.bento-truck--1 {
  height: 36px;
  width: 132px;
  animation: driveTruck1 4.8s linear infinite;
}

.bento-truck--2 {
  height: 30px;
  width: 100px;
  bottom: 4px;
  opacity: 0.8;
  animation: driveTruck2 7.2s linear infinite;
  animation-delay: -3.5s;
}

@keyframes driveTruck1 {
  from { transform: translateX(1100px); }
  to   { transform: translateX(-150px); }
}

@keyframes driveTruck2 {
  from { transform: translateX(1100px); }
  to   { transform: translateX(-120px); }
}

/* Meta block: label + title + desc */
.bento-card__meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Small uppercase category label — olive color like in screenshot */
.bento-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7A8C6A;
  margin-bottom: 10px;
  display: block;
}

/* Bold title */
.bento-card__title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

/* Muted description */
.bento-card__desc {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #7A7570;
  line-height: 1.55;
  max-width: 90%;
}

/* Quality card: no graphic, content fills from top */
.bento-card--quality {
  justify-content: flex-end;
}

/* ── Responsive Bento ── */
@media (max-width: 992px) {
  .brands-bento {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .bento-card--wide {
    grid-column: 1 / -1;
  }
  .bento-card {
    min-height: 200px;
    padding: 24px;
  }
  .bento-card__desc {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .brands { padding: 72px 0 48px; }
  .brands-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 32px;
  }
  .brands-header__right {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .brands-bento { grid-template-columns: 1fr; }
  .bento-card {
    min-height: auto;
    padding: 24px 20px;
  }
  .bento-card__graphic {
    height: 56px;
    margin-bottom: 18px;
  }
  .bento-card__graphic svg {
    max-height: 56px;
  }
}

@media (max-width: 400px) {
  .brands { padding: 56px 0 36px; }
  .bento-card { padding: 20px 16px; }
  .bento-card__title { font-size: 18px; }
}

/* ══ ABOUT (Fullscreen Parallax) ══ */
.about { 
  background: var(--black); 
  position: sticky; 
  top: -80vh; /* Stops scrolling when bottom reaches bottom of screen */
  z-index: 1;
  padding: 0; 
  height: 180vh; /* Reduced scroll distance for the animation */
}
.about__sticky-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  clip-path: inset(0 0 0 0); /* Crucial for containing the sticky element */
}
.about__media {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  clip-path: inset(20vh 15vw round 40px); /* Premium window reveal effect */
  will-change: clip-path;
  transform: none; /* No scale, just clip */
}
.about__media-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.about__media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 18, 15, 0.95) 0%, rgba(20, 18, 15, 0.6) 50%, rgba(20, 18, 15, 0.2) 100%);
  opacity: 0; /* Adjusted by JS */
  will-change: opacity;
}

.about__content-wrap {
  position: relative; z-index: 2;
  color: white;
  padding-top: 40vh; /* Reduced gap before text appears */
  padding-bottom: 120px;
}
.about__text-block {
  max-width: 1000px;
  margin: 0 auto;
  scroll-margin-top: 100px; /* Offset for fixed header when navigating via #about */
}
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 64px;
}

.about__desc p { font-size: 20px; font-weight: 300; color: rgba(255,255,255,0.95); margin-bottom: 32px; line-height: 1.7; letter-spacing: 0.2px; }
.about__desc strong { color: white; font-weight: 500; }

.about__timeline { margin-top: 56px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 40px; }
.timeline-item { display: flex; gap: 20px; align-items: baseline; padding: 20px 0; font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(255,255,255,0.1); }
.timeline-item:last-child { border: none; }
.timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; box-shadow: 0 0 10px rgba(140, 153, 112, 0.5); transform: translateY(-2px); }
.timeline-item strong { color: white; font-family: 'Cormorant Garant', serif; font-size: 22px; font-weight: 600; margin-right: 8px; }

.about__values { display: flex; flex-direction: column; gap: 32px; }
.value { display: flex; gap: 24px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.value:last-child { border: none; padding-bottom: 0; }
.value__num { font-family: 'Cormorant Garant', serif; font-size: 24px; color: var(--green); flex-shrink: 0; line-height: 1; padding-top: 6px; opacity: 0.8; }
.value strong { display: block; font-family: 'Cormorant Garant', serif; font-size: 28px; font-weight: 400; color: white; margin-bottom: 10px; letter-spacing: 0.5px; }
.value p { font-size: 16px; font-weight: 300; color: rgba(255,255,255,0.75); line-height: 1.6; }

/* ══ QUALITY — Full-Screen Horizontal Slider ══ */
.quality-grid-sec {
  /* Break out of any parent width constraints */
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 4;
}

/* ── Background images ── */
.q-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.q-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.q-bg-image.active {
  opacity: 1;
  transform: scale(1);
}

/* Main dark vignette — strong enough everywhere for text readability */
.q-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 5, 3, 0.72) 0%,
    rgba(6, 5, 3, 0.55) 35%,
    rgba(6, 5, 3, 0.55) 65%,
    rgba(6, 5, 3, 0.85) 100%
  );
  z-index: 2;
}

/* Extra scrim covering the bottom half where slide text lives */
.q-bg-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(4, 3, 1, 0.92) 0%, rgba(4, 3, 1, 0.55) 50%, transparent 100%);
  z-index: 3;
}

/* Radial dark scrim centred on the content block */
.q-bg-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 50% 60%,
    rgba(4, 3, 1, 0.50) 0%,
    transparent 70%
  );
  z-index: 3;
  pointer-events: none;
}

/* ── Arrows: absolutely positioned at far left & right edges ── */
.q-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.q-slider-arrow--prev { left: 32px; }
.q-slider-arrow--next { right: 32px; }

.q-slider-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.q-slider-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

/* ── Inner content wrapper: fills the section vertically ── */
.q-section-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 88px 120px 64px;
  text-align: center;
  box-sizing: border-box;
}

/* ── Top header ── */
.q-top-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.q-top-header .sec-label--light {
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.q-top-header .sec-title--light {
  margin-bottom: 0;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.95),
    0 4px 20px rgba(0, 0, 0, 0.8),
    0 8px 40px rgba(0, 0, 0, 0.5);
  font-size: clamp(38px, 5vw, 68px);
}

/* ── Slide container: all slides stacked, active is visible ── */
.quality-grid {
  position: relative;
  width: 100%;
  max-width: 1140px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Each slide: horizontal two-column row, centered ── */
.q-grid-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center; /* Center the whole block horizontally */
  width: 100%;
  gap: 48px; /* Space between icon and text */
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.q-grid-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Content block: number + title + description */
.q-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 640px;
}

/* Step badge */
.q-card-num {
  font-family: 'Cormorant Garant', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(210, 235, 185, 1);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 24px; /* Space before title */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Icon */
.q-card-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0; /* ensure the icon isn't squeezed by text */
  color: rgba(210, 235, 175, 1);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 20px rgba(0, 0, 0, 0.6));
}

.q-card-icon svg {
  width: 100%;
  height: 100%;
}

/* Title */
.q-card-title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.08;
  margin: 0 0 18px;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 4px 16px rgba(0, 0, 0, 0.8),
    0 8px 40px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.01em;
}

/* Description */
.q-card-text {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(255, 252, 245, 0.95);
  line-height: 1.8;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.95),
    0 2px 12px rgba(0, 0, 0, 0.85);
  font-weight: 400;
}

/* ── Dots ── */
.q-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  z-index: 5;
}

.q-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
/* Enlarge tap target without changing visual size */
.q-dot::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
}

.q-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.q-dot.active {
  width: 38px;
  background: #a8be88;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 14px rgba(168, 190, 136, 0.65);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .q-section-inner {
    padding: 80px 80px 56px;
  }
  .q-slider-arrow--prev { left: 20px; }
  .q-slider-arrow--next { right: 20px; }
  .q-card-left {
    padding-right: 36px;
    min-width: 120px;
  }
  .q-card-right {
    padding-left: 36px;
  }
  .q-card-icon {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 640px) {
  .quality-grid-sec {
    min-height: 100svh;
  }
  .q-section-inner {
    min-height: 100svh;
    padding: 80px 20px 48px;
  }
  .q-slider-arrow {
    width: 42px;
    height: 42px;
  }
  .q-slider-arrow--prev { left: 10px; }
  .q-slider-arrow--next { right: 10px; }
  /* Switch to vertical on mobile */
  .q-grid-card {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .q-card-icon {
    width: 60px;
    height: 60px;
  }
  .q-card-content {
    align-items: center;
    text-align: center;
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .q-section-inner {
    padding: 64px 16px 40px;
  }
  .q-top-header .sec-title--light {
    font-size: clamp(28px, 8vw, 40px);
  }
  .q-slider-arrow {
    width: 38px;
    height: 38px;
  }
  .q-card-icon {
    width: 48px;
    height: 48px;
  }
  .q-card-num {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 16px;
  }
  .q-card-title {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 12px;
  }
  .q-card-text {
    font-size: 13px;
    line-height: 1.65;
  }
  .q-card-content { padding: 0 8px; }
  .q-slider-dots { gap: 8px; }
}

@media (max-width: 360px) {
  .q-section-inner { padding: 56px 12px 32px; }
  .q-card-icon { width: 40px; height: 40px; }
  .q-slider-arrow { width: 34px; height: 34px; }
}

/* ══ CURTAIN REVEAL CONTAINER ══ */

.curtain-container {
  position: relative;
  z-index: 10;
  background: #0E0D0A; /* Dark background to match the new dark quality grid overlay */
}
.curtain-content {
  position: relative;
  z-index: 5;
  transform: scale(0.3);           /* Start tiny */
  transform-origin: center center; /* Grow from center of page outward */
  will-change: transform;
  border-radius: 24px;
  overflow: hidden;
}

/* ══ SPLIT SHOWCASE (CURTAIN) ══ */
.split-showcase {
  position: sticky; top: 0; width: 100%; height: 100vh; min-height: 600px;
  display: flex; overflow: hidden; background: transparent;
  z-index: 11; pointer-events: none;
}
.split-showcase.sticky-curtain {
  /* JS will toggle pointer-events so it doesn't block clicks when open */
}
.split-showcase__half {
  position: relative; width: 50%; height: 100%;
  overflow: hidden; will-change: transform;
  pointer-events: auto;
}

.split-showcase__img {
  position: absolute; width: 100vw; height: 100%; top: 0;
  background-size: cover; background-position: center;
  filter: saturate(1.1);
}
.split-showcase__half--left .split-showcase__img { left: 0; }
.split-showcase__half--right .split-showcase__img { right: 0; left: auto; }

.split-showcase__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.3);
}

.split-showcase__content {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 3; pointer-events: none; text-align: center; width: 100%;
  will-change: opacity, transform;
}
.split-showcase__title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(48px, 10vw, 130px); font-weight: 300; line-height: 0.95;
  color: white; letter-spacing: -2px; text-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.split-text-left, .split-text-right {
  display: inline-block;
  will-change: transform, opacity;
}
.split-showcase__title em { font-style: italic; color: rgba(255,255,255,0.85); }

/* ══ FOOTER — СПІВПРАЦЯ (centered, editorial) ══ */
.footer {
  --coop-accent: #35C8D6;
  background: var(--black);
  position: relative;
  z-index: 3;
}

.footer-coop {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-coop__logo {
  height: 30px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-coop__tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin-bottom: 32px;
}

.footer-coop__title {
  font-family: 'Cormorant Garant', serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--coop-accent);
  margin-bottom: 12px;
}
.footer-coop__title em { font-style: italic; font-weight: 300; }

.footer-coop__desc {
  max-width: 420px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-coop__icons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.footer-coop__icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  color: var(--coop-accent);
}
.footer-coop__icon svg { width: 20px; height: 20px; }

.footer-coop__cta {
  max-width: 400px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-coop__phone-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.footer-coop__phone {
  font-family: 'Cormorant Garant', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--coop-accent);
  letter-spacing: 0.5px;
}
.footer-coop__phone:hover { opacity: 0.75; }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; font-size: 12px; color: rgba(255,255,255,0.2);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 640px) {
  .footer-coop { padding: 40px 0 28px; }
  .footer-coop__tagline { margin-bottom: 28px; }
  .footer-coop__title { font-size: clamp(24px, 7vw, 30px); margin-bottom: 10px; }
  .footer-coop__desc { font-size: 12px; margin-bottom: 20px; }
  .footer-coop__br { display: none; }
  .footer-coop__icons { gap: 14px; margin-bottom: 20px; }
  .footer-coop__icon { width: 30px; height: 30px; }
  .footer-coop__icon svg { width: 18px; height: 18px; }
  .footer-coop__cta { font-size: 12px; margin-bottom: 12px; padding-top: 12px; }
  .footer-coop__phone { font-size: 17px; }
}

@media (max-width: 1024px) {
  .quality-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  /* About: reduce heavy typography before full mobile breakpoint */
  .about__grid { gap: 48px; }
  .about__desc p { font-size: 18px; }
}

@media (max-width: 768px) {
  /* About: disable complex sticky parallax, use simple layout */
  .about {
    position: relative;
    top: auto;
    height: auto;
    padding: 80px 0;
    background: var(--black);
  }
  .about__sticky-bg { display: none; }
  .about__content-wrap {
    padding-top: 0;
    padding-bottom: 0;
  }
  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__text-block { max-width: 100%; }

  .timeline-item { font-size: 15px; gap: 16px; }
  .timeline-item strong { font-size: 20px; }

  .value strong { font-size: 24px; }
  .value p { font-size: 15px; }

  /* Brands: horizontal scroll on mobile */
  .brands-grid { 
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start; 
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    padding: 32px 20px; 
    
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .brands-grid::-webkit-scrollbar { display: none; }
  
  .brand-card  { 
    flex: 0 0 85vw; 
    scroll-snap-align: center;
    padding: 40px 28px; 
    height: auto !important;
  }
}

@media (max-width: 768px) {
  /* Brands - slightly wider on small phones */
  .brand-card { flex: 0 0 85vw; }

  /* Split Showcase */
  .split-showcase { height: 70vh; }
  .split-showcase__title { font-size: clamp(36px, 8vw, 80px); }

  /* Quality */
  .quality-steps { grid-template-columns: 1fr; }

  /* Footer */
  .footer__top  { flex-direction: column; gap: 40px; padding: 56px 0 40px; }
  .footer__cols { flex-wrap: wrap; gap: 32px; }
  .footer__col  { min-width: 120px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 600px) {
  /* About fallback text */
  .about { padding: 64px 0; }
  .about__desc p { font-size: 15px; margin-bottom: 24px; }
  .about__grid   { gap: 40px; }
  .about__values { gap: 16px; }
  .about__timeline { margin-top: 40px; padding-top: 28px; }
  .timeline-item { padding: 16px 0; flex-wrap: wrap; }

  /* Quality on mobile — single column */
  .quality-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .q-grid-card { padding: 28px 20px; }
  .q-grid-card__num { font-size: 40px; margin-bottom: 16px; }

  /* Brands */
  .brand-card  { padding: 32px 20px; }
  .brand-card__watermark { font-size: 64px; }

  /* Split Showcase */
  .split-showcase { height: auto; flex-direction: column; }
  .split-showcase__half { width: 100% !important; height: 50vh; }
  .split-showcase__img { width: 100%; }
  .split-showcase__half--right .split-showcase__img { right: auto; left: 0; }
  .split-showcase__title { font-size: clamp(30px, 9vw, 56px); letter-spacing: -1px; }

  /* Footer */
  .footer__logo { font-size: 22px; }
  .footer__cols { gap: 24px; }
  .footer__col a, .footer__col span { font-size: 12px; }
}

@media (max-width: 400px) {
  .footer__cols { flex-direction: column; gap: 28px; }
  .footer__col { min-width: 0; }
  .footer__brand { max-width: 100%; }
  .footer__top { padding: 48px 0 32px; gap: 32px; }

  .split-showcase__half { height: 42vh; }

  .value { gap: 16px; }
  .value strong { font-size: 20px; }
  .value p { font-size: 14px; }

  .brand-card { padding: 28px 16px; }
}