/* ============================================================
   RiverPools — Composite pools turnkey, Moscow & MO
   Design tokens & global styles
   ============================================================ */

:root {
  /* Palette */
  --deep-water: #0C4A56;
  --aqua: #1FA8C4;
  --aqua-light: #E6F4F7;
  --white: #FFFFFF;
  --sand: #F4F6F7;
  --graphite: #16252B;

  /* Derived */
  --aqua-dark: #178199;
  --deep-water-2: #0A3B45;
  --line: rgba(12, 74, 86, 0.10);
  --line-strong: rgba(12, 74, 86, 0.18);
  --muted: #5B7178;

  /* Radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(12, 74, 86, 0.06);
  --shadow-md: 0 16px 40px rgba(12, 74, 86, 0.10);
  --shadow-lg: 0 30px 70px rgba(12, 74, 86, 0.16);
  --shadow-aqua: 0 14px 30px rgba(31, 168, 196, 0.30);

  /* Type */
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-display: 'Unbounded', 'Manrope', sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gut: 24px;
  --header-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.01em; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- Section scaffolding ---------- */
.section { padding: 104px 0; }
.section--tight { padding: 80px 0; }
.section--aqua { background: var(--aqua-light); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--deep-water); color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aqua-dark);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--aqua);
  border-radius: 2px;
}
.section--dark .eyebrow { color: #7FD6E6; }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow { gap: 0; }

h2.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}
.lead {
  margin-top: 18px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  line-height: 1.55;
}
.section--dark .lead { color: rgba(255,255,255,0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--r-pill);
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--aqua);
  color: var(--white);
  box-shadow: var(--shadow-aqua);
}
.btn--primary:hover { background: var(--aqua-dark); transform: translateY(-2px); box-shadow: 0 18px 38px rgba(31,168,196,.38); }
.btn--ghost {
  background: transparent;
  color: var(--deep-water);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--aqua); color: var(--aqua-dark); transform: translateY(-2px); }
.btn--light {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(4px);
}
.btn--light:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 34px; font-size: 17px; }

/* ---------- Named image placeholders ---------- */
.ph {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(31,168,196,0.22), transparent 60%),
    radial-gradient(120% 100% at 90% 90%, rgba(12,74,86,0.22), transparent 55%),
    linear-gradient(135deg, #cfeaf0, #aed8e2 55%, #8fc7d4);
  border: 1px solid rgba(12,74,86,0.10);
  display: flex;
  align-items: flex-end;
}
.ph::after {
  /* water shimmer lines */
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 26px);
  mix-blend-mode: screen;
  opacity: .5;
  pointer-events: none;
}
.ph__tag {
  position: relative;
  z-index: 2;
  margin: 14px;
  padding: 10px 13px;
  background: rgba(10, 45, 53, 0.62);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  color: #fff;
  max-width: calc(100% - 28px);
}
.ph__name {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #9BE3F2;
  display: flex; align-items: center; gap: 7px;
}
.ph__name::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: #9BE3F2;
  flex: none;
}
.ph__desc { font-size: 12.5px; line-height: 1.4; margin-top: 5px; color: rgba(255,255,255,0.88); }
.ph[data-ratio="16-9"] { aspect-ratio: 16/9; }
.ph[data-ratio="4-3"]  { aspect-ratio: 4/3; }
.ph[data-ratio="3-2"]  { aspect-ratio: 3/2; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,57,66,0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.header::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: #2FB3C9;
  z-index: 2;
}
.header.scrolled {
  background: rgba(12,49,57,0.94);
  box-shadow: 0 12px 34px rgba(0,0,0,0.28);
  border-bottom-color: rgba(255,255,255,0.06);
}
.header__inner {
  height: var(--header-h);
  max-width: 1300px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
}
.logo { flex: none; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.025em; color: #fff; }
.logo__mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: #138196;
  color: #fff;
  box-shadow: 0 7px 16px rgba(19,129,150,0.45);
}
.logo__mark svg { width: 18px; height: 18px; }
.logo b { font-weight: 800; }
.logo span { color: #3FC6DC; font-weight: 800; }

.nav { display: flex; align-items: center; gap: 1px; margin-left: 2px; flex-wrap: nowrap; }
.nav a {
  position: relative;
  padding: 8px 8px;
  font-size: 13px;
  font-weight: 600;
  color: #D7E3E6;
  white-space: nowrap;
  transition: color .2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 2px;
  height: 2px; border-radius: 2px;
  background: #3FC6DC;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s cubic-bezier(.4,0,.2,1);
}
.nav a:hover { color: #fff; }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: #3FC6DC; }

.header__cta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.header__phone { display: flex; align-items: center; gap: 9px; flex: none; }
.header__phone .ph-ic {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.13);
  color: #9BE3F2;
  display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.header__phone:hover .ph-ic { background: rgba(255,255,255,0.22); color: #fff; }
.header__phone .ph-ic svg { width: 16px; height: 16px; }
.header__phone .ph-txt { display: flex; flex-direction: column; line-height: 1.15; }
.header__phone b { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -0.01em; white-space: nowrap; }
.header__phone small { font-size: 11px; color: #9FC4CC; font-weight: 600; white-space: nowrap; }

.btn--call {
  background: #1FA8C4;
  color: #fff;
  box-shadow: 0 8px 20px rgba(31,168,196,0.32);
}
.btn--call:hover { background: #138196; color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px rgba(19,129,150,0.42); }
.header__cta .btn { white-space: nowrap; flex: none; padding: 12px 16px; font-size: 14px; }

/* contact cluster divider + messenger buttons */
.header__divider { width: 1px; height: 30px; background: rgba(255,255,255,0.16); flex: none; }
.msgr { display: flex; align-items: center; gap: 6px; flex: none; }
.msgr__btn {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.13);
  color: #fff;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform .18s ease, background .2s ease;
}
.msgr__btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.24); }
.msgr__btn--tg svg { width: 20px; height: 20px; }
.msgr__btn--max span {
  font-size: 11px; font-weight: 800; letter-spacing: 0.03em;
  color: #fff;
}

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.13);
  border-radius: 12px;
  align-items: center; justify-content: center;
}
.burger svg { width: 22px; height: 22px; color: #fff; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.drawer.open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(6,30,36,0.55); backdrop-filter: blur(3px); }
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: rgba(14,57,66,0.96);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-left: 1px solid rgba(255,255,255,0.10);
  padding: 22px;
  display: flex; flex-direction: column;
  gap: 6px;
  box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer a { padding: 14px 12px; border-radius: 12px; font-weight: 600; font-size: 17px; color: #D7E3E6; }
.drawer a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.drawer__phone { margin-top: 14px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.13); display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(7,36,42,0.93) 0%, rgba(9,50,58,0.80) 38%, rgba(12,74,86,0.40) 68%, rgba(12,74,86,0.20) 100%),
    linear-gradient(to top, rgba(7,36,42,0.50), transparent 40%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding: clamp(64px, 9vw, 130px) 0 clamp(48px, 6vw, 84px);
}
.hero__content { max-width: 720px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero__sub { margin-top: 22px; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.5; color: rgba(255,255,255,0.9); max-width: 560px; }
.hero__btns { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts {
  position: relative; z-index: 2;
  margin-top: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  background: rgba(8,40,47,0.34);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.fact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  position: relative;
}
.fact + .fact::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 56%;
  background: rgba(255,255,255,0.18);
}
.fact__ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(31,168,196,0.30), rgba(31,168,196,0.12));
  border: 1px solid rgba(127,214,230,0.35);
  color: #9BE3F2;
}
.fact__ic svg { width: 21px; height: 21px; }
.fact__txt b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; line-height: 1.1; }
.fact__txt span { font-size: 13.5px; color: rgba(255,255,255,0.80); margin-top: 6px; display: block; line-height: 1.4; }

/* ============================================================
   WHY (material + team, two columns)
   ============================================================ */
.why-wrap { display: grid; grid-template-columns: 40% 1fr; gap: 48px; align-items: stretch; }
.why-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 100%;
}
.why-photo__img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; display: block; }
.why-photo__cap {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  background: rgba(8,40,47,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  border-radius: 12px;
  padding: 13px 16px;
  font-weight: 700; font-size: 15px; line-height: 1.3;
}
.why-text { display: flex; flex-direction: column; }
.why-adv { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.why-adv li { display: flex; gap: 14px; align-items: flex-start; }
.why-adv__ic {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  background: #fff; border: 1px solid var(--line); color: var(--aqua-dark);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.why-adv__ic svg { width: 23px; height: 23px; }
.why-adv b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.why-adv p { margin-top: 3px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.why-facts {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.why-fact b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--deep-water); letter-spacing: -0.01em; }
.why-fact span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* ============================================================
   CATALOG
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .22s, box-shadow .28s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card__media {
  position: relative;
  height: 240px;
  background:
    radial-gradient(130% 110% at 28% 0%, rgba(31,168,196,0.20), transparent 62%),
    linear-gradient(160deg, #ecf7fa 0%, #d6ecf2 60%, #c4e2ea 100%);
}
.card__media .ph { height: 100%; aspect-ratio: auto; border-radius: 0; border: none; }
.card__media .slot-img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 20px;
  border-radius: 0;
  background: transparent;
}
.card__badge {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: rgba(255,255,255,0.92);
  color: var(--deep-water);
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill);
  white-space: nowrap;
}

/* On-site photo as card cover (fills frame, pool centred) */
.card__media--photo { background: var(--aqua-light); }
.card__media--photo .slot-img.is-photo {
  object-fit: cover;
  object-position: center 52%;
  padding: 0;
}

/* Real images dropped into named slots */
.slot-img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--aqua-light);
}
.slot-img[data-ratio="16-9"] { aspect-ratio: 16/9; }
.slot-img[data-ratio="4-3"]  { aspect-ratio: 4/3; }
.slot-img[data-ratio="3-2"]  { aspect-ratio: 3/2; }
.detail__main .slot-img {
  border-radius: var(--r-md);
  object-fit: contain;
  padding: 16px;
  background:
    radial-gradient(130% 110% at 28% 0%, rgba(31,168,196,0.18), transparent 62%),
    linear-gradient(160deg, #ecf7fa 0%, #d6ecf2 60%, #c4e2ea 100%);
}
/* On-site photo as detail hero (cover, pool centred) */
.detail__main .slot-img.is-photo {
  object-fit: cover;
  object-position: center 52%;
  padding: 0;
  background: var(--aqua-light);
}
/* Top-view render kept as a labelled "colour variant" chip */
.detail__chip {
  margin: 0;
  align-self: flex-start;
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.detail__chip-img {
  background:
    radial-gradient(130% 110% at 28% 0%, rgba(31,168,196,0.18), transparent 62%),
    linear-gradient(160deg, #ecf7fa 0%, #d6ecf2 60%, #c4e2ea 100%);
}
.detail__chip-img .slot-img,
.detail__chip-img .ph {
  border-radius: 0;
  object-fit: contain;
  padding: 12px;
  background: transparent;
  aspect-ratio: 4/3;
}
.detail__chip figcaption {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 13px;
  font-size: 12.5px; font-weight: 700; color: var(--deep-water);
  border-top: 1px solid var(--line);
}
.detail__chip-dot {
  width: 13px; height: 13px; border-radius: 50%; flex: none;
  background: conic-gradient(#ffffff 0 33%, var(--aqua) 33% 66%, var(--deep-water) 66%);
  border: 1px solid var(--line-strong);
}
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__name { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -0.01em; }
.card__chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--aqua-light);
  color: var(--deep-water);
  font-size: 13.5px; font-weight: 700;
  padding: 7px 12px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.chip svg { width: 15px; height: 15px; color: var(--aqua-dark); }
.card__teaser { margin-top: 14px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.spec-row { display: flex; align-items: center; justify-content: space-between; font-size: 14.5px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.spec-row span { color: var(--muted); }
.spec-row b { font-weight: 700; color: var(--graphite); }
.card__price { margin-top: 16px; }
.card__price small { font-size: 13px; color: var(--muted); display: block; }
.card__price b { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--deep-water); letter-spacing: -0.01em; }
.card__btns { margin-top: 20px; display: flex; gap: 10px; }
.card__btns .btn { flex: 1; padding-inline: 12px; font-size: 14.5px; }

/* ============================================================
   EQUIPMENT
   ============================================================ */
.equip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.equip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.equip--accent { background: var(--deep-water); color: #fff; border-color: transparent; }
.equip__label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua-dark); }
.equip--accent .equip__label { color: #7FD6E6; }
.equip h3 { font-size: 24px; font-weight: 800; margin-top: 8px; letter-spacing: -0.01em; }
.equip ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.equip li { display: flex; gap: 14px; }
.equip li .ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--aqua-light); color: var(--aqua-dark);
}
.equip--accent li .ic { background: rgba(255,255,255,0.12); color: #9BE3F2; }
.equip li .ic svg { width: 21px; height: 21px; }
.equip li b { font-size: 16px; font-weight: 700; display: block; }
.equip li p { font-size: 14.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.equip--accent li p { color: rgba(255,255,255,0.72); }
.equip__note { margin-top: 24px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.equip--accent .equip__note { color: rgba(255,255,255,0.7); }

/* ---- Anatomy composition ---- */
.anat-stage { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); }
.anat-stage__img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }

.anat { position: absolute; display: flex; align-items: center; transform: translateY(-50%); z-index: 3; }
.anat--right { flex-direction: row; }
.anat--left { flex-direction: row-reverse; }
.anat__dot {
  position: relative;
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--aqua); border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  transition: transform .2s ease;
}
.anat__dot::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid rgba(31,168,196,0.65); opacity: 0;
}
.anat__line { width: 46px; height: 2px; flex: none; background: linear-gradient(90deg, var(--aqua), rgba(31,168,196,0.25)); }
.anat--left .anat__line { background: linear-gradient(270deg, var(--aqua), rgba(31,168,196,0.25)); }
.anat__card {
  max-width: 210px;
  background: rgba(8,40,47,0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 11px 14px;
  color: #fff;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.anat--left .anat__card { text-align: right; }
.anat__card b { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.anat__card span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,0.82); }
.anat:hover { z-index: 5; }
.anat:hover .anat__dot { transform: scale(1.45); }
.anat:hover .anat__card { border-color: var(--aqua); background: rgba(8,40,47,0.82); transform: translateY(-2px); }
@media (prefers-reduced-motion: no-preference) {
  .anat__dot::after { animation: anatPulse 2.6s ease-out infinite; }
}
@keyframes anatPulse {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}

/* additional equipment chips */
.anat-extra { margin-top: 26px; }
.anat-extra__label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua-dark); display: block; margin-bottom: 14px; }
.anat-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.anat-chip {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .2s;
}
.anat-chip:hover { border-color: rgba(31,168,196,0.4); transform: translateY(-2px); }
.anat-chip__ic { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--aqua-light); color: var(--aqua-dark); display: grid; place-items: center; }
.anat-chip__ic svg { width: 21px; height: 21px; }
.anat-chip b { font-size: 15px; font-weight: 700; display: block; letter-spacing: -0.01em; }
.anat-chip p { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.anat-extra__note { margin-top: 16px; }

/* ============================================================
   TECHNOLOGIES
   ============================================================ */
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tech {
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .28s ease, transform .25s ease;
}
.tech:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.tech__media {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.tech__img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.tech:hover .tech__img { transform: scale(1.03); }
.tech__body { padding: 26px 30px 32px; }
.tech__badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(8,40,47,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #7FE0F0;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--r-pill);
}
.tech h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; }
.tech p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ============================================================
   STAGES — horizontal stepper (scroll-snap + progress bar)
   ============================================================ */
.stepper { position: relative; }

/* ---- Progress indicator ---- */
.prog { position: relative; height: 44px; margin-bottom: 36px; }
.prog__rail { position: absolute; left: 22px; right: 22px; top: 50%; transform: translateY(-50%); height: 3px; }
.prog__rail-bg { position: absolute; inset: 0; background: rgba(127,214,230,0.22); border-radius: 3px; }
.prog__rail-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: linear-gradient(90deg, var(--aqua), #3FC6DC);
  border-radius: 3px;
  transition: width .26s cubic-bezier(.4,0,.2,1);
}
.prog__nodes { position: relative; display: flex; justify-content: space-between; align-items: center; height: 44px; z-index: 1; }
.prog__node {
  position: relative;
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; padding: 0;
  background: rgba(12,49,57,0.72);
  border: 2px solid rgba(127,214,230,0.42);
  color: rgba(155,227,242,0.72);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.34,1.4,.5,1), background .22s, border-color .22s, color .22s, box-shadow .22s;
}
.prog__node::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.prog__node:hover { border-color: var(--aqua); color: #cdeff7; }
.prog__node .prog__n { transition: opacity .2s; }
.prog__check { width: 20px; height: 20px; }

/* Completed nodes */
.prog__node.is-done {
  background: var(--aqua); border-color: var(--aqua); color: #fff;
}
/* Current node — bigger, brighter, ring */
.prog__node.is-current {
  background: #2FB3C9; border-color: #2FB3C9; color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 0 6px rgba(47,179,201,0.26), 0 8px 20px rgba(0,0,0,0.28);
}
/* Finish node */
.prog__node--finish.is-future { color: rgba(155,227,242,0.72); }

/* ---- Card carousel ---- */
/* arrows sit OUTSIDE the scroll track so they never cover cards */
.stepper__viewport { position: relative; display: flex; align-items: center; gap: 12px; }
.stepper__track {
  flex: 1 1 auto; min-width: 0;
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 16px;
  padding: 16px 16px 22px 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.stepper__track::-webkit-scrollbar { display: none; }

.step-card {
  flex: 0 0 clamp(252px, 30%, 344px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 214px;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-lg);
  padding: 26px 26px 28px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .26s cubic-bezier(.34,1.2,.5,1), box-shadow .26s, border-color .26s, background .26s, opacity .26s;
  will-change: transform;
}
.step-card__num {
  font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1;
  color: #3FC6DC; letter-spacing: -0.02em;
  display: flex; align-items: center;
}
.step-card__num svg { width: 30px; height: 30px; }
.step-card h4 { margin-top: auto; padding-top: 22px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.18; }
.step-card p { margin-top: 9px; font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.45; }

.step-card--finish { background: rgba(31,168,196,0.14); border-color: rgba(63,198,220,0.4); }
.step-card--finish .step-card__num { color: #fff; }
.step-card--finish h4 { font-family: var(--font-display); font-weight: 600; }
.step-card--finish p { color: rgba(255,255,255,0.84); }

/* hover — lift only, no neighbour shift */
.step-card:hover {
  transform: translateY(-6px);
  border-color: rgba(63,198,220,0.55);
  background: rgba(31,168,196,0.12);
  box-shadow: 0 18px 38px rgba(0,0,0,0.26);
}
/* active card synced with progress */
.step-card.is-active {
  border-color: var(--aqua);
  background: rgba(31,168,196,0.13);
  box-shadow: 0 0 0 1px var(--aqua), 0 20px 44px rgba(0,0,0,0.30);
}
.step-card.is-active:hover { transform: translateY(-6px); }
/* last card snaps to the END edge so it can come fully into view */
.stepper__track .step-card:last-child { scroll-snap-align: end; }

/* ---- Arrows ---- */
.stepper__arrow {
  position: relative; flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(10,44,52,0.86);
  border: 1px solid rgba(127,214,230,0.4);
  color: #9BE3F2;
  display: grid; place-items: center;
  z-index: 5;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  transition: background .2s, color .2s, opacity .2s, transform .2s, border-color .2s;
}
.stepper__arrow svg { width: 22px; height: 22px; }
.stepper__arrow:hover:not(:disabled) { background: var(--aqua); color: #fff; border-color: var(--aqua); }
.stepper__arrow:disabled { opacity: 0.3; pointer-events: none; }

/* ---- Mobile dots ---- */
.stepper__dots { display: none; }
.stepper__dots .dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0; border: none;
  background: rgba(127,214,230,0.32);
  cursor: pointer;
  transition: width .24s cubic-bezier(.4,0,.2,1), background .24s;
}
.stepper__dots .dot.is-active { width: 26px; border-radius: 5px; background: var(--aqua); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery .ph { transition: transform .25s, box-shadow .3s; }
.gallery .ph:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ============================================================
   QUIZ CTA
   ============================================================ */
.quiz-cta {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(120deg, var(--deep-water), var(--aqua-dark));
  color: #fff;
  padding: clamp(40px, 5vw, 64px);
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.quiz-cta::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 30px);
  opacity: .6;
}
.quiz-cta__txt { position: relative; flex: 1 1 360px; }
.quiz-cta h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.quiz-cta p { margin-top: 14px; font-size: 17px; color: rgba(255,255,255,0.84); max-width: 460px; }
.quiz-cta__action { position: relative; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 840px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: rgba(31,168,196,0.45); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 17.5px; font-weight: 700; color: var(--deep-water);
}
.faq-q .chev { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--aqua-light); color: var(--aqua-dark); display: grid; place-items: center; transition: transform .25s, background .2s; }
.faq-item.open .chev { transform: rotate(45deg); background: var(--aqua); color: #fff; }
.faq-q .chev svg { width: 16px; height: 16px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a__inner { padding: 0 24px 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  background: linear-gradient(135deg, var(--deep-water), var(--deep-water-2));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: ""; position: absolute; right: -10%; top: -30%;
  width: 60%; height: 160%;
  background: radial-gradient(circle, rgba(31,168,196,0.30), transparent 65%);
}
.final__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.final h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
.final p { margin-top: 18px; font-size: 18px; color: rgba(255,255,255,0.82); max-width: 460px; }
.final__contacts { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.final__contacts a { display: flex; align-items: center; gap: 13px; font-size: 17px; font-weight: 600; }
.final__contacts .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.12); display: grid; place-items: center; color: #9BE3F2; }
.final__contacts .ic svg { width: 20px; height: 20px; }

.form-card { background: #fff; border-radius: var(--r-xl); padding: 36px; box-shadow: var(--shadow-lg); color: var(--graphite); }
.form-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.form-card .sub { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Form elements ---------- */
.field { margin-top: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--deep-water); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 16px;
  color: var(--graphite);
  background: var(--sand);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--aqua);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31,168,196,0.12);
}
.consent-note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.consent-note a { color: var(--aqua-dark); text-decoration: underline; }
.form-card .btn { margin-top: 20px; }

/* Form success state */
.form-success { display: none; text-align: center; padding: 18px 0; }
.form-success.show { display: block; }
form.sent { display: none; }
.success-ic {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--aqua-light); color: var(--aqua-dark);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.success-ic svg { width: 34px; height: 34px; }
.form-success h4 { font-size: 21px; font-weight: 800; color: var(--deep-water); }
.form-success p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Inline form error + loading state */
.form-error {
  display: none; margin-top: 12px; padding: 10px 14px;
  background: #fdecec; color: #c0392b; border-radius: var(--r-sm, 10px);
  font-size: 13.5px; font-weight: 600; text-align: center; line-height: 1.4;
}
.form-error.show { display: block; }
.btn[data-loading] { opacity: .7; cursor: progress; pointer-events: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--graphite); color: rgba(255,255,255,0.7); padding: 56px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer__about { font-size: 14.5px; line-height: 1.6; max-width: 320px; }
.footer h5 { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a, .footer ul li { font-size: 15px; }
.footer ul a:hover { color: var(--aqua); }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 13.5px; }
.footer__bottom a:hover { color: var(--aqua); }

/* ============================================================
   MODALS
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(8,35,42,0.55); backdrop-filter: blur(4px); }
.modal__dialog {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -48%);
  width: min(94vw, 520px);
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 34px;
  opacity: 0;
  transition: transform .28s cubic-bezier(.34,1.3,.5,1), opacity .22s;
}
.modal.open .modal__dialog { transform: translate(-50%, -50%); opacity: 1; }
.modal__dialog--wide { width: min(96vw, 1000px); padding: 0; }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: rgba(12,74,86,0.06); color: var(--deep-water);
  display: grid; place-items: center; transition: background .18s;
}
.modal__close:hover { background: rgba(12,74,86,0.14); }
.modal__close svg { width: 20px; height: 20px; }
.modal__title { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; padding-right: 30px; }
.modal__sub { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---- Model detail modal ---- */
.detail { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.detail__left {
  position: sticky;
  top: 24px;
  align-self: start;
  background: var(--aqua-light);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.detail__media { display: flex; flex-direction: column; gap: 14px; }
.detail__main .ph { border-radius: var(--r-md); }
.detail__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail__info { padding: 38px 34px; }
.detail__name { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -0.01em; }
.detail__name span { color: var(--aqua-dark); }
.detail__price { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; }
.detail__price b { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--deep-water); }
.detail__price small { color: var(--muted); font-size: 14px; }
.detail__desc { margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.detail__desc + .detail__desc { margin-top: 12px; }
.detail h4.block-label { margin-top: 26px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aqua-dark); font-weight: 700; }
.detail__specs { margin-top: 12px; }
.detail__specs .spec-row { font-size: 15px; padding-block: 10px; }
.detail__equip { margin-top: 12px; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.detail__equip li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.detail__equip li svg { width: 18px; height: 18px; color: var(--aqua); flex: none; margin-top: 2px; }
.detail__equip li b { font-weight: 700; }
.detail__equip li .muted { color: var(--muted); }

/* color swatches */
.swatches { margin-top: 14px; display: flex; gap: 14px; }
.swatch { text-align: center; }
.swatch__chip { width: 56px; height: 56px; border-radius: 14px; border: 2px solid rgba(12,74,86,0.12); box-shadow: inset 0 -8px 16px rgba(0,0,0,0.12); }
.swatch__chip.sel { outline: 3px solid var(--aqua); outline-offset: 2px; }
.swatch small { display: block; margin-top: 7px; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; color: var(--muted); }
.sw-white { background: linear-gradient(160deg, #ffffff, #dfeef2); }
.sw-blue  { background: linear-gradient(160deg, #5fc4dd, #2a93b8); }
.sw-dark  { background: linear-gradient(160deg, #1f5f87, #0c3a5c); }

.detail__cta { margin-top: 26px; display: flex; gap: 12px; }
.detail__cta .btn { flex: 1; }

/* order card (sticky CTA in left column) */
.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-sm);
}
.order-card__price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.order-card__price small { color: var(--muted); font-size: 13px; }
.order-card__price b { font-family: var(--font-display); font-weight: 600; font-size: 24px; color: var(--deep-water); white-space: nowrap; }
.order-card__color { margin-top: 10px; font-size: 14px; color: var(--muted); }
.order-card__color b { color: var(--graphite); font-weight: 700; }
.order-card__btns { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.order-card__btns .btn { width: 100%; }

/* additional equipment — selectable */
.opt-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.opt { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--sand); transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--aqua); background: #fff; }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt__box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); background: #fff; display: grid; place-items: center; color: #fff; transition: background .15s, border-color .15s; }
.opt__box svg { width: 14px; height: 14px; opacity: 0; transition: opacity .12s; }
.opt input:checked + .opt__box { background: var(--aqua); border-color: var(--aqua); }
.opt input:checked + .opt__box svg { opacity: 1; }
.opt:has(input:checked) { border-color: var(--aqua); background: #fff; }
.opt input:focus-visible + .opt__box { box-shadow: 0 0 0 3px rgba(31,168,196,0.3); }
.opt__txt { font-size: 14.5px; line-height: 1.4; }
.opt__txt b { display: block; font-weight: 700; }
.opt__txt .muted { color: var(--muted); font-size: 13.5px; }

/* chosen summary line */
.detail__chosen { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); background: var(--aqua-light); border-radius: var(--r-sm); padding: 12px 14px; }
.detail__chosen b { color: var(--deep-water); font-weight: 700; }

/* config echoed in order / kp modals */
.cfg-extra { margin-top: 6px; font-size: 14px; color: var(--muted); }
.cfg-extra b { color: var(--deep-water); font-weight: 700; }

/* ---- Quiz modal ---- */
.quiz { padding: 4px; }
.quiz__progress { height: 6px; background: var(--aqua-light); border-radius: var(--r-pill); overflow: hidden; margin-bottom: 8px; }
.quiz__progress span { display: block; height: 100%; background: var(--aqua); border-radius: var(--r-pill); transition: width .3s ease; width: 12.5%; }
.quiz__meta { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.quiz__q { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; margin-bottom: 20px; }
.quiz__opts { display: grid; gap: 10px; }
.quiz__opt {
  text-align: left; padding: 16px 18px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--sand);
  font-size: 16px; font-weight: 600; color: var(--graphite);
  display: flex; align-items: center; gap: 12px; transition: border-color .15s, background .15s;
}
.quiz__opt:hover { border-color: var(--aqua); background: #fff; }
.quiz__opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; transition: border .15s, background .15s; }
.quiz__opt:hover .dot { border-color: var(--aqua); }
.quiz__nav { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; }
.quiz__back { background: none; border: none; color: var(--muted); font-weight: 700; font-size: 15px; padding: 8px; }
.quiz__back:hover { color: var(--deep-water); }
.quiz__back[disabled] { opacity: .35; cursor: default; }

.quiz-result { text-align: center; }
.quiz-result .success-ic { background: var(--aqua-light); }
.quiz-result h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-top: 6px; }
.quiz-result .pick { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; display: flex; gap: 16px; align-items: center; text-align: left; background: var(--sand); }
.quiz-result .pick .ph { width: 120px; flex: none; border-radius: 12px; }
.quiz-result .pick h4 { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.quiz-result .pick .est { margin-top: 6px; color: var(--muted); font-size: 14px; }
.quiz-result .pick .est b { color: var(--deep-water); font-size: 17px; font-family: var(--font-display); font-weight: 600; }
.quiz__opt.sel { border-color: var(--aqua); background: #fff; }
.quiz__opt.sel .dot { border-color: var(--aqua); background: var(--aqua); box-shadow: inset 0 0 0 3px #fff; }
.pick__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aqua-dark); margin-bottom: 4px; }
.quiz-result .pick .slot-img { width: 130px; flex: none; height: auto; aspect-ratio: 4/3; border-radius: 12px; object-fit: contain; padding: 8px; background: linear-gradient(160deg, #ecf7fa, #d6ecf2); }

/* ============================================================
   PORTFOLIO MOSAIC (light, asymmetric)
   ============================================================ */
.section--light { background: #fbfdfe; }
.title--accent::after {
  content: ""; display: block;
  width: 64px; height: 3px; margin-top: 18px; border-radius: 3px;
  background: linear-gradient(90deg, var(--aqua), var(--deep-water));
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
#portfolio:hover .title--accent::after { width: 116px; }

/* masonry of real project photos */
.mosaic { column-count: 3; column-gap: 16px; }
.work {
  display: block; width: 100%;
  break-inside: avoid;
  margin: 0 0 16px;
  padding: 0; border: none;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--aqua-light);
  box-shadow: 0 8px 22px rgba(12,74,86,0.12);
  cursor: pointer;
}
.work__img {
  display: block; width: 100%; height: auto;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.work__grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(7,30,36,0.78) 0%, rgba(7,30,36,0.30) 32%, transparent 56%);
  transition: opacity .3s ease;
}
.work__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 2;
}
.work__title { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.work__chip { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 11.5px; color: rgba(255,255,255,0.86); letter-spacing: 0.02em; }
.work:hover { box-shadow: 0 16px 36px rgba(12,74,86,0.22); }
.work:hover .work__img { transform: scale(1.04); }
.work:hover .work__grad { opacity: 1.15; }
.work:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; display: none; }
.lightbox.open { display: grid; place-items: center; }
.lightbox__scrim { position: absolute; inset: 0; background: rgba(6,26,31,0.86); backdrop-filter: blur(6px); }
.lightbox__fig { position: relative; z-index: 2; margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox__img { max-width: 92vw; max-height: 80vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); display: block; }
.lightbox__cap { color: rgba(255,255,255,0.9); font-size: 14.5px; font-weight: 600; text-align: center; }
.lightbox__close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 48px; height: 48px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.14); color: #fff;
  display: grid; place-items: center; transition: background .18s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.26); }
.lightbox__close svg { width: 22px; height: 22px; }

/* ============================================================
   QUIZ (inline) layout
   ============================================================ */
.quiz-section { position: relative; overflow: hidden; }
.quiz-bg { position: absolute; inset: 0; z-index: 0; }
.quiz-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quiz-section::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(110deg, rgba(7,36,42,0.92) 0%, rgba(9,50,58,0.80) 46%, rgba(12,74,86,0.55) 100%),
    linear-gradient(to bottom, rgba(7,36,42,0.40), transparent 30%);
}
.quiz-section .wrap { position: relative; z-index: 2; }
.quiz-section .quiz-intro .eyebrow { color: #9BE3F2; }
.quiz-section .quiz-intro .title { color: #fff; }
.quiz-section .quiz-intro .lead { color: rgba(255,255,255,0.84); }
.quiz-section .quiz-bullets li { color: #fff; }
.quiz-wrap { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 52px; align-items: center; }
.quiz-intro { padding-top: 4px; }
.quiz-bullets { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.quiz-bullets li { display: flex; gap: 12px; align-items: center; font-size: 16px; font-weight: 600; color: var(--graphite); }
.qb-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--aqua-light); color: var(--aqua-dark); display: grid; place-items: center; }
.qb-ic svg { width: 15px; height: 15px; }
.quiz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-md); }
.quiz-card .quiz__opt span:last-child { flex: 1; }

/* segmented messenger choice */
.seg { display: flex; gap: 10px; }
.seg__btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--sand); font-weight: 700; font-size: 15px; color: var(--graphite); transition: border-color .15s, background .15s; }
.seg__btn svg { width: 18px; height: 18px; color: #229ED9; }
.seg__btn:hover { border-color: var(--aqua); background: #fff; }
.seg__btn.sel { border-color: var(--aqua); background: var(--aqua-light); }
.seg__max { font-size: 10px; font-weight: 800; color: #fff; background: linear-gradient(150deg, #2BB3F0, #1E8FE0); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1320px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .header__divider { display: none; }
}

@media (max-width: 1080px) {
  .quiz-wrap { grid-template-columns: 1fr; gap: 32px; }
  .mosaic { column-count: 2; }
  .why-wrap { grid-template-columns: 1fr; gap: 28px; }
  .why-photo__img { min-height: 360px; max-height: 460px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card { flex-basis: clamp(280px, 56%, 420px); }
  .stepper__dots { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }
  .fact + .fact::before { display: none; }
  .final__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .prog { height: 32px; margin-bottom: 24px; }
  .prog__rail { left: 15px; right: 15px; }
  .prog__node { width: 30px; height: 30px; flex: 0 0 30px; font-size: 12px; }
  .prog__node.is-current { transform: scale(1.16); box-shadow: 0 0 0 5px rgba(47,179,201,0.26); }
  .prog__check { width: 15px; height: 15px; }
  .step-card { flex-basis: 86%; min-height: 196px; padding: 24px 22px 26px; }
  .stepper__viewport { gap: 6px; }
  .stepper__arrow { width: 42px; height: 42px; }
  .section { padding: 68px 0; }
  .section--tight { padding: 54px 0; }
  .header__cta { gap: 10px; }
  .why-facts { grid-template-columns: 1fr; gap: 12px; }
  .cat-grid { grid-template-columns: 1fr; }
  .equip-grid { grid-template-columns: 1fr; }
  .anat-stage { overflow: visible; box-shadow: none; }
  .anat-stage__img { border-radius: 16px; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
  .anat { position: static; transform: none; flex-direction: row; align-items: flex-start; gap: 12px; margin-top: 16px; max-width: none; }
  .anat__line { display: none; }
  .anat__dot { margin-top: 4px; animation: none; }
  .anat__dot::after { animation: none; }
  .anat__card { max-width: none; flex: 1; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: none; border-radius: 0; padding: 0; color: var(--graphite); text-align: left !important; }
  .anat__card b { color: var(--deep-water); font-size: 15.5px; }
  .anat__card span { color: var(--muted); font-size: 13.5px; }
  .anat-chips { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .mosaic { column-count: 1; }
  .quiz-card { padding: 22px; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__btns .btn { flex: 1; }
  .detail { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .detail__left { display: contents; }
  .detail__media { background: var(--aqua-light); padding: 24px; order: 1; }
  .detail__info { padding: 28px 24px 24px; order: 2; }
  .detail__order { order: 3; background: var(--aqua-light); padding: 0 24px 28px; }
  .modal__dialog { padding: 26px; }
  .quiz-result .pick { flex-direction: column; align-items: stretch; }
  .quiz-result .pick .ph { width: 100%; }
  .form-card { padding: 26px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 420px) {
  .hero__facts { grid-template-columns: 1fr; }
  .card__btns { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
