/* ============================================================
   Google Protect — сайт. Дизайн-система.
   Токен-блок: один масштаб типа 1.25, одна палитра Google,
   один радиус карточек + pill, одна тень, три длительности.
   ============================================================ */

/* ---- шрифты (self-hosted, cyrillic + latin) ---- */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/golos-text-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/golos-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/golos-text-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/golos-text-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/golos-text-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/golos-text-latin-600-normal.woff2") format("woff2"); }

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/nunito-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/nunito-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/nunito-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/nunito-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("fonts/nunito-cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap;
  src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); }

@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-mono-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  /* TYPE — 1.25 (marketing) */
  --font-display: "Nunito", "Golos Text", system-ui, sans-serif;
  --font-text: "Golos Text", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --step--1: .8rem; --step-0: 1rem; --step-1: 1.25rem;
  --step-2: 1.563rem; --step-3: 1.953rem; --step-4: 2.441rem;
  --step-5: 3.052rem; --step-6: 3.815rem;

  /* SPACE */
  --space-3xs: .25rem; --space-2xs: .5rem; --space-xs: .75rem;
  --space-s: 1rem; --space-m: 1.5rem; --space-l: 2rem;
  --space-xl: 3rem; --space-2xl: 4.5rem; --space-3xl: 7rem;

  /* COLOR — семантика Google */
  --base: #ffffff;
  --surface: #f8fafd;
  --ink: #1f1f1f;
  --ink-2: #444746;
  --ink-3: #5f6368;
  --line: #dde3ea;
  --line-2: #c4c7c5;
  --blue: #0b57d0; --blue-ink: #0842a0; --blue-soft: #d3e3fd;
  --green: #188038; --green-soft: #e6f4ea;
  --red: #c5221f; --red-soft: #fce8e6;
  --yellow: #b06000; --yellow-soft: #fef7e0;
  --terminal-bg: #1b1f24; --terminal-ink: #e8eaed; --terminal-dim: #9aa0a6;

  /* FORM */
  --radius: 16px; --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(31,31,31,.08), 0 2px 10px rgba(31,31,31,.06);

  /* MOTION */
  --dur-fast: 120ms; --dur: 220ms; --ease: cubic-bezier(.2, 0, 0, 1);
}

/* ---- базис ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
.mono { font-family: var(--font-mono); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-m); }

/* focus — видимый всегда */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--space-s); top: var(--space-s); z-index: 100;
  background: var(--base); padding: var(--space-s); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- кнопки: 5 состояний ---- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  min-height: 48px; padding: 0 var(--space-l);
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font: 500 var(--step-0)/1 var(--font-text); cursor: pointer;
  text-decoration: none !important;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-ink); }
.btn-primary:active { transform: scale(.97); background: var(--blue-ink); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-ghost:active { transform: scale(.97); }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red-soft); }
.btn-danger:hover { background: var(--red-soft); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .55; cursor: default; transform: none; }
.btn-small { min-height: 40px; padding: 0 var(--space-m); font-size: var(--step--1); }

/* ---- шапка ---- */
.site-header { position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: var(--space-m); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--space-2xs);
  font: 700 var(--step-1)/1 var(--font-display); color: var(--ink); text-decoration: none !important; }
.brand:hover { color: var(--blue); }
.site-nav { display: flex; gap: var(--space-s); margin-left: auto; }
.site-nav a { color: var(--ink-2); padding: var(--space-2xs) var(--space-2xs); }
.site-nav a:hover { color: var(--ink); }
.header-auth { display: flex; gap: var(--space-2xs); }
.header-auth .email { display: none; }
@media (min-width: 900px) {
  .header-auth .email { display: inline-flex; align-items: center; color: var(--ink-2); font-weight: 500; }
}

/* ---- герой ---- */
.hero { padding: var(--space-3xl) 0 var(--space-2xl); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 6fr 5fr; gap: var(--space-2xl); } }
.hero h1 { letter-spacing: -.01em; }
.hero .sub { margin-top: var(--space-m); font-size: var(--step-1); color: var(--ink-2); max-width: 34em; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-l); }
.hero .os-note { margin-top: var(--space-s); color: var(--ink-3); font-size: var(--step--1); }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--space-2xl); margin-top: var(--space-xl); }
.hero-stats .stat .v { font: 600 var(--step-2)/1 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-stats .stat .l { color: var(--ink-3); font-size: var(--step--1); margin-top: var(--space-3xs); }

/* ---- терминал-демо (памятный элемент) ---- */
.terminal {
  background: var(--terminal-bg); color: var(--terminal-ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  font-family: var(--font-mono); font-size: .85rem; line-height: 1.7;
  padding: var(--space-m); min-height: 340px;
  overflow: hidden; position: relative;
}
.terminal .bar { display: flex; gap: var(--space-3xs); margin-bottom: var(--space-s); }
.terminal .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3c4043; }
.terminal .bar i:first-child { background: #ea4335; }
.terminal .bar i:nth-child(2) { background: #fbbc04; }
.terminal .bar i:nth-child(3) { background: #34a853; }
.terminal .lines { white-space: pre-wrap; word-break: break-all; }
.terminal .p { color: var(--terminal-dim); }
.terminal .ok { color: #81c995; }
.terminal .bad { color: #f28b82; }
.terminal .warn { color: #fdd663; }
.terminal .caret { display: inline-block; width: 8px; height: 1.1em;
  background: var(--terminal-ink); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 640px) { .terminal { font-size: .72rem; min-height: 300px; } }

/* ---- секции ---- */
.section { padding: var(--space-2xl) 0; }
.section-tight { padding: var(--space-xl) 0; }
.section-head { max-width: 40em; margin-bottom: var(--space-l); }
.section-head p { margin-top: var(--space-2xs); color: var(--ink-2); }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* лента «что крадут» — центрированные колонки с воздухом */
.steal-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-s); }
.steal-strip > div { padding: var(--space-l) var(--space-s); text-align: center; }
.steal-strip .ico { height: 28px; margin: 0 auto var(--space-2xs); }
.steal-strip .t { font-weight: 600; }
.steal-strip .d { color: var(--ink-3); font-size: var(--step--1); margin-top: var(--space-3xs); }
@media (min-width: 760px) {
  .steal-strip { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .steal-strip > div { padding: var(--space-l) var(--space-m); }
  .steal-strip > div + div { border-left: 1px solid var(--line); }
}

/* шаги — большая нумерация в левом поле (реальная последовательность) */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 1fr; gap: var(--space-2xs);
  padding: var(--space-l) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .step { grid-template-columns: 120px 1fr 2fr; gap: var(--space-l); align-items: baseline; } }
.step .n { font: 700 var(--step-4)/1 var(--font-display); color: var(--blue); font-variant-numeric: tabular-nums; }
.step .t { font-weight: 600; font-size: var(--step-1); }
.step .d { color: var(--ink-2); }

/* таблица вердиктов */
.verdict-table { width: 100%; border-collapse: collapse; }
.verdict-table th { text-align: left; font-weight: 600; color: var(--ink-2);
  padding: var(--space-2xs) var(--space-s); border-bottom: 2px solid var(--ink); }
.verdict-table td { padding: var(--space-s); border-bottom: 1px solid var(--line); vertical-align: top; }
.verdict-table .proc { font-family: var(--font-mono); font-size: var(--step--1); font-weight: 600; }
.verdict-table .why { color: var(--ink-3); font-size: var(--step--1); }
.v-badge { display: inline-block; padding: 2px 12px; border-radius: var(--radius-pill);
  font-size: var(--step--1); font-weight: 600; }
.v-badge.trusted { background: var(--green-soft); color: var(--green); }
.v-badge.malicious { background: var(--red-soft); color: var(--red); }
.v-badge.suspicious { background: var(--yellow-soft); color: var(--yellow); }
@media (max-width: 640px) {
  .verdict-table .hide-sm { display: none; }
  .verdict-table th, .verdict-table td { padding: var(--space-2xs) var(--space-2xs); }
}

/* зона скачивания */
.download-zone { border-radius: var(--radius); background: var(--blue-soft);
  padding: var(--space-2xl); display: flex; flex-wrap: wrap; gap: var(--space-l);
  align-items: center; }
.download-zone h2 { margin-bottom: var(--space-2xs); }
.download-zone .note { color: var(--ink-2); max-width: 30em; }
.download-zone .btn { margin-left: auto; }
@media (max-width: 760px) { .download-zone .btn { margin-left: 0; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-m) 0;
  font-weight: 600; display: flex; align-items: center; gap: var(--space-s); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--font-mono); color: var(--ink-3);
  transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 var(--space-m); color: var(--ink-2); max-width: 46em; }

/* футер */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-xl) 0 var(--space-l); margin-top: var(--space-xl); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: var(--space-m); align-items: center; color: var(--ink-3); }
.site-footer .brand { font-size: var(--step-0); }
.site-footer .r { margin-left: auto; font-size: var(--step--1); display: flex; gap: var(--space-m); }

/* ---- страницы авторизации ---- */
.auth-wrap { min-height: calc(100dvh - 64px); display: grid; place-items: center; padding: var(--space-l) var(--space-m); }
.auth-card { width: 100%; max-width: 420px; background: var(--base);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-2xl); box-shadow: var(--shadow); }
.auth-card h1 { font-size: var(--step-2); }
.auth-card .lead { color: var(--ink-2); margin-top: var(--space-2xs); margin-bottom: var(--space-l); }
.auth-card .alt-action { margin-top: var(--space-l); color: var(--ink-2); font-size: var(--step--1); text-align: center; }

.field { margin-bottom: var(--space-m); }
.field label { display: block; font-weight: 600; margin-bottom: var(--space-2xs); }
.field .hint { color: var(--ink-3); font-size: var(--step--1); margin-top: var(--space-3xs); }
.field input {
  width: 100%; min-height: 48px; padding: 0 var(--space-s);
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--base);
  transition: border-color var(--dur-fast) var(--ease); font-size: var(--step-0);
}
.field input:focus { border-color: var(--blue); }
.field .error { color: var(--red); font-size: var(--step--1); margin-top: var(--space-3xs); display: none; }
.field.invalid input { border-color: var(--red); background: #fff8f7; }
.field.invalid .error { display: block; }
.form-status { min-height: 24px; margin-top: var(--space-s); font-size: var(--step--1); }
.form-status.bad { color: var(--red); }

/* ---- аккаунт ---- */
.account-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m);
  padding: var(--space-xl) 0 var(--space-l); }
.account-head h1 { font-size: var(--step-3); }
.account-head .who { color: var(--ink-3); margin-top: var(--space-3xs); }
.account-head form { margin-left: auto; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-l); margin-bottom: var(--space-l); background: var(--base); }
.panel > h2 { font-size: var(--step-1); margin-bottom: var(--space-s); }
.panel .sub { color: var(--ink-3); font-size: var(--step--1); margin: calc(-1 * var(--space-2xs)) 0 var(--space-m); }

.dev-table { width: 100%; border-collapse: collapse; }
.dev-table td, .dev-table th { text-align: left; padding: var(--space-2xs) var(--space-2xs) var(--space-2xs) 0;
  border-bottom: 1px solid var(--line); font-size: var(--step--1); vertical-align: top; }
.dev-table th { color: var(--ink-3); font-weight: 500; }
.dev-table .h { font-weight: 600; font-size: var(--step-0); }

.empty { padding: var(--space-l) 0; text-align: center; color: var(--ink-2); }
.empty .t { font-weight: 600; color: var(--ink); margin-bottom: var(--space-3xs); }

/* кабинет: профиль и обновления */
.profile-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); }
.avatar {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-2);
}
.profile-info { min-width: 200px; flex: 1; }
.profile-email { font-weight: 600; font-size: var(--step-1); word-break: break-all; }
.profile-meta { color: var(--ink-3); font-size: var(--step--1); margin-top: var(--space-3xs); }
.status-tag {
  flex: none; padding: 5px 14px; border-radius: var(--radius-pill);
  background: var(--green-soft); color: var(--green);
  font-size: var(--step--1); font-weight: 600;
}
.profile-note { margin: var(--space-m) 0 0; color: var(--ink-3); font-size: var(--step--1); }
.upd-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m);
  border-top: 1px solid var(--line); padding-top: var(--space-m);
}
.upd-cur { display: flex; flex-direction: column; gap: 2px; }
.upd-label { color: var(--ink-3); font-size: var(--step--1); }
.upd-value { font-family: var(--font-display); font-weight: 600; font-size: var(--step-2); line-height: 1.1; }
.upd-row .btn { margin-left: auto; }
@media (max-width: 640px) {
  .upd-row .btn { margin-left: 0; width: 100%; justify-content: center; }
  .profile-info { flex-basis: 100%; }
}

/* мобильная навигация */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .verdict-table { display: block; overflow-x: auto; }
  .site-header .container { gap: var(--space-s); }
  .header-auth .btn-ghost { display: none; }
  .hero { padding-top: var(--space-2xl); }
  h1 { font-size: var(--step-4); }
}

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