/* Меалаб Москва — главная (production-ready) */
@import url('colors_and_type.css');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #fff; color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }

/* ============ Section primitives ============ */
.kml-section-inner { max-width: 1170px; margin: 0 auto; padding: 0 32px; width: 100%; }
.kml-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0;
}

/* ============ TopBar ============ */
.kml-topbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  height: 49px;
  display: flex; align-items: center;
  font-size: 14px;
  color: var(--ink);
}
.kml-topbar-inner {
  max-width: 1170px; width: 100%;
  margin: 0 auto; padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 32px;
}
.kml-topbar-mail {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal-500);
  text-decoration: none;
  font-weight: 500;
  justify-self: start;
}
.kml-topbar-mail:hover { color: var(--teal-700); }
.kml-topbar-nav {
  display: flex; align-items: center; gap: 36px;
  justify-self: center;
}
.kml-topbar-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}
.kml-topbar-nav a:hover { color: var(--teal-700); }
.kml-topbar-cabinet {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal-500);
  text-decoration: none;
  font-weight: 500;
  justify-self: end;
}
.kml-topbar-cabinet:hover { color: var(--teal-700); }

/* ============ Header ============ */
.kml-header {
  height: 96px;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  z-index: 200;
}
.kml-header-inner {
  max-width: 1170px; margin: 0 auto;
  padding: 16px 32px; height: 100%;
  display: flex; align-items: center;
  gap: 18px;
}
.kml-logo img { height: 56px; width: auto; display: block; }

.kml-search {
  flex: 1;
  display: flex;
  height: 56px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  max-width: 540px;
}
.kml-search input {
  flex: 1;
  border: 0;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.kml-search input::placeholder { color: var(--ink-a48); }
.kml-search button {
  background: var(--teal-500);
  color: #fff;
  border: 0;
  padding: 0 36px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.kml-search button:hover { background: var(--teal-700); }

.kml-phone-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--teal-500);
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
.kml-phone-btn:hover { background: var(--teal-50); border-color: var(--teal-300); }
.kml-phone-btn-light { background: #fff; }

.kml-phone { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
.kml-phone-cap { font-size: 11px; color: var(--ink-a48); margin-bottom: 2px; }
.kml-phone-num { font-size: 18px; color: var(--teal-500); font-weight: 600; font-family: var(--font-body); white-space: nowrap; }

.kml-burger {
  width: 56px; height: 56px;
  background: var(--teal-500);
  border-radius: 4px;
  border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.kml-burger span { display: block; width: 22px; height: 2px; background: #fff; }

/* ============ Hero ============ */
.kml-hero {
  position: relative;
  background: #33A8AB;
  overflow: hidden;
  color: #fff;
  min-height: 540px;
  /* Дефолтная позиция фонаря — правее центра (Figma reference). JS в Hero.jsx
     обновляет --mx/--my при mousemove; на mobile / без курсора эти значения
     остаются дефолтными. */
  --mx: 75%;
  --my: 50%;
}
.kml-hero-bg {
  position: absolute;
  inset: 0;
  /* Эффект «фонаря»: видео с микробами видно только в радиусе 350px
     вокруг курсора (--mx, --my обновляет JS в Hero.jsx). За пределами
     круга bg-слой прозрачен — виден ровный #003F40 у .kml-hero и
     текстура grain через .kml-hero-glass поверх. На mobile / без курсора
     CSS-fallback 50%/50% даёт статичное пятно по центру. */
  -webkit-mask: radial-gradient(
    circle 350px at var(--mx, 50%) var(--my, 50%),
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 30%,
    rgba(0,0,0,0) 100%
  );
          mask: radial-gradient(
    circle 350px at var(--mx, 50%) var(--my, 50%),
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 30%,
    rgba(0,0,0,0) 100%
  );
}
.kml-hero-bg img,
.kml-hero-bg-video { width: 100%; height: 100%; object-fit: cover; opacity: 1; display: block; }

.kml-hero-tint {
  position: absolute;
  inset: 0;
  background: #199396;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
  /* Tint multiply имеет смысл только там где есть видео (внутри фонаря) —
     перекрашивает микробы в teal. За пределами круга tint затемнял бы чистый
     #33A8AB фон до почти-чёрного. Та же mask что у .kml-hero-bg (fallback
     75%/50% совпадает с дефолтом фонаря в .kml-hero). */
  -webkit-mask: radial-gradient(
    circle 350px at var(--mx, 75%) var(--my, 50%),
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 30%,
    rgba(0,0,0,0) 100%
  );
          mask: radial-gradient(
    circle 350px at var(--mx, 75%) var(--my, 50%),
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 30%,
    rgba(0,0,0,0) 100%
  );
}
.kml-hero-glass {
  position: absolute;
  inset: 0;
  mix-blend-mode: overlay;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}
.kml-hero-glass img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kml-hero-flashlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 250px at var(--mx, 50%) var(--my, 50%),
    transparent 0%,
    transparent 30%,
    rgba(0, 38, 38, 0.7) 100%
  );
  pointer-events: none;
  z-index: 3;
}
.kml-hero-inner {
  position: relative;
  max-width: 1170px;
  margin: 0 auto;
  padding: 88px 32px 96px;
  z-index: 4;
}
.kml-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 56px;
  color: #fff;
  max-width: 720px;
}
.kml-hero-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: end;
  max-width: 880px;
}

/* CTA button — Animation H. White plate with dark text by default; on hover
   the plate fades to transparent and a polaroid materialises above-right. */
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 32px;
  height: 56px;
  padding: 0 24px;
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--d-cta-hover) var(--ease-gentle),
    color var(--d-cta-hover) var(--ease-gentle);
}
.cta-button__icon,
.cta-button__label,
.cta-button__arrow {
  color: inherit;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.cta-button__label { white-space: nowrap; }
.cta-button__arrow { margin-left: auto; }

.cta-button__polaroid {
  position: absolute;
  left: 24px;
  top: 50%;
  width: 0;
  height: 0;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
  border: 1px solid #fff;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  pointer-events: none;
  box-sizing: border-box;
  transition:
    width var(--d-cta-hover) var(--ease-gentle),
    height var(--d-cta-hover) var(--ease-gentle),
    opacity var(--d-cta-hover) var(--ease-gentle),
    transform var(--d-cta-hover) var(--ease-gentle),
    box-shadow var(--d-cta-hover) var(--ease-gentle),
    left var(--d-cta-hover) var(--ease-gentle),
    top var(--d-cta-hover) var(--ease-gentle);
}
.cta-button__polaroid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-button:hover {
  background: #ffffff;
  color: #002626;
}
.cta-button:hover .cta-button__polaroid {
  width: 90px;
  height: 90px;
  opacity: 1;
  left: 119px;
  top: -54px;
  transform: translate(-50%, -50%) rotate(-4deg);
  box-shadow: -1px 16px 14.5px 0 rgba(0, 38, 38, 0.24);
}

/* Touch devices: hover unavailable. Show compact polaroid permanently. */

/* Постоянное вращение центрифуги (стартует с -45° для эстетики) */
@keyframes kml-centrifuge-spin {
  from { transform: rotate(-45deg); }
  to   { transform: rotate(315deg); }
}

@media (max-width: 767px) and (hover: none) {
  .cta-button {
    background: #199396;
    color: #fff;
    flex-direction: row-reverse;
    justify-content: space-between;
  }
  .cta-button__polaroid {
    position: static;
    width: 60px;
    height: 60px;
    opacity: 1;
    left: auto;
    top: auto;
    transform: rotate(-4deg);
    transition: none;
    box-shadow: -1px 8px 12px rgba(0, 38, 38, 0.24);
  }
  .cta-button:hover {
    background: #199396;
    color: #fff;
  }
  .cta-button:hover .cta-button__polaroid {
    width: 60px;
    height: 60px;
    left: auto;
    top: auto;
    transform: rotate(-4deg);
    box-shadow: -1px 8px 12px rgba(0, 38, 38, 0.24);
  }
}

/* ============ WhyUs ============ */
/*
  Layered structure (z-index):
    section background (#f3f7f7 with bloom tints)
    .kml-why-tube-bg  — z:1, decorative test-tube background (single PNG, no animation)
    .kml-why-grid     — z:2, frosted glass cards that overlay the tube
*/
.kml-why-tube-bg {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(6deg);
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: blur(14px) drop-shadow(0 30px 80px rgba(170, 55, 30, .4));
  opacity: 0.95;
  pointer-events: none;
  user-select: none;
}
.kml-why {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(204,233,235,.55), transparent 40%),
    radial-gradient(circle at 88% 80%, rgba(204,233,235,.55), transparent 40%),
    radial-gradient(circle at 75% 12%, rgba(255,255,255,.6), transparent 60%),
    linear-gradient(180deg, #f3f7f7 0%, #e8f1f2 100%);
  padding: 96px 0 110px;
  overflow: hidden;
}
.kml-why .kml-section-inner { position: relative; z-index: 2; }
.kml-why .kml-section-title {
  text-align: center;
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 56px;
}
.kml-why-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.kml-why-card {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.32);
  border: 1px solid rgba(255,255,255,0.50);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
  border-radius: 2px;
  padding: 36px 28px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.kml-why-corner {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--ink);
  border-style: solid;
  border-width: 0;
}
.kml-why-corner-tl { top: 14px; left: 14px;  border-top-width: 1.5px; border-left-width: 1.5px; }
.kml-why-corner-tr { top: 14px; right: 14px; border-top-width: 1.5px; border-right-width: 1.5px; }
.kml-why-corner-bl { bottom: 14px; left: 14px;  border-bottom-width: 1.5px; border-left-width: 1.5px; }
.kml-why-corner-br { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.kml-why-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--ink);
  white-space: pre-line;
  text-transform: uppercase;
  text-align: center;
  margin-top: 14px;
  line-height: 1.25;
}
.kml-why-icon {
  color: var(--teal-500);
  margin: 18px 0 16px;
  display: flex; align-items: center; justify-content: center;
}
.kml-why-body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  max-width: 240px;
  margin-top: auto;
}


/* ============ AboutFaq ============ */
.kml-faq {
  background: #fff;
  padding: 24px 0 80px;
}
.kml-faq-card {
  position: relative;
  background:
    radial-gradient(circle at 80% 30%, rgba(204,233,235,.55), transparent 45%),
    rgba(247,249,249,.7);
  border-radius: 12px;
  padding: 56px 64px 48px;
}
.kml-faq-title {
  font-size: 32px;
  text-transform: uppercase;
  max-width: 520px;
  margin: 0 0 28px;
}
.kml-faq-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 760px;
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.kml-faq-intro p { margin: 0; }
.kml-faq-photo {
  position: absolute;
  top: 168px;
  right: 64px;
  width: 220px;
  height: 124px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,38,38,.12);
}
.kml-faq-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
  z-index: 1;
}
/* Default row: white surface, gray separator, no photo. */
/* Wrapper around the list so we can absolutely-position the floating photo
   and the soft teal glow over the active row. */
/* Floating microscope photo — desktop only. Hidden until the cursor enters
   the list; positioned by JS via inline `top`. Slight clockwise tilt,
   rounded corners, soft shadow, no white frame. */
/* Soft teal glow under the active row — hidden until the cursor enters the list. */
/* Reveal both only while the cursor is over the list. */
/* Mobile: hide both the floating photo and the glow. */
@media (max-width: 768px) {
  }
@media (max-width: 767px) {
  }
.kml-faq-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #daeeee;
  position: relative;
  transition: background var(--d-cta-hover) var(--ease-gentle);
}
.kml-faq-row:hover {
  background: rgba(25, 147, 150, 0.04);
}
.kml-faq-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: #99d3d6;
  line-height: 1;
}
.kml-faq-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #002626;
  text-transform: uppercase;
  line-height: 1.2;
}
.kml-faq-price {
  background: #199396;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.kml-faq-price:hover { background: #006d70; }

/* Polaroid — same animation pattern as .cta-button__polaroid in Hero.
   Hidden by default (size 0, opacity 0). On row hover: scales up,
   rotates -4°, lifts above the row right side. */
.kml-faq-polaroid {
  position: absolute;
  right: 110px;
  top: 50%;
  width: 0;
  height: 0;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
  border: 1px solid #fff;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 5;
  transition:
    width var(--d-cta-hover) var(--ease-gentle),
    height var(--d-cta-hover) var(--ease-gentle),
    opacity var(--d-cta-hover) var(--ease-gentle),
    transform var(--d-cta-hover) var(--ease-gentle),
    top var(--d-cta-hover) var(--ease-gentle),
    box-shadow var(--d-cta-hover) var(--ease-gentle);
}
.kml-faq-polaroid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kml-faq-row:hover .kml-faq-polaroid {
  width: 120px;
  height: 84px;
  opacity: 1;
  top: -28px;
  transform: translate(-50%, -50%) rotate(-4deg);
  box-shadow: -1px 16px 14.5px 0 rgba(0, 38, 38, 0.24);
}

/* On mobile + touch: no hover → polaroid stays hidden, no static fallback
   (категория достаточно понятна по названию). */
@media (max-width: 767px) {
  .kml-faq-row { grid-template-columns: 32px 1fr auto; gap: 12px; }
  .kml-faq-polaroid { display: none; }
  .kml-faq-name { font-size: 14px; }
}

.kml-faq-more {
  display: inline-block;
  margin-top: 24px;
  color: var(--teal-600);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
  font-weight: 500;
}

/* ============ AboutLab — «О ЛАБОРАТОРИИ» pin block (P6) ============ */
/* GSAP ScrollTrigger pin block 320vh tall: centrifuge spins, 3 fact cards
   slide horizontally with SLOW easing between holds. Mobile (≤767px) skips
   the pin and stacks cards vertically. */
/* Centrifuge — rotated -45° PNG, continuously spinning */
/* Card viewport — overflow:hidden so siblings don't show */
/* Fact card — frosted glass over centrifuge */
/* Progress bar — 3 dots + 2 lines, centered near bottom */
/* ============ Prices ============ */
.kml-prices {
  background: var(--gray-50);
  padding: 88px 0 100px;
}
.kml-prices-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}
.kml-prices-head .kml-section-title {
  font-size: 32px;
  text-transform: uppercase;
  line-height: 1.15;
}
.kml-prices-note {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 500;
}

/* The whole grid uses a custom test-tube cursor. */
.kml-price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  cursor: url('assets/test-tube.png') 16 16, auto;
}
.kml-price-card {
  position: relative;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  display: grid;
  grid-template-rows: 1fr 1fr;
  min-height: 200px;
  overflow: visible;
  transition: background-color var(--d-table-hover) var(--ease-out),
              border-color var(--d-table-hover) var(--ease-out);
}
.kml-price-card-inner-overflow { overflow: hidden; border-radius: 4px; }
.kml-price-check {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--color-primary);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity var(--d-table-hover) var(--ease-out);
}
.kml-price-card:hover .kml-price-check { opacity: 1; color: #fff; }
.kml-price-top {
  padding: 18px 22px 14px;
  display: flex; flex-direction: column; gap: 4px;
  border-radius: 4px 4px 0 0;
  transition: background-color var(--d-table-hover) var(--ease-out);
}
.kml-price-bot {
  padding: 14px 22px 18px;
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--gray-200);
  border-radius: 0 0 4px 4px;
  position: relative;
  transition: background-color var(--d-table-hover) var(--ease-out),
              border-top-color var(--d-table-hover) var(--ease-out),
              color var(--d-table-hover) var(--ease-out);
}
.kml-price-eyebrow {
  font-size: 10px;
  font-weight: 400;
  color: var(--teal-500);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.kml-price-eyebrow-light { color: rgba(255,255,255,.7); }
.kml-price-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
  line-height: 1.2;
}
.kml-price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--ink);
  line-height: 1;
  display: inline-flex; align-items: baseline;
}
.kml-price-rub {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
}

/* Hover state: split light/dark teal with white price + decorative tube. */
.kml-price-hover-tube {
  position: absolute;
  right: -8px;
  top: -52px;
  width: 96px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(0,38,38,.4));
  opacity: 0;
  transform: translateY(8px) rotate(8deg);
  transition: opacity .18s ease, transform .18s ease;
}
.kml-price-card:hover { border-color: transparent; }
.kml-price-card:hover .kml-price-top {
  background: #CCE9EB;
}
.kml-price-card:hover .kml-price-bot {
  background: #006D70;
  border-top-color: rgba(255,255,255,.18);
  color: #fff;
}
.kml-price-card:hover .kml-price-value,
.kml-price-card:hover .kml-price-rub { color: #fff; }
.kml-price-card:hover .kml-price-bot .kml-price-eyebrow { color: rgba(255,255,255,.7); }
.kml-price-card:hover .kml-price-hover-tube {
  opacity: 1;
  transform: translateY(0) rotate(8deg);
}

.kml-prices-cta {
  display: block;
  margin: 0 auto;
  background: var(--teal-500);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 22px 64px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  min-width: 480px;
}
.kml-prices-cta:hover { background: var(--teal-700); }

/* ============ Contact CTA ============ */
.kml-cta {
  position: relative;
  padding: 100px 0;
  background: #ECF7F7;
  overflow: hidden;
}
.kml-cta-bg {
  position: absolute; inset: 0;
}
.kml-cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.kml-cta-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(204,233,235,.0) 30%, rgba(255,255,255,.5) 70%);
}
.kml-cta .kml-section-inner {
  position: relative;
  display: flex;
  justify-content: center;
}
.kml-cta-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 48px 56px 40px;
  width: 480px;
  display: flex; flex-direction: column; gap: 14px;
}
.contact-form {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--d-final-fade) var(--ease-out),
              transform var(--d-final-fade) var(--ease-out);
}
.contact-form[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}
.kml-cta-card {
  box-shadow: 0 20px 60px rgba(0,38,38,.08);
}
@media (hover: none) {
  .kml-price-card {
    transition: none;
  }
  .kml-price-card:hover {
    border-color: var(--gray-200);
  }
  .kml-price-card:hover .kml-price-top {
    background: transparent;
  }
  .kml-price-card:hover .kml-price-bot {
    background: transparent;
    border-top-color: var(--gray-200);
    color: var(--ink);
  }
  .kml-price-card:hover .kml-price-value,
  .kml-price-card:hover .kml-price-rub { color: var(--ink); }
  .kml-price-card:hover .kml-price-bot .kml-price-eyebrow { color: var(--teal-500); }
  .kml-price-card:hover .kml-price-hover-tube { opacity: 0; }
  .kml-price-card:hover .kml-price-check { opacity: 0; }
}
.kml-cta-title {
  font-size: 28px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.2;
}
.kml-field {
  position: relative;
}
.kml-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 0 38px 0 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.kml-input:focus { border-color: var(--teal-500); }
.kml-input::placeholder { color: var(--ink-a48); }
.kml-field-req {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--teal-500);
  font-size: 18px;
  pointer-events: none;
}
.kml-field-select select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.kml-field-caret {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--teal-500);
  pointer-events: none;
}

.kml-cta-submit {
  width: 100%;
  margin-top: 6px;
  background: var(--teal-500);
  color: #fff;
  border: 0;
  border-radius: 4px;
  height: 48px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.kml-cta-submit:hover { background: var(--teal-700); }

.kml-cta-agree {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 11px;
  color: var(--ink);
  line-height: 1.4;
  cursor: pointer;
  margin-top: 4px;
}
.kml-cta-agree input { display: none; }
.kml-cta-agree-box {
  width: 18px; height: 18px;
  border: 1px solid var(--teal-500);
  border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--teal-500);
  background: #fff;
  flex-shrink: 0;
}
.kml-cta-agree-text a {
  color: var(--teal-500);
  text-decoration: underline;
}

/* ============ Address + Map ============ */
.kml-addr {
  position: relative;
  padding: 64px 0 0;
  background: #f4f6f6;
  overflow: hidden;
  min-height: 480px;
}
.kml-addr-map {
  position: absolute; inset: 0;
}
.kml-addr-map img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.kml-addr-overlay {
  pointer-events: none;
  position: relative;
  z-index: 1;
}
.kml-addr-card {
  pointer-events: auto;
  width: 568px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,38,38,.12);
  overflow: hidden;
}
.kml-addr-head {
  padding: 32px 32px 16px;
}
.kml-addr-title {
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.2;
}
.kml-addr-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.kml-addr-count {
  background: #CCE9EB;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--teal-900);
}
.kml-addr-count b { font-weight: 700; }
.kml-addr-scroll {
  position: relative;
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.kml-addr-scroll::-webkit-scrollbar {
  width: 8px;
}
.kml-addr-scroll::-webkit-scrollbar-track {
  background: var(--gray-200);
}
.kml-addr-scroll::-webkit-scrollbar-thumb {
  background: var(--teal-500);
  border-radius: 4px;
}
.kml-addr-scroll {
  scrollbar-color: var(--teal-500) var(--gray-200);
  scrollbar-width: thin;
}
.kml-addr-list {
  list-style: none;
  margin: 0; padding: 0;
}
.kml-addr-row {
  display: grid;
  grid-template-columns: 16px 1fr 16px auto;
  gap: 12px;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 14px;
  color: var(--ink);
}
.kml-addr-row:last-of-type { border-bottom: none; }
.kml-addr-row { transition: background .18s ease; }
.kml-addr-row:hover {
  background: rgba(204, 233, 235, 0.45);
}
.kml-addr-pin { color: var(--teal-700); display: inline-flex; }
.kml-addr-clock { color: var(--teal-700); display: inline-flex; }
.kml-addr-street { font-weight: 500; }
.kml-addr-street::after {
  /* underline like in Figma */
}
.kml-addr-hours {
  font-size: 14px;
  color: var(--ink);
}
.kml-addr-track {
  position: absolute;
  right: 12px;
  top: 0; bottom: 16px;
  width: 8px;
  background: var(--gray-200);
}
.kml-addr-thumb {
  position: absolute;
  left: 0; top: 0;
  width: 8px;
  height: 80px;
  background: var(--teal-500);
}

/* ============ Footer ============ */
.kml-footer {
  background: #fff;
  padding: 48px 0 24px;
  border-top: 1px solid var(--gray-200);
}
.kml-footer-inner {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 32px;
}
.kml-footer-top {
  display: flex; align-items: center; gap: 18px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
}
.kml-footer-logo img { height: 56px; width: auto; }
.kml-footer-search { max-width: 540px; }

.kml-footer-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 32px 0;
}
.kml-footer-col {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.kml-footer-col li a,
.kml-footer-col a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.kml-footer-col a:hover { color: var(--teal-700); }
.kml-footer-social {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.kml-footer-vk {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--teal-500);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.kml-footer-vk:hover { background: var(--teal-700); }
.kml-footer-social-cap {
  font-size: 12px;
  color: var(--ink-a48);
  line-height: 1.3;
}
.kml-footer-contacts {
  align-items: flex-start;
}
.kml-footer-mail,
.kml-footer-cabinet {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal-500);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.kml-footer-bottom {
  display: flex; align-items: center; gap: 32px;
  padding: 24px 0 16px;
  border-top: 1px solid var(--gray-200);
  font-size: 12px;
  color: var(--ink-a48);
  flex-wrap: wrap;
}
.kml-footer-copy { color: var(--ink-a48); }
.kml-footer-legal {
  text-decoration: underline;
  color: var(--teal-500);
}
.kml-footer-cookie { margin-left: auto; }

.kml-footer-disclaimer {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-a32);
  text-transform: uppercase;
  text-align: center;
  padding: 16px 0 0;
  border-top: 1px solid var(--gray-200);
}


/* ============================================================
   MOBILE MENU — hidden by default; shown only on narrow viewports.
   ============================================================ */
.kml-mobile-menu { display: none; }
.kml-burger { display: none; } /* Hidden on desktop; shown via @media below */

/* ============================================================
   MOBILE BREAKPOINT (≤ 768px)
   B1 hero, B2 header/menu, B3 why-tube, B4 faq width,
   B5 price grid, B6 address card.
   ============================================================ */
@media (max-width: 768px) {

  /* ---- Layout primitives ---- */
  .kml-section-inner { padding: 0 16px; }

  /* ---- B2: TopBar collapses; Header simplifies; burger appears ---- */
  .kml-topbar { display: none; }

  .kml-header { height: 64px; }
  .kml-header-inner {
    padding: 12px 16px;
    gap: 12px;
    position: relative;
  }
  .kml-logo img { height: 36px; }
  /* Hide search, phone block, and round phone-btn — burger handles nav */
  .kml-header .kml-search,
  .kml-header .kml-phone,
  .kml-phone-btn {
    display: none;
  }
  /* Burger visible on mobile */
  .kml-burger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: 4px;
  }

  /* Mobile drawer */
  .kml-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 12px 24px rgba(0,38,38,.06);
  }
  .kml-header.is-menu-open .kml-mobile-menu { display: flex; }
  .kml-mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 4px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--gray-200);
  }
  .kml-mobile-menu a:last-child { border-bottom: none; }
  .kml-mobile-menu .kml-mobile-cabinet,
  .kml-mobile-menu .kml-mobile-mail { color: var(--teal-500); }
  .kml-mobile-search {
    display: flex;
    margin-bottom: 8px;
    width: 100%;
    max-width: none;
  }

  /* ---- B1: Hero — smaller heading, stacked CTAs ---- */
  .kml-hero { min-height: 0; }
  .kml-hero-inner { padding: 40px 16px 48px; }
  .kml-hero-title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 32px;
    max-width: 100%;
  }
  .kml-hero-tiles {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cta-button {
    height: auto;
    padding: 12px 18px;
    font-size: 14px;
    gap: 16px;
  }

  /* ---- B3: Why-us — kill the section-spanning blurred tube on mobile ---- */
  .kml-why { padding: 56px 0 64px; }
    .kml-why .kml-section-title {
    font-size: 24px;
    margin-bottom: 32px;
  }
  .kml-why-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .kml-why-card {
    aspect-ratio: auto;
    padding: 28px 24px;
    background: rgba(255,255,255,.85);
  }

  /* ---- B4: FAQ — full-width section, smaller heading ---- */
  .kml-faq { padding: 16px 0 56px; }
  .kml-faq-card {
    padding: 28px 16px 32px;
    border-radius: 4px;
  }
  .kml-faq-title {
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 20px;
  }
  .kml-faq-intro {
    grid-template-columns: 1fr;
    gap: 12px;
    font-size: 13px;
    margin-bottom: 24px;
  }
  /* Wider list rows: number / name / price stacked on very narrow screens */
  /* ---- About lab (P6) — fallback to vertical stack, no pin ---- */
  /* ---- B5: Prices — 2 columns on mobile ---- */
  .kml-prices { padding: 56px 0 64px; }
  .kml-prices-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }
  .kml-prices-head .kml-section-title { font-size: 24px; }
  .kml-price-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .kml-price-card { min-height: 160px; }
  .kml-prices-cta {
    min-width: 0;
    width: 100%;
    font-size: 13px;
    padding: 16px;
  }

  /* ---- Contact CTA ---- */
  .kml-cta { padding: 48px 0; }

  /* ---- B6: Mobile addr - card above, map below ---- */
  .kml-addr { display: flex; flex-direction: column; padding: 0; min-height: 0; overflow: visible; }
  .kml-addr-map { position: relative; inset: auto; order: 2; height: 260px; width: 100%; flex-shrink: 0; }
  .kml-addr-map iframe { width: 100%; height: 100%; display: block; }
  .kml-section-inner.kml-addr-overlay { order: 1; position: static; z-index: auto; background: #fff; padding: 24px 16px 24px; width: 100%; box-sizing: border-box; }
  .kml-addr-card { pointer-events: auto; width: 100%; max-width: none; box-shadow: none; border-radius: 0; }
  .kml-addr-head { padding: 0 0 12px; }
  .kml-addr-title { font-size: 22px; }
  .kml-addr-sub { font-size: 13px; }
  .kml-addr-count { padding: 12px 0; font-size: 14px; }
  /* Force internal scroll, height ≈ 3 rows */
  .kml-addr-scroll {
    max-height: 240px;
  }
  .kml-addr-row {
    /* Stack street + hours so neither gets cut off */
    grid-template-columns: 16px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    padding: 12px 16px;
    font-size: 13px;
  }
  .kml-addr-pin { grid-row: 1; grid-column: 1; }
  .kml-addr-street { grid-row: 1; grid-column: 2; font-size: 13px; }
  .kml-addr-clock { grid-row: 2; grid-column: 1; }
  .kml-addr-hours { grid-row: 2; grid-column: 2; font-size: 12px; color: var(--gray-700); }

  /* ---- Footer ---- */
  .kml-footer { padding: 32px 0 16px; }
  /* Дубликат header-search в футере на mobile обрезается до «По...» —
     скрываем точечно, header-search остаётся как есть. */
  .kml-footer-search { display: none; }
  /* Без поиска logo + phone-btn + phone-block помещаются в строку, но
     wrap страхует от обрезания телефона на узких экранах. */
  .kml-footer-top { flex-wrap: wrap; }
  .kml-footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ---- Splash screen — простой логотип по центру с fade-out ---- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease;
}

.splash[data-state="active"] {
  opacity: 1;
}

.splash[data-state="leaving"] {
  opacity: 0;
  pointer-events: none;
}

.splash[data-state="hidden"] {
  display: none;
}

.splash__logo {
  display: block;
  width: 270px;
  max-width: 80vw;
  height: auto;
}

/* ---- Hero title — 3 lines wipe-fill (Animation C) ---- */
.hero-title {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 70px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 56px;
  max-width: none;
  color: transparent;
  white-space: nowrap;
}
.hero-title .hero-title__line {
  position: relative;
  display: block;
}
.hero-title__base {
  display: block;
  color: var(--color-hero-baseline);
}
.hero-title__fill {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, #ffffff 47.94%, #99d3d6 65.42%, #33a8ab 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 50%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 50%, transparent 100%);
  -webkit-mask-size: 200% 100%;
          mask-size: 200% 100%;
  -webkit-mask-position: 100% 0;
          mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  transition: -webkit-mask-position var(--d-hero-line) var(--ease-out),
              mask-position var(--d-hero-line) var(--ease-out);
}
.hero-title[data-state="filled"] .hero-title__line:nth-child(1) .hero-title__fill {
  -webkit-mask-position: 0 0;
          mask-position: 0 0;
  transition-delay: 0ms;
}
.hero-title[data-state="filled"] .hero-title__line:nth-child(2) .hero-title__fill {
  -webkit-mask-position: 0 0;
          mask-position: 0 0;
  transition-delay: calc(var(--d-hero-line) * 0.5);
}
.hero-title[data-state="filled"] .hero-title__line:nth-child(3) .hero-title__fill {
  -webkit-mask-position: 0 0;
          mask-position: 0 0;
  transition-delay: calc(var(--d-hero-line) * 1.0);
}

@media (max-width: 767px) {
  /* Desktop .hero-title задаёт white-space:nowrap для wipe-fill по строкам.
     На mobile при font-size:32 строка «ПО ДОСТУПНЫМ ЦЕНАМ» не помещается
     в 343px viewport — разрешаем перенос внутри __line span'ов; mask
     анимация продолжает работать поверх блока (mask-size:200% 100%). */
  .hero-title {
    font-size: 32px;
    white-space: normal;
  }
}

/* ============ Section title (animations D, E) ============ */
.section-title {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 50px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0 0 56px;
  color: transparent;
  text-align: center;
}
.section-title .section-title__line {
  position: relative;
  display: block;
}
.section-title__base {
  display: block;
  color: #e3e3e3;
}
.section-title__fill {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(90deg, #99d3d6 0%, #006d70 28%, #002626 54%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 50%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 50%, transparent 100%);
  -webkit-mask-size: 200% 100%;
          mask-size: 200% 100%;
  -webkit-mask-position: 100% 0;
          mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  transition: -webkit-mask-position var(--d-section-title) var(--ease-slow),
              mask-position var(--d-section-title) var(--ease-slow);
}
.section-title[data-state="filled"] .section-title__fill {
  -webkit-mask-position: 0 0;
          mask-position: 0 0;
}

@media (max-width: 767px) {
  .section-title { font-size: 28px; }}

/* ============ AboutLab — секция «О ЛАБОРАТОРИИ» (P6 восстановлено) ============ */
/* .kml-aboutlab = 320vh (длина прокрутки для ScrollTrigger.scrub).
   .kml-aboutlab__sticky = 100vh (классический sticky-pin, заполняет окно).
   Эталонная компоновка — Figma frame 4 (1512×747). Все absolute-позиции
   считаются через calc(50% - 374px + N), где 374 = 747/2, N — top из Figma.
   При viewport = 747px совпадает до пикселя, при больших — равные поля
   сверху и снизу. overflow:hidden на sticky чтобы при viewport < 747px
   ничего не вылезало (на ≤767px работает mobile-fallback ниже). */
.kml-aboutlab {
  position: relative;
  height: 320vh;
}
.kml-aboutlab__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #f9f9f9;
}

/* Заголовок — Figma top:69 → calc(50% - 305px) */
.kml-aboutlab__title {
  position: absolute;
  top: calc(50% - 305px);
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  white-space: nowrap;
  z-index: 3;
}

/* Центрифуга — Figma top:148, контейнер 480×480, img 544×544
   (запас 32px по периметру для поворота), overflow:hidden на контейнере */
.kml-aboutlab__centrifuge {
  position: absolute;
  left: 50%;
  top: calc(50% - 226px);
  width: 480px;
  height: 480px;
  margin-left: -240px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.kml-aboutlab__centrifuge img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 544px;
  height: 544px;
  filter: drop-shadow(0 3.78px 78.5px rgba(0, 0, 0, 0.05));
  /* Центрирование через GSAP xPercent/yPercent (см. AboutLab.jsx gsap.set) —
     одна transform-property, никаких margin-сдвигов которые могут уехать
     относительно GSAP-вычисленного transform-origin. transform-origin тоже
     задаёт GSAP. @keyframes kml-centrifuge-spin оставлен на случай реверта. */
}

/* Viewport карточек — Figma top:266, ширина = ширине одной карточки (1170),
   центрирован в sticky. Только одна карточка видна одновременно; соседние
   карточки клипятся overflow:hidden viewport'а, не вытекают через
   backdrop-filter blur поверх центрифуги. */
.kml-aboutlab__viewport {
  position: absolute;
  top: calc(50% - 108px);
  left: 50%;
  width: 1170px;
  margin-left: -585px;
  height: 245px;
  overflow: hidden;
  z-index: 2;
}
.kml-aboutlab__track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  display: flex;
  gap: 151px;
  will-change: transform;
  /* Track теперь относительно viewport (1170-wide), не sticky. GSAP x:0 →
     карточка 1 заполняет viewport ровно, x:-1321 → карточка 2, и т.д. */
}

.kml-aboutlab__card {
  flex-shrink: 0;
  width: 1170px;
  height: 245px;
  display: grid;
  grid-template-columns: 170px 262px 1fr;
  gap: 32px;
  padding: 8px 32px;
  border-radius: 8px;
  border: 0.795px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(18.5px) saturate(1.05);
  -webkit-backdrop-filter: blur(18.5px) saturate(1.05);
  box-shadow: 0 8px 24px rgba(0, 38, 38, 0.04);
  align-items: center;
}
.kml-aboutlab__card-logo {
  width: 170px;
  height: 55px;
}
.kml-aboutlab__card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.kml-aboutlab__card-photo {
  position: relative;
  width: 262px;
  height: 229px;
  border-radius: 8px;
  overflow: hidden;
  background: #d9d9d9;
}
.kml-aboutlab__card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kml-aboutlab__card-text {
  font-family: var(--font-body, system-ui);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: #181818;
  margin: 0;
}
.kml-aboutlab__card-heading {
  font-weight: 600;
  margin: 0 0 12px;
}
.kml-aboutlab__checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kml-aboutlab__checklist li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.3;
}
.kml-aboutlab__checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #199396;
  font-weight: bold;
}

/* Прогресс — Figma top:668 → calc(50% + 294px) */
.kml-aboutlab__progress {
  position: absolute;
  top: calc(50% + 294px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 3;
}
.kml-aboutlab__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5d5;
  transition: background 0.3s ease;
}
.kml-aboutlab__dot.active {
  background: #199396;
}
.kml-aboutlab__line {
  width: 388px;
  height: 1px;
  background: #cbd5d5;
}

/* Mobile: свайп-карусель карточек (CSS scroll-snap) + непрерывный спин ротора */
@media (max-width: 767px) {
  .kml-aboutlab { height: auto; }
  .kml-aboutlab__sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding: 40px 0;
  }
  .kml-aboutlab__title {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin: 0 auto 32px;
    font-size: 28px;
    text-align: center;
    white-space: normal;
  }
  .kml-aboutlab__centrifuge {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    margin: 0 auto 32px;
    overflow: visible;
  }
  .kml-aboutlab__centrifuge img {
    position: static;
    left: auto;
    top: auto;
    display: block;
    width: 240px;
    height: 240px;
    max-width: none;
    margin: 0 auto;
    filter: none;
    animation: kml-centrifuge-spin 30s linear infinite;
    transform-origin: 50% 50%;
    will-change: transform;
  }
  .kml-aboutlab__viewport {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    margin: 0;
    margin-left: 0;
    height: auto;
    overflow: visible;
  }
  .kml-aboutlab__track {
    position: static;
    left: auto;
    top: auto;
    display: flex;
    gap: 16px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    transform: none !important;
    height: auto;
  }
  .kml-aboutlab__track::-webkit-scrollbar { display: none; }
  .kml-aboutlab__card {
    flex-shrink: 0;
    width: calc(100vw - 32px);
    height: auto;
    min-height: 400px;
    scroll-snap-align: center;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5edee;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .kml-aboutlab__card-photo {
    width: 100%;
    height: 200px;
  }
  .kml-aboutlab__card-logo {
    width: 120px;
    height: auto;
  }
  .kml-aboutlab__progress {
    /* На desktop progress абсолютно позиционирован top:calc(50%+294px)
       внутри sticky pin-блока. На mobile сбрасываем в normal flow и
       ставим под каруселью карточек. */
    position: static;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 16px auto 0;
    padding: 0;
  }
  .kml-aboutlab__line { display: none; }
}

/* Reduced motion: глушим непрерывный спин ротора на mobile */
@media (prefers-reduced-motion: reduce) {
  .kml-aboutlab__centrifuge img {
    animation: none !important;
  }
}
