:root {
  --yellow: #ffd100;
  --gold: #d9a300;
  --black: #050505;
  --ink: #151515;
  --charcoal: #1e2329;
  --muted: #6b7280;
  --line: #e6e8eb;
  --soft: #f6f7f9;
  --white: #ffffff;
  --danger: #b42318;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: var(--radius); padding: 0 18px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: #111; box-shadow: 0 14px 28px rgba(255, 209, 0, .22); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-outline { border-color: rgba(255, 209, 0, .75); color: var(--yellow); background: rgba(0, 0, 0, .18); }
.btn-light { background: var(--white); color: var(--black); border-color: var(--line); }
.flash, .panel-flash { position: fixed; right: 22px; top: 88px; z-index: 50; padding: 14px 18px; border-radius: var(--radius); background: #101418; color: var(--white); box-shadow: var(--shadow); max-width: 420px; }
.panel-flash { position: static; margin: 18px 24px 0; background: #eaf8ef; color: #14532d; border: 1px solid #bbf7d0; }
.panel-flash.error { background: #fff1f0; color: var(--danger); border-color: #ffd0cc; }
.panel-flash.warn-static { margin: 0 0 18px; background: #fff7d6; color: #6f4b00; border-color: #ffe08a; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 70px); background: rgba(5, 5, 5, .94); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 13px; min-width: 210px; font-weight: 900; line-height: 1.05; }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 6px; }
.brand strong { color: var(--yellow); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-weight: 700; font-size: 14px; }
.site-nav a:not(.btn) { opacity: .88; }
.site-nav a:not(.btn):hover { color: var(--yellow); opacity: 1; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); background: transparent; border-radius: var(--radius); }
.nav-toggle span { display: block; height: 2px; background: var(--yellow); margin: 6px 10px; }

.hero { min-height: 760px; display: grid; align-items: end; color: var(--white); background: linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.63) 45%, rgba(0,0,0,.12)), url("../images/hero-security.png") center/cover no-repeat; padding: 134px 0 34px; }
.hero-grid { display: grid; gap: 48px; }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(38px, 6vw, 72px); line-height: .98; letter-spacing: 0; font-weight: 950; }
.hero h1 span { color: var(--yellow); }
.hero p { max-width: 660px; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 26px 0 44px; }
.hero-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; }
.proof-item { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 22px; background: rgba(0,0,0,.45); }
.proof-item .icon { color: var(--yellow); width: 30px; height: 30px; }
.proof-item strong { display: block; margin-bottom: 5px; }
.proof-item span { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.45; }

.section { padding: 92px 0; }
.section-dark { background: #0b0d10; color: var(--white); }
.section-soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: 0; }
.section-head p { color: var(--muted); line-height: 1.7; font-size: 17px; }
.section-dark .section-head p { color: rgba(255,255,255,.72); }
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 42px; align-items: center; }
.about-panel { border-left: 5px solid var(--yellow); padding: 28px 32px; background: #11161c; color: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.about-panel p { line-height: 1.75; color: rgba(255,255,255,.82); }
.metric-grid, .services-grid, .diff-grid { display: grid; gap: 18px; }
.metric-grid { grid-template-columns: repeat(2, 1fr); }
.metric, .service-card, .diff-card, .form-card, .panel-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(15, 23, 42, .06); }
.metric { padding: 24px; }
.metric .icon, .service-card .icon, .diff-card .icon { color: var(--gold); width: 34px; height: 34px; margin-bottom: 18px; }
.metric strong { display: block; font-size: 18px; margin-bottom: 8px; }
.metric span, .service-card p, .diff-card p { color: var(--muted); line-height: 1.55; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { padding: 28px; min-height: 270px; display: flex; flex-direction: column; align-items: flex-start; }
.service-card h3 { margin: 0 0 10px; }
.service-card .btn { margin-top: auto; min-height: 40px; padding-inline: 14px; }
.diff-grid { grid-template-columns: repeat(4, 1fr); }
.diff-card { padding: 24px; background: #11161c; border-color: rgba(255,255,255,.1); color: var(--white); }
.diff-card p { color: rgba(255,255,255,.72); margin: 0; }
.cta-band { background: var(--yellow); color: var(--black); padding: 44px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); max-width: 800px; line-height: 1.12; }
.forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.form-card { padding: 28px; }
.form-card h3 { margin: 0 0 18px; font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: 13px; color: #323843; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #d9dee6; border-radius: var(--radius); min-height: 44px; padding: 10px 12px; background: #fff; color: var(--ink); }
.field input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; padding: 0; accent-color: var(--yellow); }
.field label:has(input[type="checkbox"]) { display: inline-flex; align-items: center; gap: 9px; }
.field textarea { min-height: 118px; resize: vertical; }
.contact-list { display: grid; gap: 14px; margin: 20px 0; }
.contact-list div { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.map-placeholder { min-height: 220px; border-radius: var(--radius); background: linear-gradient(135deg, #101418, #252b33); color: var(--white); display: grid; place-items: center; padding: 24px; text-align: center; }

.footer { background: #050505; color: var(--white); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; }
.footer-logo { width: 92px; border-radius: 8px; margin-bottom: 16px; }
.footer p, .footer a { color: rgba(255,255,255,.72); line-height: 1.6; }
.footer a { display: block; margin: 8px 0; }
.footer a:hover { color: var(--yellow); }
.footer h3 { color: var(--yellow); margin-top: 0; }
.footer-bottom { margin-top: 42px; padding: 18px; text-align: center; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.62); }

.auth-page { min-height: 100vh; background: linear-gradient(120deg, rgba(0,0,0,.9), rgba(0,0,0,.58)), url("../images/hero-security.png") center/cover no-repeat; display: grid; place-items: center; padding: 26px; }
.auth-card { width: min(470px, 100%); background: rgba(255,255,255,.96); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.auth-logo { width: 94px; margin: 0 auto 18px; border-radius: 8px; }
.auth-card h1 { margin: 0; text-align: center; font-size: 30px; }
.auth-card p { text-align: center; color: var(--muted); line-height: 1.55; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 20px; color: var(--muted); font-size: 14px; }
.auth-options label { display: flex; align-items: center; gap: 8px; }
.error-list { color: var(--danger); background: #fff1f0; border: 1px solid #ffd0cc; padding: 12px; border-radius: var(--radius); margin: 16px 0; }

.panel-body { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; background: #f1f3f6; }
.sidebar { position: sticky; top: 0; height: 100vh; background: #080a0d; color: var(--white); padding: 18px; display: flex; flex-direction: column; z-index: 20; }
.panel-brand { display: flex; align-items: center; gap: 12px; padding: 8px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.1); font-weight: 900; }
.panel-brand img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; }
.panel-brand strong { color: var(--yellow); }
.panel-nav { display: grid; gap: 6px; margin-top: 22px; }
.panel-nav a, .sidebar-logout button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; color: rgba(255,255,255,.76); border-radius: var(--radius); border: 0; background: transparent; cursor: pointer; font-weight: 700; text-align: left; }
.panel-nav a:hover, .panel-nav a.active { background: rgba(255,209,0,.12); color: var(--yellow); }
.sidebar-logout { margin-top: auto; }
.sidebar-logout button { border: 1px solid rgba(255,255,255,.1); }
.panel-main { min-width: 0; }
.panel-topbar { height: 74px; background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.panel-topbar strong { display: block; font-size: 20px; }
.panel-topbar span { color: var(--muted); font-size: 13px; }
.panel-toggle { display: none; border: 1px solid var(--line); background: var(--white); width: 42px; height: 42px; border-radius: var(--radius); }
.topbar-user { padding: 9px 12px; background: var(--soft); border-radius: var(--radius); }
.panel-content { padding: 24px; }
.panel-grid { display: grid; gap: 18px; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.05); }
.stat-card .icon { color: var(--gold); width: 30px; height: 30px; }
.stat-card strong { font-size: 28px; }
.stat-card span { color: var(--muted); font-weight: 700; }
.panel-card { padding: 22px; overflow: hidden; }
.panel-card h2, .panel-card h3 { margin-top: 0; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table.compact-table { min-width: 0; }
.data-table.batch-table { min-width: 1120px; }
.data-table th, .data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table th { color: #505967; font-size: 12px; text-transform: uppercase; letter-spacing: 0; background: #fafafa; }
.badge { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 900; background: #edf2f7; color: #263241; }
.badge.ok { background: #eaf8ef; color: #166534; }
.badge.warn { background: #fff7d6; color: #8a6200; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn { min-height: 34px; border-radius: 7px; padding: 0 10px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mini-btn.primary { background: var(--yellow); border-color: var(--yellow); }
.mini-btn.danger { color: var(--danger); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search-row input, .search-row select { min-height: 42px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.admin-form .full { grid-column: 1 / -1; }
.batch-help { background: #fff8d8; border: 1px solid #ffe08a; border-radius: var(--radius); padding: 16px; }
.batch-table input, .batch-table select { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 7px; padding: 0 9px; }
.batch-table input[type="checkbox"] { width: 20px; min-height: 20px; }
.muted { color: var(--muted); }
.chart-bars { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 9px; height: 210px; padding-top: 20px; }
.chart-bar { display: grid; align-content: end; gap: 8px; text-align: center; color: var(--muted); font-size: 12px; }
.chart-bar i { display: block; background: linear-gradient(180deg, var(--yellow), var(--gold)); min-height: 8px; border-radius: 6px 6px 0 0; }
.pdf-viewer { height: calc(100vh - 180px); min-height: 620px; display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.pdf-frame { width: 100%; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

@media (max-width: 1100px) {
  .site-nav { position: fixed; top: 82px; left: 0; right: 0; display: none; padding: 20px; background: #050505; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .hero-proof, .services-grid, .diff-grid, .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .forms-grid { grid-template-columns: 1fr; }
  .panel-body { grid-template-columns: 1fr; }
  .sidebar { position: fixed; transform: translateX(-105%); transition: transform .2s ease; width: 280px; }
  .sidebar.is-open { transform: translateX(0); }
  .panel-toggle { display: inline-block; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .site-header { height: 74px; padding: 0 14px; }
  .brand span { display: none; }
  .brand { min-width: auto; }
  .brand img { width: 54px; height: 54px; }
  .site-nav { top: 74px; }
  .hero { min-height: auto; padding: 118px 0 24px; }
  .hero-actions, .cta-band .container, .toolbar, .search-row { align-items: stretch; flex-direction: column; }
  .hero-actions .btn, .cta-band .btn, .search-row input, .search-row select, .search-row .btn { width: 100%; }
  .hero-proof, .metric-grid, .services-grid, .diff-grid, .footer-grid, .cards-grid, .form-grid, .admin-form { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .panel-content { padding: 16px; }
  .panel-topbar { padding: 0 14px; }
  .topbar-user { display: none; }
  .flash { left: 14px; right: 14px; top: 84px; }
}
