/* @generated: mercury design system */
/* ==========================================================================
   Mercury Design System: Alpine banking at blue hour
   Интерактивный портал анализа угроз публичных сетей
   ========================================================================== */

:root {
  /* Цветовая палитра Mercury */
  --color-onyx-canvas: #171721;
  --color-graphite-card: #1e1e2a;
  --color-obsidian-button: #272735;
  --color-slate-border: #70707d;
  --color-mist-border: #e2e3ed;
  --color-ash-text: #c3c3cc;
  --color-ivory-text: #ededf3;
  --color-cobalt: #5266eb;
  --color-cobalt-hover: #4354c7;
  --color-pure-white: #ffffff;
  --color-danger-accent: #e5484d;
  --color-warning-accent: #f5a623;
  --color-success-accent: #30a46c;

  /* Шрифты и калиброванные веса */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --weight-light: 360;
  --weight-regular: 400;
  --weight-medium: 420;
  --weight-display: 480;
  --weight-emphasis: 530;

  /* Размеры, отступы и ритм */
  --page-max-width: 1200px;
  --section-gap: 72px;
  --card-padding: 32px;
  --element-gap: 12px;

  /* Формы и радиусы скругления */
  --radius-cards: 12px;
  --radius-pill: 32px;
  --radius-nav-pill: 40px;

  /* Переходы */
  --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Сброс стилей и базовые настройки */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--color-onyx-canvas);
  color: var(--color-ivory-text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-onyx-canvas);
  color: var(--color-ivory-text);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Типографика Mercury */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: 1.15;
  letter-spacing: 0.015em;
  color: var(--color-ivory-text);
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ash-text);
  font-weight: var(--weight-regular);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Контейнеры */
.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  position: relative;
}

/* Верхняя навигация */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 24px;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.navbar {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background-color: rgba(23, 23, 33, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 227, 237, 0.08);
  border-radius: var(--radius-nav-pill);
  pointer-events: auto;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--weight-emphasis);
  font-size: 0.9rem;
  color: var(--color-ivory-text);
  letter-spacing: 0.04em;
}

.brand-icon {
  width: 28px;
  height: 28px;
  background-color: var(--color-obsidian-button);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 227, 237, 0.12);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--color-ash-text);
  font-weight: var(--weight-medium);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-ivory-text);
  background-color: var(--color-obsidian-button);
}

/* Кнопки в pill-стиле */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: var(--weight-display);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-cobalt);
  color: var(--color-pure-white);
}

.btn-primary:hover {
  background-color: var(--color-cobalt-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-obsidian-button);
  color: var(--color-ivory-text);
  border: 1px solid rgba(226, 227, 237, 0.12);
}

.btn-secondary:hover {
  background-color: rgba(39, 39, 53, 0.9);
  border-color: rgba(226, 227, 237, 0.25);
  transform: translateY(-2px);
}

/* Доступность и фокус-ринг (WCAG 2.4.7) */
.habit-checkbox:focus-visible,
.btn-pill:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--color-cobalt);
  outline-offset: 2px;
}

/* Карточки в стиле Mercury: БЕЗ падающих теней, только контраст оттенков */
.card {
  background-color: var(--color-graphite-card);
  border-radius: var(--radius-cards);
  padding: var(--card-padding);
  border: 1px solid rgba(226, 227, 237, 0.06);
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: none !important;
}

.card:hover {
  border-color: rgba(226, 227, 237, 0.16);
}

/* Секция Hero со сценой стола и монитора в синий час (blue hour) */
.hero-viewport {
  position: relative;
  height: 220vh;
}

.hero-sticky-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 80px;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 450px;
  background: radial-gradient(circle, rgba(82, 102, 235, 0.14) 0%, rgba(23, 23, 33, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

/* Текстовый оверлей: четко отделен в верхней зоне, никогда не наезжает на монитор */
.hero-text-overlay {
  position: relative;
  width: 100%;
  max-width: 1080px;
  padding: 0 24px;
  text-align: center;
  z-index: 10;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--color-obsidian-button);
  border: 1px solid rgba(226, 227, 237, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  color: var(--color-ash-text);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.hero-headline {
  font-size: clamp(2.1rem, 3.8vw, 3.1rem);
  font-weight: var(--weight-display);
  line-height: 1.15;
  color: var(--color-ivory-text);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-subhead {
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  color: var(--color-ash-text);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.55;
}

/* 3D сцена стола и настольного компьютера (ПК) издалека (2-3 метра) */
.desk-scene-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 5;
  margin-top: auto;
  margin-bottom: 24px;
}

/* Ножки стола */
.desk-legs {
  position: absolute;
  bottom: -80px;
  width: 860px;
  height: 110px;
  pointer-events: none;
  z-index: 1;
}

.desk-leg {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 110px;
  background: linear-gradient(180deg, #222230 0%, #0d0d14 100%);
  border-left: 1px solid rgba(226, 227, 237, 0.08);
}

.desk-leg.left {
  left: 40px;
}

.desk-leg.right {
  right: 40px;
}

/* Поверхность и основание стола */
.desk-surface {
  position: absolute;
  bottom: 30px;
  width: 900px;
  height: 18px;
  background: linear-gradient(180deg, #252535 0%, #15151e 100%);
  border-radius: 4px;
  border-top: 1px solid rgba(226, 227, 237, 0.2);
  transform: translateZ(-80px);
  z-index: 3;
}

.desk-shadow-base {
  position: absolute;
  bottom: 8px;
  width: 940px;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(10, 10, 16, 0.9) 0%, rgba(23, 23, 33, 0) 75%);
  filter: blur(12px);
  z-index: 2;
}

/* Коврик для мыши и клавиатуры (Desk Mat) */
.desk-mat {
  position: absolute;
  bottom: 42px;
  width: 580px;
  height: 55px;
  background-color: #161622;
  border: 1px solid rgba(226, 227, 237, 0.08);
  border-radius: 6px;
  transform: rotateX(60deg) translateZ(10px);
  z-index: 6;
}

/* Системный блок ПК (Desktop Tower) */
.pc-tower {
  position: absolute;
  right: 70px;
  bottom: 34px;
  width: 96px;
  height: 225px;
  background: linear-gradient(135deg, #191926 0%, #0d0d14 100%);
  border: 1px solid rgba(226, 227, 237, 0.14);
  border-radius: 8px;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.7);
  z-index: 6;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateZ(15px);
}

.pc-tower-top-panel {
  height: 22px;
  background-color: #20202e;
  border-bottom: 1px solid rgba(226, 227, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 8px;
}

.pc-power-btn {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-cobalt);
  box-shadow: 0 0 8px var(--color-cobalt);
}

.pc-usb-port {
  width: 5px;
  height: 3px;
  background-color: #2e2e40;
  border-radius: 1px;
}

.pc-tower-front {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  background: #101018;
}

.pc-cooler {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1.5px solid rgba(82, 102, 235, 0.55);
  box-shadow: inset 0 0 14px rgba(82, 102, 235, 0.35), 0 0 12px rgba(82, 102, 235, 0.25);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cooler-blade {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #1c1c2a;
  border: 1px solid rgba(82, 102, 235, 0.4);
  animation: rotateCooler 4s linear infinite;
}

@keyframes rotateCooler {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pc-intake-grille {
  width: 66px;
  height: 24px;
  background: repeating-linear-gradient(0deg, #1c1c28, #1c1c28 2px, transparent 2px, transparent 4px);
  opacity: 0.6;
}

.pc-tower-side-glow {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, var(--color-cobalt), transparent);
  opacity: 0.7;
}

/* Настольная клавиатура с выделенными рядами клавиш */
.keyboard-mockup {
  position: absolute;
  bottom: 48px;
  left: calc(50% - 150px);
  width: 250px;
  height: 32px;
  background-color: #1a1a26;
  border: 1px solid rgba(226, 227, 237, 0.12);
  border-radius: 5px;
  transform: rotateX(55deg) translateZ(25px);
  z-index: 7;
  padding: 3px 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kb-row {
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(90deg, #2c2c3e, #2c2c3e 8px, #161622 8px, #161622 10px);
  border-radius: 1px;
}

.kb-row-space {
  display: flex;
  justify-content: center;
  align-items: center;
  background: none;
}

.kb-spacebar {
  width: 85px;
  height: 4px;
  background-color: #343448;
  border-radius: 1px;
}

/* Настольная мышь с колесиком */
.mouse-mockup {
  position: absolute;
  bottom: 50px;
  right: 270px;
  width: 30px;
  height: 22px;
  background-color: #1f1f2e;
  border-radius: 11px;
  border: 1px solid rgba(226, 227, 237, 0.12);
  transform: rotateX(55deg) translateZ(25px);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mouse-wheel {
  width: 4px;
  height: 6px;
  background-color: var(--color-cobalt);
  border-radius: 2px;
  margin-top: 2px;
}

.mouse-split {
  width: 1px;
  height: 6px;
  background-color: rgba(226, 227, 237, 0.15);
}

/* Монитор ПК на высокой стойке */
.monitor-frame {
  position: relative;
  width: 500px;
  height: 300px;
  background-color: #0d0d14;
  border: 10px solid #1e1e2c;
  border-bottom: 22px solid #1e1e2c;
  border-radius: 12px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform, opacity, box-shadow;
  transform: translateZ(0);
  z-index: 6;
  margin-bottom: 40px;
}

.monitor-webcam {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #06060a;
  border: 1px solid rgba(226, 227, 237, 0.25);
  z-index: 10;
}

.monitor-power-led {
  position: absolute;
  bottom: 7px;
  right: 14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(82, 102, 235, 0.85);
  box-shadow: 0 0 6px var(--color-cobalt);
  z-index: 10;
}

.monitor-stand-neck {
  position: absolute;
  bottom: 42px;
  width: 44px;
  height: 65px;
  background: linear-gradient(180deg, #2b2b3c 0%, #1a1a26 100%);
  border-radius: 4px;
  border: 1px solid rgba(226, 227, 237, 0.12);
  transform: translateZ(-20px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stand-cable-hole {
  width: 14px;
  height: 24px;
  border-radius: 7px;
  background-color: #0f0f16;
  border: 1px solid rgba(226, 227, 237, 0.08);
}

.monitor-stand-base {
  position: absolute;
  bottom: 34px;
  width: 170px;
  height: 9px;
  background: linear-gradient(180deg, #2f2f42 0%, #1e1e2b 100%);
  border-radius: 4px;
  border-top: 1px solid rgba(226, 227, 237, 0.25);
  transform: translateZ(-10px);
  z-index: 4;
}

.monitor-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #111118;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.monitor-screen-header {
  height: 30px;
  background-color: #191924;
  border-bottom: 1px solid rgba(226, 227, 237, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 0.725rem;
  color: var(--color-ash-text);
}

.screen-dots {
  display: flex;
  gap: 6px;
}

.screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(226, 227, 237, 0.2);
}

.screen-dot.danger {
  background-color: var(--color-danger-accent);
}

.monitor-screen-body {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at center, rgba(82, 102, 235, 0.08) 0%, rgba(17, 17, 24, 0.98) 75%);
}

.screen-radar-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screen-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background-color: rgba(229, 72, 77, 0.12);
  border: 1px solid rgba(229, 72, 77, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  color: #ff9498;
  width: fit-content;
}

.screen-packet-stream {
  font-family: monospace;
  font-size: 0.725rem;
  color: var(--color-ash-text);
  line-height: 1.55;
  opacity: 0.85;
}

.screen-pulse-wave {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 90px;
  border: 1px solid rgba(82, 102, 235, 0.3);
  border-radius: 50%;
  animation: radarPulse 3s infinite ease-out;
}

@keyframes radarPulse {
  0% { transform: translateY(-50%) scale(0.6); opacity: 0.8; }
  100% { transform: translateY(-50%) scale(1.8); opacity: 0; }
}

.scroll-indicator-pill {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: rgba(39, 39, 53, 0.85);
  border: 1px solid rgba(226, 227, 237, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.775rem;
  color: var(--color-ash-text);
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

.scroll-indicator-pill .indicator-chevron {
  animation: floatBounce 2s infinite ease-in-out;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Заголовки секций */
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background-color: var(--color-obsidian-button);
  border: 1px solid rgba(226, 227, 237, 0.08);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--color-ash-text);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: var(--weight-display);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-ash-text);
  line-height: 1.6;
}

/* Сетка угроз (Анатомия атак) */
.threats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.threat-card-span-2 {
  grid-column: span 2;
}

.threat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.threat-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--color-obsidian-button);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cobalt);
  border: 1px solid rgba(226, 227, 237, 0.08);
}

.threat-vector-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background-color: rgba(226, 227, 237, 0.06);
  border-radius: var(--radius-pill);
  color: var(--color-ash-text);
  font-weight: var(--weight-medium);
}

.threat-card-title {
  font-size: 1.25rem;
  font-weight: var(--weight-display);
  margin-bottom: 14px;
  color: var(--color-ivory-text);
}

.threat-card-body p {
  font-size: 0.925rem;
  margin-bottom: 14px;
  color: var(--color-ash-text);
}

.threat-card-body p:last-child {
  margin-bottom: 0;
}

.threat-diagram {
  margin-top: 18px;
  padding: 12px 16px;
  background-color: #15151e;
  border-radius: 8px;
  border: 1px solid rgba(226, 227, 237, 0.06);
  font-family: monospace;
  font-size: 0.775rem;
  color: var(--color-ash-text);
}

.diagram-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.diagram-node {
  padding: 4px 8px;
  background-color: var(--color-obsidian-button);
  border-radius: 4px;
}

.diagram-node.hijacked {
  background-color: rgba(229, 72, 77, 0.2);
  color: #ff9498;
  border: 1px solid rgba(229, 72, 77, 0.4);
}

.diagram-arrow {
  color: var(--color-slate-border);
}

/* Матрица данных */
.matrix-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.matrix-column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(226, 227, 237, 0.08);
}

.matrix-level-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.matrix-level-dot.critical {
  background-color: var(--color-danger-accent);
  box-shadow: 0 0 10px var(--color-danger-accent);
}

.matrix-level-dot.high {
  background-color: var(--color-warning-accent);
  box-shadow: 0 0 10px var(--color-warning-accent);
}

.matrix-level-dot.medium {
  background-color: var(--color-cobalt);
  box-shadow: 0 0 10px var(--color-cobalt);
}

.matrix-column-title {
  font-size: 1.15rem;
  font-weight: var(--weight-display);
}

.leak-item-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.leak-item {
  padding-left: 12px;
  border-left: 2px solid rgba(226, 227, 237, 0.1);
}

.leak-item-title {
  font-size: 0.95rem;
  font-weight: var(--weight-medium);
  color: var(--color-ivory-text);
  margin-bottom: 6px;
}

.leak-item-desc {
  font-size: 0.85rem;
  color: var(--color-ash-text);
  line-height: 1.5;
}

/* Секция: Кто следит */
.surveillance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.surveillance-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.surveillance-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.surveillance-icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-obsidian-button);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cobalt);
  flex-shrink: 0;
}

/* Калькулятор персональных рисков */
.calculator-card {
  max-width: 900px;
  margin: 0 auto;
}

.calculator-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.habits-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.habit-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: rgba(39, 39, 53, 0.4);
  border: 1px solid rgba(226, 227, 237, 0.05);
  transition: var(--transition-smooth);
}

.habit-label:hover {
  background-color: rgba(39, 39, 53, 0.7);
  border-color: rgba(226, 227, 237, 0.12);
}

.habit-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid var(--color-slate-border);
  background-color: #15151e;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: var(--transition-smooth);
}

.habit-checkbox:checked {
  background-color: var(--color-cobalt);
  border-color: var(--color-cobalt);
}

.habit-checkbox:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}

.habit-text {
  font-size: 0.925rem;
  color: var(--color-ivory-text);
  line-height: 1.45;
}

.calculator-result-box {
  background-color: #161622;
  border-radius: var(--radius-cards);
  padding: 32px 24px;
  border: 1px solid rgba(226, 227, 237, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.risk-score-display {
  font-size: 3.4rem;
  font-weight: var(--weight-display);
  line-height: 1;
  color: var(--color-ivory-text);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.risk-level-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: var(--weight-emphasis);
  margin-bottom: 20px;
  background-color: var(--color-obsidian-button);
  color: var(--color-ash-text);
  border: 1px solid rgba(226, 227, 237, 0.1);
  transition: var(--transition-smooth);
}

.risk-level-badge.critical {
  background-color: rgba(229, 72, 77, 0.15);
  color: #ff9498;
  border-color: rgba(229, 72, 77, 0.35);
}

.risk-level-badge.high {
  background-color: rgba(245, 166, 35, 0.15);
  color: #f7b955;
  border-color: rgba(245, 166, 35, 0.35);
}

.risk-level-badge.moderate {
  background-color: rgba(82, 102, 235, 0.15);
  color: #8b99f8;
  border-color: rgba(82, 102, 235, 0.35);
}

.risk-level-badge.low {
  background-color: rgba(48, 164, 108, 0.15);
  color: #5ec792;
  border-color: rgba(48, 164, 108, 0.35);
}

.risk-recommendation {
  font-size: 0.875rem;
  color: var(--color-ash-text);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Секция протокола защиты */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.protocol-card {
  display: flex;
  flex-direction: column;
}

.protocol-step-number {
  font-size: 0.8rem;
  font-weight: var(--weight-emphasis);
  color: var(--color-cobalt);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.protocol-title {
  font-size: 1.2rem;
  font-weight: var(--weight-display);
  margin-bottom: 12px;
}

.protocol-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.protocol-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--color-ash-text);
}

.check-bullet {
  color: var(--color-cobalt);
  font-weight: bold;
}

/* Секция сводной памятки безопасности */
.summary-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.summary-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  position: relative;
}

.summary-card-number {
  font-size: 0.85rem;
  font-weight: var(--weight-emphasis);
  color: var(--color-cobalt);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

/* Подвал */
.site-footer {
  border-top: 1px solid rgba(226, 227, 237, 0.08);
  padding: 48px 0;
  color: var(--color-ash-text);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-nav a:hover {
  color: var(--color-ivory-text);
}

/* Адаптивность для планшетов и мобильных экранов */
@media (max-height: 750px) {
  .hero-sticky-stage {
    padding-top: 68px;
  }
  .desk-scene-container {
    height: 380px;
    margin-bottom: 20px;
  }
  .monitor-frame {
    width: 440px;
    height: 260px;
    margin-bottom: 24px;
  }
}

@media (max-width: 1024px) {
  .threats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .threat-card-span-2 {
    grid-column: span 1;
  }
  .matrix-container {
    grid-template-columns: 1fr;
  }
  .protocol-grid {
    grid-template-columns: 1fr;
  }
  .calculator-wrapper {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-wrapper {
    padding: 12px 16px;
  }
  .navbar {
    padding: 8px 16px;
  }
  .brand-badge {
    font-size: 0.85rem;
    gap: 8px;
  }
  .nav-menu {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-link {
    font-size: 0.775rem;
    padding: 4px 8px;
  }
  .threats-grid {
    grid-template-columns: 1fr;
  }
  .surveillance-grid {
    grid-template-columns: 1fr;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .monitor-frame {
    width: 82vw;
    height: 230px;
    margin-bottom: 30px;
  }
  .pc-tower {
    right: 14px;
    width: 60px;
    height: 150px;
    bottom: 34px;
  }
  .pc-cooler {
    width: 34px;
    height: 34px;
  }
  .cooler-blade {
    width: 10px;
    height: 10px;
  }
  .desk-legs {
    display: none;
  }
  .desk-mat {
    width: 80vw;
  }
  .keyboard-mockup {
    width: 180px;
    left: calc(50% - 100px);
  }
  .mouse-mockup {
    right: 18vw;
  }
  .desk-surface {
    width: 95vw;
  }
  .desk-scene-container {
    height: 380px;
    max-width: 100%;
  }
  .hero-viewport {
    height: 180vh;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-sticky-stage {
    padding-top: 60px;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .navbar-wrapper {
    padding: 8px 12px;
  }
  .navbar {
    padding: 6px 12px;
  }
  .brand-badge {
    font-size: 0.8rem;
    gap: 6px;
  }
  .brand-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  .hero-headline {
    font-size: 1.45rem;
    line-height: 1.2;
  }
  .hero-subhead {
    font-size: 0.85rem;
  }
  .pc-tower {
    display: none;
  }
  .monitor-frame {
    width: 92vw;
    height: 200px;
  }
  .desk-scene-container {
    height: 300px;
    margin-bottom: 16px;
  }
  .card {
    padding: 20px 16px;
  }
  .btn-pill {
    padding: 10px 18px;
    font-size: 0.875rem;
  }
}

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