/* ============================================================
   PentestGuard – светлая тема «бумага и лесной зелёный»
   Меняйте переменные ниже – они управляют всей темой.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");


:root {
  --bg: #f4efe5;
  --bg-2: #ece4d6;
  --surface: #fbf7ef;
  --surface-2: #fffdf8;
  --line: rgba(19, 51, 38, 0.12);
  --line-strong: rgba(19, 51, 38, 0.24);

  --text: #16251e;
  --muted: #5d6a62;

  --accent: #1e5b43;
  --accent-2: #2c7a5b;
  --accent-soft: rgba(30, 91, 67, 0.08);
  --green-900: #0e3528;
  --green-800: #124430;
  --sage: #c6d5cb;
  --cream: #f8f3e8;

  --danger: #b23a2f;
  --warn: #b5771f;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 28px 60px -34px rgba(20, 48, 34, 0.45);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Playfair Display", "Times New Roman", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 74px;
  --wrap: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 720px at 88% -12%, rgba(128, 166, 132, 0.24), transparent 62%),
    radial-gradient(900px 640px at -12% 34%, rgba(168, 190, 150, 0.16), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(30, 91, 67, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 91, 67, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--green-900); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 500;
  overflow-wrap: break-word;
}

h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  letter-spacing: -0.012em;
}
h3 {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
h4 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

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

::selection { background: rgba(30, 91, 67, 0.2); }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: clamp(56px, 7.5vw, 98px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 70px) 0; }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lead { font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

.grad-text {
  font-family: var(--display);
  font-style: italic;
  color: var(--accent);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(244, 239, 229, 0.9);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.42rem;
  line-height: 1;
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  margin-right: 11px;
  color: var(--accent);
}
.brand-mark svg { width: 30px; height: 32px; }
.brand span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav a:hover { color: var(--text); background: rgba(30, 91, 67, 0.06); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--accent);
}
.nav .nav-cta { margin-left: 12px; color: var(--cream); }
.nav .nav-cta:hover { color: var(--cream); }
.nav .nav-cta::after { display: none; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.6px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.22s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  color: var(--cream);
  background: var(--green-900);
  box-shadow: 0 16px 30px -18px rgba(14, 53, 40, 0.8);
}
.btn--primary:hover {
  color: #fff;
  background: #0a2a1f;
  transform: translateY(-1px);
  box-shadow: 0 22px 40px -18px rgba(14, 53, 40, 0.75);
}
.btn--ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(30, 91, 67, 0.45);
}
.btn--sm { padding: 9px 18px; font-size: 0.88rem; border-radius: 999px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(46px, 7vw, 92px) 0 clamp(56px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -240px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  border: 1px solid rgba(30, 91, 67, 0.16);
  box-shadow:
    0 0 0 70px rgba(30, 91, 67, 0.028),
    0 0 0 190px rgba(30, 91, 67, 0.018);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 66px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 10px;
  margin-bottom: 26px;
  border: 1px solid rgba(30, 91, 67, 0.2);
  border-radius: 100px;
  background: rgba(30, 91, 67, 0.055);
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.005em;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 91, 67, 0.12);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 { margin-bottom: 24px; max-width: 13ch; overflow-wrap: break-word; }
.hero p.lead { font-size: clamp(1.02rem, 1.6vw, 1.14rem); margin-bottom: 30px; max-width: 46ch; }
.hero .btn-row { margin-bottom: 28px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 0.87rem;
}
.hero-meta span { display: inline-flex; align-items: flex-start; gap: 7px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 4px; }

/* ---------- report showcase (hero) ---------- */

.report-showcase {
  position: relative;
  min-height: 512px;
  display: grid;
  place-items: center;
}

.rs-card {
  position: absolute;
  border-radius: 20px;
  border: 1px solid rgba(24, 58, 43, 0.13);
  background: rgba(255, 252, 245, 0.92);
  box-shadow: 0 40px 70px -42px rgba(20, 48, 34, 0.55);
}

.rs-card--back {
  z-index: 1;
  width: 66%;
  height: 72%;
  transform: translate(20%, 5%) rotate(9deg);
  background:
    linear-gradient(150deg, rgba(137, 173, 143, 0.5), rgba(233, 238, 224, 0.6) 52%, rgba(255, 252, 245, 0.85));
  display: flex;
  align-items: flex-end;
  padding: 26px;
}
.rs-chart { display: flex; align-items: flex-end; gap: 8px; width: 100%; height: 130px; opacity: 0.6; }
.rs-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #2e6b4f, rgba(46, 107, 79, 0.28));
}

.rs-card--mid {
  z-index: 2;
  width: 74%;
  height: 80%;
  transform: translate(16%, 1%) rotate(5deg);
  background: rgba(250, 247, 238, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 22px;
  padding: 26px;
  color: rgba(30, 91, 67, 0.32);
}
.rs-watermark { width: 78px; height: 78px; margin-right: 2px; }
.rs-mid-lines { display: grid; gap: 8px; width: 68%; }
.rs-mid-lines span { display: block; height: 7px; border-radius: 4px; background: rgba(30, 91, 67, 0.13); }
.rs-mid-lines span:nth-child(2) { width: 78%; }
.rs-mid-lines span:nth-child(3) { width: 62%; }
.rs-mid-lines span:nth-child(4) { width: 84%; }

.rs-card--front {
  z-index: 3;
  width: 82%;
  transform: translate(-9%, 0) rotate(-2deg);
  padding: 26px 26px 20px;
  background: rgba(255, 253, 247, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.rs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(24, 58, 43, 0.12);
}
.rs-kicker {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.rs-head h3 { margin: 5px 0 0; font-size: clamp(1.3rem, 2vw, 1.6rem); color: var(--text); }
.rs-risk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f7e3dc;
  color: #7c3b2e;
  font-size: 0.68rem;
  white-space: nowrap;
}
.rs-risk i { width: 7px; height: 7px; border-radius: 50%; background: #c0503c; }

.rs-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(24, 58, 43, 0.1);
}
.rs-metric { display: grid; gap: 3px; }
.rs-metric b { font-family: var(--display); font-size: 1.7rem; font-weight: 600; line-height: 1; }
.rs-metric span { font-size: 0.63rem; color: var(--muted); }
.is-crit { color: #b23a2f; }
.is-high { color: #c0762a; }
.is-med { color: #b08a24; }
.is-low { color: #2e6b4f; }

.rs-label {
  margin: 16px 0 10px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d7a70;
}
.rs-findings { display: grid; gap: 10px; }
.rs-finding {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.chip {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip--crit { background: #f7dcd6; color: #9b3327; }
.chip--high { background: #f8e8ce; color: #9a6216; }
.chip--med { background: #f6efcf; color: #8a7420; }
.rs-finding-text { display: grid; font-size: 0.78rem; line-height: 1.25; color: #253f32; }
.rs-finding-text em { font-style: normal; margin-top: 2px; font-size: 0.68rem; color: #7e8b82; }
.rs-skeleton { display: grid; gap: 4px; width: 62px; }
.rs-skeleton i { display: block; height: 3px; border-radius: 2px; background: rgba(30, 91, 67, 0.14); }
.rs-skeleton i:last-child { width: 70%; }

.rs-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(24, 58, 43, 0.1);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: #8b978e;
}

/* ---------- demo section + terminal ---------- */

.demo-section {
  background: var(--green-900);
  color: #eaf1ec;
  overflow: hidden;
}
.demo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 420px at 12% 0%, rgba(143, 211, 180, 0.12), transparent 62%),
    radial-gradient(700px 380px at 92% 100%, rgba(143, 211, 180, 0.07), transparent 60%);
  pointer-events: none;
}
.demo-section .wrap { position: relative; z-index: 1; }
.demo-head { max-width: 700px; }
.demo-section .eyebrow { color: #8fd3b4; }
.demo-section h2 { color: var(--cream); }
.demo-section .lead { color: #bfd0c4; }

.demo-terminal { max-width: 860px; margin: 0 auto; }

.terminal {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #08241b;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
}
.terminal-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3543;
}
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #74938a;
}
.terminal-tabs {
  display: flex;
  gap: 4px;
  padding: 9px 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.18);
  overflow-x: auto;
  scrollbar-width: none;
}
.terminal-tabs::-webkit-scrollbar { display: none; }
.terminal-tab {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: -1px;
  padding: 8px 13px 9px;
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #7f9a91;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.terminal-tab:hover { color: #d7e6df; background: rgba(255, 255, 255, 0.04); }
.terminal-tab[aria-selected="true"] {
  color: var(--cream);
  background: rgba(143, 211, 180, 0.1);
  box-shadow: inset 0 -2px 0 #8fd3b4;
}
.terminal-tab:focus-visible {
  outline: 2px solid rgba(143, 211, 180, 0.6);
  outline-offset: -2px;
}
.terminal-body {
  padding: 20px 18px 22px;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.95;
  color: #b7c9c0;
  overflow-x: auto;
  min-height: calc(9 * 1.95em + 42px);
}
.terminal-body .cmd { color: #f1ece0; }
.terminal-body .cmd b { color: #8fd3b4; font-weight: 500; }
.terminal-body .ok { color: #8fd3b4; }
.terminal-body .warn { color: #e9b567; }
.terminal-body .bad { color: #e88f83; }
.terminal-body .dim { color: #5f7d72; }

.terminal-wrap { min-width: 0; }

/* без JS вкладки не работают – показываем статичный пример вывода */
html:not(.js) .terminal-tabs { display: none; }
html:not(.js) #panel-visitor,
html:not(.js) #note-visitor { display: none; }
html:not(.js) #panel-process,
html:not(.js) #note-process { display: block; }
.terminal-note {
  margin: 14px 0 0;
  max-width: 66ch;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #9fb8ac;
}

.tv-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.tv-flag { flex: none; }
.tv-label { flex: none; color: #d3e0d8; }
.tv-dots {
  flex: 1 1 auto;
  min-width: 14px;
  align-self: center;
  margin: 0 2px;
  border-bottom: 1px dotted #2d4b3f;
}
.tv-val {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  color: #8aa295;
  transition: color 0.3s ease;
}
.tv-val.is-set { color: #f1ece0; }
.tv-val.is-missing,
.tv-val.tv-hint { color: #93a79d; }

/* ---------- интерактивная демо-консоль ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.terminal-body--console {
  display: flex;
  flex-direction: column;
  min-height: calc(9 * 1.95em + 42px);
}
.console-log {
  flex: 1 1 auto;
  min-height: 132px;
  max-height: 210px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #2d4b3f transparent;
}
.console-line {
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #b7c9c0;
}
.console-line + .console-line { margin-top: 2px; }
.console-line--cmd { color: #f1ece0; }
.console-line--hint { color: #93a79d; }
.console-line--ok { color: #8fd3b4; }
.console-line--warn { color: #e9b567; }
.console-line--err { color: #e88f83; }
.console-line b { color: #8fd3b4; font-weight: 500; }
.console-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.console-prompt { flex: none; color: #8fd3b4; }
.console-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #f1ece0;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.6;
  outline: none;
}
.console-input::placeholder { color: #5f7d72; }
.console-chips {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.console-chips::-webkit-scrollbar { display: none; }
.console-chip {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #a9bfb4;
  font-family: var(--mono);
  font-size: 0.68rem;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.console-chip:hover {
  color: #8fd3b4;
  border-color: rgba(143, 211, 180, 0.45);
  background: rgba(143, 211, 180, 0.08);
}
.console-chip:focus-visible {
  outline: 2px solid rgba(143, 211, 180, 0.6);
  outline-offset: 2px;
}
.terminal-body .caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: #8fd3b4;
  animation: blink 1.1s steps(2, start) infinite;
}
.terminal-line { animation: lineIn 0.5s ease both; animation-delay: var(--d, 0s); }

/* ---------- standards ---------- */

.standards {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.5);
  padding: 22px 0;
}
.standards-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.standards-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}
.standards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
}
.standards-list li {
  font-size: 0.9rem;
  color: #42544a;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.standards-list li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* ---------- cards / grid ---------- */

.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(30, 91, 67, 0.32);
  transform: translateY(-3px);
  box-shadow: 0 26px 44px -34px rgba(20, 48, 34, 0.5);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }
.card .num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #9aa69d;
}
.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 13px;
  color: var(--accent);
  background: #e9efe4;
  border: 1px solid rgba(30, 91, 67, 0.12);
}
.icon svg { width: 22px; height: 22px; }

.card--link { display: flex; flex-direction: column; }
.card--link .more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.card--link .more::after { content: "→"; transition: transform 0.2s ease; }
.card--link:hover .more::after { transform: translateX(4px); }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 24px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h4 { margin-bottom: 8px; font-size: 0.98rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.87rem; line-height: 1.55; }
.step::after {
  content: "";
  position: absolute;
  top: 33px;
  right: -17px;
  width: 17px;
  height: 1px;
  background: linear-gradient(90deg, rgba(30, 91, 67, 0.4), transparent);
}
.step:last-child::after { display: none; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- split / report ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.checks { display: grid; gap: 14px; }
.checks li {
  display: flex;
  gap: 12px;
  color: #35483d;
  font-size: 0.96rem;
  line-height: 1.55;
}
.checks li svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--accent);
}
.checks li b { color: var(--text); font-weight: 600; }

.report {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.report-head .tag {
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}
.report-body { padding: 8px 20px 18px; }
.report-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(19, 51, 38, 0.08);
  font-size: 0.86rem;
}
.report-row:last-child { border-bottom: 0; }
.report-row .sev {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.sev--crit { color: #9b3327; background: #f7dcd6; }
.sev--high { color: #9a6216; background: #f8e8ce; }
.sev--med  { color: #8a7420; background: #f6efcf; }
.report-row .score { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.report-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(30, 91, 67, 0.03);
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--muted);
}
.report-foot b { color: var(--text); font-weight: 600; }

/* ---------- features ---------- */

.feature {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature .icon { margin-bottom: 0; flex: none; width: 38px; height: 38px; border-radius: 10px; }
.feature .icon svg { width: 19px; height: 19px; }
.feature h4 { margin-bottom: 6px; font-size: 0.98rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.89rem; line-height: 1.55; }

/* ---------- pricing ---------- */

/* ---------- таблица ---------- */

.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th,
.table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(19, 51, 38, 0.09);
}
.table th {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: #f2ede1;
  white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.16s ease; }
.table tbody tr:hover { background: rgba(30, 91, 67, 0.04); }
.table td:first-child { color: var(--text); }
.table .col-term { white-space: nowrap; color: var(--muted); }
.table .col-scope { color: var(--muted); font-size: 0.87rem; }
.table th:last-child,
.table td.col-scope { text-align: left; }
.table td.col-term { text-align: right; }

/* ---------- faq ---------- */

.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq details[open] { border-color: rgba(30, 91, 67, 0.3); background: #fbf8ef; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 550;
  font-size: 0.98rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); font-size: 0.93rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- cta band ---------- */

.cta-band {
  position: relative;
  padding: clamp(40px, 6vw, 68px);
  border-radius: 24px;
  background: var(--green-900);
  color: var(--cream);
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 60px rgba(255, 255, 255, 0.025),
    0 0 0 140px rgba(255, 255, 255, 0.015);
  pointer-events: none;
}
.cta-band h2 { position: relative; z-index: 1; max-width: 24ch; margin-bottom: 16px; color: var(--cream); }
.cta-band p { position: relative; z-index: 1; color: #c3d3c9; max-width: 56ch; margin-bottom: 28px; }
.cta-band .btn-row { position: relative; z-index: 1; }
.cta-band .btn--primary { background: var(--cream); color: var(--green-900); }
.cta-band .btn--primary:hover { background: #fff; color: var(--green-900); }
.cta-band .btn--ghost { color: var(--cream); border-color: rgba(255, 255, 255, 0.3); }
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); color: #fff; }

/* ---------- page hero (inner pages) ---------- */

.page-hero {
  padding: clamp(44px, 6vw, 78px) 0 clamp(26px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -200px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(30, 91, 67, 0.12);
  box-shadow: 0 0 0 60px rgba(30, 91, 67, 0.02), 0 0 0 150px rgba(30, 91, 67, 0.014);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 {
  max-width: 26ch;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
}
.page-hero .lead { margin-top: 14px; }
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: 0.5; }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.contact-list { display: grid; gap: 12px; margin-top: 28px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-item:hover {
  border-color: rgba(30, 91, 67, 0.34);
  background: #fbf8ef;
  color: var(--text);
}
.contact-item .icon { margin: 0; width: 40px; height: 40px; flex: none; }
.contact-item .icon svg { width: 19px; height: 19px; }
.contact-item small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-item strong { font-weight: 550; font-size: 0.96rem; }

.form {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 0.83rem; color: #405246; letter-spacing: 0.01em; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 108px; }
.field input::placeholder, .field textarea::placeholder { color: #929e95; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(30, 91, 67, 0.6);
  box-shadow: 0 0 0 3px rgba(30, 91, 67, 0.1);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6a62' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}

/* выбор типа опросного листа */
.questionnaire { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.questionnaire legend { padding: 0; margin-bottom: 7px; font-size: 0.83rem; color: #405246; letter-spacing: 0.01em; }
.questionnaire legend .req { color: var(--accent); }
.q-options { display: flex; flex-wrap: wrap; gap: 8px; }
.q-option { position: relative; flex: 1 1 0; min-width: 128px; }
.q-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.q-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fffdf8;
  font-size: 0.9rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.q-option input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--accent);
}
.q-option input:focus-visible + span { outline: 3px solid rgba(8,123,88,.42); outline-offset: 3px; }
.q-option:hover input:not(:checked) + span { border-color: rgba(8,123,88,.42); background: #fff; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.83rem; color: var(--muted); margin-bottom: 18px; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 2px; }

.form-note { margin: 14px 0 0; font-size: 0.78rem; color: var(--muted); }
.form-status { margin: 14px 0 0; font-size: 0.86rem; display: none; padding: 11px 14px; border-radius: 9px; }
.form-status.is-ok { display: block; color: #235c40; background: #e7f0e6; border: 1px solid rgba(30, 91, 67, 0.22); }
.form-status.is-err { display: block; color: #8d2f26; background: #f9e5e1; border: 1px solid rgba(178, 58, 47, 0.22); }
.form.is-busy .btn { opacity: 0.65; cursor: progress; }


/* ---------- content pages ---------- */

.prose { max-width: 760px; }
.prose h2 { margin-top: 2em; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.prose h3 { margin-top: 1.8em; }
.prose ul { display: grid; gap: 10px; margin: 0 0 1.2rem; }
.prose ul li { display: flex; gap: 11px; color: #3d4f45; }
.prose ul li::before { content: "–"; color: var(--accent); flex: none; }
.prose ol { counter-reset: n; display: grid; gap: 12px; margin: 0 0 1.2rem; }
.prose ol li { display: flex; gap: 12px; color: #3d4f45; counter-increment: n; }
.prose ol li::before {
  content: counter(n) ".";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  flex: none;
  padding-top: 2px;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
  color: #33473b;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.note {
  padding: 18px 20px;
  border: 1px solid rgba(30, 91, 67, 0.2);
  border-radius: 12px;
  background: #eaf0e4;
  color: #33473b;
  font-size: 0.9rem;
}
.note b { color: var(--accent); }

/* ---------- footer ---------- */

.site-footer {
  margin-top: clamp(40px, 6vw, 72px);
  background: var(--green-900);
  color: #c4d6ca;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.9fr 1.1fr;
  gap: 36px 28px;
  padding: clamp(44px, 5vw, 66px) 24px clamp(28px, 4vw, 42px);
}
.footer-brand .brand { color: var(--cream); }
.footer-brand .brand-mark { color: #9fd6bc; }
.footer-brand .brand span { color: #9fd6bc; }
.footer-brand p { color: #a9bfb2; font-size: 0.89rem; max-width: 34ch; margin-top: 16px; }
.footer-col h4 {
  font-size: 0.7rem;
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fa99a;
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: #c4d6ca; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-col li { color: #c4d6ca; font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: #8fa99a;
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: #b9cec1; }
.footer-bottom a:hover { color: #fff; }

/* ---------- reveal ---------- */

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- 404 ---------- */

.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}
.error-page .code {
  font-family: var(--mono);
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(30, 91, 67, 0.5);
  margin-bottom: 20px;
}

/* ---------- animations ---------- */

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(30, 91, 67, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(30, 91, 67, 0.03); }
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step::after { display: none; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .report-showcase { width: 100%; max-width: 540px; margin: 8px auto 0; min-height: 470px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  /* на мобильных заголовок и текст идут раньше карточки «На выходе» */
  .split > .card { order: 2; }
  .steps--3 { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  body { font-size: 16px; }
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 18px 22px;
    background: rgba(244, 239, 229, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 14px; font-size: 1rem; border-radius: 10px; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--accent-soft); color: var(--accent); }
  .nav .nav-cta { margin: 8px 0 0; justify-content: center; }
  .standards-inner { gap: 14px; }
  .standards-label { width: 100%; }
  .hero-meta { gap: 8px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .grid--3, .grid--2, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cta-band { border-radius: 18px; }
  .terminal-body { font-size: 0.72rem; }
  .report-row { grid-template-columns: auto minmax(0, 1fr); }
  .report-row .score { grid-column: 2; }
  .hero .btn-row .btn { width: 100%; }
  .report-showcase { min-height: 430px; }
  .rs-card--front { width: 90%; transform: translate(-2%, 0) rotate(-1.6deg); padding: 20px 18px 16px; }
  .rs-card--mid { width: 78%; transform: translate(7%, -1%) rotate(4deg); }
  .rs-card--back { display: none; }
  .rs-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .rs-metric b { font-size: 1.5rem; }
  .rs-skeleton { display: none; }
  .rs-finding { grid-template-columns: auto minmax(0, 1fr); }
  .rs-foot { font-size: 0.56rem; }
}

@media (max-width: 640px) {
  .table { min-width: 0; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 13px 18px; border-bottom: 1px solid rgba(19, 51, 38, 0.09); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { padding: 0; border: 0; }
  .table td:first-child { margin-bottom: 3px; font-size: 0.92rem; }
  .table td.col-term { display: block; text-align: left; font-size: 0.8rem; color: var(--accent); margin-top: 3px; }
  .table td.col-term::before { content: "Срок: "; color: var(--muted); }
  .table .col-scope { display: block; margin-top: 2px; font-size: 0.82rem; }

  .console-input { font-size: 16px; }
  .console-log { max-height: 232px; }
  .console-chips { flex-wrap: wrap; overflow: visible; }
}

@media (max-width: 380px) {
  .terminal-tabs { padding: 8px 8px 0; }
  .terminal-tab { padding: 7px 8px 8px; font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* [hidden] должен перебивать display у компонентов (консоль, панели вкладок).
   No-JS-переопределения выше имеют более высокую специфичность и продолжают работать. */
[hidden] { display: none; }


/* ============================================================
   PentestGuard – HYBRID / CORPORATE redesign
   Selected identity: PG monogram concept 02
   ============================================================ */
:root {
  --bg: #f4f6f5;
  --bg-2: #e9eeeb;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --line: rgba(23, 29, 33, .10);
  --line-strong: rgba(23, 29, 33, .19);
  --text: #171d21;
  --muted: #65716d;
  --accent: #087b58;
  --accent-2: #0b966a;
  --accent-soft: rgba(8, 123, 88, .08);
  --green-900: #07563f;
  --green-800: #08694c;
  --sage: #c8ddd3;
  --cream: #f5f8f6;
  --danger: #b23a2f;
  --warn: #a96b19;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -38px rgba(16, 35, 28, .32);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Manrope", "Inter", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 78px;
  --wrap: 1200px;
}


body { background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.68; }
body::before {
  background:
    radial-gradient(900px 560px at 90% -10%, rgba(8,123,88,.075), transparent 65%),
    radial-gradient(780px 520px at -15% 38%, rgba(28,83,66,.045), transparent 65%),
    var(--bg);
}
body::after { opacity: .22; background-size: 88px 88px; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 5.4vw, 4.5rem); line-height: 1.02; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.28rem; }
.grad-text { font-family: var(--display); font-style: normal; font-weight: 800; color: var(--accent); }
.lead { color: #596762; line-height: 1.7; }
.wrap { max-width: var(--wrap); }

/* Header and identity */
.site-header { background: rgba(255,255,255,.82); border-bottom-color: rgba(23,29,33,.07); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.site-header.is-scrolled { background: rgba(255,255,255,.96); border-bottom-color: var(--line); }
.brand { gap: 2px; font-family: var(--display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.055em; }
.brand-mark { width: 38px; height: 38px; margin-right: 9px; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand > span:last-child { color: var(--accent); }
.footer-brand .brand { color: #f2f5f3; }
.footer-brand .brand > span:last-child { color: #27b887; }
.nav { gap: 5px; }
.nav a { color: #52605b; font-size: .91rem; font-weight: 600; }
.nav a:hover { color: var(--accent); background: rgba(8,123,88,.065); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { background: var(--accent); }
.burger { border-color: var(--line-strong); background: #fff; }
.burger span { background: var(--text); }

/* Buttons */
.btn { border-radius: 9px; padding: 13px 22px; font-weight: 700; }
.btn--primary { color: #fff; background: var(--accent); box-shadow: 0 12px 26px -16px rgba(8,123,88,.72); }
.btn--primary:hover { color: #fff; background: #066748; box-shadow: 0 16px 30px -16px rgba(8,123,88,.65); }
.btn--ghost { border-color: rgba(23,29,33,.2); background: rgba(255,255,255,.55); }
.btn--ghost:hover { color: var(--accent); border-color: rgba(8,123,88,.42); background: #fff; }
.nav .nav-cta { color: #fff; border-radius: 8px; }

/* Light corporate hero */
.hero { padding-top: clamp(52px, 7vw, 94px); padding-bottom: clamp(60px, 8vw, 104px); background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(244,246,245,.12)); }
.hero::before { border-color: rgba(8,123,88,.12); box-shadow: 0 0 0 70px rgba(8,123,88,.018), 0 0 0 190px rgba(8,123,88,.012); }
.hero h1 { max-width: 12ch; }
.badge { border-color: rgba(8,123,88,.18); border-radius: 7px; background: rgba(8,123,88,.055); color: #087b58; font-weight: 600; }
.badge .dot { background: #0b966a; box-shadow: 0 0 0 4px rgba(8,123,88,.12); }
.hero-meta { color: #56645f; }
.hero-meta svg { color: var(--accent); }
.report-showcase { min-height: 500px; }
.rs-card { border-color: rgba(23,29,33,.11); border-radius: 14px; box-shadow: 0 34px 74px -48px rgba(16,35,28,.48); }
.rs-card--back { background: linear-gradient(145deg,#dce9e2,#f4f7f5 65%,#fff); }
.rs-card--mid { background: rgba(255,255,255,.96); }

/* Hybrid technical section */
.demo-section { background: #171d21; }
.demo-section::before { opacity: .7; }
.demo-section .eyebrow { color: #55c79b; }
.demo-section h2 { color: #f5f8f6; }
.demo-section .lead { color: #b6c4be; }
.terminal { border-color: rgba(255,255,255,.13); background: #101619; box-shadow: 0 30px 90px -45px rgba(0,0,0,.85); }
.terminal-bar { background: #1d272b; }
.terminal-tabs { background: #151e22; }
.terminal-tab[aria-selected="true"] { color: #8be0ba; border-bottom-color: #0b966a; }
.terminal-body { background: #101619; }
.terminal-body .cmd b,.terminal-body .ok { color: #65d5a6; }
.terminal-note { color: #aabbb3; }

/* Cards and content blocks */
.section--line { border-top-color: var(--line); }
.section-head { max-width: 760px; }
.eyebrow { color: var(--accent); letter-spacing: .12em; font-size: .69rem; }
.card { border-color: rgba(23,29,33,.09); border-radius: 14px; background: #fff; box-shadow: 0 8px 28px -25px rgba(15,38,29,.3); }
.card:hover { border-color: rgba(8,123,88,.32); box-shadow: 0 24px 44px -34px rgba(15,38,29,.42); }
.card .icon { border-radius: 11px; color: var(--accent); background: #e9f3ee; border-color: rgba(8,123,88,.12); }
.card .num { color: #82918a; }
.step { border-radius: 13px; background: #fff; border-color: var(--line); }
.note { background: #edf5f1; border-color: rgba(8,123,88,.18); color: #3e5b4e; }
.note b { color: var(--accent); }

/* Distinctive Red Team panel */
#redteam { background: #171d21; color: #f3f7f5; border-top: 0; }
#redteam h2, #redteam h3, #redteam h4 { color: #f3f7f5; }
#redteam .lead, #redteam p, #redteam li { color: #b9c7c0; }
#redteam .eyebrow { color: #62d0a5; }
#redteam .card { background: #202a2e; border-color: rgba(255,255,255,.12); }
#redteam .card p { color: #b9c7c0; }
#redteam .checks li b { color: #f3f7f5; }
#redteam .icon { background: rgba(8,123,88,.18); border-color: rgba(74,207,155,.2); color: #67d6a9; }
#redteam a:not(.btn) { color: #70d9b0; }
#redteam .btn--ghost { color: #f3f7f5; border-color: rgba(255,255,255,.25); background: transparent; }

/* Page headers, pricing, contacts, prose */
.page-hero { padding: clamp(48px,6.5vw,82px) 0 clamp(38px,5vw,64px); background: linear-gradient(180deg,#fff,rgba(255,255,255,.35)); }
.page-hero::before { background: radial-gradient(ellipse at 85% 15%,rgba(8,123,88,.075),transparent 62%); }
.page-hero h1 { max-width: 19ch; }
.crumbs { color: #78847f; }
.crumbs a { color: var(--accent); }
.contact-item { border-radius: 12px; background: #fff; }
.contact-item:hover { background: #f9fcfa; border-color: rgba(8,123,88,.35); }
.form { border-color: rgba(23,29,33,.10); border-radius: 14px; background: #fff; box-shadow: 0 24px 54px -42px rgba(16,35,28,.4); }
.field input,.field select,.field textarea { border-radius: 8px; border-color: rgba(23,29,33,.18); background: #fbfcfb; }
.field input:focus,.field select:focus,.field textarea:focus { border-color: rgba(8,123,88,.65); box-shadow: 0 0 0 3px rgba(8,123,88,.10); }
.prose { color: #34413c; }
.prose ul li,.prose ol li { color: #46544e; }
.prose blockquote { background: #edf5f1; color: #3d554a; }

/* Calls to action and footer */
.cta-band { border-radius: 16px; background: linear-gradient(125deg,#171d21,#20352d 72%,#07563f); box-shadow: 0 28px 64px -42px rgba(10,35,25,.7); }
.cta-band .btn--primary { background: #fff; color: #07563f; }
.cta-band .btn--primary:hover { background: #eaf5ef; color: #064a37; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.34); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.6); }
.site-footer { background: #171d21; color: #c0cbc6; }
.site-footer::before { background: radial-gradient(ellipse at 15% 0%,rgba(8,123,88,.22),transparent 55%); }
.footer-brand p { color: #a9b6b0; }
.footer-col h4 { color: #f1f5f3; }
.footer-col a,.footer-bottom a { color: #b9c7c0; }
.footer-col a:hover,.footer-bottom a:hover { color: #6ed9af; }
.footer-bottom { border-top-color: rgba(255,255,255,.12); color: #87958e; }
.legal { color: #87958e; }
.error-page { background: linear-gradient(145deg,#f7f9f8,#eaf1ed); }
.error-page .code { color: var(--accent); }

/* Accessibility and responsive refinements */
:focus-visible { outline: 3px solid rgba(8,123,88,.42); outline-offset: 3px; }
@media (max-width: 980px) {
  .nav a { padding-inline: 9px; font-size: .88rem; }
  .brand { font-size: 1.2rem; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .site-header { background: rgba(255,255,255,.94); }
  .nav { background: rgba(255,255,255,.985); border-bottom: 1px solid var(--line); box-shadow: 0 20px 35px -28px rgba(0,0,0,.3); }
  .nav a { font-size: 1rem; }
  .hero { padding-top: 42px; }
  .hero-grid { gap: 22px; }
  .report-showcase { min-height: 350px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand { font-size: 1.16rem; }
  #redteam { padding-block: 54px; }

  /* отчёт в hero на узких экранах: без наложений на список преимуществ */
  .report-showcase { min-height: 0; }
  .rs-card--front { position: relative; width: 100%; transform: none; }
  .rs-card--mid { width: 92%; height: 84%; transform: translate(7%, 2%) rotate(3.5deg); }
  .rs-card--back { width: 84%; height: 76%; transform: translate(11%, 5%) rotate(7deg); }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
