/* ---- BRAND DISPLAY FONT ---- */
@font-face {
  font-family: 'Gropled';
  src: url('../fonts/Gropled-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F;
}
@font-face {
  font-family: 'Gropled Hollow';
  src: url('../fonts/Gropled_Hollow.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F;
}
:root {
  --font-display: 'Gropled', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* clip на уровне html — не ломает BFC body */
}
body {
  background: #060b14;
  color: #f0f4ff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- SCROLL TRACK + STICKY VIEWPORT ---- */
#scroll-track {
  height: 100vh;
  position: relative;
}
#sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  width: 100%;
}

/* ---- HERO ---- */
#hero-left {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  z-index: 10;
  transition: opacity 0.1s ease-out;
}
#hero-right {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  will-change: transform, opacity;
}
/* Three.js globe canvas */
#globe-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
/* 2D overlay for spermatozoids */
#sperm-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* ---- TYPOGRAPHY ---- */
h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  background: linear-gradient(135deg, #ffffff 30%, #79b6c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
}
.subtitle {
  font-size: 16px;
  color: #6b7a99;
  margin-bottom: 32px;
  line-height: 1.7;
}
.btn-group { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.btn-primary {
  padding: 13px 26px;
  background: linear-gradient(135deg, #79b6c8, #7b2ff7);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-secondary {
  padding: 13px 26px;
  background: transparent;
  border: 1px solid rgba(121,182,200,0.4);
  border-radius: 8px;
  color: #79b6c8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: #79b6c8; background: rgba(121,182,200,0.06); }

/* ---- DATA PANEL ---- */
.glass-panel {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(121,182,200,0.18);
  border-radius: 12px;
  padding: 16px 20px;
}
#data-panel {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  max-width: 340px;
  width: 100%;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.panel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #79b6c8;
  animation: pulse-dot 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(121,182,200,0.6); }
  50%      { opacity: 0.7; box-shadow: 0 0 0 5px rgba(121,182,200,0); }
}
.panel-name { font-weight: 700; color: #f0f4ff; font-size: 15px; }
.panel-status { margin-left: auto; color: #79b6c8; font-size: 11px; display: flex; align-items: center; }
.network-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; margin-left: 6px; }
.network-bar { width: 3px; background-color: #79b6c8; border-radius: 1px; opacity: 0.3; transition: opacity 0.2s; }
.panel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
  color: #f0f4ff;
}
.panel-row:last-child { margin-bottom: 0; }
.panel-label { color: #6b7a99; }
.panel-coords { font-family: 'Courier New', monospace; color: #79b6c8; font-size: 12px; }

.pulse-icon {
  display: inline-block;
  animation: heart-beat 1.2s infinite;
  transform-origin: center;
}
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  15%, 45% { transform: scale(1.25); }
  30% { transform: scale(1); }
}

/* ---- SCROLL HINT ---- */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #6b7a99;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 20;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.arrow-down {
  width: 16px; height: 16px;
  border-right: 2px solid rgba(121,182,200,0.5);
  border-bottom: 2px solid rgba(121,182,200,0.5);
  transform: rotate(45deg);
  animation: bounce 1.8s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: rotate(45deg) translateY(0); }
  50%      { transform: rotate(45deg) translateY(6px); }
}

/* ---- BLOCK 2: MORPH ---- */
#block2-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}
#morph-canvas { position: absolute; top:0; left:0; width:100%; height:100%; }

#terrain {
  position: absolute;
  bottom: 90px; left: 0;
  width: 100%; height: 70px;
  opacity: 0; z-index: 8;
  pointer-events: none;
}
#satellite {
  position: absolute;
  top: 50px; left: 80px;
  opacity: 0; z-index: 25;
  pointer-events: none;
}
.sat-blink { animation: blink-anim 1.2s ease-in-out infinite; }
@keyframes blink-anim { 0%,100%{opacity:1} 50%{opacity:0.15} }

#signal-svg {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  pointer-events: none; z-index: 18; opacity: 0;
}
#signal-path {
  fill: none;
  stroke: #79b6c8;
  stroke-width: 1.5;
  stroke-dasharray: 7 5;
  animation: dash-flow 1.2s linear infinite;
  filter: drop-shadow(0 0 3px rgba(121,182,200,0.6));
}
@keyframes dash-flow { to { stroke-dashoffset: -24; } }
#signal-label { font-family: 'Inter', system-ui, sans-serif; font-size: 10px; letter-spacing: 0.5px; }

#athletes-stage {
  position: absolute;
  bottom: 110px; left: 50%;
  transform: translateX(-50%);
  z-index: 20; pointer-events: none;
}
.athlete-wrap {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  opacity: 0; transition: opacity 0.05s;
}
.sig-ring {
  transform-origin: center; transform-box: fill-box;
  animation: ring-pulse 1.6s ease-out infinite;
}
.sig-ring:nth-child(2) { animation-delay: 0.4s; }
.sig-ring:nth-child(3) { animation-delay: 0.8s; }
@keyframes ring-pulse {
  0%  { opacity: 0.7; transform: scale(1); }
  100%{ opacity: 0;   transform: scale(2.2); }
}

#panel2 {
  position: absolute; right:5%; top:50%;
  transform: translateY(-50%);
  width: 230px; opacity: 0; z-index: 30;
}
#panel2 .panel-row { opacity: 0; transition: opacity 0.4s; }
#block2-title {
  position: absolute; top:40px; left:0; right:0;
  text-align:center; opacity:0; z-index:30; pointer-events:none;
}
#block2-title h2 {
  font-family: var(--font-display);
  font-size: clamp(22px,2.5vw,38px);
  font-weight:700; letter-spacing:0.4px;
  background: linear-gradient(135deg,#fff 40%,#79b6c8 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
#block2-title p { font-size:14px; color:#6b7a99; margin-top:6px; }
#sport-label {
  position:absolute; bottom:175px; left:50%;
  transform:translateX(-50%);
  font-size:12px; color:#79b6c8;
  letter-spacing:2px; text-transform:uppercase; font-weight:600;
  opacity:0; z-index:25; white-space:nowrap;
  background:rgba(6,11,20,0.7);
  padding:4px 14px; border-radius:20px;
  border:1px solid rgba(121,182,200,0.3);
}
.glow-orb {
  position:fixed; border-radius:50%;
  pointer-events:none; filter:blur(100px); z-index:0;
}

/* ---- FLYING PANEL CLONES ---- */
.panel-flying-clone {
  box-shadow: 0 0 30px rgba(121,182,200,0.25);
  will-change: left, top, width, opacity;
}

/* ---- AI TYPEWRITER CURSOR ---- */
.ai-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: currentColor;
  margin-left: 1px;
  vertical-align: text-bottom;
  opacity: 1;
  animation: cursor-blink 0.55s steps(1) infinite;
}
.ai-cursor--done {
  animation: cursor-blink 0.9s steps(1) infinite;
  opacity: 0.4;
}
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---- AI BADGE THINKING (пульсирует пока ИИ "думает") ---- */
.ai-badge--thinking {
  animation: badge-think 0.7s ease-in-out infinite alternate;
}
@keyframes badge-think {
  from { opacity: 0.4; box-shadow: none; }
  to   { opacity: 1;   box-shadow: 0 0 8px currentColor; }
}

/* ---- AI GENERATING STATUS TEXT ---- */
.ai-generating {
  color: rgba(121,182,200,0.5);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.3px;
}

/* ---- GLOW ORBS ---- */
.glow-orb--1 {
  width: 600px; height: 600px;
  background: rgba(121,182,200,0.04);
  top: -100px; right: -100px;
}
.glow-orb--2 {
  width: 400px; height: 400px;
  background: rgba(123,47,247,0.05);
  top: 200px; left: -80px;
}

/* ---- HERO PANEL ROW (no-wrap) ---- */
.panel-row--nowrap {
  flex-wrap: nowrap;
  gap: 6px;
  white-space: nowrap;
}
.panel-label--flex {
  display: flex;
  align-items: center;
  gap: 4px;
}
#p-pace {
  width: 78px;
  display: inline-block;
}
.panel-sep {
  color: rgba(121,182,200,0.3);
}

/* ---- NETWORK BAR HEIGHTS ---- */
.network-bar:nth-child(1) { height: 4px; }
.network-bar:nth-child(2) { height: 6px; }
.network-bar:nth-child(3) { height: 8px; }
.network-bar:nth-child(4) { height: 10px; }

/* ---- PANEL DOT COLOR VARIANTS ---- */
.panel-dot--purple { background: #7b2ff7; }
.panel-dot--orange { background: #f7932f; }
.panel-dot--green  { background: #2ff7a0; }

/* ---- PANEL STATUS COLOR VARIANTS ---- */
.panel-status--warn { color: #f7932f; }
.panel-status--good { color: #2ff7a0; }

/* ---- VALUE COLOR VARIANTS ---- */
.value--warn { color: #f7932f; }


/* ==================== BLOCK 2: TEAM ==================== */
#block-team {
  background: #060b14;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
#block-team::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121,182,200,0.3), transparent);
}

.block-team-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.block-team-header {
  text-align: center;
  margin-bottom: 64px;
}
.block-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #79b6c8;
  border: 1px solid rgba(121,182,200,0.35);
  border-radius: 20px;
  padding: 4px 16px;
  margin-bottom: 20px;
}
.block-h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  background: linear-gradient(135deg, #ffffff 30%, #79b6c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.block-sub {
  font-size: 16px;
  color: #6b7a99;
  line-height: 1.7;
}

/* --- 4 cards grid --- */
.team-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .team-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .team-cards { grid-template-columns: 1fr; }
}

/* drop-in animation — управляется JS через скролл */
.drop-card {
  opacity: 0;
  transform: translateY(-60px);
  will-change: opacity, transform;
}

.team-card .glass-panel {
  margin-bottom: 12px;
}

/* AI recommendation block */
.ai-rec {
  background: rgba(121,182,200,0.05);
  border: 1px solid rgba(121,182,200,0.2);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ai-rec p {
  font-size: 12px;
  color: #8a9bbf;
  line-height: 1.6;
  margin: 0;
}
.ai-badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #79b6c8;
  border: 1px solid rgba(121,182,200,0.5);
  border-radius: 5px;
  padding: 2px 6px;
  margin-top: 1px;
  background: rgba(121,182,200,0.08);
}

/* ============================================================
   BLOCK 3: INDIVIDUAL ATHLETE
   ============================================================ */
#block-individual {
  background: linear-gradient(180deg, #060b14 0%, #071018 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 32px 0;
  box-sizing: border-box;
}
.block-ind-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.block-ind-header {
  text-align: center;
  margin-bottom: 24px;
}
.ind-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  height: calc(100vh - 230px);
}
.ind-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.ind-col--left .ind-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ind-col--center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.ind-col--right {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 2px;
}
.ind-col--right .sport-selector {
  flex-shrink: 0;
}
#gps-sat-canvas {
  width: 100%;
  max-width: 100%;
  height: 100%;
  border-radius: 16px;
}

/* Map (Leaflet) — внутри ind-panel, под координатами */
#map-track-div {
  width: 100%;
  flex: 1;
  min-height: 100px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

/* Маркер спортсмена на карте */
.athlete-map-dot {
  width: 14px;
  height: 14px;
  background: #79b6c8;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(121,182,200,0.3), 0 0 12px rgba(121,182,200,0.7);
  animation: athlete-pulse 1.4s ease-in-out infinite;
}
@keyframes athlete-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(121,182,200,0.3), 0 0 10px rgba(121,182,200,0.6); }
  50%       { box-shadow: 0 0 0 7px rgba(121,182,200,0.1), 0 0 18px rgba(121,182,200,0.9); }
}

/* Left panel */
.ind-panel {
  padding: 20px;
}
.ind-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 4px;
  margin: 8px 0 6px;
}
.ind-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 4px;
  border: 1px solid rgba(121,182,200,0.12);
  border-radius: 6px;
  background: rgba(121,182,200,0.04);
  min-width: 0;
}
.ind-stat-label {
  font-size: 9px;
  color: rgba(121,182,200,0.6);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ind-stat-val {
  font-size: 12px;
  font-weight: 700;
  color: #e8f4f8;
  font-family: 'Courier New', monospace;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ind-stat-val small {
  font-size: 8px;
  font-weight: 400;
  color: rgba(200,230,240,0.5);
  margin-left: 1px;
}
/* Данные от подключённых датчиков — 3-колоночный грид */
#ind-sensor-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 4px;
  margin: 8px 0 6px;
  overflow: visible;
}
.ind-sensor-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 4px 4px;
  border: 1px solid rgba(121,182,200,0.12);
  border-radius: 6px;
  background: rgba(121,182,200,0.04);
  min-width: 0;
}
.ind-sensor-row--hidden {
  display: none;
}
.ind-sensor-row--visible {
  animation: sensorRowIn 0.4s ease forwards;
}
@keyframes sensorRowIn {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}
.ind-sensor-row-label {
  font-size: 9px;
  color: rgba(121,182,200,0.6);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ind-sensor-row-val {
  font-size: 12px;
  font-weight: 700;
  color: #e8f4f8;
  font-family: 'Courier New', monospace;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ind-sensor-row-val small {
  font-size: 8px;
  font-weight: 400;
  color: rgba(200,230,240,0.5);
  margin-left: 1px;
}
/* Вспышка при обновлении значения */
.ind-sensor-val-flash {
  animation: indValFlash 0.6s ease-out forwards;
}
@keyframes indValFlash {
  0%   { color: #fff; text-shadow: 0 0 8px rgba(121,182,200,0.9); }
  100% { color: #e8f4f8; text-shadow: none; }
}

.ind-coords-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(121,182,200,0.7);
  padding: 10px 0 12px;
  border-top: 1px solid rgba(121,182,200,0.1);
  border-bottom: 1px solid rgba(121,182,200,0.1);
}
/* AI analysis row */
.ai-analysis-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 5px;
  border: 1px solid rgba(121,182,200,0.12);
  border-radius: 6px;
  background: rgba(121,182,200,0.04);
}
.ai-analysis-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  flex-shrink: 0;
}
.ai-bar {
  width: 3px;
  border-radius: 2px;
  background: #79b6c8;
  animation: aiBarPulse 1.1s ease-in-out infinite;
}
.ai-bar:nth-child(1) { height: 5px;  animation-delay: 0.00s; }
.ai-bar:nth-child(2) { height: 10px; animation-delay: 0.14s; }
.ai-bar:nth-child(3) { height: 14px; animation-delay: 0.28s; }
.ai-bar:nth-child(4) { height: 8px;  animation-delay: 0.42s; }
.ai-bar:nth-child(5) { height: 16px; animation-delay: 0.56s; }
.ai-bar:nth-child(6) { height: 6px;  animation-delay: 0.70s; }
.ai-bar:nth-child(7) { height: 12px; animation-delay: 0.84s; }
.ai-bar:nth-child(8) { height: 9px;  animation-delay: 0.98s; }
@keyframes aiBarPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.5); }
  50%       { opacity: 1;    transform: scaleY(1);   }
}
.ai-analysis-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ai-analysis-label {
  font-size: 8px;
  color: rgba(121,182,200,0.5);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}
.ai-analysis-comment {
  font-size: 10px;
  font-weight: 600;
  color: #e8f4f8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.5s ease;
}
.ai-analysis-comment.fade {
  opacity: 0;
}

/* ── Bluetooth столбец в карточках датчиков ── */
.sensor-bt-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  flex-shrink: 0;
  border-left: 1px solid rgba(121,182,200,0.15);
  padding: 8px 4px;
  gap: 5px;
  pointer-events: none;
}
.sensor-bt-col svg {
  width: 10px;
  height: 14px;
  flex-shrink: 0;
  transition: color 1s ease, filter 1s ease;
}
.sensor-bt-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
  font-family: 'Courier New', monospace;
  transition: color 1s ease;
}
.sensor-bt-status {
  font-size: 7px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.2px;
  font-family: 'Courier New', monospace;
  transition: color 1s ease;
}
/* idle */
.sensor-bt-col--idle svg,
.sensor-bt-col--idle .sensor-bt-label,
.sensor-bt-col--idle .sensor-bt-status {
  color: rgba(121,182,200,0.25);
}
/* connecting — красный + мигание */
.sensor-bt-col--connecting svg,
.sensor-bt-col--connecting .sensor-bt-label,
.sensor-bt-col--connecting .sensor-bt-status {
  color: #ef4444;
  animation: bt-blink 0.55s ease-in-out infinite alternate;
}
/* connected — голубой */
.sensor-bt-col--connected svg,
.sensor-bt-col--connected .sensor-bt-label,
.sensor-bt-col--connected .sensor-bt-status {
  color: #79b6c8;
  filter: drop-shadow(0 0 4px rgba(121,182,200,0.5));
  animation: none;
}
@keyframes bt-blink {
  from { opacity: 0.3; } to { opacity: 1; }
}
.sensor-card--bt-connecting {
  border-color: rgba(239,68,68,0.4) !important;
  animation: sensor-bt-pulse 0.85s ease-in-out infinite;
}
.sensor-card--bt-connected {
  border-color: rgba(121,182,200,0.55) !important;
  box-shadow: 0 0 10px rgba(121,182,200,0.12);
}
@keyframes sensor-bt-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.2); }
  50%      { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

/* Стили для переключателя видов спорта в 3-м блоке */
.sport-selector {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 2px 0;
  justify-content: space-between;
  background: rgba(121,182,200,0.08);
  border: 1px solid rgba(121,182,200,0.3);
  border-radius: 20px;
  padding: 8px 16px;
  margin-bottom: 20px;
  width: 100%;
}
.sport-nav {
  background: transparent; border: none; color: #79b6c8;
  cursor: pointer; font-size: 16px; padding: 0 8px;
  transition: color 0.2s ease, transform 0.2s ease; outline: none;
}
.sport-nav:hover { color: #fff; transform: scale(1.1); }
.sport-nav:active { transform: scale(0.9); }
.sport-current {
  color: #fff;
  font-size: 14px; font-weight: 600; text-align: center; flex: 1;
  letter-spacing: 0.5px;
}

/* Sensor cards */
.sensor-card {
  background: rgba(121,182,200,0.05);
  border: 1px solid rgba(121,182,200,0.15);
  border-radius: 12px;
  margin-bottom: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  flex: 1 1 0;
  min-height: 0;
  container-type: size;
  container-name: sensorcard;
}
.sensor-card--visible {
  opacity: 1;
  transform: translateX(0);
}
.sensor-device-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(121,182,200,0.12) 0%, rgba(121,182,200,0.02) 100%);
  border-right: 1px solid rgba(121,182,200,0.15);
}
.device-icon-canvas {
  display: block;
}
.sensor-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding-block: clamp(10px, 10cqh, 16px);
  padding-inline: clamp(10px, 4cqw, 16px);
  gap: clamp(4px, 4cqh, 8px);
  overflow: hidden;
}
.sensor-header {
  display: flex;
  align-items: center;
  gap: clamp(4px, 3cqw, 8px);
  margin-bottom: 0;
}
.sensor-icon {
  font-size: clamp(10px, 18cqh, 14px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(18px, 32cqh, 26px);
  height: clamp(18px, 32cqh, 26px);
  background: rgba(121,182,200,0.12);
  border: 1px solid rgba(121,182,200,0.35);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(121,182,200,0.15);
}
.sensor-name {
  font-size: clamp(9px, 15cqh, 12px);
  color: rgba(200,230,240,0.7);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sensor-val {
  font-size: clamp(11px, 20cqh, 15px);
  font-weight: 700;
  color: #e8f4f8;
  white-space: nowrap;
  flex-shrink: 0;
}
.sensor-val small {
  font-size: clamp(8px, 13cqh, 10px);
  font-weight: 400;
  color: rgba(200,230,240,0.5);
  white-space: nowrap;
}

/* Narrow viewport: stack name above value so units don't clip. */
@media (max-width: 1200px) {
  .sensor-card .sensor-content { padding: 4px 10px; overflow: visible; }
  .sensor-card .sensor-header {
    flex-wrap: nowrap;
    margin-bottom: 2px;
    gap: 6px;
  }
  .sensor-card .sensor-icon {
    width: 22px; height: 22px; font-size: 12px;
  }
  .sensor-card .sensor-name { font-size: 11px; }
  .sensor-card .sensor-val { font-size: 13px; }
  .sensor-card .sensor-val small { font-size: 9px; }
  .sensor-card .sensor-bt-col {
    width: 34px;
    padding: 4px 2px;
    gap: 3px;
  }
  .sensor-card .sensor-device-img { width: 50px; }
  .sensor-card .device-icon-canvas { transform: scale(0.78); transform-origin: center; }
  .sensor-card .sensor-wave-canvas { min-height: 26px; max-height: 26px; flex-basis: 26px; }
}
/* Cards share the column height equally — flex:1 with min-height:0 so all
   are visible at once and shrink proportionally. */
.ind-col--right .sensor-card { flex: 1 1 0; min-height: 0; }
.sensor-wave-canvas {
  width: 100%;
  height: auto;
  display: block;
  flex: 0 1 auto;
  min-height: clamp(14px, 18cqh, 22px);
  max-height: clamp(18px, 22cqh, 26px);
  display: block;
  border-radius: 6px;
  flex: 1;
  flex-basis: 44px;
  min-height: 44px;
  max-height: 44px;
}
.sensor-temp-track {
  position: relative;
  height: 6px;
  background: rgba(121,182,200,0.12);
  border-radius: 3px;
  margin-bottom: 6px;
  overflow: visible;
}
.sensor-temp-fill {
  height: 100%;
  background: linear-gradient(90deg, #79b6c8, #a8d8e8);
  border-radius: 3px;
  transition: width 1s ease;
}
.sensor-temp-marker {
  position: absolute;
  top: -3px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid #79b6c8;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(121,182,200,0.6);
}
.sensor-temp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(121,182,200,0.45);
}

/* Warning variant (high pulse) */
.ai-rec--warn {
  border-color: rgba(247,147,47,0.35);
  background: rgba(247,147,47,0.05);
}
.ai-rec--warn p { color: #c4966a; }
.ai-badge--warn {
  color: #f7932f;
  border-color: rgba(247,147,47,0.5);
  background: rgba(247,147,47,0.08);
}

/* Good variant */
.ai-rec--good {
  border-color: rgba(47,247,160,0.25);
  background: rgba(47,247,160,0.04);
}
.ai-rec--good p { color: #6abfa0; }
.ai-badge--good {
  color: #2ff7a0;
  border-color: rgba(47,247,160,0.4);
  background: rgba(47,247,160,0.07);
}

/* Emergency variant */
@keyframes emergencyPulse {
  0%, 100% { border-color: rgba(239,68,68,0.55); box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50%       { border-color: rgba(239,68,68,0.90); box-shadow: 0 0 14px 3px rgba(239,68,68,0.25); }
}
.ai-rec--emergency {
  border-color: rgba(239,68,68,0.55);
  background: rgba(239,68,68,0.07);
  animation: emergencyPulse 1.4s ease-in-out infinite;
}
.ai-rec--emergency p { color: #fca5a5; }
.ai-badge--emergency {
  color: #ef4444;
  border-color: rgba(239,68,68,0.6);
  background: rgba(239,68,68,0.12);
}
.value--emergency {
  color: #ef4444;
  animation: emergencyPulse 1.4s ease-in-out infinite;
}
.panel-status--emergency { color: #ef4444; }
.panel-dot--emergency {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239,68,68,0.7);
  animation: emergencyPulse 1.4s ease-in-out infinite;
}

/* Слоган блока команды */
.block-team-slogan {
  text-align: center;
  margin-top: 48px;
  font-size: 15px;
  color: rgba(121, 182, 200, 0.55);
  letter-spacing: 0.5px;
  font-style: italic;
}

/* Emergency alert bar под карточками команды */
@keyframes alertBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
.emergency-alert-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-top: 28px;
  background: rgba(239,68,68,0.10);
  border: 1px solid rgba(239,68,68,0.40);
  border-radius: 8px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  color: #fca5a5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  /* hidden until AI text finishes typing */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.emergency-alert-bar--visible {
  opacity: 1;
  pointer-events: auto;
  animation: alertBlink 1.4s ease-in-out 0.8s infinite;
}
.emergency-alert-bar .ea-icon {
  font-size: 16px;
  flex-shrink: 0;
  animation: alertBlink 0.7s ease-in-out infinite;
}
.emergency-alert-bar .ea-label {
  font-weight: 700;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.emergency-alert-bar .ea-name {
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.emergency-alert-bar .ea-sep {
  color: rgba(239,68,68,0.45);
  flex-shrink: 0;
}
.emergency-alert-bar .ea-coords {
  color: #79b6c8;
  flex-shrink: 0;
}
.emergency-alert-bar .ea-reason {
  color: rgba(252,165,165,0.75);
}

/* ============================================================
   BLOCK 4: ABOUT — КТО МЫ
   ============================================================ */
#block-about {
  background: linear-gradient(180deg, #071018 0%, #060b14 100%);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
#block-about::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121,182,200,0.3), transparent);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.about-head {
  text-align: center;
  margin-bottom: 60px;
}

/* ── Статистика ── */
.about-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0;
  margin-bottom: 64px;
  border-top: 1px solid rgba(121,182,200,0.10);
  border-bottom: 1px solid rgba(121,182,200,0.10);
}
.about-stat-item {
  flex: 1;
  text-align: center;
  position: relative;
}
.about-stat-num {
  display: block;
  font-size: 48px;
  font-weight: 900;
  font-family: 'Courier New', monospace;
  background: linear-gradient(135deg, #ffffff 20%, #79b6c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.about-stat-num.is-vis { opacity: 1; }
.about-stat-sep {
  width: 1px;
  height: 50px;
  background: rgba(121,182,200,0.12);
  flex-shrink: 0;
}
.about-stat-label {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(121,182,200,0.45);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ── Live stat pulse ── */
@keyframes stat-num-glow {
  0%   { transform: scale(1);    color: inherit; text-shadow: none; }
  25%  { transform: scale(1.09); color: #b8e0ec; text-shadow: 0 0 22px rgba(121,182,200,0.95); }
  65%  { transform: scale(1.04); color: #8ecbdf; text-shadow: 0 0 14px rgba(121,182,200,0.55); }
  100% { transform: scale(1);    color: inherit; text-shadow: none; }
}
.stat-num-glow {
  animation: stat-num-glow 0.65s ease-out forwards;
}
.stat-live-msg {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font: 10px/1.4 'Courier New', monospace;
  letter-spacing: 0.04em;
  color: rgba(121,182,200,0.80);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.30s ease;
}
.stat-live-msg--vis { opacity: 1; }

/* ── Карточки ── */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.about-card {
  background: rgba(6,14,24,0.85);
  border: 1px solid rgba(121,182,200,0.13);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.55s ease, transform 0.55s ease,
              border-color 0.3s ease, box-shadow 0.3s ease;
}
.about-card.is-vis {
  opacity: 1;
  transform: translateY(0);
}
.about-card:hover {
  border-color: rgba(121,182,200,0.32);
  box-shadow: 0 16px 48px rgba(121,182,200,0.09);
}
.about-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(121,182,200,0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.about-card:hover::after { opacity: 1; }

.about-icon-cv {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid rgba(121,182,200,0.08);
}
.about-card-body {
  padding: 22px 26px 28px;
}
.about-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #c8e0ea;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.about-card-text {
  font-size: 13px;
  color: #5a6a82;
  line-height: 1.75;
  margin: 0;
}

/* ── Слоган ── */
.about-tagline {
  text-align: center;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #79b6c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 760px) {
  .about-cards { grid-template-columns: 1fr; }
  .about-stats  { flex-wrap: wrap; gap: 28px; }
  .about-stat-sep { display: none; }
}

/* ============================================================
   BLOCK 4.5: FAQ
   ============================================================ */
#block-faq {
  background: #060b14;
  padding: 40px 0 100px;
  position: relative;
}
.block-faq-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.block-faq-header {
  text-align: center;
  margin-bottom: 50px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  padding: 0; /* Переопределяем padding от glass-panel */
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(121,182,200,0.4);
}
.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.faq-question h3 {
  font-size: 16px;
  font-weight: 600;
  color: #e8f4f8;
  margin: 0;
  padding-right: 20px;
  line-height: 1.4;
}
.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: #79b6c8;
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1;
}
.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
  background: rgba(0,0,0,0.2);
}
.faq-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #8a9bbf;
}
.faq-item.active {
  border-color: rgba(121,182,200,0.5);
  box-shadow: 0 4px 20px rgba(121,182,200,0.08);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #7b2ff7;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  opacity: 1;
  padding: 0 24px 24px 24px;
}

/* ============================================================
   BLOCK 5: PRICING
   ============================================================ */
#block-pricing {
  background: #060b14;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
#block-pricing::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121,182,200,0.3), transparent);
}

.block-pricing-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
/* ============================================================
   Billing toggle (monthly / yearly) — pricing block
   ============================================================ */
.billing-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(121,182,200,0.06);
  border: 1px solid rgba(121,182,200,0.18);
  border-radius: 999px;
  padding: 4px;
  margin: -30px auto 44px;
  isolation: isolate;
}
.billing-opt {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: rgba(200,230,240,0.6);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.billing-opt:hover { color: rgba(200,230,240,0.85); }
.billing-opt.is-active { color: #f0f4ff; }
.billing-toggle .billing-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  z-index: 0;
  background: linear-gradient(135deg, #79b6c8, #7b2ff7);
  border-radius: 999px;
  transition: left 0.28s cubic-bezier(.4,0,.2,1), width 0.28s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 14px rgba(121,182,200,0.4);
}
/* Position the slider purely with CSS using the active option index */
.billing-toggle[data-billing="monthly"] .billing-slider {
  left: 4px;
  width: calc(50% - 4px);
}
.billing-toggle[data-billing="yearly"] .billing-slider {
  left: calc(50%);
  width: calc(50% - 4px);
}
.billing-save {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(47,247,160,0.16);
  color: #2ff7a0;
  border: 1px solid rgba(47,247,160,0.4);
}
.billing-opt.is-active .billing-save {
  background: rgba(255,255,255,0.22);
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}

/* Center the toggle row */
.block-pricing-inner > .billing-toggle {
  display: flex;
  width: max-content;
}
.block-pricing-header {
  text-align: center;
  margin-bottom: 64px;
}

/* Три карточки */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .pricing-cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

/* Базовая карточка */
.pricing-card {
  padding: 36px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(121,182,200,0.1);
}

/* Featured — подсвеченная карточка */
.pricing-card--featured {
  border-color: rgba(121,182,200,0.55) !important;
  background: rgba(121,182,200,0.07) !important;
  box-shadow: 0 0 40px rgba(121,182,200,0.1);
}
.pricing-card--featured:hover {
  box-shadow: 0 16px 56px rgba(121,182,200,0.2);
}

/* Бейдж "Популярный" */
.pricing-badge {
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, #4aa8d8, #79b6c8);
  color: #060b14;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-icon-cv {
  display: block;
  width: 130px;
  height: 80px;
  margin: 0 auto 16px;
}
.pricing-plan {
  font-size: 20px;
  font-weight: 700;
  color: #c8e0ea;
  margin: 0 0 6px;
}
.pricing-desc {
  font-size: 13px;
  color: #4a5a7a;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* Цена */
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.pricing-amount {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -1px;
}
.pricing-currency {
  font-size: 18px;
  font-weight: 700;
  color: #79b6c8;
}
.pricing-period {
  font-size: 12px;
  color: #4a5a7a;
  margin-left: 2px;
}

.pricing-ai-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -12px 0 20px;
  padding: 9px 10px;
  border: 1px solid rgba(126, 240, 255, .22);
  border-radius: 8px;
  color: #8a9bbf;
  font-size: 13px;
  font-weight: 800;
}
.pricing-ai-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pricing-ai-toggle i {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: rgba(145, 160, 190, .22);
  border: 1px solid rgba(145, 160, 190, .35);
  flex: 0 0 auto;
}
.pricing-ai-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e7f3ff;
  transition: transform .18s ease, background .18s ease;
}
.pricing-ai-toggle input:checked + i {
  background: rgba(101, 229, 185, .28);
  border-color: rgba(101, 229, 185, .58);
}
.pricing-ai-toggle input:checked + i::after {
  transform: translateX(20px);
  background: #65e5b9;
}

/* Список фич */
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-features li {
  font-size: 13px;
  color: #8a9bbf;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}
.pricing-features li.pf-dim {
  opacity: 0.4;
}
.pf-check {
  color: #79b6c8;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.pf-cross {
  color: #4a5a7a;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Кнопки */
.pricing-btn {
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.pricing-btn--primary {
  background: linear-gradient(135deg, #4aa8d8 0%, #79b6c8 100%);
  color: #060b14;
}
.pricing-btn--primary:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.pricing-btn--outline {
  background: transparent;
  border: 1px solid rgba(121,182,200,0.4);
  color: #79b6c8;
}
.pricing-btn--outline:hover {
  border-color: rgba(121,182,200,0.8);
  background: rgba(121,182,200,0.07);
}

/* Сноска */
.pricing-note {
  text-align: center;
  margin-top: 48px;
  font-size: 13px;
  color: #4a5a7a;
  letter-spacing: 0.2px;
}

/* "ВНИМАНИЕ" banner — появляется вместо AI-текста после завершения печати */
.ai-warning-banner {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: #ef4444;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  animation: emergencyPulse 1.4s ease-in-out infinite;
}
/* ============================================================
   NEWSLETTER
   ============================================================ */
#block-newsletter {
  background: #060b14;
  padding: 0 0 100px;
  position: relative;
}
.newsletter-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 480px);
  gap: 36px;
  align-items: center;
}
.newsletter-copy h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  margin: 8px 0 14px;
  color: #f0f4ff;
  letter-spacing: 0;
}
.newsletter-copy p {
  color: #8a9bbf;
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
}
.newsletter-form {
  padding: 24px;
}
.newsletter-form label {
  display: block;
  margin-bottom: 10px;
  color: #c8e0ea;
  font-size: 13px;
  font-weight: 700;
}
.newsletter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.newsletter-row input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(121,182,200,0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #f0f4ff;
  padding: 0 14px;
  font: inherit;
}
.newsletter-row input:focus {
  outline: none;
  border-color: rgba(121,182,200,0.7);
  box-shadow: 0 0 0 3px rgba(121,182,200,0.12);
}
.newsletter-row button {
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #79b6c8, #7b2ff7);
  color: #fff;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-row button:disabled {
  opacity: .65;
  cursor: wait;
}
.newsletter-consent {
  margin: 10px 0 0;
  color: #6b7a99;
  font-size: 12px;
  line-height: 1.45;
}
.newsletter-status {
  min-height: 18px;
  margin-top: 10px;
  color: #8a9bbf;
  font-size: 13px;
  font-weight: 700;
}
.newsletter-status.is-success { color: #2ff7a0; }
.newsletter-status.is-error { color: #ff8f8f; }
@media (max-width: 820px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  .newsletter-row {
    grid-template-columns: 1fr;
  }
  .newsletter-row button {
    width: 100%;
  }
}
