:root{
  --bg:#edf3f8;
  --card:#ffffff;
  --text:#0d203b;
  --muted:#667085;
  --line:#d6e0ea;
  --primary:#0f63b6;
  --primary-dark:#0a4e91;
  --primary-soft:#edf6ff;
  --ok:#087443;
  --danger:#bd2d2d;
  --soft:#f7f9fc;
  --shadow:0 16px 40px rgba(24,57,91,.10);
}
*{box-sizing:border-box}
html{font-size:16px}
body{
  margin:0;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 15% 0%,rgba(44,124,194,.10),transparent 35%),
    linear-gradient(180deg,#edf4fa 0%,#f8fafc 40%,#eef3f8 100%);
}
button,input,select{font:inherit}
.page{
  width:min(100% - 28px,1040px);
  margin:0 auto;
  padding:24px 0 42px;
}
.hero{
  background:linear-gradient(135deg,#0f63b6 0%,#124e86 100%);
  color:#fff;
  border-radius:22px;
  padding:26px 28px;
  box-shadow:var(--shadow);
  margin-bottom:18px;
}
.eyebrow{
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#d9ebff;
}
.hero h1{
  margin:8px 0 8px;
  font-size:clamp(26px,3vw,38px);
  line-height:1.12;
}
.hero p{
  margin:0;
  max-width:800px;
  font-size:16px;
  line-height:1.55;
  color:#e8f2fb;
}
.security-note{
  margin-top:16px;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.10);
  border-radius:12px;
  padding:11px 13px;
  font-size:13px;
  line-height:1.45;
}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
}
form.card{padding:22px 26px}
.form-section{
  padding:20px 0;
  border-bottom:1px solid #e8eef4;
}
.form-section:first-of-type{padding-top:0}
.form-section:last-of-type{border-bottom:0}
.form-section h2{
  margin:0 0 14px;
  font-size:18px;
  line-height:1.25;
}
.grid{display:grid;gap:14px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700}
.field.full{grid-column:1/-1}
.field.compact{max-width:360px}
.field small{font-weight:400;color:var(--muted);line-height:1.4}
.field input,.field select{
  width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid #bac8d7;
  border-radius:10px;
  background:#fff;
  color:var(--text);
  outline:none;
}
.field input:focus,.field select:focus{
  border-color:#4a92d2;
  box-shadow:0 0 0 3px rgba(15,99,182,.12);
}
.uppercase{text-transform:uppercase}
.segmented{display:flex;flex-wrap:wrap;gap:9px}
.segmented label input{position:absolute;opacity:0;pointer-events:none}
.segmented span{
  display:block;
  padding:9px 14px;
  border:1px solid #bac8d7;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  font-size:13px;
  font-weight:800;
}
.segmented input:checked+span{
  border-color:#2c79bf;
  color:#064d91;
  background:#eaf4ff;
  box-shadow:inset 0 0 0 1px #2c79bf;
}
.consent-box{
  background:var(--soft);
  border:1px solid var(--line)!important;
  border-radius:15px;
  padding:17px!important;
  margin:18px 0;
}
.consent-box h2{font-size:17px}
.check{
  display:grid;
  grid-template-columns:22px 1fr;
  gap:10px;
  align-items:start;
  margin:11px 0;
  font-size:13px;
  font-weight:600;
  line-height:1.5;
}
.check input{
  width:19px;
  height:19px;
  margin:1px 0 0;
  accent-color:#1976d2;
}
.captcha-wrap{margin:18px 0}
.primary{
  width:100%;
  border:0;
  border-radius:11px;
  padding:14px 18px;
  background:linear-gradient(180deg,var(--primary),var(--primary-dark));
  color:#fff;
  font-size:17px;
  font-weight:800;
  cursor:pointer;
}
.primary:hover{filter:brightness(1.03)}
.primary:disabled{opacity:.6;cursor:wait}
.secondary{
  border:1px solid #bac8d7;
  background:#fff;
  color:#163557;
  padding:9px 12px;
  border-radius:9px;
  cursor:pointer;
  font-weight:700;
}
.secondary:hover{background:#f5f8fb}
.danger{border-color:#edb6b6;color:#9f2727}
.fineprint{
  margin:11px 2px 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.alert{
  padding:13px 15px;
  border-radius:11px;
  margin:14px 0;
  line-height:1.45;
  font-size:14px;
}
.alert.error{background:#fff0f0;border:1px solid #f0b8b8;color:#9c2525}
.alert.success{background:#eef9f3;border:1px solid #bce2ca;color:#075d34}
.hidden{display:none!important}
.hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}

/* Footer */
.footer{
  margin-top:18px;
  padding:16px 18px;
  display:grid;
  grid-template-columns:1fr 1px 1fr;
  align-items:center;
  gap:18px;
}
.brand-box{
  min-height:82px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.brand-mark{
  font-size:24px;
  font-weight:900;
  color:#071b50;
}
.brand-sub{
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
  line-height:1.35;
}
.project-brand img{
  height:58px;
  width:auto;
  max-width:210px;
  object-fit:contain;
  display:block;
}
.brand-divider{width:1px;height:58px;background:#d7e0ea}

/* Admin */
.login-card{
  width:min(100%,460px);
  margin:26px auto;
  padding:24px;
}
.login-card h2{margin:0 0 16px}
.admin-layout{
  display:grid;
  grid-template-columns:220px minmax(0,1fr);
  gap:16px;
}
.admin-nav{padding:14px;height:max-content}
.admin-nav button{
  display:block;
  width:100%;
  text-align:left;
  border:0;
  background:transparent;
  padding:11px;
  border-radius:9px;
  font-weight:700;
  cursor:pointer;
}
.admin-nav button.active{background:#eaf4ff;color:#064d91}
.admin-main{padding:20px}
.toolbar{
  display:grid;
  grid-template-columns:1.1fr 1.2fr 1.2fr auto;
  gap:9px;
  margin:14px 0;
}
.toolbar input{
  min-height:42px;
  border:1px solid #bac8d7;
  border-radius:9px;
  padding:9px 10px;
}
.table-wrap{
  overflow:auto;
  border:1px solid var(--line);
  border-radius:11px;
}
.data-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
  font-size:13px;
}
.data-table th,.data-table td{
  padding:10px 11px;
  border-bottom:1px solid #e8eef4;
  text-align:left;
  vertical-align:middle;
}
.data-table th{background:#f7f9fc;color:#475467}
.data-table tr:last-child td{border-bottom:0}

@media(max-width:760px){
  .page{width:min(100% - 16px,1040px);padding:8px 0 24px}
  .hero{border-radius:16px;padding:20px 18px;margin-bottom:10px}
  .hero h1{font-size:26px}
  .hero p{font-size:14px}
  form.card{padding:16px}
  .card{border-radius:16px}
  .grid.two{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .form-section{padding:17px 0}
  .toolbar{grid-template-columns:1fr}
  .admin-layout{grid-template-columns:1fr}
  .footer{
    grid-template-columns:1fr;
    gap:10px;
    padding:14px;
  }
  .brand-divider{width:75%;height:1px;justify-self:center}
  .project-brand img{height:52px}
}

.import-panel{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:13px;background:#f8fbfe}.import-panel h3{margin:0 0 5px;font-size:16px}.import-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-top:12px}.import-row input[type=file]{width:100%;min-height:42px;padding:8px;border:1px solid #bac8d7;border-radius:9px;background:#fff}.import-help{margin-top:9px;color:var(--muted);font-size:12px;line-height:1.55}.import-help code{padding:2px 5px;border-radius:5px;background:#e9eff5;color:#163557}@media(max-width:760px){.import-row{grid-template-columns:1fr}}

.main-eyebrow{text-align:center;width:100%;}

/* v3.0 — более выразительная шапка АО «ЗСП» */
.main-eyebrow{
  width:100%;
  text-align:center;
  font-size:20px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.09em;
  color:#ffffff;
  margin-bottom:12px;
  text-shadow:0 1px 1px rgba(0,0,0,.08);
}
.hero h1{
  text-align:left;
}
.gate-hero h1,
.gate-hero p{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}
.gate-hero p{max-width:760px}

/* Email gate */
.gate-page{
  width:min(100% - 28px,920px);
}
.email-gate-card{
  width:min(100%,620px);
  margin:26px auto 0;
  padding:30px;
}
.email-gate-card h2{
  margin:4px 0 10px;
  text-align:center;
  font-size:26px;
}
.gate-description{
  margin:0 auto 22px;
  max-width:520px;
  color:var(--muted);
  text-align:center;
  line-height:1.55;
}
.gate-icon{
  width:58px;
  height:58px;
  margin:0 auto 12px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:27px;
  font-weight:900;
}
.email-gate-card .primary{
  margin-top:16px;
}
.gate-help{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  text-align:center;
}

.verified-email-bar{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 13px;
  border-radius:11px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.23);
  color:#fff;
  font-size:13px;
}
.link-button{
  border:1px solid rgba(255,255,255,.40);
  border-radius:8px;
  padding:7px 10px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
}
.link-button:hover{
  background:rgba(255,255,255,.16);
}

input[readonly]{
  background:#f3f6f9;
  color:#475467;
}

@media(max-width:760px){
  .main-eyebrow{font-size:17px;margin-bottom:9px}
  .email-gate-card{padding:22px 17px}
  .verified-email-bar{
    align-items:flex-start;
    flex-direction:column;
  }
  .link-button{width:100%}
}
