/* Сайт «Кибермарт Диагностика» — в стиле программы: тёмный, технический, цвета из ui/kit/tokens.css. */

@font-face { font-family: 'Inter'; src: url('fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('fonts/Rubik-Variable.ttf') format('truetype'); font-weight: 300 900; font-display: swap; }

:root {
  --bg-app: #07090D; --bg-sidebar: #0C1018; --bg-card: #0E131C; --bg-inactive: #161C27;
  --border: #1A2130; --border-2: #2A3345; --border-active: #2B4A78;
  --text: #E8ECF3; --text-2: #AEB6C4; --text-caption: #8A94A6; --text-3: #6B7586;
  --accent: #4C9AFF; --accent-hover: #63A8FF; --accent-bg: rgba(76, 154, 255, 0.12); --on-accent: #06101F;
  --ok: #3DD68C; --warn: #FFB547;
  --radius: 16px; --radius-btn: 10px;
  --font: -apple-system, 'SF Pro Text', 'Inter', 'Segoe UI', sans-serif;
  --font-display: -apple-system, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg-app); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
code { font: 0.92em ui-monospace, 'Cascadia Mono', Consolas, monospace; background: var(--bg-inactive); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--text); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 19px; }
p { margin: 0; }

.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }

/* ---------- Шапка ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(7, 9, 13, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 9px; }
.logo { font: 700 20px/1 'Rubik', var(--font); letter-spacing: 0.01em; color: #E3E7EE; white-space: nowrap; }
.logo span { color: #4C9AFF; }
.brand-sub { color: var(--text-caption); font-size: 14px; padding-left: 12px; border-left: 1px solid var(--border-2); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-btn); border: 1px solid var(--border-2); background: var(--bg-card); color: var(--text);
  font: 600 16px/1 var(--font); transition: background 150ms, border-color 150ms, transform 150ms; white-space: nowrap; }
.btn:hover { color: var(--text); border-color: #3A4560; background: #1A2130; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 18px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; }
.hero::before { content: ''; position: absolute; inset: -30% -10% auto; height: 640px; pointer-events: none;
  background: radial-gradient(ellipse at 70% 30%, rgba(76, 154, 255, 0.18), transparent 60%), radial-gradient(ellipse at 15% 10%, rgba(61, 214, 140, 0.07), transparent 55%); }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 14px; font-weight: 600;
  color: var(--ok); background: rgba(61, 214, 140, 0.10); border: 1px solid rgba(61, 214, 140, 0.25); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 214, 140, 0.15); }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); margin: 22px 0 20px; }
.accent { color: var(--accent); }
.lead { font-size: 19px; color: var(--text-2); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.meta { color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.hero-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-2);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(76, 154, 255, 0.06), 0 0 80px rgba(76, 154, 255, 0.12); }

/* ---------- Цифры ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-sidebar); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat b { font: 600 30px/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-caption); font-size: 15px; }

/* ---------- Разделы ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-sidebar); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* Заголовки и описания разделов — по центру. */
.section h2, .section .sub { text-align: center; }
.section-lead { color: var(--text-2); font-size: 17px; max-width: 760px; margin: 14px auto 0; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color 200ms, transform 200ms; }
.card:hover { border-color: var(--border-active); transform: translateY(-2px); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--text-2); font-size: 15px; }
.ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-bg); border: 1px solid var(--border-active); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.shot { margin: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.shot-wide { grid-column: 1 / -1; }
.shot img { border-bottom: 1px solid var(--border); }
.shot figcaption { padding: 16px 20px 18px; color: var(--text-2); font-size: 15px; }
.shot figcaption b { color: var(--text); }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--text-2); }
.checks li b { color: var(--text); }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(61, 214, 140, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233DD68C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { display: flex; gap: 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.steps .num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--accent); background: var(--accent-bg); border: 1px solid var(--border-active); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: 15px; }

.download { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding: 48px 40px;
  border-radius: 20px; border: 1px solid var(--border-active); background: linear-gradient(135deg, rgba(76, 154, 255, 0.10), rgba(14, 19, 28, 1) 55%); }
.req { margin: 22px 0 0; padding: 0; list-style: none; color: var(--text-2); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.req li::before { content: '•'; color: var(--accent); margin-right: 8px; }
.download-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hint { color: var(--text-caption); font-size: 14px; max-width: 560px; }
.sub { margin-top: 56px; font-size: 22px; }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.extra { display: flex; flex-direction: column; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.extra span { color: var(--text-2); font-size: 15px; flex: 1; }

.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; max-width: 860px; margin: 0 auto; }
.faq details:first-of-type { margin-top: 32px; border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-3); font-size: 22px; line-height: 1; transition: transform 200ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin-top: 12px; }

.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.footer p { color: var(--text-caption); font-size: 14px; margin-top: 10px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; align-items: center; color: var(--text-3); font-size: 14px; }

/* ---------- Узкие экраны ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}
@media (max-width: 760px) {
  .nav-links, .brand-sub { display: none; }
  .nav-inner { justify-content: space-between; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 20px 16px; border-left: 0; }

  .cards, .shots, .two-col, .steps, .extras { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .download { padding: 24px; }
  .lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
