@import url("./control_tokens.0b9aa4f9a578.css");

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/golos-text/GolosText-Regular.96aef0fed23a.woff2") format("woff2");
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/golos-text/GolosText-Medium.6c670fdcc9d5.woff2") format("woff2");
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/golos-text/GolosText-SemiBold.ce95a14b5b90.woff2") format("woff2");
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/golos-text/GolosText-Bold.784e54d9ec0f.woff2") format("woff2");
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("../fonts/golos-text/GolosText-ExtraBold.4395e80fca82.woff2") format("woff2");
}

:root {
  --primary: #4c78e8;
  --primary-rgb: 76, 120, 232;
  --primary-dark: #3159bd;
  --primary-light: #7ea1ff;
  --primary-light-rgb: 126, 161, 255;
  --primary-soft: #eef3ff;
  --primary-soft-hover: #e3ebff;
  --accent: var(--primary);
  --accent-soft: var(--primary-soft);
  --white: #fff;
  --white-rgb: 255, 255, 255;
  --black: #1f2937;
  --black-rgb: 31, 41, 55;
  --secondary: #52616b;
  --light-purple: #52616b;
  --muted: #596873;
  --gray: #f6f7fb;
  --surface: #fff;
  --surface-raised: #fff;
  --surface-subtle: #f6f7fb;
  --border: #dfe5f2;
  --border-strong: #cbd5e1;
  --danger: #b42318;
  --danger-strong: #d93025;
  --danger-rgb: 217, 48, 37;
  --warning: #9a6700;
  --shadow-rgb: 42, 66, 124;
  --font-sans: "Golos Text", Arial, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 22px;
  --font-size-title: clamp(31px, 3.6vw, 50px);
  --line-height-tight: 1.15;
  --line-height-copy: 1.6;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --control-height: 44px;
  --shadow-sm: 0 2px 10px rgba(var(--shadow-rgb), .06);
  --shadow-md: 0 12px 32px rgba(var(--shadow-rgb), .10);
  --shadow-lg: 0 24px 60px rgba(var(--shadow-rgb), .16);
  --shadow-primary: 0 8px 24px rgba(var(--primary-rgb), .18);
  --focus-ring: 0 0 0 3px rgba(var(--primary-rgb), .18);
  --transition-fast: 160ms ease;
  --transition-base: 220ms ease;
  --page-gutter: clamp(16px, 2vw, 32px);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body,
button,
input,
textarea,
select {
  font-family: var(--font-sans);
}

* {
  font-family: inherit;
}

body {
  min-width: 320px;
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p {
  font-family: var(--font-sans);
}

[hidden] {
  display: none !important;
}

.skip_link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20000;
  padding: 12px 16px;
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(calc(-100% - 24px));
  transition: transform .18s ease;
}

.skip_link:focus {
  transform: translateY(0);
}

main {
  min-height: 45vh;
  overflow: clip;
}

main:focus {
  outline: none;
}

img {
  max-width: 100%;
}

::selection {
  color: var(--white);
  background: var(--primary);
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(var(--primary-rgb), .3);
  outline-offset: 3px;
}

.sections,
.breadcrumbs {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--page-gutter);
}

.sections {
  padding-block: clamp(48px, 6vw, 88px);
}

.back {
  background: var(--gray);
}

.section_eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

.section_heading .faculties_title,
.section_heading h2,
.news_title {
  margin: 0;
  color: var(--black);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.section_link,
.news_all_link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.section_link:hover,
.news_all_link:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
  transform: none;
}

/* Header */
.site_header {
  position: sticky;
  top: 0;
  z-index: 1200;
  padding: 12px 0;
  color: var(--black);
  background: rgba(var(--white-rgb), .96);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.header_wrapper {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  gap: clamp(28px, 3vw, 52px);
  padding-inline: var(--page-gutter);
}

.brand_link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--black);
}

.header_logo_block img,
.brand_link .logo {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
}

.brand_copy {
  display: flex;
  flex-direction: column;
  width: 120px;
  color: var(--black);
}

.brand_copy strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: .02em;
}

.brand_copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.header_up_block {
  margin-bottom: 14px;
}

.header_right_group,
.header_contacts,
.contacts {
  gap: clamp(16px, 2vw, 28px);
}

.icons {
  gap: 10px;
  margin-right: 0;
}

.icons .icon_btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
}

.header_bottom {
  justify-content: flex-start;
  gap: clamp(14px, 1.6vw, 24px);
  margin: 0;
  padding: 0;
}

.header_bottom a,
.nav_dropdown_toggle {
  gap: 7px;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.header_bottom a:hover,
.nav_dropdown_toggle:hover {
  color: var(--primary);
}

.header_bottom a img,
.nav_dropdown_arrow {
  width: 12px;
  height: 12px;
}

.btn,
.footer_btn,
.faculty_btn,
.news_btn,
.course_btn,
.vac_btn,
.applicants_schedule_btn,
.document_download {
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

:is(
  .ui_btn,
  .ui-btn,
  .apply_btn,
  .btn_submit,
  .home_button,
  .year_button,
  .pbtn,
  .doc_btn,
  .news_all_btn,
  .sidebar_all_btn,
  .ac_empty_btn,
  .announce_btn
) {
  display: inline-flex;
  min-height: var(--control-height);
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

:is(
  .ui_btn--primary,
  .ui-btn--accent,
  .apply_btn,
  .btn_submit,
  .year_button,
  .faculty_btn,
  .course_btn,
  .vac_btn,
  .applicants_schedule_btn
) {
  color: var(--white);
  border-color: var(--primary);
  background: var(--primary);
  background-image: none;
  box-shadow: none;
}

:is(
  .ui_btn--primary,
  .ui-btn--accent,
  .apply_btn,
  .btn_submit,
  .year_button,
  .faculty_btn,
  .course_btn,
  .vac_btn,
  .applicants_schedule_btn
):hover {
  color: var(--white);
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  box-shadow: var(--shadow-primary);
}

.primary_btn,
.footer_btn.outline {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--white);
}

.student_btn,
.footer_btn.filled {
  color: var(--white);
  background: var(--primary);
  background-image: none;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

.student_btn:hover,
.footer_btn.filled:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), .18);
}

.student_btn::before,
.footer_btn.filled::before {
  display: none;
}

.dropdown_menu,
.nav_dropdown_menu,
.mnav_popover {
  height: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.primary_menu a,
.primary_menu .pm_item,
.student_menu a,
.nav_dropdown_menu a {
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.primary_menu a:hover,
.primary_menu .pm_item:hover,
.student_menu a:hover,
.nav_dropdown_menu a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

/* Cards and content */
.faculty_card,
.news_card,
.person_card,
.document_card,
.course_card,
.vacancy_card,
.general_block,
.table_card,
.info-article,
.acc__item {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.course_card {
  color: var(--secondary);
}

.course_card .course_label {
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), .22);
  background: var(--primary-soft);
}

.course_card :is(.course_name, .course_desc, .meta_item dd) {
  color: var(--secondary);
}

.course_card .meta_item dt {
  color: var(--primary);
}

.course_card .meta_item {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: start;
}

.course_card .course_btn {
  color: var(--white);
  border-color: var(--primary);
  background: var(--primary);
}

.course_card .course_btn img {
  filter: brightness(0) invert(1);
}

.faculty_card,
.news_card {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.faculty_card:hover,
.news_card:hover {
  border-color: rgba(var(--primary-rgb), .5);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.faculty_card:hover .faculty_info,
.news_card:hover .news_info {
  color: inherit;
  background: var(--white);
}

.faculty_card:hover :is(.faculty_code, .faculty_name, .faculty_desc, .faculty_desc_small, .meta_label, .meta_value),
.news_card:hover :is(.news_date, .news_name, .news_excerpt) {
  color: var(--secondary);
}

.faculty_image,
.news_image {
  background: var(--gray);
}

.faculty_info,
.news_info {
  padding: 20px;
}

.faculty_name,
.news_name {
  color: var(--black);
}

.faculty_desc,
.faculty_desc_small,
.news_excerpt {
  color: var(--secondary);
  font-weight: 500;
}

.faculty_btn {
  color: var(--white);
  border-color: var(--primary);
  background: var(--primary);
}

.faculty_card:hover .faculty_btn {
  color: var(--white);
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.news_card:hover .news_btn,
.news_btn {
  color: var(--primary);
}

.faculty_card:hover .faculty_btn img,
.news_card:hover .news_btn img {
  content: initial;
}

.carousel_btn,
.news_ctrl_btn {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.carousel_btn:hover,
.news_ctrl_btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 8px 22px rgba(var(--primary-rgb), .2);
}

.news_section {
  background: transparent;
}

.news_head_row {
  margin-bottom: 30px;
}

.news_title {
  width: auto;
}

.ministries_section {
  padding-block: clamp(36px, 5vw, 64px);
}

.ministries_wrap {
  gap: 16px;
}

.ministry_logo {
  width: 100%;
  min-height: 92px;
  max-height: 120px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.gosuslugi_section {
  padding: 0 var(--page-gutter) clamp(48px, 6vw, 88px);
}

.gosuslugi_wrap {
  max-width: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.gosuslugi_btn {
  min-height: 40px;
  padding: 10px 18px;
  font: 700 13px/1.2 var(--font-sans);
}

/* Inner pages */
.breadcrumbs {
  margin: 0;
  padding-block: clamp(16px, 2vw, 24px);
  background: transparent;
}

.breadcrumbs a,
.breadcrumbs > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.breadcrumbs [aria-current="page"] {
  color: var(--black);
  font-weight: 700;
  pointer-events: none;
}

.sections.page_surface {
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.page_title {
  max-width: 1040px;
  margin: 0 0 clamp(24px, 3vw, 40px);
  text-wrap: balance;
}

.page_lead {
  max-width: 820px;
  margin: -20px 0 clamp(28px, 4vw, 48px);
  color: var(--secondary);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

:is(.page_title, .general_title, .faculties_page_title, .teachers_title, .contacts_title, .graduates_title, .documents_title) {
  color: var(--black);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.page_surface :is(h2, .section_title, .dept_subtitle, .tools_title, .docs_block_title) {
  text-wrap: balance;
}

.page_surface :is(.empty_state, .documents_empty, .news_empty, .courses_empty, .ts_empty) {
  padding: 20px;
  color: var(--secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

:is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  min-height: var(--control-height);
  padding: 10px 12px;
  color: var(--black);
  border-color: var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

:is(input:not([type="checkbox"]):not([type="radio"]), textarea, select):focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: var(--focus-ring);
}

:is(.chip, .tag, .person_info_item) {
  color: var(--primary);
  border-color: var(--border);
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
}

/* Footer */
.site_footer {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(48px, 6vw, 80px) var(--page-gutter) 28px;
  color: rgba(var(--white-rgb), .9);
  border-top: 0;
  background: var(--primary);
}

.footer_top {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) repeat(3, minmax(150px, 1fr));
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 36px;
}

.footer_brand {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.footer_logo {
  flex: 0 0 94px;
}

.site_footer .footer_logo img {
  width: 94px;
  height: 94px;
  object-fit: contain;
}

.footer_brand h2,
.footer_column h2 {
  margin: 0 0 8px;
  color: var(--white);
}

.footer_brand h2 {
  font-size: 24px;
  line-height: 1;
}

.footer_brand p {
  max-width: 390px;
  margin: 0;
  color: rgba(var(--white-rgb), .78);
  font-size: 14px;
  line-height: 1.5;
}

.footer_column h2 {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer_nav_list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer_nav_list a {
  display: inline-flex;
  color: rgba(var(--white-rgb), .88);
  font-size: 14px;
  line-height: 1.35;
  transition: color .18s ease, transform .18s ease;
}

.footer_nav_list a:hover,
.footer_nav_list a:focus-visible {
  color: var(--white);
  transform: translateX(3px);
}

.footer_social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.footer_social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--white);
  border: 1px solid rgba(var(--white-rgb), .32);
  border-radius: var(--radius-pill);
  background: rgba(var(--white-rgb), .1);
  font-size: 12px;
  font-weight: 700;
}

.footer_social a:hover {
  color: var(--white);
  border-color: rgba(var(--white-rgb), .56);
  background: rgba(var(--white-rgb), .18);
}

.footer_social img {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.footer_contact_bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(var(--white-rgb), .26);
  border-radius: var(--radius-lg);
  background: rgba(var(--white-rgb), .1);
}

.footer_contacts {
  display: flex;
  flex: 1 1 620px;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-style: normal;
}

.footer_info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.footer_info img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: .86;
}

.footer_info span,
.footer_info a {
  color: rgba(var(--white-rgb), .9);
  font-size: 13px;
  line-height: 1.45;
}

.footer_info:first-child {
  flex-basis: 100%;
}

.footer_help {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 20px;
}

.footer_help_copy {
  display: grid;
  gap: 4px;
  max-width: 270px;
}

.footer_help_copy strong {
  color: var(--white);
  font-size: 14px;
}

.footer_help_copy span {
  color: rgba(var(--white-rgb), .76);
  font-size: 12px;
  line-height: 1.4;
}

.footer_buttons {
  display: flex;
  gap: 12px;
}

.site_footer .footer_btn.outline {
  min-width: 176px;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--white);
  border-color: rgba(var(--white-rgb), .58);
  background: rgba(var(--white-rgb), .08);
  font-size: 13px;
}

.site_footer .footer_btn.outline:hover {
  color: var(--white);
  border-color: var(--primary-light);
  background: var(--primary);
}

.footer_links {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0;
  padding: 0 0 22px;
}

.footer_links a,
.footer_links button,
.footer_bottom span,
.footer_bottom a {
  color: rgba(var(--white-rgb), .78);
  font-size: 12px;
}

.footer_links button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer_links a:hover,
.footer_links button:hover,
.footer_bottom a:hover {
  color: var(--white);
}

.footer_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(var(--white-rgb), .26);
}

.footer_meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer_bottom .footer_login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  color: var(--white);
  border: 1px solid rgba(var(--white-rgb), .58);
  border-radius: var(--radius-pill);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.footer_bottom .footer_login:hover,
.footer_bottom .footer_login:focus-visible {
  color: var(--primary);
  border-color: var(--white);
  background: var(--white);
}

.footer_bottom .footer_login:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.footer_dev_link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer_dev_link img {
  width: 112px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .76;
}

.back_to_top {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  overflow: visible;
  color: var(--white);
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 10px 28px rgba(var(--primary-rgb), .28);
}

.back_to_top_icon {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.back_to_top.show:hover {
  background: var(--primary-dark);
  box-shadow: 0 14px 32px rgba(var(--primary-rgb), .34);
  transform: translateY(-2px);
}

/* Motion is opt-in; content never waits for JavaScript to become readable. */
.reveal {
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
}

.reveal-pending {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}

.reveal-pending.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 1037px) {
  .header_bottom > * {
    order: initial !important;
  }

  .header_bottom::before,
  .header_bottom::after {
    display: none !important;
  }
}

@media (max-width: 1320px) and (min-width: 1037px) {
  .brand_copy,
  .header_contacts .contacts {
    display: none;
  }

  .header_wrapper {
    gap: 24px;
  }

  .header_up_block {
    margin-bottom: 0;
  }
}

@media (max-width: 1036px) {
  .site_header {
    padding: 8px 0;
  }

  .header_wrapper {
    max-width: none;
    padding-inline: var(--page-gutter);
  }

  .header_logo_block img,
  .brand_link .logo {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .brand_copy {
    display: none;
  }

  .footer_top {
    grid-template-columns: 1fr 1fr;
  }

  .footer_brand {
    grid-column: 1 / -1;
  }

  .footer_contact_bar {
    align-items: stretch;
    flex-direction: column;
  }

  .footer_contacts {
    flex-basis: auto;
  }

  .footer_help {
    justify-content: space-between;
  }

  .footer_buttons {
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .sections.page_surface {
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .page_title {
    margin-bottom: 24px;
    font-size: clamp(30px, 9vw, 42px);
  }

  .section_heading,
  .news_head_row {
    align-items: flex-start;
  }

  .footer_top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer_brand {
    grid-column: auto;
    align-items: flex-start;
  }

  .footer_contact_bar {
    padding: 18px;
  }

  .footer_contacts {
    display: grid;
    gap: 12px;
  }

  .footer_help {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer_help_copy {
    max-width: none;
  }

  .footer_buttons {
    flex-direction: column;
    width: 100%;
  }

  .site_footer .footer_btn.outline {
    width: 100%;
  }

  .footer_links {
    align-items: flex-start;
  }

  .footer_bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 76px;
  }

  .footer_meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

/* The public shell is fluid: page-level sections use the viewport, not a boxed canvas. */
.sections.sections,
.breadcrumbs {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--page-gutter);
}

@media (max-width: 520px) {
  .section_heading {
    flex-direction: column;
    gap: 10px;
  }

  .section_link {
    padding-left: 0;
  }

  .footer_brand {
    flex-direction: column;
  }

  .footer_social a {
    min-height: 40px;
  }
}

/* Safari on iOS zooms the page when a focused field is smaller than 16px. */
@media (max-width: 430px) {
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="color"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-pending {
    opacity: 1;
    transform: none;
  }
}

/* Hero artwork palette and overlay colours. */
:root {
  --hero-surface: #eaf0fc;
  --hero-border: #dde5f5;
  --hero-night: #101f3d;
  --hero-eyebrow: #d8e5ff;
  --hero-divider: #7288b0;
  --hero-highlight: #b4cdff;
  --hero-muted: #dce5f5;
  --hero-button-ink: #172e60;
  --hero-button-hover: #deebff;
  --hero-button: #182d50;
  --hero-button-border: #7182a1;
  --hero-button-active: #2b4266;
  --hero-caption-bg: #172d50;
  --hero-overlay-rgb: 12,26,52;
  --hero-night-rgb: 16,31,61;
  --header-shadow-rgb: 19,42,86;
  --header-backdrop-rgb: 15,32,63;
}
