/* =========================================================
   QAZ CLEAN — Фабрика стирки ковров в Астане
   Design system: Mineral Alabaster + Royal Cobalt (#0047B3)
   + Deep Sapphire Navy (#0B1F44) + Uniform Amber (#E87D22)
   Typography: Onest (extended Cyrillic + Kazakh)
   Mobile-first craft · GPU-safe silky motion · Zero 3D
   ========================================================= */

:root {
  --bg: #F6F8FC;
  --bg-alt: #EDF2FA;
  --surface: #FFFFFF;
  --surface-soft: #F0F5FF;
  --navy: #0B1F44;
  --navy-2: #132C5C;
  --blue: #0047B3;
  --blue-hover: #003A94;
  --blue-soft: #E5EFFF;
  --amber: #E87D22;
  --amber-soft: #FFF1E3;
  --ink: #0E1B33;
  --ink-2: #3A4B69;
  --muted: #617291;
  --line: rgba(14, 27, 51, 0.09);
  --line-strong: rgba(0, 71, 179, 0.22);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-xs: 0 2px 8px rgba(11, 31, 68, 0.05);
  --shadow-sm: 0 8px 24px rgba(11, 31, 68, 0.07);
  --shadow-md: 0 18px 42px rgba(11, 31, 68, 0.11);
  --shadow-lg: 0 28px 64px rgba(11, 31, 68, 0.16);
  --shadow-blue: 0 12px 28px rgba(0, 71, 179, 0.26);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --container: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}

.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;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #2A7FFF, var(--amber));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 120;
  pointer-events: none;
  will-change: transform;
}

/* =========================================================
   HEADER & MOBILE DRAWER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 10px 0;
  transition: padding 260ms var(--ease-out);
}

.site-header.scrolled { padding: 8px 0; }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px 8px 14px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 27, 51, 0.08);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(11, 31, 68, 0.06);
  transition: box-shadow 260ms var(--ease-out), background 260ms var(--ease-out);
}

.site-header.scrolled .header-bar {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(11, 31, 68, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 220ms var(--ease-out);
}

.brand:active .brand-mark { transform: scale(0.95); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}

.desktop-nav a:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover {
    background: var(--blue-soft);
    color: var(--blue);
  }
}

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

/* Bilingual RU / KZ segmented control */
.lang-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  background: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.lang-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--surface);
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(11, 31, 68, 0.1);
  transition: transform 240ms var(--ease-out);
  pointer-events: none;
}

.lang-switch[data-lang="kz"] .lang-thumb {
  transform: translateX(100%);
}

.lang-btn {
  position: relative;
  z-index: 1;
  min-width: 38px;
  min-height: 36px;
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  transition: color 180ms ease;
}

.lang-btn[aria-pressed="true"] { color: var(--blue); }

.btn.header-cta {
  display: none;
}

.burger-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: transform 160ms var(--ease-out), background 180ms ease;
}

.burger-btn:active { transform: scale(0.95); }

.burger-lines {
  width: 20px;
  height: 14px;
  position: relative;
}

.burger-lines span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 240ms var(--ease-out), opacity 180ms ease;
}

.burger-lines span:nth-child(1) { top: 0; }
.burger-lines span:nth-child(2) { top: 6px; width: 78%; }
.burger-lines span:nth-child(3) { top: 12px; }

.burger-btn[aria-expanded="true"] .burger-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger-btn[aria-expanded="true"] .burger-lines span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
.burger-btn[aria-expanded="true"] .burger-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .btn.header-cta { display: inline-flex; }
  .burger-btn { display: none; }
}

/* Mobile slide drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 68, 0.45);
  backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-out);
}

.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 10px; right: 10px; bottom: 10px;
  width: min(340px, calc(100vw - 20px));
  background: var(--surface);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(calc(100% + 24px));
  transition: transform 340ms var(--ease-drawer);
  overflow-y: auto;
}

.mobile-drawer.open { transform: translateX(0); }

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

.drawer-close {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: grid; place-items: center;
  color: var(--navy);
  transition: transform 160ms var(--ease-out);
}
.drawer-close:active { transform: scale(0.95); }

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 18px 0;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  transition: background 180ms ease, transform 160ms var(--ease-out);
}

.drawer-nav a:active { background: var(--blue-soft); transform: scale(0.98); }

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.drawer-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 160ms var(--ease-out), background 200ms ease, box-shadow 220ms var(--ease-out), border-color 200ms ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--blue);
  color: #FFFFFF;
  box-shadow: var(--shadow-blue);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 71, 179, 0.34);
  }
}

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-xs);
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background: var(--blue-soft);
    border-color: var(--blue);
    transform: translateY(-2px);
  }
}

.btn-whatsapp {
  background: #169C4B;
  color: #FFFFFF;
  box-shadow: 0 12px 26px rgba(22, 156, 75, 0.25);
}

@media (hover: hover) and (pointer: fine) {
  .btn-whatsapp:hover {
    background: #12853F;
    transform: translateY(-2px);
  }
}

.btn-sm {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 12px;
}

/* =========================================================
   HERO (COORDINATED ENTRANCE + MOBILE-FIRST COMPOSITION)
   ========================================================= */
.hero {
  padding: 18px 0 36px;
  position: relative;
}

@media (min-width: 1024px) {
  .hero { padding: 34px 0 56px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
  }
}

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

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.chip-star {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--amber);
  font-weight: 800;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 6.4vw, 56px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.hero-lead {
  margin: 0 0 22px;
  font-size: clamp(15.5px, 2.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin-bottom: 24px;
}

.hero-actions .btn {
  flex: 1 1 200px;
}

@media (min-width: 560px) {
  .hero-actions .btn { flex: 0 1 auto; }
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 540px;
}

.fact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: var(--shadow-xs);
}

.fact-val {
  display: block;
  font-size: clamp(16px, 3vw, 21px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.fact-lbl {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.25;
}

/* Hero visual showcase */
.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11;
}

@media (max-width: 640px) {
  .hero-frame {
    aspect-ratio: 4 / 3;
    border-radius: 24px;
  }
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms var(--ease-out);
}

body.is-ready .hero-frame img { transform: scale(1); }

.hero-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 31, 68, 0.04) 40%, rgba(11, 31, 68, 0.72) 100%);
  pointer-events: none;
}

.hero-overlay-card {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.overlay-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.overlay-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--amber);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.overlay-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.overlay-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.overlay-badge {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Coordinated Hero Entrance (single orchestrated sequence) */
.hero-stagger {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
body.is-ready .hero-stagger { opacity: 1; transform: translateY(0); }
body.is-ready .hero-stagger:nth-child(2) { transition-delay: 70ms; }
body.is-ready .hero-stagger:nth-child(3) { transition-delay: 140ms; }
body.is-ready .hero-stagger:nth-child(4) { transition-delay: 210ms; }
body.is-ready .hero-stagger:nth-child(5) { transition-delay: 270ms; }

.hero-visual.hero-stagger {
  transform: translateY(20px) scale(0.975);
  transition-delay: 140ms;
}
body.is-ready .hero-visual.hero-stagger { transform: translateY(0) scale(1); }

/* =========================================================
   INSTAGRAM HIGHLIGHTS BAR (АКТУАЛЬНЫЕ @qazclean)
   ========================================================= */
.highlights-section {
  padding: 6px 0 36px;
}

.highlights-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-xs);
}

@media (min-width: 768px) {
  .highlights-card { padding: 20px 24px; }
}

.highlights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.highlights-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.ig-handle-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: var(--blue-soft);
}

.highlights-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.highlights-rail::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .highlights-rail {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
  }
}

.hl-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 78px;
  transition: transform 200ms var(--ease-out);
}

.hl-item:active { transform: scale(0.95); }

@media (hover: hover) and (pointer: fine) {
  .hl-item:hover { transform: translateY(-3px); }
}

.hl-ring {
  width: 72px;
  height: 72px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #2A7FFF 55%, var(--amber));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(0, 71, 179, 0.16);
}

.hl-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--surface);
  overflow: hidden;
}

.hl-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hl-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.2;
}

/* =========================================================
   SECTIONS SHARED
   ========================================================= */
.section {
  padding: 48px 0;
}

@media (min-width: 1024px) {
  .section { padding: 72px 0; }
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  max-width: 680px;
}

@media (min-width: 768px) {
  .section-head { margin-bottom: 36px; }
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4.6vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.section-sub {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* Scroll reveal (smooth, subtle, GPU-only) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   INTERACTIVE BEFORE / AFTER COMPARISON (SIGNATURE MOMENT)
   ========================================================= */
.ba-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ba-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 960px) {
  .ba-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }
}

.ba-stage {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  box-shadow: var(--shadow-md);
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

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

.ba-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: #FFFFFF;
  box-shadow: 0 0 18px rgba(11, 31, 68, 0.45);
  pointer-events: none;
  z-index: 4;
}

.ba-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--blue);
  box-shadow: 0 8px 24px rgba(11, 31, 68, 0.34);
  display: grid;
  place-items: center;
  border: 2px solid var(--blue-soft);
  transition: transform 160ms var(--ease-out);
}

.ba-stage.dragging .ba-handle {
  transform: translate(-50%, -50%) scale(1.08);
}

.ba-pill {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.ba-pill-before {
  left: 14px;
  background: rgba(11, 31, 68, 0.76);
  color: #FFFFFF;
}

.ba-pill-after {
  right: 14px;
  background: rgba(0, 71, 179, 0.9);
  color: #FFFFFF;
}

.ba-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
}

.ba-cases {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ba-case-btn {
  text-align: left;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--bg);
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 200ms ease, border-color 200ms ease, transform 180ms var(--ease-out), box-shadow 200ms ease;
}

.ba-case-btn:active { transform: scale(0.985); }

.ba-case-btn.active {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.ba-thumb {
  width: 60px; height: 60px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}

.ba-case-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.ba-case-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.38;
}

.ba-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

/* =========================================================
   6-STAGE FACTORY PROCESS (TRUE SEQUENCE 01-06)
   ========================================================= */
.process-band {
  background: var(--navy);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.process-band .section-title { color: #FFFFFF; }
.process-band .section-sub { color: rgba(235, 243, 255, 0.78); }

.process-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}

@media (min-width: 960px) {
  .process-top {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
  }
}

.process-media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.process-shot {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.process-shot img {
  width: 100%; height: 100%; object-fit: cover;
}

.process-shot-cap {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(11, 31, 68, 0.78);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  color: #FFFFFF;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

.step-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 220ms ease, transform 220ms var(--ease-out), border-color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .step-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.26);
    transform: translateY(-3px);
  }
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: rgba(232, 125, 34, 0.18);
  color: #FFB46E;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.step-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
}

.step-text {
  margin: 0;
  font-size: 14px;
  color: rgba(226, 236, 255, 0.76);
  line-height: 1.5;
}

.guarantee-strip {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 71, 179, 0.45), rgba(232, 125, 34, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.guarantee-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
}

/* =========================================================
   INTERACTIVE CALCULATOR + OFFICIAL PRICE LIST
   ========================================================= */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 960px) {
  .calc-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
  }
}

.calc-card, .price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .calc-card, .price-card { padding: 28px; }
}

.calc-block {
  margin-bottom: 20px;
}

.calc-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.calc-val-pill {
  padding: 4px 10px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.carpet-types-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 560px) {
  .carpet-types-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.type-chip {
  text-align: left;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--bg);
  border: 1.5px solid transparent;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  transition: background 180ms ease, border-color 180ms ease, transform 150ms var(--ease-out);
}

.type-chip:active { transform: scale(0.97); }

.type-chip.active {
  background: var(--blue-soft);
  border-color: var(--blue);
}

.type-chip-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.type-chip-rate {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.area-range {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: var(--bg-alt);
  accent-color: var(--blue);
  cursor: pointer;
}

.area-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.preset-btn {
  min-height: 36px;
  padding: 5px 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}

.preset-btn:active { transform: scale(0.96); }
.preset-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #FFFFFF;
}

/* Segmented delivery vs self-drop */
.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-btn {
  padding: 12px 12px;
  border-radius: 14px;
  background: var(--bg);
  border: 1.5px solid transparent;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 150ms var(--ease-out);
}

.mode-btn:active { transform: scale(0.98); }
.mode-btn.active {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: var(--shadow-xs);
}

.mode-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}

.mode-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.mode-btn.active .mode-sub { color: var(--blue); font-weight: 600; }

.calc-result {
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 22px;
  padding: 20px;
  margin-top: 18px;
}

.calc-result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-total-label {
  font-size: 13.5px;
  color: rgba(232, 240, 255, 0.78);
}

.calc-total-sum {
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: opacity 180ms ease, transform 180ms var(--ease-out);
}

.calc-total-sum.pulse {
  transform: scale(1.04);
}

.calc-meta-note {
  margin: 10px 0 16px;
  font-size: 13px;
  color: rgba(232, 240, 255, 0.78);
  line-height: 1.45;
}

.calc-result .btn-primary {
  width: 100%;
  background: #FFFFFF;
  color: var(--navy);
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .calc-result .btn-primary:hover {
    background: var(--blue-soft);
    color: var(--blue);
  }
}

/* Price table */
.price-list {
  display: flex;
  flex-direction: column;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px dashed var(--line);
  border-radius: 12px;
  transition: background 180ms ease;
  cursor: pointer;
}

.price-row:last-child { border-bottom: none; }

@media (hover: hover) and (pointer: fine) {
  .price-row:hover { background: var(--bg); }
}

.price-row.selected { background: var(--blue-soft); }

.price-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.price-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-disclaimer {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--bg);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* =========================================================
   GALLERY + LIGHTBOX
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.gallery-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  box-shadow: var(--shadow-xs);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.gallery-card:active { transform: scale(0.98); }

@media (hover: hover) and (pointer: fine) {
  .gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
  .gallery-card:hover img { transform: scale(1.04); }
}

.gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 420ms var(--ease-out);
}

.gallery-cap {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(11, 31, 68, 0.72);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

/* =========================================================
   REVIEWS (VERIFIED 2GIS)
   ========================================================= */
.reviews-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reviews-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.rating-score {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) {
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.review-stars {
  display: inline-flex;
  gap: 3px;
  color: var(--amber);
}

.review-quote {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.55;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.review-name { font-weight: 700; color: var(--navy); }

/* =========================================================
   4 BRANCHES + REAL BUILDING PHOTO
   ========================================================= */
.branches-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 900px) {
  .branches-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
  }
}

.branch-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 540px) {
  .branch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.branch-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-xs);
  transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .branch-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
}

.branch-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.branch-addr {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.branch-note {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.branch-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
  min-height: 36px;
}

.building-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.building-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.building-photo img {
  width: 100%; height: 100%; object-fit: cover;
}

.building-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.building-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
}

.building-sub {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* =========================================================
   BOOKING FORM + CUSTOM ACCESSIBLE LISTBOX (NO NATIVE SELECT)
   ========================================================= */
.booking-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px 18px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 860px) {
  .booking-card {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 36px;
    gap: 40px;
  }
}

.booking-aside {
  background: var(--bg);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.booking-summary-box {
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px 16px;
}

.summary-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 4px;
}

.summary-text {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.field label, .field-lbl {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}

.input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 71, 179, 0.12);
}

textarea.input {
  min-height: 92px;
  resize: vertical;
}

/* Custom accessible combobox / listbox */
.picker {
  position: relative;
}

.picker-trigger {
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.picker-trigger[aria-expanded="true"] {
  background: var(--surface);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 71, 179, 0.12);
}

.picker-chevron {
  transition: transform 220ms var(--ease-out);
  color: var(--muted);
  flex-shrink: 0;
}

.picker-trigger[aria-expanded="true"] .picker-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

.picker-menu {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  z-index: 45;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.picker-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.picker-opt {
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 14px;
  transition: background 140ms ease;
}

.picker-opt:hover, .picker-opt.focused { background: var(--bg); }
.picker-opt[aria-selected="true"] {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.picker-opt-sub {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.form-feedback {
  display: none;
  padding: 12px 14px;
  border-radius: 13px;
  background: #E8F8EE;
  color: #0D6B33;
  font-size: 14px;
  font-weight: 600;
}
.form-feedback.show { display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(232, 240, 255, 0.8);
  padding: 40px 0 calc(96px + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(226, 236, 255, 0.58);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* =========================================================
   FIXED BOTTOM-RIGHT FLOATING CONTACT DOCK (STANDARD)
   ========================================================= */
.contact-dock {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 16px));
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  min-width: 236px;
  transform-origin: bottom right;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 240ms var(--ease-out);
}

.contact-dock.open .contact-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms var(--ease-out);
}

.contact-item:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .contact-item:hover { background: var(--blue-soft); }
}

.ci-ico {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.ci-wa { background: #19A851; }
.ci-tel { background: var(--blue); }
.ci-ig { background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF); }
.ci-map { background: #2BB647; }

.ci-sub {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.contact-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(0, 71, 179, 0.36);
  transition: transform 180ms var(--ease-out), background 200ms ease, box-shadow 220ms var(--ease-out);
}

.contact-fab:active { transform: scale(0.95); }

@media (hover: hover) and (pointer: fine) {
  .contact-fab:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
  }
}

.fab-icon-close { display: none; }
.contact-dock.open .fab-icon-open { display: none; }
.contact-dock.open .fab-icon-close { display: block; }

/* =========================================================
   STORY VIEWER & LIGHTBOX MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(8, 17, 36, 0.88);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms var(--ease-out);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.story-shell {
  position: relative;
  width: min(420px, 100%);
  max-height: min(760px, calc(100dvh - 32px));
  aspect-ratio: 9 / 15.5;
  background: #0F172A;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: scale(0.94);
  transition: transform 260ms var(--ease-out);
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .story-shell { transform: scale(1); }

.story-bars {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  z-index: 6;
  display: flex;
  gap: 5px;
}

.story-bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.story-bar-fill {
  height: 100%;
  width: 0%;
  background: #FFFFFF;
  transition: width 120ms linear;
}

.story-bar.done .story-bar-fill { width: 100%; }
.story-bar.active .story-bar-fill { width: 100%; transition: width 4.5s linear; }

.story-top {
  position: absolute;
  top: 24px; left: 14px; right: 14px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #FFFFFF;
}

.story-head-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.story-close, .modal-nav-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(11, 31, 68, 0.6);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  transition: transform 160ms var(--ease-out), background 160ms ease;
}

.story-close:active, .modal-nav-btn:active { transform: scale(0.92); }

.story-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0B1220;
}

.story-foot {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.story-orig-link {
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.story-nav-group { display: flex; gap: 8px; }

/* Lightbox */
.lightbox-shell {
  position: relative;
  max-width: min(920px, 100%);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: scale(0.95);
  transition: transform 240ms var(--ease-out);
}
.modal-overlay.open .lightbox-shell { transform: scale(1); }

.lightbox-img {
  max-height: calc(100dvh - 140px);
  border-radius: 20px;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

.lightbox-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-stagger, .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
