/* Мій КіберЗахист — сайт. Токени теми «Графіт» з дизайн-системи (Соцмережі/Бренд/design-system/project/tokens.json). */
@font-face { font-family: "Unbounded"; src: url("fonts/Unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("fonts/Exo2.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --surface: #111315; --surface-raised: #1B1E21; --surface-sunken: #0B0C0E;
  --line: #2A2E33; --line-strong: #646B73;
  --ink: #EDEFF1; --ink-muted: #9AA1A9;
  --signal: #C6F432; --signal-fill: #C6F432; --on-signal: #111315; --signal-soft: #232A10;
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Exo 2", "Segoe UI", Arial, sans-serif;
  --r-md: 12px; --r-lg: 16px;
  --gutter: 16px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(17, 19, 21, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { height: 32px; width: auto; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.top .btn { margin-left: auto; }
@media (min-width: 860px) { .nav { display: flex; } .top .btn { margin-left: 0; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--r-md); font-family: var(--text); font-weight: 700; font-size: 17px; text-decoration: none; transition: filter .15s; }
.btn-primary { background: var(--signal-fill); color: var(--on-signal); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-quiet { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-quiet:hover { background: var(--surface-raised); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 18px; width: 100%; }

.pill { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); border: 1px solid var(--signal); border-radius: 999px; padding: 4px 12px; }

/* перший екран */
.hero { padding: 48px 0 64px; overflow: hidden; }
.hero-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 80px 0 96px; } .hero-in { grid-template-columns: 1.15fr .85fr; } }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 8vw, 64px); line-height: 1.05; letter-spacing: -.01em; margin: 20px 0 20px; }
.accent { color: var(--signal); }
.lead { font-size: 19px; color: var(--ink); max-width: 36em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.meta { color: var(--ink-muted); font-size: 15px; margin: 20px 0 0; }
.hero-art { position: relative; height: 420px; max-width: 420px; justify-self: center; width: 100%; }
.pg { position: absolute; width: 62%; border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.pg-back { right: 0; top: 30px; transform: rotate(5deg); opacity: .9; }
.pg-front { left: 0; top: 0; transform: rotate(-3deg); }
@media (min-width: 900px) { .hero-art { height: 500px; max-width: none; } }

/* секції */
.section { padding: 48px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .section { padding: 80px 0; } }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; }
h3 { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; margin: 0 0 8px; }
.sub { color: var(--ink-muted); font-size: 18px; max-width: 40em; margin: 0 0 32px; }

/* як влаштовано розділ */
.flow-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
@media (min-width: 900px) { .flow-steps { grid-template-columns: repeat(5, 1fr); } }
.flow-steps li { counter-increment: s; background: var(--surface-raised); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 6px; align-content: start; }
.flow-steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--signal-fill); color: var(--on-signal); font-family: var(--display); font-weight: 700; font-size: 15px; display: grid; place-items: center; margin-bottom: 6px; }
.flow-steps b { font-size: 17px; }
.flow-steps span { color: var(--ink-muted); font-size: 15px; }

/* перелік розділів */
.parts { display: grid; gap: 32px; }
@media (min-width: 760px) { .parts { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.part h3 { font-family: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 8px; }
.part ol { list-style: none; margin: 0; padding: 0; }
.part li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.part li .n { color: var(--signal); font-weight: 700; }

/* сторінки PDF */
.pages { display: grid; gap: 24px; }
@media (min-width: 760px) { .pages { grid-template-columns: repeat(3, 1fr); } }
.pages figure { margin: 0; }
.pages img { border-radius: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.pages figcaption { color: var(--ink-muted); font-size: 15px; margin-top: 14px; }

/* картки */
.cards { display: grid; gap: 16px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface-raised); border-radius: var(--r-lg); padding: 24px; }
.card p { margin: 0; color: var(--ink-muted); }

/* пропозиція */
.offer { display: grid; gap: 32px; background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 28px; }
@media (min-width: 900px) { .offer { grid-template-columns: 1.4fr 1fr; padding: 48px; align-items: center; } }
.offer h2 { margin-top: 16px; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 9px; border-left: 2.5px solid var(--signal); border-bottom: 2.5px solid var(--signal); transform: rotate(-45deg); }
.offer-buy { display: grid; gap: 16px; text-align: center; }
.price { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; }
.note { color: var(--ink-muted); font-size: 14px; margin: 0; }

/* питання */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--display); font-size: 24px; color: var(--signal); }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 20px; color: var(--ink-muted); }

/* підвал */
.foot { border-top: 1px solid var(--line); padding: 48px 0; background: var(--surface-sunken); }
.foot-in { display: grid; gap: 16px; }
.foot-in img { height: 32px; width: auto; }
.foot p { color: var(--ink-muted); margin: 0; max-width: 34em; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--ink); text-decoration: none; font-size: 15px; }
.foot-links a:hover { color: var(--signal); }
.copy { font-size: 13px !important; }
