/* Smart Security — security.sgt.com.ua.
   Брендбук SmartGT (color-style.txt): шрифт Montserrat; #026336 — ядро бренду (CTA, форми),
   #009550 — точковий акцент (риски під заголовками, маркери), #F5F5F5 — фон сторінки,
   #4B4B4B — другорядний текст, #B3B3B3 — лінії. Колір продукту — темно-синій #0A1F4D. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/mont-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/mont-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/mont-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* продукт */
  --navy: #0a1f4d;
  --navy-d: #071637;
  --navy-2: #13306f;
  --navy-line: rgba(255, 255, 255, .12);
  /* SmartGT */
  --green: #026336;
  --green-b: #009550;
  --mint: #c4d8cf;
  --bg: #f5f5f5;
  --white: #ffffff;
  --ink: #000000;
  --text: #1c1c1c;
  --text-2: #4b4b4b;
  --line: #b3b3b3;
  --line-soft: #e3e3e3;
  /* стани звіту на світлому */
  --crit: #c62828;
  --warn: #a8650a;
  --ok: #026336;
  --info: #0a1f4d;
  --r: 6px;
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 800; }
p { margin: 0 0 1em; }
code, pre, .mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--green-b); outline-offset: 2px; }
[hidden] { display: none !important; }

/* фірмова риска під/над заголовками (деталь брендбука SmartGT) */
.rule { display: block; width: 56px; height: 4px; background: var(--green-b); margin: 0 0 18px; }

/* ── шапка ── */
.top { background: var(--navy-d); color: #fff; position: sticky; top: 0; z-index: 20; }
.top-in {
  max-width: 1240px; margin: 0 auto; height: 72px; padding: 0 clamp(16px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand b { font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: #9fb0d6; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.nav a { color: #d9e1f2; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .tel { color: #fff; }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.nav button.link { color: #d9e1f2; font-weight: 600; }
.nav button.link:hover { color: #fff; }

/* ── кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green); color: #fff; font: 700 15px/1 var(--font);
  border: 2px solid var(--green); border-radius: 4px; padding: 15px 24px;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--green-b); border-color: var(--green-b); text-decoration: none; box-shadow: 0 6px 18px rgba(2, 99, 54, .25); }
.btn-out { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-out:hover { background: rgba(255, 255, 255, .08); border-color: #fff; box-shadow: none; }
.btn-light { background: #fff; color: var(--green); border-color: #fff; }
.btn-light:hover { background: var(--mint); border-color: var(--mint); color: var(--green); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; color: var(--crit); border-color: var(--crit); }
.btn-danger:hover { background: var(--crit); color: #fff; box-shadow: none; border-color: var(--crit); }
button[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ── лендінг · екран 1 ── */
.hero-wrap { background: linear-gradient(160deg, var(--navy-d) 0%, var(--navy) 62%, #0d2860 100%); color: #fff; }
.hero {
  max-width: 1240px; margin: 0 auto; min-height: calc(100vh - 72px);
  padding: clamp(40px, 7vh, 84px) clamp(16px, 4vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px clamp(32px, 6vw, 96px);
  grid-template-areas: "text card" "stats card"; align-content: center; align-items: start;
}
.hero-text { grid-area: text; }
.hero-card { grid-area: card; align-self: center; }
.hero-stats { grid-area: stats; }
.kicker { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: #b9c6e4; margin-bottom: 22px; }
.kicker .rule { margin: 0; width: 40px; }
.hero h1 { color: #fff; font-size: clamp(34px, 4.3vw, 58px); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 24px; max-width: 13em; }
/* акцент — фірмова риска #009550 під словами, а не довільний колір тексту */
.hero h1 span {
  background-image: linear-gradient(var(--green-b), var(--green-b)); background-repeat: no-repeat;
  background-size: 100% .12em; background-position: 0 94%; padding-bottom: .04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: #cdd7ee; max-width: 36em; margin: 0; }

.hero-stats { border-top: 1px solid var(--navy-line); padding-top: 22px; margin-top: 8px; }
.hero-stats .cap { font-size: 13px; font-weight: 600; color: #9fb0d6; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; color: #fff; }
.stats div { padding-right: 20px; }
.stats div + div { padding-left: 20px; border-left: 1px solid var(--navy-line); }
.stats .ic { width: 46px; height: 46px; padding: 9px; border-radius: 6px; background: rgba(255, 255, 255, .07); display: block; margin-bottom: 14px; stroke-width: 2.6; }
.stats b { display: block; font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.1; white-space: nowrap; }
.stats span { display: block; font-size: 13px; line-height: 1.45; color: #b9c6e4; margin-top: 6px; }

.login-card {
  background: #fff; color: var(--text); border-radius: var(--r);
  padding: 32px 30px 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  border-top: 4px solid var(--green-b);
}
.login-card .mk { width: 44px; height: 44px; display: block; margin-bottom: 18px; }
.login-card h2 { font-size: 24px; margin-bottom: 8px; }
.login-card p.sub { color: var(--text-2); font-size: 14px; line-height: 1.55; margin-bottom: 22px; }
.login-card .note { font-size: 13px; color: var(--text-2); margin: 16px 0 0; text-align: center; }

/* ── лендінг · екран 2 ── */
.how { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 9vh, 96px) clamp(16px, 4vw, 40px) clamp(48px, 7vh, 72px); scroll-margin-top: 72px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.how h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 30px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 68px minmax(0, 1fr); grid-template-areas: "si n" "si t" "si p";
  column-gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.steps li:last-child { border-bottom: 1px solid var(--line-soft); }
.steps .si { grid-area: si; width: 64px; height: 64px; border-radius: 6px; background: #e4efe9; color: var(--navy); display: grid; place-items: center; }
.steps .n { grid-area: n; font-size: 12px; font-weight: 800; color: var(--green-b); letter-spacing: .12em; }
.steps h3 { grid-area: t; font-size: 20px; margin: 2px 0 4px; }
.steps p { grid-area: p; margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.scene img { width: 100%; height: auto; display: block; }

.checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 6vh, 56px); background: #fff; border-radius: var(--r); border: 1px solid var(--line-soft); }
.checks div { padding: 22px; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "i b" "i s"; column-gap: 14px; align-items: center; color: var(--navy); }
.checks div + div { border-left: 1px solid var(--line-soft); }
.checks .ic { grid-area: i; }
.checks b { grid-area: b; display: block; font-size: 16px; font-weight: 800; color: var(--ink); }
.checks span { grid-area: s; font-size: 13px; color: var(--text-2); line-height: 1.45; }

.cta { background: var(--green); color: #fff; }
.cta-in { max-width: 1240px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(22px, 2.2vw, 30px); margin: 0; }
.cta p { margin: 0; color: #d6eadf; font-size: 15px; }
.cta .act { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta .act a.tel { color: #fff; font-weight: 700; }

/* ── підвал ── */
.foot { background: var(--navy-d); color: #b9c6e4; margin-top: auto; font-size: 14px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.foot .sgt { display: flex; align-items: center; gap: 16px; }
.foot .sgt img { height: 34px; width: auto; display: block; }
.foot .sgt span { border-left: 1px solid var(--navy-line); padding-left: 16px; line-height: 1.4; }
.foot a { color: #fff; }
.foot .links { display: flex; gap: 8px 24px; flex-wrap: wrap; font-weight: 600; }

/* ── кабінет ── */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 32px) 64px; }
.wrap.narrow { max-width: 520px; }
.crumbs { font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.crumbs a { color: var(--text-2); }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-h h1 { font-size: clamp(26px, 3vw, 34px); margin: 0; }
.sub { color: var(--text-2); }
.card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 26px; margin-bottom: 18px; }
.card h2 { font-size: 20px; }
.card h3 { font-size: 17px; margin-bottom: .4em; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.action {
  display: block; color: var(--text); background: #fff; border: 1px solid var(--line-soft); border-top: 4px solid var(--green-b);
  border-radius: var(--r); padding: 26px; transition: box-shadow .15s, transform .15s;
}
.action:hover { text-decoration: none; box-shadow: 0 12px 30px rgba(10, 31, 77, .12); transform: translateY(-2px); }
.action .ico { width: 46px; height: 46px; border-radius: 4px; display: grid; place-items: center; background: var(--navy); color: #fff; font: 800 18px var(--font); margin-bottom: 16px; }
.action h2 { font-size: 21px; margin-bottom: 6px; }
.action p { color: var(--text-2); margin: 0; }
.list { width: 100%; border-collapse: collapse; }
.list th, .list td { text-align: left; padding: 13px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.list th { font-size: 12px; color: var(--text-2); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.list tr:last-child td { border-bottom: 0; }
.list a { color: var(--ink); font-weight: 700; }
.empty { color: var(--text-2); text-align: center; padding: 26px 10px; }

.badge { display: inline-block; font: 700 12px/1 var(--font); padding: 6px 9px; border-radius: 3px; background: #eee; color: var(--text-2); white-space: nowrap; }
.badge.crit { color: #fff; background: var(--crit); }
.badge.warn { color: #fff; background: #c27a0e; }
.badge.ok { color: #fff; background: var(--green); }
.badge.info { color: #fff; background: var(--navy-2); }
.score-pill { font: 800 16px var(--font); }
.score-pill.lo { color: var(--crit); } .score-pill.mid { color: var(--warn); } .score-pill.hi { color: var(--green); }

/* іконки (web/icons.py): лінія currentColor + зелений акцент .a, заливки .f */
.ic { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic .a { stroke: var(--green-b); }
.ic .f { fill: currentColor; stroke: none; }
.ic .f.a { fill: var(--green-b); }
.ic .w { stroke-width: 3.2; }
.ic-lg { width: 44px; height: 44px; }
.action .ico .ic { width: 28px; height: 28px; }
.card-ic { width: 52px; height: 52px; border-radius: 6px; background: #e4efe9; color: var(--navy); display: grid; place-items: center; margin-bottom: 14px; }
.card-ic .ic { width: 32px; height: 32px; }

/* форми */
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.err { font-size: 13px; color: var(--crit); margin-top: 6px; font-weight: 600; }
input[type=text], input[type=email], input[type=number] {
  width: 100%; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 4px;
  padding: 13px 14px; font: 500 16px var(--font);
}
input::placeholder { color: #9a9a9a; }
input:focus { outline: none; border-color: var(--green-b); box-shadow: 0 0 0 3px rgba(0, 149, 80, .18); }
input.code-input { font: 800 28px var(--font); letter-spacing: .35em; text-align: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--text); }
.check input { margin-top: 3px; accent-color: var(--green); width: 17px; height: 17px; flex: none; }
.row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.alert { border-radius: 4px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; border-left: 4px solid; }
.alert.bad { background: #fdecec; border-color: var(--crit); color: #7d1717; }
.alert.good { background: #e6f2ec; border-color: var(--green-b); color: #0f4a2c; }
.alert.note { background: #fdf3e2; border-color: #c27a0e; color: #6b4306; }

/* команди */
.cmd { position: relative; margin: 10px 0 6px; }
.cmd pre {
  margin: 0; background: var(--navy-d); border-radius: 4px;
  padding: 14px 16px; padding-right: 120px; font-size: 13.5px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-all; color: #e6ecfa;
}
.cmd button {
  position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 3px; padding: 6px 12px; font: 600 13px var(--font); cursor: pointer;
}
.cmd button:hover { background: var(--green); border-color: var(--green); }
.steps-v { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps-v > li { counter-increment: s; position: relative; padding: 0 0 24px 52px; }
.steps-v > li::before {
  content: counter(s); position: absolute; left: 0; top: -3px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: 800 15px var(--font); color: #fff; background: var(--green);
}
.steps-v > li:last-child { padding-bottom: 0; }
.steps-v h3 { margin-bottom: 4px; }
.sha { font: 12px var(--mono); color: var(--text-2); word-break: break-all; }

/* звіт */
.rep-head { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.big-score { font: 800 58px/1 var(--font); letter-spacing: -.03em; }
.big-score small { font-size: 20px; color: var(--text-2); font-weight: 700; }
.counts { display: flex; gap: 8px; flex-wrap: wrap; }
.finding { background: #fff; border: 1px solid var(--line-soft); border-left: 4px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 10px; }
.finding.crit { border-left-color: var(--crit); } .finding.warn { border-left-color: #c27a0e; }
.finding.ok { border-left-color: var(--green-b); } .finding.info, .finding.skip { border-left-color: var(--navy-2); }
.finding .fh { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.finding h3 { font-size: 16px; margin: 0; }
.finding .val { font: 13px/1.55 var(--mono); color: #3a3a3a; background: var(--bg); border-radius: 4px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; margin: 12px 0 0; max-height: 260px; overflow: auto; }
.finding .adv { margin: 10px 0 0; font-size: 14px; color: var(--text); }
.finding .fix { margin: 8px 0 0; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border-radius: var(--r); background: var(--green); color: #fff; }
.band h3 { color: #fff; font-size: 21px; margin-bottom: 4px; }
.band p { margin: 0; color: #d6eadf; }
.band .btn { background: #fff; color: var(--green); border-color: #fff; }

/* покрокові перевірки */
.guide li { margin-bottom: 14px; }
.guide .check { font-size: 15px; }
.guide .check b { display: block; margin-bottom: 2px; font-weight: 800; }
.guide .check span { color: var(--text-2); }

/* утиліти (інлайнові style= заборонені CSP) */
.flat { margin: 0; }
.gap-b { margin-bottom: 28px; }
.gap-t { margin-top: 16px; }
.resend { margin-top: 16px; }

@media (max-width: 1020px) {
  .nav .hide-md { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "card" "stats"; min-height: auto; }
  .hero-card { max-width: 460px; width: 100%; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .scene { max-width: 560px; order: 2; }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks div:nth-child(3) { border-left: 0; }
  .checks div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .grid2, .grid4 { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 1fr 1fr; }
  .row .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .top-in { height: 64px; }
  .brand small { display: none; }
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
  /* форма входу — на першому екрані й на телефоні */
  .hero { padding-top: 24px; padding-bottom: 32px; gap: 20px; }
  .kicker { margin-bottom: 14px; font-size: 13px; }
  .hero h1 { font-size: 31px; margin-bottom: 14px; }
  .lead { font-size: 15px; }
  .login-card { padding: 24px 20px 20px; }
  .login-card .mk { display: none; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats div { padding: 12px 0 !important; border-left: 0 !important; border-top: 1px solid var(--navy-line);
    display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "i b" "i s"; column-gap: 12px; align-items: center; }
  .stats .ic { grid-area: i; margin: 0; width: 30px; height: 30px; }
  .stats b { grid-area: b; } .stats span { grid-area: s; margin-top: 2px; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .checks div + div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .cmd pre { padding-right: 16px; padding-top: 46px; }
  .list .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .action { transition: none; } }
