/* ============================================================
   МАКСНЕТ GPON — Лендинг
   Mobile-first, темна/світла тема, CSS-анімації
   ============================================================ */

/* ------------------------------------------------------------
   CSS CUSTOM PROPERTIES (теми)
   ------------------------------------------------------------ */
:root {
  /* Dark theme (default — blackout mode) */
  --bg-primary:    #080d1a;
  --bg-secondary:  #0d1527;
  --bg-card:       #111c33;
  --bg-card-hover: #152040;
  --bg-card-alt:   #0f1a30;

  --text-primary:   #e8f0fe;
  --text-secondary: #8ba3cc;
  --text-muted:     #4d6a99;

  --accent-blue:   #00d4ff;
  --accent-purple: #6c63ff;
  --accent-orange: #f5c518;
  --accent-green:  #00e5a0;
  --accent-red:    #ff4d4d;

  --border:        #1e3055;
  --border-subtle: #162440;

  --nav-bg:      rgba(8, 13, 26, 0.92);
  --hero-bg:     #080d1a;

  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.12);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);

  /* Transition for theme switch */
  --theme-transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary:    #f0f4ff;
  --bg-secondary:  #e8eeff;
  --bg-card:       #ffffff;
  --bg-card-hover: #f5f8ff;
  --bg-card-alt:   #f8f9ff;

  --text-primary:   #0f1c3a;
  --text-secondary: #3d5580;
  --text-muted:     #7a92bb;

  --accent-blue:   #0066cc;
  --accent-purple: #5b52e6;
  --accent-orange: #d4a000;
  --accent-green:  #00b07a;
  --accent-red:    #d93a3a;

  --border:        #d0dcf0;
  --border-subtle: #e4ecf8;

  --nav-bg:      rgba(240, 244, 255, 0.94);
  --hero-bg:     #e8eeff;

  --shadow-glow: 0 0 30px rgba(0, 102, 204, 0.1);
  --shadow-card: 0 4px 24px rgba(15, 28, 58, 0.08);
}

/* ------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Onest', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition:
    background-color var(--theme-transition),
    color var(--theme-transition);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-purple); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }
strong { font-weight: 600; }

/* Headings: Onest Heavy — same family, heavier weight for hierarchy */
h1, h2, h3, h4 {
  font-family: 'Onest', system-ui, sans-serif;
}

/* ------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-gap { padding-block: 5rem; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
}

/* ------------------------------------------------------------
   ANIMATIONS
   ------------------------------------------------------------ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

@keyframes dashFlow {
  to { stroke-dashoffset: -200; }
}

@keyframes barGrow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 212, 255, 0.3); }
  50%       { box-shadow: 0 0 30px rgba(0, 212, 255, 0.6); }
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

@keyframes lightSwitch {
  0%   { background-color: var(--bg-primary); }
  30%  { background-color: rgba(255, 255, 200, 0.3); }
  100% { background-color: var(--bg-primary); }
}

.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in--delay { transition-delay: 0.18s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-in { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------
   TYPOGRAPHY HIGHLIGHT
   ------------------------------------------------------------ */
.highlight {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  min-height: 44px;
  min-width: 44px;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.4);
  color: #fff;
}
[data-theme="light"] .btn--primary {
  background: linear-gradient(135deg, #1a56db, #5b52e6);
  box-shadow: 0 4px 20px rgba(26, 86, 219, 0.3);
}
[data-theme="light"] .btn--primary:hover {
  box-shadow: 0 8px 32px rgba(26, 86, 219, 0.45);
}

/* Nav CTA — compact, always white text */
.nav .btn--primary {
  background: linear-gradient(135deg, #0099cc 0%, #6c63ff 100%);
  color: #fff !important;
  box-shadow: none;
  font-size: 0.875rem;
  padding: 0.55rem 1.2rem;
  border-radius: 7px;
  letter-spacing: 0.01em;
}
.nav .btn--primary:hover {
  color: #fff !important;
  transform: none;
  filter: brightness(1.12);
  box-shadow: 0 2px 12px rgba(0, 153, 204, 0.35);
}
[data-theme="light"] .nav .btn--primary {
  background: linear-gradient(135deg, #1a56db 0%, #5b52e6 100%);
  color: #fff !important;
  box-shadow: none;
}
[data-theme="light"] .nav .btn--primary:hover {
  color: #fff !important;
  filter: brightness(1.08);
  box-shadow: 0 2px 12px rgba(26, 86, 219, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--accent-blue);
  border: 1.5px solid var(--accent-blue);
}
.btn--ghost:hover {
  background: rgba(0, 212, 255, 0.08);
  transform: translateY(-2px);
  color: var(--accent-blue);
}

.btn--lg  { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn--sm  { padding: 0.5rem 1.1rem; font-size: 0.875rem; overflow: visible; }
.btn--full { width: 100%; }

.btn__loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
}

.btn.is-loading .btn__text { opacity: 0; }
.btn.is-loading .btn__loader {
  display: block;
  animation: spinLoader 0.7s linear infinite;
  position: absolute;
}

/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--theme-transition), border-color var(--theme-transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo { color: var(--text-primary); display: flex; align-items: center; }
.nav__logo:hover { opacity: 0.85; }

/* Logo theme switching */
.logo { display: block; transition: opacity var(--theme-transition); }
.logo--light { display: none; }

[data-theme="light"] .logo--dark  { display: none; }
[data-theme="light"] .logo--light { display: block; }

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav__links a:not(.btn) { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--accent-blue); }

.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  transition: background var(--theme-transition);
}
.nav__mobile[aria-hidden="true"] { display: none; }
.nav__mobile a { padding: 0.75rem 0; color: var(--text-secondary); font-weight: 500; border-bottom: 1px solid var(--border-subtle); }
.nav__mobile a:last-child { border-bottom: none; margin-top: 0.75rem; }
.nav__mobile a:hover { color: var(--accent-blue); }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__burger { display: none; }
  .nav__mobile { display: none !important; }
}

/* ------------------------------------------------------------
   POWER SWITCH TOGGLE
   ------------------------------------------------------------ */
.power-switch-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.power-switch__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  opacity: 0.7;
}

.power-switch {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, background var(--theme-transition);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}
.power-switch:hover { border-color: var(--accent-blue); box-shadow: inset 0 1px 3px rgba(0,0,0,0.2), 0 0 16px rgba(0,212,255,0.15); }
.power-switch:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }

/* Sliding highlight */
.power-switch__slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  bottom: 4px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(108,99,255,0.12));
  border: 1px solid rgba(0,212,255,0.3);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), background var(--theme-transition), border-color var(--theme-transition);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0,212,255,0.2);
}
[data-theme="light"] .power-switch__slider {
  transform: translateX(calc(100% + 0px));
  background: linear-gradient(135deg, rgba(0,102,204,0.12), rgba(91,82,230,0.1));
  border-color: rgba(0,102,204,0.3);
  box-shadow: 0 0 12px rgba(0,102,204,0.15);
}
/* Exact pixel nudge: slider width = (button_width - 8px) / 2 */
[data-theme="light"] .power-switch__slider { transform: translateX(100%); }

.power-switch__option {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 7px;
  transition: color 0.3s;
  white-space: nowrap;
  user-select: none;
}

.power-switch__option--dark {
  color: var(--accent-blue);
}
.power-switch__option--light {
  color: var(--text-muted);
}

[data-theme="light"] .power-switch__option--dark  { color: var(--text-muted); }
[data-theme="light"] .power-switch__option--light { color: var(--accent-blue); }

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--hero-bg);
  padding-block: 4rem 5rem;
  overflow: hidden;
  transition: background var(--theme-transition);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.fiber-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fiber {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: dashFlow 8s linear infinite;
  opacity: 0.6;
}
.fiber--1 { animation-duration: 10s; }
.fiber--2 { animation-duration: 14s; animation-delay: -4s; }
.fiber--3 { animation-duration: 18s; animation-delay: -8s; }

.pulse-dot { animation: pulse 2.5s ease-in-out infinite; }
.pulse-dot--2 { animation-delay: -0.8s; animation-duration: 3s; }
.pulse-dot--3 { animation-delay: -1.6s; animation-duration: 3.5s; }

.hero__blackout-icon {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: none;
}

@media (min-width: 768px) {
  .hero__blackout-icon { display: block; }
}

.hero__blackout-icon svg { overflow: visible; }

.bolt-fill {
  animation: boltFlash 2.8s ease-in-out infinite;
}
.bolt-stroke {
  animation: boltStroke 2.8s ease-in-out infinite;
}
.bolt-glow {
  animation: boltGlowPulse 2.8s ease-in-out infinite;
}

@keyframes boltFlash {
  0%, 100% { opacity: 0.12; fill: #f5c518; }
  45%       { opacity: 0.45; fill: #ffe566; }
  50%       { opacity: 0.7;  fill: #fff5c0; }
  55%       { opacity: 0.45; fill: #ffaa35; }
}
@keyframes boltStroke {
  0%, 100% { opacity: 0.5;  stroke: #f5c518; filter: none; }
  45%       { opacity: 0.9;  stroke: #ffe566; }
  50%       { opacity: 1;    stroke: #fff8d0; filter: drop-shadow(0 0 6px #f5c518) drop-shadow(0 0 16px #f5c518); }
  55%       { opacity: 0.9;  stroke: #ffe566; }
}
@keyframes boltGlowPulse {
  0%, 100% { opacity: 0; r: 20; }
  50%       { opacity: 0.15; r: 38; }
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: background var(--theme-transition), border-color var(--theme-transition);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero visual */
.hero__visual { display: flex; justify-content: center; align-items: flex-start; }

/* ── Network Monitor Card ── */
.net-monitor {
  width: 100%;
  max-width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 40px rgba(0,212,255,0.08);
  transition: background var(--theme-transition), border-color var(--theme-transition), box-shadow var(--theme-transition);
  animation: glowPulse 4s ease-in-out infinite;
}

/* Header */
.net-monitor__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--theme-transition);
}

.net-monitor__title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 1;
}

.net-monitor__time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.net-monitor__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-green);
  background: rgba(0,229,160,0.08);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: 4px;
  padding: 2px 6px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* Signal area */
.net-monitor__signal-area {
  padding: 1.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #04091a;
  position: relative;
  transition: background 0.5s ease;
}
[data-theme="light"] .net-monitor__signal-area {
  background: linear-gradient(160deg, #e8f0ff 0%, #dce8ff 100%);
}
[data-theme="light"] .signal-ring {
  border-color: rgba(26, 86, 219, 0.2);
}
[data-theme="light"] .signal-core {
  background: rgba(26, 86, 219, 0.08);
  border-color: rgba(26, 86, 219, 0.2);
  box-shadow: 0 0 20px rgba(26, 86, 219, 0.12);
}
[data-theme="light"] .signal-core svg path,
[data-theme="light"] .signal-core svg circle {
  stroke: #1a56db;
  fill: none;
}
[data-theme="light"] .signal-core svg circle[r="1.5"] {
  fill: #1a56db;
  stroke: none;
}
[data-theme="light"] .status-badge-online {
  color: #00854a;
}

.signal-rings {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.3);
  animation: signalExpand 3s ease-out infinite;
}
.signal-ring--1 { width: 44px;  height: 44px;  animation-delay: 0s; }
.signal-ring--2 { width: 68px;  height: 68px;  animation-delay: 0.6s; }
.signal-ring--3 { width: 92px;  height: 92px;  animation-delay: 1.2s; }

@keyframes signalExpand {
  0%   { opacity: 0.8; transform: scale(0.85); }
  100% { opacity: 0;   transform: scale(1.08); }
}

.signal-core {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0,212,255,0.2);
}

.status-badge-online {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-green);
}

/* Stats row */
.net-monitor__stats {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0;
}

.net-stat {
  flex: 1;
  text-align: center;
}
.net-stat__icon {
  font-size: 0.65rem;
  color: var(--accent-blue);
  margin-bottom: 2px;
}
.net-stat__val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.net-stat__val span { font-size: 0.65rem; font-weight: 500; color: var(--text-muted); }
.net-stat__label { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }
.net-stat__divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* Power row */
.net-monitor__power {
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.power-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}
.power-row svg { flex-shrink: 0; }
.power-row__label { color: var(--text-secondary); flex: 1; }
.power-row__val { font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }

.blackout-timer { color: var(--accent-orange); }

/* Monitor dark/light switching */
.power-row--online  { display: none; }
.power-row--blackout { display: flex; }
[data-theme="light"] .power-row--online  { display: flex; }
[data-theme="light"] .power-row--blackout { display: none; }

.pb-icon-light  { display: none; }
.pb-label-light { display: none; }
.pb-val-light   { display: none; }
[data-theme="light"] .pb-icon-dark   { display: none; }
[data-theme="light"] .pb-label-dark  { display: none; }
[data-theme="light"] .pb-val-dark    { display: none; }
[data-theme="light"] .pb-icon-light  { display: block; }
[data-theme="light"] .pb-label-light { display: block; }
[data-theme="light"] .pb-val-light   { display: block; }

/* Powerbar wider fill in light (94%) */
[data-theme="light"] .powerbar__fill {
  width: 94%;
  background: linear-gradient(90deg, var(--accent-green), #00e5a0);
}

.powerbar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2px;
}
.powerbar__fill {
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  border-radius: 2px;
  animation: powerPulse 3s ease-in-out infinite;
}
@keyframes powerPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

@media (min-width: 1024px) {
  .hero__content { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero { padding-block: 5rem 7rem; }
}

/* ------------------------------------------------------------
   COMPARISON — two terminal panels
   ------------------------------------------------------------ */
.comparison { background: var(--bg-primary); transition: background var(--theme-transition); }

.cmp-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

/* Panel */
.cmp-panel {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s, background var(--theme-transition);
  background: var(--bg-card);
}

.cmp-panel--bad {
  border-color: rgba(255, 77, 77, 0.2);
}
.cmp-panel--bad:hover {
  border-color: rgba(255, 77, 77, 0.4);
  box-shadow: 0 0 28px rgba(255, 77, 77, 0.08);
}

.cmp-panel--good {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.07);
}
.cmp-panel--good:hover {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 36px rgba(0, 212, 255, 0.13);
}

/* Panel header — terminal title bar */
.cmp-panel__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.cmp-panel--bad  .cmp-panel__header { color: var(--accent-red);   background: rgba(255,77,77,0.05); }
.cmp-panel--good .cmp-panel__header { color: var(--accent-blue);  background: rgba(0,212,255,0.05); }

.cmp-panel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cmp-panel--bad  .cmp-panel__dot { background: var(--accent-red);  box-shadow: 0 0 6px var(--accent-red); animation: pulse 2s ease-in-out infinite; }
.cmp-panel--good .cmp-panel__dot { background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); animation: pulse 2s ease-in-out infinite; }

/* Panel list */
.cmp-panel__list {
  list-style: none;
  padding: 0.5rem 0;
}

.cmp-panel__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.15s;
}
.cmp-panel__list li:last-child { border-bottom: none; }
.cmp-panel--bad  .cmp-panel__list li { color: var(--text-secondary); }
.cmp-panel--bad  .cmp-panel__list li:hover { background: rgba(255,77,77,0.04); }
.cmp-panel--good .cmp-panel__list li { color: var(--text-primary); font-weight: 500; }
.cmp-panel--good .cmp-panel__list li:hover { background: rgba(0,212,255,0.04); }

.cmp-no, .cmp-yes {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 900;
  flex-shrink: 0;
}
.cmp-no  { background: rgba(255,77,77,0.1);   color: var(--accent-red);   border: 1px solid rgba(255,77,77,0.25); }
.cmp-yes { background: rgba(0,229,160,0.1);   color: var(--accent-green); border: 1px solid rgba(0,229,160,0.25); }

/* VS divider */
.cmp-vs {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.cmp-vs__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.cmp-vs__badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.35);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cmp-panels {
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
  }
  .cmp-vs {
    flex-direction: column;
    gap: 0.5rem;
  }
  .cmp-vs__line {
    flex: 1;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
  }
}

/* ------------------------------------------------------------
   HOW IT WORKS
   ------------------------------------------------------------ */
.how-it-works { background: var(--bg-primary); transition: background var(--theme-transition); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: background var(--theme-transition), border-color var(--theme-transition), box-shadow 0.25s;
}
.step:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow);
}

.step__num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--accent-blue);
  opacity: 0.1;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.step__icon { margin-bottom: 1rem; }

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.step__connector {
  width: 2px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
  margin: 0 auto;
  opacity: 0.4;
}

.how-it-works__note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.how-it-works__note a { color: var(--accent-blue); }

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
  .step { flex: 1; border-radius: 0; }
  .step:first-child { border-radius: 16px 0 0 16px; }
  .step:last-child  { border-radius: 0 16px 16px 0; }
  .step__connector {
    width: 2rem;
    height: 2px;
    margin: auto 0;
    align-self: center;
    flex-shrink: 0;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-purple));
  }
}

/* ------------------------------------------------------------
   BENEFITS
   ------------------------------------------------------------ */
.benefits { background: var(--bg-secondary); transition: background var(--theme-transition); }

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

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: background var(--theme-transition), border-color var(--theme-transition), box-shadow 0.25s, transform 0.25s;
}
.benefit-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.benefit-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-blue);
  transition: background 0.25s;
}
.benefit-card:hover .benefit-card__icon { background: rgba(0, 212, 255, 0.14); }

.benefit-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.benefit-card p  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

@media (min-width: 480px) { .benefits__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .benefits__grid { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------
   TARIFFS
   ------------------------------------------------------------ */
.tariffs { background: var(--bg-primary); transition: background var(--theme-transition); }

.tariffs__carousel-wrap { position: relative; }

.tariffs__grid {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tariffs__grid::-webkit-scrollbar { display: none; }

.tariff-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

/* Carousel nav */
.tariffs__carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  flex-shrink: 0;
}
.carousel-arrow:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue), 0 4px 16px rgba(0, 212, 255, 0.15);
}
.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
  border-color: var(--border);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.25s, transform 0.25s;
}
.carousel-dot--active {
  background: var(--accent-blue);
  transform: scale(1.35);
}

.tariff-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: background var(--theme-transition), border-color var(--theme-transition), box-shadow 0.25s, transform 0.25s;
}
.tariff-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px var(--accent-blue), 0 8px 40px rgba(0, 212, 255, 0.18), 0 2px 12px rgba(0, 0, 0, 0.3);
}

.tariff-card__badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 0 0 10px 10px;
}

.tariff-card__header { margin-bottom: 1rem; margin-top: 0.5rem; }
.tariff-card__header h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }

.tariff-card__speed {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
  letter-spacing: -0.04em;
}
.tariff-card__speed span { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); letter-spacing: 0; }

.tariff-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-currency { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

.tariff-card__features {
  margin-bottom: 1.5rem;
}
.tariff-card__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}
.tariff-card__features li:last-child { border-bottom: none; }
.tariff-card__features li::before { content: "✓"; color: var(--accent-green); font-weight: 700; flex-shrink: 0; }
.tariff-card__features li { list-style: none; }

.tariff-card .btn { margin-bottom: 0.75rem; }

.tariff-card__note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.25rem;
}

/* Audience cards */
.audience-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}
[data-theme="light"] .audience-icon { background: rgba(27, 86, 219, 0.08); color: #1a56db; }

.audience-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.4;
}

.audience-price { display: block; margin-bottom: 1.5rem; }

.price-main-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.price-old {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  letter-spacing: -0.02em;
}

.price-promo-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
}
.price-promo-badge--neutral {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border-color: var(--border-subtle);
}
[data-theme="light"] .price-promo-badge { color: #1a56db; background: rgba(27,86,219,0.07); border-color: rgba(27,86,219,0.2); }
[data-theme="light"] .price-promo-badge--neutral { color: var(--text-secondary); background: rgba(0,0,0,0.04); }

/* Urgency block */
.tariffs__urgency {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.08), rgba(245, 197, 24, 0.04));
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.urgency-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(245, 197, 24, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5c518;
}

.urgency-body {
  flex: 1;
  min-width: 200px;
}
.urgency-body strong { display: none; }
.urgency-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.urgency-cta { white-space: nowrap; flex-shrink: 0; align-self: center; }

@media (max-width: 767px) {
  .tariffs__urgency { flex-direction: column; align-items: stretch; }
  .urgency-cta { text-align: center; }
}

.urgency-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.urgency-top strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.urgency-countdown {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.urgency-countdown__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.urgency-countdown__timer {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.countdown-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  min-width: 2.4rem;
}

.countdown-seg span {
  font-size: 1rem;
  font-weight: 800;
  color: #f5c518;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.countdown-seg em {
  font-style: normal;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.countdown-colon {
  font-size: 1rem;
  font-weight: 800;
  color: #f5c518;
  opacity: 0.6;
  margin-bottom: 0.7rem;
}

.tariffs__disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .tariffs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .tariff-card { flex: none; }
  .tariffs__carousel-nav { display: none; }
}

/* ------------------------------------------------------------
   CONNECT STEPS
   ------------------------------------------------------------ */
.connect-steps { background: var(--bg-secondary); transition: background var(--theme-transition); }

.connect-steps__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.connect-step {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: background var(--theme-transition), border-color var(--theme-transition);
}

.connect-step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.connect-step__content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.connect-step__content p  { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.connect-step__arrow {
  font-size: 1.5rem;
  color: var(--accent-blue);
  font-weight: 300;
  text-align: center;
  opacity: 0.4;
  padding: 0;
  align-self: center;
}

.arrow-desktop { display: none; }

@media (min-width: 900px) {
  .connect-steps__grid {
    flex-direction: row;
    align-items: stretch;
  }
  .connect-step { flex: 1; }
  .connect-step__arrow { align-self: center; }
  .arrow-mobile { display: none; }
  .arrow-desktop { display: inline; }
}

/* ------------------------------------------------------------
   EQUIPMENT
   ------------------------------------------------------------ */
.equipment { background: var(--bg-primary); transition: background var(--theme-transition); }

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

.equipment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: background var(--theme-transition), border-color var(--theme-transition), box-shadow 0.25s;
}
.equipment-card:hover { border-color: var(--accent-blue); box-shadow: var(--shadow-glow); }
.equipment-card--alt:hover { border-color: var(--accent-purple); box-shadow: 0 0 30px rgba(108, 99, 255, 0.12); }

.equipment-card__icon { margin-bottom: 1.25rem; }

.equipment-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }

.equipment-card__time {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 50px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}
.equipment-card--alt .equipment-card__time {
  color: var(--accent-purple);
  background: rgba(108, 99, 255, 0.08);
  border-color: rgba(108, 99, 255, 0.2);
}

.equipment-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }

.equipment-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.equipment-card__specs li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-left: 1rem;
  position: relative;
}
.equipment-card__specs li:last-child { border-bottom: none; }
.equipment-card__specs li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 900;
}

.equipment__tip {
  display: flex;
  gap: 1rem;
  background: rgba(245, 197, 24, 0.06);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  align-items: flex-start;
}
.equipment__tip svg { flex-shrink: 0; margin-top: 2px; }
.equipment__tip strong { color: var(--accent-orange); }

@media (min-width: 768px) { .equipment__grid { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------
   REVIEWS
   ------------------------------------------------------------ */
.reviews { background: var(--bg-secondary); transition: background var(--theme-transition); }

.reviews__carousel-wrap { position: relative; }

.reviews__grid {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reviews__grid::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.reviews__carousel-nav { margin-top: 1.25rem; }

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: background var(--theme-transition), border-color var(--theme-transition), box-shadow 0.25s;
}
.review-card:hover { box-shadow: var(--shadow-card); }

.review-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-card__avatar { border-radius: 50%; overflow: hidden; flex-shrink: 0; }

.review-card__name { font-weight: 700; font-size: 1rem; }
.review-card__role { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.1rem; }
.review-card__stars { color: #ffd700; font-size: 0.9rem; margin-top: 0.25rem; letter-spacing: 0.05em; }

.review-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}
.review-card p::before { content: ''; }
.review-card p::after  { content: ''; }

@media (min-width: 900px) {
  .reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .review-card { flex: none; }
  .reviews__carousel-nav { display: none; }
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq { background: var(--bg-primary); transition: background var(--theme-transition); }

.faq__list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: background var(--theme-transition), border-color var(--theme-transition);
}
.faq__item:has(.faq__question[aria-expanded="true"]) {
  border-color: var(--accent-blue);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  transition: color 0.2s;
}
.faq__question:hover { color: var(--accent-blue); }

.faq__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}
.faq__question[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); color: var(--accent-blue); }

.faq__answer {
  padding: 0 1.5rem 1.25rem;
}
.faq__answer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq__answer strong { color: var(--text-primary); }

/* JS-driven animation — height from 0 to auto */
.faq__answer.is-opening {
  animation: faqOpen 0.3s ease forwards;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   CTA SECTION (Form)
   ------------------------------------------------------------ */
.cta-section { background: var(--bg-secondary); transition: background var(--theme-transition); }

.cta-section__inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: background var(--theme-transition), border-color var(--theme-transition);
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.cta-section__bg svg { width: 100%; height: 100%; }

.cta-section__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.cta-section__content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-section__content > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Form */
.order-form { text-align: left; }

/* Honeypot — visually hidden, but not with display:none (bots still fill it) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-group label span { color: var(--accent-orange); }

.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s, background var(--theme-transition), box-shadow 0.2s;
  min-height: 44px;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.12);
}
.form-group input.is-invalid { border-color: var(--accent-red); }
.form-group input.is-valid   { border-color: var(--accent-green); }

.form-error {
  font-size: 0.78rem;
  color: var(--accent-red);
  min-height: 1em;
}

.form-group--consent { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg-primary);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkbox-label input:checked ~ .checkbox-custom {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}
.checkbox-label input:checked ~ .checkbox-custom::after {
  content: "✓";
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}

.form-consent-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.form-consent-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent-note a:hover { color: var(--accent-blue); }

.form-success {
  text-align: center;
  padding: 2rem;
}
.form-success svg { margin-inline: auto; margin-bottom: 1rem; }
.form-success h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--text-secondary); }

.cta-section__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.contact-phone:hover { color: var(--accent-purple); }

.contact-note { font-size: 0.8rem; color: var(--text-muted); }

@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .cta-section__inner { padding: 3.5rem 3rem; }
  .cta-section__contact { flex-direction: row; justify-content: center; gap: 1rem; }
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding-block: 2.5rem;
  transition: background var(--theme-transition);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__logo { display: flex; align-items: center; opacity: 0.75; transition: opacity 0.2s; }
.footer__logo:hover { opacity: 1; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer__links a { font-size: 0.875rem; color: var(--text-secondary); }
.footer__links a:hover { color: var(--accent-blue); }

.footer__copy { font-size: 0.8rem; color: var(--text-muted); }

@media (min-width: 768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ------------------------------------------------------------
   LIGHT SWITCH FLASH EFFECT
   ------------------------------------------------------------ */
body.theme-switching::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 220, 0.35);
  pointer-events: none;
  z-index: 9999;
  animation: lightSwitchFlash 0.45s ease-out forwards;
}

@keyframes lightSwitchFlash {
  0%   { opacity: 0; }
  30%  { opacity: 1; }
  100% { opacity: 0; }
}

/* Battery fill animation for equipment section */
.battery-fill-anim {
  animation: batteryPulse 3s ease-in-out infinite;
}
@keyframes batteryPulse {
  0%, 100% { opacity: 0.2; }
  50%       { opacity: 0.5; }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-blue); }

/* Selection */
::selection { background: rgba(0, 212, 255, 0.25); color: var(--text-primary); }


/* ------------------------------------------------------------
   STICKY MOBILE CTA
   ------------------------------------------------------------ */
.sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--bg-primary) 70%, transparent);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }
  .sticky-cta.is-visible {
    transform: translateY(0);
    pointer-events: auto;
  }
  .sticky-cta__btn {
    display: block;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.3);
  }
}
