:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #253129;
  background: #f5f4f0;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus {
  outline: 2px solid #ad5b30;
  outline-offset: 3px;
}
header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px max(20px, 5vw);
  border-bottom: 1px solid #dedfd6;
}
header button {
  border: 1px solid #c6cec1;
  background: #fff;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 14px;
}
.brand {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -1.5px;
  text-decoration: none;
}
.brand span { color: #c1432e; }
main {
  max-width: 1390px;
  margin: auto;
  padding: 30px 35px 64px;
}
h1 { margin: 0 0 28px; font-size: clamp(28px, 4vw, 42px); }
.portal-shortcuts {
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
  margin: -8px 0 22px;
}
.portal-shortcuts a {
  color: #315742;
  font-size: 15px;
  font-weight: 650;
  text-underline-offset: 4px;
}
main > section + section { margin-top: 28px; }
main > section > h2 { font-size: 21px; margin: 0 0 12px; }
.portal-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}
.portal-group {
  min-width: 0;
  padding: 15px;
  background: white;
  border: 1px solid #d9dfd4;
  border-radius: 10px;
}
.portal-group h2 { margin: 0 0 9px; font-size: 16px; line-height: 1.4; }
.portal-group ul, .portal-links { list-style: none; padding: 0; margin: 0; }
.portal-group li + li { border-top: 1px solid #e4e8e0; }
.portal-group a { display: block; padding: 10px 3px; line-height: 1.35; text-decoration: none; }
.portal-links { display: flex; gap: 9px; flex-wrap: wrap; }
.portal-links a {
  display: block;
  background: #e9eee5;
  border: 1px solid #d9dfd4;
  padding: 10px 12px;
  border-radius: 7px;
  text-decoration: none;
  line-height: 1.35;
}
.portal-group a:hover, .portal-links a:hover { color: #285642; text-decoration: underline; }
.auth {
  max-width: 440px;
  margin: 60px auto;
  padding: 28px;
  background: white;
  border: 1px solid #dfe3d6;
  border-radius: 12px;
}
.auth h1 { margin-bottom: 10px; font-size: 27px; }
.auth p { color: #526052; line-height: 1.55; }
.auth a { display: inline-block; margin-top: 12px; font-size: 14px; }
label { display: grid; gap: 7px; font-size: 14px; }
input { height: 46px; border: 1px solid #abb6a9; border-radius: 6px; padding: 10px; width: 100%; margin-bottom: 13px; }
.primary { background: #a83523; color: white; border: 0; border-radius: 6px; padding: 13px; width: 100%; }
.error { background: #fff0e9; color: #954832; padding: 13px; border-radius: 7px; margin-bottom: 20px; }
@media (max-width: 1000px) {
  .portal-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  main { padding: 25px 16px 44px; }
  .portal-groups { grid-template-columns: minmax(0, 1fr); }
  .auth { margin: 30px 16px; }
  .brand { font-size: 26px; }
}
