/* Fenix 8 Pro product landing - DJI Osmo Action 4 language
   Sticky product bar · full-bleed black hero · feature stages · big specs
   PRODUCT_LINE swap: Fenix 8 Pro → Fenix 9 Pro (copy + assets only)
*/

:root {
  --bg: #000000;
  --bg-elev: #0d0d0d;
  --bg-soft: #141414;
  --bg-card: #1a1a1a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #a8a8a8;
  --faint: #6e6e6e;
  --accent: #0070d5; /* DJI product blue */
  --accent-hover: #2490e3;
  --accent-deep: #0058b0;
  --ok: #3ecf8e;
  --err: #ff6b6b;
  --pbar-h: 72px;
  --max: 1200px;
  --green: #3ddc84;
  --amber: #f5a524;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-pill: 999px;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip,
.visually-hidden,
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2rem, 720px);
}

/* ----- Product sticky bar (DJI) ----- */
.pbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--pbar-h);
  background: rgba(12, 12, 12, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  transition: height 220ms var(--ease);
}

.pbar.is-compact {
  --pbar-h: 56px;
}

.pbar-inner {
  height: 100%;
  width: min(100% - 1.25rem, 1280px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pbar-name {
  font-size: clamp(1.55rem, 2.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: font-size 220ms var(--ease);
}

.pbar.is-compact .pbar-name {
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
}

.pbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  margin-left: auto;
  min-width: 0;
}

.pbar-nav {
  display: none;
  gap: 1.35rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
  flex-wrap: nowrap;
}

.pbar.is-compact .pbar-nav {
  font-size: 0.95rem;
  gap: 1.1rem;
}

@media (min-width: 960px) {
  .pbar-nav {
    display: flex;
  }
}

@media (hover: hover) and (pointer: fine) {
  .pbar-nav a:hover {
    color: var(--text);
  }
}

.pbar-nav a.is-active {
  color: var(--text);
}

.pbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 160ms var(--ease), transform 120ms var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

.pbar-cta:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .pbar-cta:hover {
    background: var(--accent-hover);
  }
}

/* ----- Side TOC (PC: always full list visible; active highlighted; no frame) ----- */
.side-toc {
  display: none;
}

/* TOC: always fully visible on PC; slot reserved via main padding */
.side-toc a {
  position: relative;
  display: block;
  padding-right: 0.95rem;
  padding-left: 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
  max-height: none;
  overflow: visible;
  pointer-events: auto;
  transition: color 180ms var(--ease);
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.45);
}

.side-toc a::before {
  content: "";
  position: absolute;
  right: 0;
  left: auto;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
}

@media (min-width: 1280px) {
  .side-toc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    position: fixed;
    left: auto;
    right: 0.75rem;
    /* Between sticky product bar and FAB stack — clear contact buttons */
    top: 5.75rem;
    bottom: 12.5rem;
    transform: none;
    z-index: 40;
    width: 10.75rem;
    padding: 0.65rem 0.2rem 0.65rem 0.35rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  .side-toc::-webkit-scrollbar {
    display: none;
  }

  /* Место под TOC всегда зарезервировано */
  main {
    padding-right: 12.5rem;
  }

  .fab-stack {
    right: 0.65rem;
    bottom: 1.5rem;
  }
}

@media (min-width: 1480px) {
  main {
    padding-right: 13.5rem;
  }
}

.side-toc a.is-active {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.55);
}

.side-toc a.is-active::before {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

@media (hover: hover) and (pointer: fine) {
  .side-toc a:hover {
    color: #b0b0b0;
  }
}

/* ----- Floating FABs: hide while scrolling, show after stop ----- */
.fab-stack {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 45;
  display: grid;
  gap: 0.65rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
  pointer-events: auto;
}

.fab-stack.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 140ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}

.fab-tg {
  background: var(--accent);
  color: #fff;
}

.fab-mail {
  background: #fff;
  color: #111;
}

.fab-call {
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fab:active {
  transform: scale(0.96);
}

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

@media (max-width: 639px) {
  .fab-stack {
    right: 0.75rem;
    bottom: 0.85rem;
  }
  .fab {
    width: 48px;
    height: 48px;
  }
}

/* ----- Bento highlight cards (DJI) ----- */
.bento {
  padding: 5rem 0 4rem;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .bento-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-auto-rows: minmax(220px, auto);
  }

  .bento-wide {
    grid-column: span 2;
  }

  .bento-media {
    grid-column: span 2;
  }
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 220px;
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 18px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  overflow: hidden;
}

.bento-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.bento-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 28ch;
}

.bento-toggle {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.92);
  border: 1px solid var(--line-strong);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: transform 180ms var(--ease), background 160ms var(--ease);
}

.bento-card.is-open .bento-toggle {
  transform: rotate(180deg);
  background: var(--accent);
  border-color: transparent;
}

.bento-hero-stat {
  margin-top: auto;
  padding-top: 1rem;
  display: grid;
  gap: 0.15rem;
}

.bento-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.bento-stat-val {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}

.bento-stat-green .bento-stat-val {
  color: var(--green);
}

.bento-stat-amber .bento-stat-val {
  color: var(--amber);
}

.bento-stat-unit {
  font-size: 0.9rem;
  color: var(--muted);
}

.bento-panel {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.bento-panel[hidden] {
  display: none !important;
}

.bento-panel h4 {
  margin: 0 0 0.45rem;
  color: var(--text);
  font-size: 1.05rem;
}

.bento-panel p {
  margin: 0 0 0.85rem;
}

.bento-detail-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.bento-detail-nums div {
  display: grid;
  gap: 0.15rem;
}

.bento-detail-nums strong {
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bento-detail-nums span {
  font-size: 0.75rem;
  color: var(--faint);
}

.bento-media {
  min-height: 280px;
  justify-content: flex-end;
}

.bento-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.bento-media-copy {
  position: relative;
  z-index: 1;
}

.bento-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 55%);
  pointer-events: none;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease);
}

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

.btn-solid {
  background: var(--text);
  color: var(--bg);
}

@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover {
    background: #e8e8e8;
  }
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    border-color: var(--text);
  }
}

.btn-sm {
  min-height: 42px;
  font-size: 0.88rem;
  padding: 0 1.25rem;
}

.btn-block {
  width: 100%;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: min(52dvh, 520px);
  display: grid;
  place-items: center;
  padding: calc(var(--pbar-h) + 2.5rem) 1.25rem 4rem;
  overflow: hidden;
  text-align: center;
  background: #000;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.45;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}
.hero.is-stack-hero .hero-bg img,
.hero.is-stack-hero .hero-photo img {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, transparent 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.85) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, transparent 28%, transparent 55%, rgba(0, 0, 0, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.hero-brand {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.02;
  text-transform: uppercase;
}

.hero-tag {
  margin: 0.85rem 0 1.75rem;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 540px) {
  .hero-meta {
    gap: 0.85rem;
    font-size: 0.65rem;
  }
}

/* ----- Highlights ----- */
.highlights {
  padding: 4.5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.hl-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .hl-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2rem;
  }
}

@media (min-width: 1000px) {
  .hl-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hl-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.hl-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: var(--text);
  margin-bottom: 0.85rem;
}

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

.hl-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hl-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ----- Feature stages ----- */
.stages {
  background: var(--bg);
}

.stage {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  min-height: min(100dvh, 880px);
}

@media (min-width: 900px) {
  .stage {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }

  .stage-flip {
    direction: rtl;
  }

  .stage-flip > * {
    direction: ltr;
  }

  .stage-media {
    position: sticky;
    top: var(--pbar-h);
    height: calc(100dvh - var(--pbar-h));
    max-height: 880px;
  }
}

.stage-media {
  position: relative;
  background: #080808;
  overflow: hidden;
  min-height: 280px;
}

.stage-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .stage:hover .stage-media img {
    transform: scale(1.03);
  }
}

.stage-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-elev);
}

@media (min-width: 900px) {
  .stage-copy {
    padding: 3.5rem 3rem;
  }
}

.stage-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.stage-copy h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.stage-copy > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 36ch;
  font-size: 1rem;
}

.stage-bullets {
  display: grid;
  gap: 0.55rem;
}

.stage-bullets li {
  position: relative;
  padding-left: 1rem;
  color: var(--text);
  font-size: 0.92rem;
}

.stage-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ----- Metrics ----- */
.metrics {
  padding: 5rem 0;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

/* Metrics photo + size switcher overlaid */
.metrics-stage {
  margin: 0 0 1.75rem;
  max-width: 720px;
}

.metrics-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #080808;
  aspect-ratio: 16 / 11;
}

.metrics-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 280ms var(--ease), transform 480ms var(--ease);
}

.metrics-photo img.is-swap {
  opacity: 0.35;
  transform: scale(1.03);
}

/* switcher + label over photo, bottom-left */
.metrics-photo-ui {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  width: auto;
}

.size-switch-on-photo {
  width: max-content;
  background: rgba(0, 0, 0, 0.58);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.size-switch {
  display: inline-flex;
  flex-wrap: nowrap;
  width: max-content;
  max-width: 100%;
  gap: 0.25rem;
  padding: 0.28rem;
  margin: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.size-switch-btn {
  min-height: 40px;
  min-width: 4.75rem;
  padding: 0 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  transition: background 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}

.size-switch-btn:active {
  transform: scale(0.98);
}

.size-switch-btn.is-active {
  background: var(--accent);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .size-switch-btn:not(.is-active):hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
  }
}

.metric-val.is-updating {
  opacity: 0.35;
  transform: translateY(4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.sec-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sec-lead {
  margin: 0 0 2.25rem;
  color: var(--muted);
  max-width: 48ch;
  font-size: 1rem;
}

.metrics-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.metric {
  padding: 1.5rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 160px;
}

.metric-val {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-unit {
  margin: 0.25rem 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-hover);
}

.metric-label {
  margin: 0;
  font-size: 0.82rem;
  color: #9a9a9a;
  line-height: 1.4;
}
.metric:hover .metric-label {
  color: #b5b5b5;
}
.metrics-jump {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,112,213,.35);
}
.metrics-jump:hover {
  color: var(--accent-hover);
}

.metrics-note {
  margin: 1.5rem 0 0;
  font-size: 0.82rem;
  color: var(--faint);
  max-width: 70ch;
}

/* ----- Bleed lifestyle ----- */
.bleed {
  background: #000;
}

.bleed-fig {
  margin: 0;
  position: relative;
  min-height: min(78dvh, 720px);
  overflow: hidden;
}

.bleed-fig img {
  width: 100%;
  height: 100%;
  min-height: min(78dvh, 720px);
  object-fit: cover;
}

.bleed-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 1.5rem 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
}

@media (min-width: 800px) {
  .bleed-cap {
    padding: 4rem min(8vw, 5rem) 3rem;
    max-width: 36rem;
  }
}

.bleed-cap h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.bleed-cap p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ----- Specs ----- */
.specs {
  padding: 5rem 0;
  background: var(--bg);
}

.spec-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .spec-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .spec-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec-card {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.spec-card h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.spec-card dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.spec-card dl div {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.spec-card dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.spec-card dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ----- Sizes ----- */
.sizes {
  padding: 5rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.size-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .size-grid {
    grid-template-columns: 1fr 1fr;
  }

  .size-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 799px) {
  .size-grid-3 {
    grid-template-columns: 1fr;
  }
}

.size-card {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-card);
  display: grid;
  gap: 0.85rem;
}

.size-card.is-featured {
  border-color: rgba(0, 112, 213, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 112, 213, 0.15);
}

.size-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.size-visual {
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0a0a;
  aspect-ratio: 16 / 11;
}

.size-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.size-card h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.size-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.size-card ul {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.size-card li {
  color: var(--text);
  font-size: 0.9rem;
  padding-left: 0.9rem;
  position: relative;
}

.size-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.size-card .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

/* ----- FAQ ----- */
.faq {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 0;
  font-weight: 550;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent-hover);
  font-weight: 400;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-body p {
  margin: 0;
}

/* ----- Order ----- */
.order {
  padding: 5rem 0 5.5rem;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}

.order-shell {
  display: grid;
  gap: 2rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-card);
}

@media (min-width: 900px) {
  .order-shell {
    grid-template-columns: 0.95fr 1.15fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
}

.order-side {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

@media (min-width: 900px) {
  .order-side {
    padding: 2.25rem 2rem;
    border-right: 1px solid var(--line);
  }
}

.order-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.order-side h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.order-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.order-points {
  display: grid;
  gap: 0.5rem;
  margin: 0.35rem 0;
}

.order-points li {
  position: relative;
  padding-left: 1rem;
  color: var(--text);
  font-size: 0.92rem;
}

.order-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

.order-contacts {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.order-contacts a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  justify-self: start;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .order-contacts a:hover {
    color: var(--text);
    border-bottom-color: var(--line-strong);
  }
}

.form {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 900px) {
  .form {
    padding: 2.25rem 2rem;
  }
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field .error {
  display: none;
  color: var(--err);
  font-size: 0.8rem;
}

.field.is-invalid .error {
  display: block;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: rgba(255, 107, 107, 0.55);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  outline: none;
  transition: border-color 160ms var(--ease);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%),
    linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.75rem;
}

.field select option {
  background: #1a1a1a;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field-row {
  display: grid;
  gap: 0.9rem;
}

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

.form-legal {
  margin: 0;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.45;
}

.form-status {
  display: none;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.form-status.is-ok {
  display: block;
  border-color: rgba(62, 207, 142, 0.4);
  color: var(--ok);
}

.form-status.is-err {
  display: block;
  border-color: rgba(255, 107, 107, 0.45);
  color: var(--err);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* accent solid override for form submit to match DJI CTA blue */
.form .btn-solid {
  background: var(--accent);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .form .btn-solid:hover {
    background: var(--accent-hover);
    color: #fff;
  }
}

/* ----- Footer ----- */
.footer {
  padding: 3rem 0 1.5rem;
  background: #050505;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}

.footer h3 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer p {
  margin: 0.3rem 0;
}

@media (hover: hover) and (pointer: fine) {
  .footer a:hover {
    color: var(--text);
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--faint);
}

/* ----- Reveal ----- */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-bg img {
    animation: none;
  }
}

/* ----- Battery card mini switch + mini stats ----- */
.card-size-switch {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  gap: 0.25rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.25rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.card-size-btn {
  min-height: 32px;
  padding: 0 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.card-size-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.batt-card-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.batt-card-mini div {
  display: grid;
  gap: 0.1rem;
}

.batt-card-mini strong {
  color: var(--green);
  font-size: 1.15rem;
  font-weight: 700;
}

.batt-card-mini span {
  font-size: 0.72rem;
  color: var(--faint);
}

.bento-jump {
  text-decoration: none;
}

/* ----- Battery comparison table ----- */
.battery {
  padding: 5rem 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}

.battery .sec-title {
  margin-bottom: 1.35rem;
}

.battery-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
}

.battery-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}

.battery-table th,
.battery-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.battery-table thead th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.battery-table thead th.th-size {
  cursor: pointer;
  user-select: none;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.battery-table thead th.th-size:hover {
  color: var(--text);
  background: rgba(0, 112, 213, 0.12);
}

.battery-table thead th.th-size:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.battery-table tbody th {
  font-weight: 500;
  color: var(--text);
  width: 28%;
}

.battery-table td strong {
  color: var(--green);
  font-weight: 700;
}

.battery-table .muted {
  display: block;
  margin-top: 0.2rem;
  color: var(--faint);
  font-size: 0.78rem;
}

.battery-table tbody tr:last-child th,
.battery-table tbody tr:last-child td {
  border-bottom: 0;
}

.battery-table .is-col-active {
  background: rgba(0, 112, 213, 0.1);
}

.battery-table thead th.is-col-active {
  color: var(--text);
}

.battery-source {
  margin: 1rem 0 0;
  font-size: 0.85rem;
}

.battery-source a {
  color: var(--accent-hover);
  border-bottom: 1px solid rgba(36, 144, 227, 0.35);
}

/* ----- Configurator (Garmin product picker) ----- */
.config {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.config .sec-lead {
  margin-bottom: 0.55rem;
}

.config-shell {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .config-shell {
    grid-template-columns: 1fr 1.1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}

.config-preview {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 1.5rem 1.5rem 1.35rem;
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.config-preview img {
  width: 100%;
  margin: 0 auto 1.15rem;
  object-fit: contain;
  max-height: 420px;
  flex: 1 1 auto;
  display: block;
  background: #fff;
}

.config-preview-copy {
  display: grid;
  gap: 0.45rem;
}

.config-preview-title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #111;
}

.config-preview-meta {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 40ch;
}

.config-part {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: #555;
  font-variant-numeric: tabular-nums;
}

.config-part span {
  color: #111;
  font-weight: 600;
}

/* blue pill CTA like header «Предзаказ» */
.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
  max-width: 28rem;
  transition: background 160ms var(--ease), transform 120ms var(--ease);
}

.btn-primary-cta:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary-cta:hover {
    background: var(--accent-hover);
    color: #fff;
  }
}

.config-panel {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  height: 100%;
  min-height: 0;
}

.config-panel > .btn-primary-cta {
  margin-top: auto;
  max-width: none;
  width: 100%;
}

.config-block {
  display: grid;
  gap: 0.65rem;
}

.config-block-colour {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.config-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.config-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.config-pill {
  min-height: 40px;
  padding: 0 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}

.config-pill.is-active {
  background: #fff;
  color: #111;
  border-color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .config-pill:not(.is-active):hover {
    border-color: rgba(255, 255, 255, 0.4);
  }
}

.config-swatches {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-height: 12rem;
}

@media (min-width: 900px) {
  .config-swatches {
    min-height: 16rem;
  }
}

.config-swatch {
  display: grid;
  grid-template-columns: 18px 40px 1fr;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 52px;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
  text-align: left;
  color: var(--text);
  transition: border-color 140ms var(--ease), background 140ms var(--ease), box-shadow 140ms var(--ease);
}

.config-swatch-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: block;
  position: relative;
  flex-shrink: 0;
}

.config-swatch.is-active .config-swatch-radio {
  border-color: var(--accent);
}

.config-swatch.is-active .config-swatch-radio::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--accent);
}

.config-swatch img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  pointer-events: none;
  background: #111;
}

.config-swatch-label {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

.config-swatch.is-active {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: none;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .config-swatch:not(.is-active):hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.05);
  }
}

.config-colour-name {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.config-summary {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.92rem;
}

/* ----- Hardware photo features (Garmin 3-up) ----- */
.hw-features {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.hw-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .hw-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.hw-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.85rem;
  align-content: start;
  height: 100%;
}

.hw-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 4 / 3;
}

.hw-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hw-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 2.6em;
  display: flex;
  align-items: flex-start;
}

.hw-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (min-width: 900px) {
  .hw-grid,
  .hw-grid-story {
    align-items: stretch;
  }
}

/* ----- Performance features grid ----- */
.perf {
  padding: 5rem 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}

.perf-grid {
  display: grid;
  gap: 1.75rem 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .perf-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .perf-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }
}

@media (min-width: 1200px) {
  .perf-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem 1.25rem;
  }
}

.perf-item {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
  text-align: left;
}

.perf-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: invert(1) brightness(1.1);
  opacity: 0.92;
}

.perf-item h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
}

.perf-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ----- Mobile menu button + drawer ----- */
.pbar-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.pbar-menu-lines {
  width: 14px;
  height: 10px;
  display: inline-block;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 4px / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px / 100% 2px no-repeat;
}

@media (min-width: 960px) {
  .pbar-menu-btn {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  top: var(--pbar-h);
  left: 0;
  right: 0;
  z-index: 48;
  max-height: min(70dvh, 520px);
  overflow: auto;
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1rem;
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav nav {
  display: grid;
  gap: 0.15rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 47;
  background: rgba(0, 0, 0, 0.45);
}

.mobile-nav-backdrop[hidden] {
  display: none !important;
}

/* Side TOC contrast (always-visible mode — opacity/max-height not overridden) */
.side-toc a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.55);
}

/* Size switch inactive: darker text for contrast on light photo */
.size-switch-on-photo {
  background: rgba(245, 245, 245, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
}

.size-switch-on-photo .size-switch-btn {
  color: #1a1a1a;
}

.size-switch-on-photo .size-switch-btn.is-active {
  color: #fff;
  background: var(--accent);
}

.card-size-btn {
  color: #c8c8c8;
}

.card-size-btn.is-active {
  color: #fff;
}

/* Size wrist recommendation */
.size-wrist {
  margin: 0 0 0.35rem !important;
  font-size: 0.88rem !important;
  color: var(--accent-hover) !important;
}

.size-wrist strong {
  color: var(--text);
  font-weight: 600;
}

/* Limitless strip */
.limitless {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 52rem;
  margin-inline: auto;
}

.limitless-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.limitless-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.limitless-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.limitless-pills li {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hw-grid-story {
  margin-top: 2rem;
}

/* Features accordion */
.features-hub {
  padding: 5rem 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}

.features-hub-head {
  margin-bottom: 1.5rem;
}

.feat-acc {
  display: grid;
  gap: 0.65rem;
}

.feat-acc-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
}

.feat-acc-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between; /* текст слева, chevron справа — как было */
  flex-direction: row;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (min-width: 1280px) {
  .features-hub .wrap {
    max-width: min(100% - 1rem, var(--max));
  }
}

.feat-acc-item summary::-webkit-details-marker {
  display: none;
}

.feat-acc-chev {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  position: relative;
}

.feat-acc-chev::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 180ms var(--ease);
}

.feat-acc-item[open] .feat-acc-chev::before {
  transform: translate(-50%, -35%) rotate(225deg);
}

.feat-acc-item[open] .feat-acc-chev {
  background: var(--accent);
  border-color: transparent;
}

.feat-acc-body {
  padding: 0 1.15rem 1.25rem;
  border-top: 1px solid var(--line);
}

.feat-acc-body .perf-grid {
  padding-top: 1.15rem;
}

.feat-acc-item summary span:first-child {
  text-transform: none;
}

/* Battery display mode tabs */
.battery-mode-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  gap: 0.3rem;
  padding: 0.28rem;
  margin: 0 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.battery-mode-btn {
  min-height: 36px;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c8c8c8;
}

.battery-mode-btn.is-active {
  background: var(--accent);
  color: #fff;
}

.battery-mode-note {
  margin: 0 0 1rem;
  color: var(--faint);
  font-size: 0.88rem;
  max-width: 52ch;
}

/* ----- Section filters (size + AMOLED/Solar) ----- */
.section-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.75rem;
  margin: 0 0 1.25rem;
}

.filter-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.section-filters .size-switch {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

/* Sticky compare filters (mobile table scroll) */
.compare-sticky-panel {
  position: relative;
}

.section-filters-sticky {
  position: sticky;
  top: 4.25rem;
  z-index: 12;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0 0.75rem;
  background: linear-gradient(
    to bottom,
    var(--bg) 70%,
    rgba(0, 0, 0, 0)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (min-width: 900px) {
  .section-filters-sticky {
    top: 4.75rem;
  }
}

/* Diff highlight F9 vs F8 */
.compare-table td.is-diff {
  color: #b8f5c8;
  background: rgba(34, 160, 90, 0.12);
  position: relative;
}

.diff-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(34, 160, 90, 0.28);
  color: #8dffb0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

/* Cell swap fade */
.is-cell-fade {
  opacity: 0.25;
  transition: opacity 120ms var(--ease);
}

.is-cell-in {
  animation: cell-in 280ms var(--ease);
}

@keyframes cell-in {
  from {
    opacity: 0.35;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .is-cell-fade,
  .is-cell-in {
    transition: none;
    animation: none;
  }
}

/* ----- Generation compare table ----- */
.compare {
  padding: 5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.compare-badge {
  display: inline-flex;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 112, 213, 0.45);
  background: rgba(0, 112, 213, 0.12);
  color: var(--accent-hover);
  font-size: 0.82rem;
  font-weight: 600;
}

.specs .compare-badge {
  margin-bottom: 1.5rem;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-table thead th:last-child {
  color: var(--accent-hover);
}

.compare-soon {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(0, 112, 213, 0.2);
  color: var(--accent-hover);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.compare-table tbody th {
  font-weight: 500;
  color: var(--text);
  width: 28%;
}

.compare-table td {
  color: var(--muted);
}

.compare-table td em {
  font-style: normal;
  color: var(--faint);
  font-size: 0.85em;
}

.compare-placeholder {
  color: var(--accent-hover) !important;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table code {
  font-size: 0.85em;
  color: var(--faint);
}


/* Shorter hero with product fan photo */
.hero.is-compact-hero {
  min-height: min(52dvh, 520px);
}
.hero.is-compact-hero .hero-bg img {
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 767px) {
  .hero.is-compact-hero {
    min-height: min(46dvh, 420px);
  }
}


/* Stack hero: full-bleed photo below sticky bar, copy under photo */
.hero.is-stack-hero {
  display: block;
  min-height: 0 !important;
  padding: calc(var(--pbar-h) + 1.5rem) 0 2.25rem;
  background: #000;
  text-align: center;
  place-items: unset;
  overflow: visible;
}
.hero.is-stack-hero .hero-photo {
  width: 100%;
  line-height: 0;
  background: #000;
  margin-top: 0.75rem;
  position: relative;
  z-index: 0;
}
.hero.is-stack-hero .hero-photo img {
  width: 100%;
  height: auto;
  max-height: min(56vh, 560px);
  object-fit: contain;
  object-position: center center;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  display: block;
}
.hero.is-stack-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 1.75rem auto 0;
  padding: 0 1.25rem;
}
.hero.is-stack-hero .hero-tag {
  color: rgba(255,255,255,.88);
}
.hero.is-stack-hero .hero-actions {
  margin-top: 0.25rem;
}
@media (max-width: 767px) {
  .hero.is-stack-hero {
    padding-top: calc(var(--pbar-h) + 1rem);
  }
  .hero.is-stack-hero .hero-photo {
    margin-top: 0.5rem;
  }
  .hero.is-stack-hero .hero-photo img {
    max-height: min(42vh, 360px);
  }
  .hero.is-stack-hero .hero-content {
    margin-top: 1.25rem;
  }
}


/* Feature icons: force white on dark landing */
.features-hub .perf-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.features-hub .perf-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.55rem 0.85rem;
  align-items: start;
}
.features-hub .perf-item .perf-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.features-hub .perf-item h3,
.features-hub .perf-item p {
  grid-column: 2;
}
