:root {
  color-scheme: light;
  --bg: #f3fbfb;
  --surface: #ffffff;
  --surface-soft: #e7f7f7;
  --ink: #071316;
  --muted: #647276;
  --brand: #11bdc9;
  --brand-strong: #06373c;
  --accent: #e84848;
  --accent-soft: #bff9fb;
  --line: rgba(7, 19, 22, 0.13);
  --shadow: 0 22px 60px rgba(0, 111, 122, 0.16);
  --radius: 8px;
  --max: 1160px;
  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;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(243, 251, 251, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header[data-elevated="true"] {
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(23, 33, 29, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: #05090a;
  border: 2px solid var(--brand);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(17, 189, 201, 0.14),
    0 0 22px rgba(17, 189, 201, 0.35);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #26332e;
  font-weight: 650;
}

.main-nav a,
.nav-dropdown-toggle {
  font-size: 14px;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  min-height: 36px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 650;
}

.nav-dropdown-toggle::after {
  margin-left: 6px;
  content: "v";
  font-size: 11px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 30;
  display: none;
  min-width: 260px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-dropdown.open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu {
  display: grid;
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: var(--radius);
}

.nav-dropdown-menu a:hover {
  background: rgba(17, 189, 201, 0.1);
}

.main-nav a:hover,
.nav-dropdown-toggle:hover,
.text-link:hover {
  color: var(--brand);
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.button {
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
}

.button.primary {
  color: #fff;
  background: var(--brand-strong);
  box-shadow: 0 12px 28px rgba(17, 189, 201, 0.28);
}

.button.primary:hover {
  background: #021f23;
}

.button.secondary {
  color: #062e33;
  background: #ffffff;
}

.button.ghost {
  color: var(--brand-strong);
  background: rgba(17, 189, 201, 0.14);
}

.button.small {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 14px;
}

.button.danger {
  color: #7b1f1f;
  background: #f9e6e4;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.nav-toggle {
  display: none;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 74px));
  padding: clamp(96px, 13vw, 160px) clamp(18px, 4vw, 48px) 48px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 19, 22, 0.94) 0%, rgba(6, 55, 60, 0.82) 45%, rgba(17, 189, 201, 0.16) 100%),
    url("https://images.unsplash.com/photo-1588072432836-e10032774350?auto=format&fit=crop&w=1800&q=80")
      center / cover;
}

.hero::after {
  position: absolute;
  right: clamp(18px, 6vw, 96px);
  bottom: 0;
  left: clamp(18px, 6vw, 96px);
  z-index: -1;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  content: "";
}

.hero-content {
  align-self: center;
  width: min(720px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent-soft);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.page-title {
  max-width: none;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
}

.hero-content p:not(.eyebrow) {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: end;
  width: min(620px, 100%);
  margin-top: 64px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel div {
  padding: 22px;
}

.hero-panel div + div {
  border-left: 1px solid var(--line);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  color: var(--brand-strong);
  font-size: 34px;
  line-height: 1;
}

.hero-panel span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--max);
  margin: -34px auto 0;
  padding: 0 clamp(18px, 4vw, 24px);
  position: relative;
  z-index: 3;
}

.quick-links a {
  min-height: 138px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.quick-links a:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.quick-links a:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quick-links a:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(23, 33, 29, 0.1);
}

.quick-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  background: #071316;
  border: 2px solid var(--brand);
  border-radius: 50%;
  font-weight: 900;
}

.quick-links strong,
.quick-links small {
  display: block;
}

.quick-links small {
  margin-top: 5px;
  color: var(--muted);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 118px) clamp(18px, 4vw, 24px);
}

.section.muted {
  max-width: none;
  background: var(--surface-soft);
}

.section.muted > * {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.split p:not(.eyebrow),
.timetable-section p,
.contacts p {
  color: var(--muted);
  font-size: 18px;
}

.feature-grid,
.service-grid,
.news-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid article,
.service-grid article,
.news-card,
.document-list a,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-grid article {
  min-height: 166px;
  padding: 24px;
}

.feature-grid strong,
.feature-grid span {
  display: block;
}

.feature-grid strong {
  margin-bottom: 12px;
  color: var(--brand-strong);
  font-size: 18px;
}

.feature-grid span {
  color: var(--muted);
}

.about-source-page {
  display: grid;
  gap: 28px;
  background: #fff;
}

.about-source-page .page-title {
  color: #20242a;
  text-transform: uppercase;
}

.about-source-image {
  margin: 0;
  max-width: 826px;
}

.about-source-image img {
  display: block;
  width: 100%;
  height: auto;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  align-items: stretch;
}

.about-card,
.about-stat-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.about-card {
  padding: clamp(22px, 3vw, 34px);
}

.primary-about-card h2 {
  margin-top: 0;
  color: var(--brand-strong);
}

.primary-about-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.about-facts {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
}

.about-facts div {
  display: grid;
  gap: 4px;
}

.about-facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.about-facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.about-stat-grid {
  display: grid;
  gap: 14px;
}

.about-stat-grid article {
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 18px;
  text-align: center;
}

.about-stat-grid strong {
  color: var(--brand-strong);
  font-size: 42px;
}

.about-stat-grid span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.text-link {
  padding: 0;
  color: var(--brand);
  background: transparent;
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 24px;
}

.news-card time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-card h3 {
  margin-top: 18px;
}

.news-card p {
  color: var(--muted);
}

.tag {
  width: fit-content;
  margin-top: auto;
  padding: 6px 10px;
  color: var(--brand-strong);
  background: rgba(17, 189, 201, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid article {
  min-height: 306px;
  padding: 24px;
}

.service-kicker {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.service-grid p {
  color: var(--muted);
}

.service-grid a {
  color: var(--brand);
  font-weight: 900;
}

.timetable-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.timetable {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timetable div {
  display: grid;
  min-height: 136px;
  place-items: center;
  padding: 16px 10px;
  text-align: center;
}

.timetable div + div {
  border-left: 1px solid var(--line);
}

.timetable strong {
  color: var(--brand-strong);
  font-size: 28px;
}

.timetable span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.schedule-page {
  display: grid;
  gap: 26px;
  background: #fff;
}

.schedule-heading {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.schedule-page .page-title {
  color: #20242a;
  text-transform: uppercase;
}

.schedule-gallery {
  display: grid;
  gap: 24px;
  max-width: 1040px;
}

.schedule-image-card {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(7, 19, 22, 0.08);
}

.schedule-image-card img {
  display: block;
  width: 100%;
  height: auto;
}

.president-message {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 360px;
  margin: 12px auto 0;
  text-align: center;
}

.president-message img {
  width: min(180px, 60vw);
  height: auto;
  border-radius: 4px;
}

.president-message a {
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.president-message a:hover {
  color: var(--accent);
}

.document-list {
  display: grid;
  gap: 12px;
}

.document-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}

.document-list strong,
.document-list span {
  display: block;
}

.document-list span {
  color: var(--muted);
  font-size: 14px;
}

.document-list em {
  color: var(--brand-strong);
  font-style: normal;
  font-weight: 900;
}

.official-section {
  max-width: var(--max);
}

.official-intro {
  max-width: 820px;
  margin: -12px 0 34px;
  color: var(--muted);
  font-size: 18px;
}

.official-menu-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.official-menu-grid article,
.official-docs details,
.official-table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.official-menu-grid article {
  min-height: 220px;
  padding: 18px;
}

.official-menu-grid h3 {
  min-height: 48px;
  margin: 0 0 16px;
  color: var(--brand-strong);
  font-size: 16px;
  line-height: 1.25;
}

.official-menu-grid article div {
  display: grid;
  gap: 9px;
}

.official-menu-grid a {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.official-menu-grid strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.official-menu-grid span {
  color: var(--muted);
  font-size: 12px;
}

.official-docs {
  display: grid;
  gap: 14px;
}

.official-docs details {
  overflow: hidden;
}

.official-docs summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  color: var(--brand-strong);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.official-docs summary strong {
  display: inline-grid;
  min-width: 42px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 14px;
}

.official-docs details > p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--muted);
}

.official-table-stack {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.official-table-card {
  overflow: hidden;
}

.official-table-card h3 {
  margin: 0;
  padding: 16px 18px;
  color: var(--brand-strong);
  background: rgba(17, 189, 201, 0.1);
  font-size: 18px;
}

.self-assessment-page {
  padding: clamp(18px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.self-assessment-page h2 {
  color: #3f4144;
  font-size: clamp(30px, 4vw, 48px);
  text-transform: uppercase;
}

.self-assessment-page h3 {
  margin: 34px 0 16px;
  color: #c33b3b;
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
}

.self-assessment-page p {
  max-width: 900px;
  margin: 0 auto 28px;
  color: #183987;
  text-align: center;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.35;
}

.self-doc-table-wrap {
  overflow-x: auto;
}

.self-doc-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
  border: 2px solid #2b2b2b;
}

.self-doc-table th,
.self-doc-table td {
  padding: 14px 16px;
  border: 1px solid #2b2b2b;
  vertical-align: middle;
}

.self-doc-table th {
  color: #183987;
  background: #fff;
  font-size: 18px;
  text-align: left;
}

.self-doc-table th:first-child,
.self-doc-table td:first-child {
  width: 76px;
  text-align: center;
  font-weight: 900;
}

.self-doc-table th:last-child,
.self-doc-table td:last-child {
  width: 150px;
  text-align: center;
}

.self-section-row td {
  color: #071316;
  background: #f2f2f2;
  font-weight: 900;
  text-align: center;
}

.table-link {
  padding: 6px 10px;
  color: #183987;
  background: #fff89a;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
}

.table-link:hover {
  color: #c33b3b;
}

.official-list {
  display: grid;
}

.official-list a,
.official-list div,
.method-row {
  display: grid;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.official-list a,
.official-list div {
  grid-template-columns: 54px 1fr auto;
}

.official-list a:hover,
.official-menu-grid a:hover {
  color: var(--brand);
}

.doc-number {
  color: var(--muted);
  font-weight: 900;
}

.official-list strong,
.doc-link {
  color: var(--brand-strong);
  font-weight: 900;
}

.gaps-source-page {
  padding: clamp(18px, 3vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gaps-source-page h2 {
  margin: 0 0 34px;
  color: #20242a;
  font-size: clamp(30px, 4vw, 48px);
  text-transform: uppercase;
}

.gaps-source-page h3 {
  margin: 0 0 16px;
  color: #d33232;
  text-align: center;
  font-size: clamp(24px, 3vw, 34px);
}

.gaps-source-page p {
  max-width: 940px;
  margin: 0 auto 28px;
  color: #20242a;
  text-align: center;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  line-height: 1.35;
}

.gaps-table-wrap {
  overflow-x: auto;
}

.gaps-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.gaps-table td {
  padding: 14px 16px;
  border: 1px solid #cfcfcf;
  vertical-align: middle;
}

.gaps-table td:first-child {
  width: 72px;
  text-align: left;
}

.gaps-table td:last-child {
  width: 170px;
  text-align: center;
}

.gaps-table td:nth-child(2) {
  overflow-wrap: anywhere;
}

.gaps-table a {
  color: #183987;
  font-weight: 800;
  text-decoration: underline;
}

.gaps-table a:hover {
  color: #d33232;
}

.method-table {
  overflow-x: auto;
}

.method-row {
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(110px, 0.28fr));
  min-width: 720px;
}

.method-head {
  color: var(--brand-strong);
  background: rgba(17, 189, 201, 0.12);
  font-weight: 900;
}

.muted-cell {
  color: var(--muted);
  font-weight: 850;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.requirements-grid article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.requirements-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.requirements-grid li + li {
  margin-top: 10px;
}

.contact-person dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.contact-person dl div {
  display: grid;
  gap: 3px;
}

.contact-person dt {
  color: var(--muted);
  font-weight: 800;
}

.contact-person dd {
  margin: 0;
  font-weight: 800;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 70px);
}

.contact-card {
  padding: 12px;
}

.contact-card dl {
  margin: 0;
}

.contact-card div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px;
}

.contact-card div + div {
  border-top: 1px solid var(--line);
}

.contact-card dt {
  color: var(--muted);
  font-weight: 800;
}

.contact-card dd {
  margin: 0;
  font-weight: 750;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 48px);
  color: rgba(255, 255, 255, 0.78);
  background: #071316;
}

.site-footer p {
  margin: 0;
}

.site-footer .text-link {
  color: #fff;
}

.admin-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  justify-content: flex-end;
  background: rgba(10, 25, 20, 0.42);
}

.admin-drawer.open {
  display: flex;
}

.admin-shell {
  width: min(760px, 100%);
  height: 100%;
  overflow: auto;
  background: var(--surface);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.2);
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding: 28px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.admin-header h2 {
  font-size: 30px;
}

.login-box,
.admin-workspace {
  padding: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: #26332e;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font-weight: 520;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(17, 189, 201, 0.18);
}

.hint {
  color: var(--muted);
  font-size: 14px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tab {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-weight: 850;
}

.tab.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.admin-panel {
  display: none;
  gap: 16px;
}

.admin-panel.active {
  display: grid;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin: 10px 0 24px;
}

.admin-panel-heading p {
  margin-top: 6px;
  color: var(--muted);
}

.self-doc-admin-list,
.self-doc-admin-section {
  display: grid;
  gap: 12px;
}

.self-doc-admin-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.self-doc-admin-section h4 {
  margin: 0;
  color: var(--brand-strong);
}

.self-doc-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.self-doc-upload strong,
.self-doc-upload small {
  display: block;
}

.self-doc-upload small {
  margin-top: 4px;
  color: var(--muted);
}

.self-doc-upload small.uploaded {
  color: var(--brand-strong);
  font-weight: 800;
}

.file-picker {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  color: #fff;
  background: var(--brand-strong);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
}

.file-picker input {
  display: none;
}

.admin-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-list strong,
.admin-list small {
  display: block;
}

.admin-list small {
  color: var(--muted);
}

.delete-item {
  min-height: 36px;
  padding: 7px 10px;
  color: #7b1f1f;
  border: 0;
  border-radius: var(--radius);
  background: #f9e6e4;
  cursor: pointer;
  font-weight: 850;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid;
  }

  .main-nav {
    position: absolute;
    top: 74px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: grid;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown.open:hover .nav-dropdown-menu {
    display: grid;
  }

  .quick-links,
  .news-grid,
  .service-grid,
  .official-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-links a:first-child,
  .quick-links a:last-child {
    border-radius: 0;
  }

  .split,
  .timetable-section,
  .contacts,
  .requirements-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  h1 {
    max-width: 10ch;
    font-size: 46px;
  }

  .hero {
    min-height: 720px;
    padding-top: 104px;
  }

  .hero-panel,
  .quick-links,
  .feature-grid,
  .news-grid,
  .service-grid,
  .timetable {
    grid-template-columns: 1fr;
  }

  .hero-panel div + div,
  .timetable div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .quick-links {
    margin-top: 0;
    padding: 0;
  }

  .quick-links a {
    border-right: 0;
    border-left: 0;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-list a,
  .contact-card div,
  .admin-list article,
  .self-doc-upload,
  .form-grid,
  .official-list a,
  .official-list div {
    grid-template-columns: 1fr;
  }

  .official-menu-grid {
    grid-template-columns: 1fr;
  }

  .official-docs summary {
    padding: 18px;
    font-size: 18px;
  }

  .official-table-stack {
    padding: 0 10px 10px;
  }

  .admin-header,
  .login-box,
  .admin-workspace {
    padding: 20px;
  }
}
