:root {
  --night: #061522;
  --navy: #08243a;
  --blue: #0d4f7c;
  --blue-bright: #1678ad;
  --sky: #d9edf8;
  --gold: #c6a15b;
  --paper: #f4f7f9;
  --mist: #e8f1f6;
  --ink: #142635;
  --muted: #607383;
  --white: #ffffff;
  --line: rgba(20, 38, 53, 0.14);
  --shadow: 0 18px 48px rgba(6, 21, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #edf5f9 0, var(--paper) 420px),
    var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(198, 161, 91, 0.55);
  outline-offset: 3px;
}

::selection {
  color: var(--white);
  background: rgba(13, 79, 124, 0.88);
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px clamp(18px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(6, 21, 34, 0.96), rgba(8, 36, 58, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 45px rgba(6, 21, 34, 0.22);
}

.identity img {
  display: block;
  width: min(196px, 52vw);
  height: auto;
}

.menu-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  padding: 5px;
  color: #edf7fc;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 0.86rem;
}

.nav a,
.nav-action {
  border-radius: 6px;
  font-weight: 800;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.nav a {
  padding: 8px 11px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.nav-action {
  white-space: nowrap;
  padding: 12px 16px;
  color: #101622;
  background: var(--gold);
  box-shadow: 0 12px 30px rgba(198, 161, 91, 0.24);
}

.hero {
  min-height: 660px;
  padding: 132px clamp(18px, 5vw, 80px) 86px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(105deg, rgba(6, 21, 34, 0.94) 0%, rgba(13, 79, 124, 0.72) 48%, rgba(6, 21, 34, 0.12) 100%),
    url("assets/hero-rio-alta-res.png") center / cover;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(260px, 360px);
  align-items: end;
  justify-content: space-between;
  gap: 38px;
  min-height: 390px;
}

.label {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-label-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: var(--blue);
  background: rgba(13, 79, 124, 0.09);
  border: 1px solid rgba(13, 79, 124, 0.18);
  border-radius: 8px;
}

.section-label-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.05vw, 3.82rem);
  line-height: 1.04;
}

.nowrap {
  white-space: nowrap;
}

h2 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.58rem, 3vw, 2.58rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.intro {
  max-width: 680px;
  color: #dcebf4;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.5;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 6px;
  font-weight: 900;
}

.btn-primary {
  color: #101622;
  background: var(--gold);
}

.btn-light {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-panel {
  padding: 28px 30px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  border-top: 6px solid var(--gold);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  text-align: center;
}

.hero-panel small {
  color: var(--ink);
}

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

.hero-panel strong {
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-panel span {
  margin: 4px 0 18px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 900;
}

.hero-panel em {
  margin: 10px 0 8px;
  color: var(--gold);
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel small {
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero-panel .schedule-mode {
  color: var(--blue);
  font-weight: 900;
}

.hero-panel .schedule-time {
  font-size: 0.95rem;
  font-weight: 900;
}

.hero-schedule {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.hero-schedule article {
  padding: 7px 10px;
  background: rgba(241, 247, 250, 0.58);
  border-left: 2px solid var(--blue);
  border-radius: 5px;
}

.hero-schedule article.virtual {
  border-left-color: var(--gold);
}

.hero-schedule .schedule-mode,
.hero-schedule .schedule-time {
  margin-top: 0;
  text-align: left;
}

.hero-schedule .schedule-mode {
  font-size: 0.78rem;
}

.hero-schedule .schedule-time {
  margin-top: 1px;
  font-size: 0.88rem;
}

.hero-panel .schedule-day {
  color: var(--blue);
  font-size: 0.95rem;
}

.hero-panel .schedule-note {
  display: block;
  width: 100%;
  margin-top: 12px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.online-services {
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: 36px;
  align-items: start;
  padding: 66px clamp(18px, 5vw, 80px);
  background: var(--paper);
}

.access-heading {
  padding: 0;
}

.access-heading h2 {
  margin-bottom: 14px;
  color: var(--ink);
  text-shadow: none;
}

.access-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.access-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 20px;
  padding: 10px 15px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 79, 124, 0.18);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(20, 38, 53, 0.07);
}

.access-link:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
}

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

.access-button {
  position: relative;
  overflow: hidden;
  min-height: 124px;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 18px;
  align-content: start;
  align-items: center;
  padding: 18px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #edf6fb 100%);
  border: 1px solid rgba(13, 79, 124, 0.2);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(6, 21, 34, 0.1);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.access-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--blue), var(--blue-bright));
}

.access-button:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-3px);
}

.access-button:focus-visible,
.info-card:focus-visible {
  outline: 3px solid rgba(198, 161, 91, 0.5);
  outline-offset: 4px;
}

.access-button b {
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  align-self: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  border-radius: 7px;
  font-size: 0.9rem;
}

.access-button svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-button:hover b {
  color: var(--blue);
  background: var(--white);
}

.access-button.access-certificates {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 244, 231, 0.98));
  border-color: rgba(198, 161, 91, 0.32);
}

.access-button.access-certificates::before {
  background: linear-gradient(180deg, var(--gold), #9b7938);
}

.access-button.access-certificates b {
  background: linear-gradient(135deg, #c6a15b, #9b7938);
}

.access-button.access-certificates:hover {
  color: var(--white);
  background: linear-gradient(135deg, #6f5423, #c6a15b);
  border-color: rgba(198, 161, 91, 0.72);
}

.access-button.access-certificates:hover b {
  color: #8a682e;
  background: var(--white);
}

.access-button.access-inscriptions {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 246, 251, 0.98));
  border-color: rgba(13, 79, 124, 0.22);
}

.access-button.access-inscriptions::before {
  background: linear-gradient(180deg, var(--blue), var(--blue-bright));
}

.access-button.access-inscriptions b {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
}

.access-button.access-inscriptions:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  border-color: rgba(13, 79, 124, 0.72);
}

.access-button.access-inscriptions:hover b {
  color: var(--blue);
  background: var(--white);
}

.access-button span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.access-button:hover span {
  color: #dcebf4;
}

.access-button strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.55vw, 1.42rem);
  line-height: 1.12;
}

.info-band {
  display: grid;
  grid-template-columns: 0.8fr 1.05fr 1.25fr;
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto 78px;
  padding: 0 18px;
}

.info-band div {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
}

.info-band div:first-child {
  border-radius: 8px 0 0 8px;
}

.info-band div:last-child {
  border-radius: 0 8px 8px 0;
}

.info-band span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-band strong,
.info-band small {
  display: block;
  line-height: 1.35;
}

.info-band strong {
  font-size: 0.98rem;
}

.info-band small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.services {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: 36px;
  padding: 52px clamp(18px, 5vw, 80px) 66px;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(18px, 5vw, 80px);
  right: clamp(18px, 5vw, 80px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 79, 124, 0.22), transparent);
}

.services::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 92px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(198, 161, 91, 0.78), transparent);
  transform: translateX(-50%);
}

.services-heading p {
  color: var(--muted);
  line-height: 1.65;
}

.services-heading .label {
  color: var(--gold);
}

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

.service-list .info-card {
  position: relative;
  display: flex;
  min-height: 188px;
  flex-direction: column;
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #edf6fb 100%);
  border: 1px solid rgba(13, 79, 124, 0.2);
  border-top: 3px solid rgba(198, 161, 91, 0.72);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 30px rgba(20, 38, 53, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.service-list .info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 79, 124, 0.28);
  border-top-color: var(--gold);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 44px rgba(20, 38, 53, 0.12);
}

.info-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.info-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-list h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.service-list p {
  max-width: 92%;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.52;
}

.institution {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px);
  gap: 34px;
  padding: 48px clamp(18px, 5vw, 80px);
  color: var(--white);
  background: linear-gradient(135deg, var(--night), var(--navy) 52%, var(--blue));
}

.quote p {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.quote .quote-text {
  max-width: 680px;
  color: #f4f8fb;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  text-transform: none;
}

.details {
  display: grid;
  gap: 10px;
}

.details div {
  padding: 15px 0 15px 20px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

footer {
  color: #dbe5e1;
}

.details span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.details strong {
  display: block;
  font-size: 1.08rem;
}

.details small {
  display: block;
  margin-top: 7px;
  color: #e9f1f4;
  font-size: 0.95rem;
  line-height: 1.55;
}

.details ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: #e9f1f4;
  font-size: 0.94rem;
  line-height: 1.55;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 22px clamp(18px, 5vw, 80px);
  color: #e8f1f6;
  background: linear-gradient(135deg, #061522, #08243a 58%, #0d4f7c);
  border-top: 3px solid rgba(198, 161, 91, 0.72);
  font-size: 0.86rem;
  line-height: 1.45;
}

footer span {
  overflow-wrap: anywhere;
}

.back-to-top {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(6, 21, 34, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  outline: none;
  user-select: none;
}

.back-to-top span {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 18px 34px rgba(6, 21, 34, 0.28);
}

.back-to-top:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 10px 22px rgba(6, 21, 34, 0.2);
}

.back-to-top:focus,
.back-to-top:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(198, 161, 91, 0.28),
    0 14px 30px rgba(6, 21, 34, 0.22);
}

@media (max-width: 700px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

.site-notice {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(6, 21, 34, 0.68);
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.site-notice.is-hidden {
  display: none;
}

.notice-card {
  position: relative;
  width: min(486px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 244, 232, 0.98) 100%);
  border: 1px solid rgba(198, 161, 91, 0.48);
  border-radius: 8px;
  box-shadow: 0 24px 68px rgba(6, 21, 34, 0.3);
  text-align: center;
}

.notice-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--blue));
}

.notice-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--navy);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.notice-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: fit-content;
  max-width: min(202px, 56vw);
  height: auto;
  margin: 24px auto 15px;
  padding: 2px;
  background: transparent;
  border: 1px solid rgba(198, 161, 91, 0.58);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(20, 38, 53, 0.06);
}

.notice-mark img {
  display: block;
  width: auto;
  height: 60px;
  max-width: min(196px, 54vw);
  object-fit: contain;
}

.notice-label {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.notice-card h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.68rem, 4.2vw, 2.08rem);
  line-height: 1;
  text-transform: uppercase;
}

.notice-intro {
  max-width: 360px;
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
}

.notice-schedule {
  display: grid;
  gap: 10px;
  padding: 0 28px;
}

.notice-schedule article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-height: 82px;
  place-items: center;
  padding: 14px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8efdd 100%);
  border: 1px solid rgba(198, 161, 91, 0.34);
  border-radius: 7px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 10px 24px rgba(20, 38, 53, 0.1);
}

.notice-schedule article span {
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-schedule article strong {
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

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

.notice-days-line {
  margin: 14px 0 3px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice-virtual-line {
  margin: 0;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 28px 18px;
}

.notice-actions a,
.notice-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 10px 14px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.notice-actions a {
  color: #101622;
  background: var(--gold);
  border: 1px solid var(--gold);
}

.notice-actions button {
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(20, 38, 53, 0.22);
}

.notice-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 11px 28px;
  color: var(--white);
  background: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: left;
}

@media (min-width: 901px) and (max-width: 1600px) {
  .topbar {
    padding: 8px clamp(18px, 3vw, 44px);
  }

  .identity img {
    width: min(184px, 30vw);
  }

  .nav {
    gap: 4px;
    padding: 4px;
    font-size: 0.82rem;
  }

  .nav a {
    padding: 8px 10px;
  }

  .hero {
    min-height: 560px;
    padding: 104px clamp(18px, 4vw, 56px) 62px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 310px);
    gap: 28px;
    min-height: 330px;
  }

  h1 {
    font-size: clamp(1.82rem, 3.35vw, 3.35rem);
    white-space: normal;
  }

  .hero-content .nowrap {
    display: block;
    white-space: nowrap;
  }

  h2 {
    font-size: clamp(1.54rem, 2.7vw, 2.42rem);
  }

  .intro {
    max-width: 600px;
    font-size: clamp(0.98rem, 1.55vw, 1.14rem);
    line-height: 1.48;
  }

  .hero-panel {
    padding: 22px 24px;
    margin-top: 22px;
    max-width: 330px;
  }

  .hero-panel span {
    font-size: 1.68rem;
  }

  .hero-panel strong,
  .hero-panel em,
  .hero-panel small {
    font-size: 0.82rem;
  }

  .hero-panel .schedule-note {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.66rem;
    line-height: 1.18;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .online-services,
  .services,
  .institution {
    gap: 28px;
    padding-left: clamp(18px, 4vw, 56px);
    padding-right: clamp(18px, 4vw, 56px);
  }

  .online-services {
    grid-template-columns: minmax(250px, 360px) 1fr;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .services {
    grid-template-columns: minmax(250px, 360px) 1fr;
    padding-top: 42px;
    padding-bottom: 52px;
  }

  .access-heading p,
  .services-heading p,
  .institution-copy p {
    font-size: 0.88rem;
    line-height: 1.48;
  }

  .access-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .access-button {
    min-height: 104px;
    grid-template-columns: 46px 1fr;
    column-gap: 13px;
    padding: 14px;
  }

  .access-button b {
    width: 46px;
    height: 46px;
  }

  .access-button svg {
    width: 23px;
    height: 23px;
  }

  .access-button span {
    margin-bottom: 4px;
    font-size: 0.72rem;
  }

  .access-button strong {
    font-size: clamp(0.96rem, 1.25vw, 1.12rem);
  }

  .service-list {
    gap: 14px;
  }

  .service-list .info-card,
  .institution-card,
  .notice-card {
    padding: 18px;
  }

  .service-list h3 {
    font-size: 0.98rem;
  }

  .service-list p {
    font-size: 0.84rem;
    line-height: 1.45;
  }
}

@media (min-width: 901px) and (max-height: 760px) {
  .hero {
    min-height: 500px;
    padding-top: 96px;
    padding-bottom: 30px;
  }

  .hero-inner {
    min-height: 285px;
    grid-template-columns: minmax(0, 1.5fr) minmax(230px, 285px);
    gap: 22px;
  }

  .hero-panel {
    padding: 15px 17px;
    border-top-width: 4px;
  }

  .hero-panel strong {
    margin-top: 7px;
  }

  .hero-panel span {
    margin: 2px 0 10px;
    font-size: 1.42rem;
  }

  .hero-panel em {
    margin: 6px 0;
  }

  .hero-panel strong,
  .hero-panel em,
  .hero-panel small {
    font-size: 0.72rem;
  }

  .hero-schedule {
    gap: 4px;
    margin-top: 5px;
  }

  .hero-schedule article {
    padding: 5px 7px;
  }

  .hero-schedule .schedule-mode {
    font-size: 0.66rem;
  }

  .hero-schedule .schedule-time {
    font-size: 0.72rem;
  }

  .hero-panel .schedule-day {
    font-size: 0.74rem;
  }

  .hero-panel .schedule-note {
    max-width: 100%;
    margin: 8px auto 0;
    font-size: 0.68rem;
    line-height: 1.18;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

@media (min-width: 901px) and (max-width: 1320px) and (max-height: 760px) {
  .hero-inner {
    align-items: center;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 270px);
  }

  .hero-panel {
    margin-top: 10px;
  }

  .hero-panel .schedule-note {
    font-size: 0.66rem;
  }
}

@media (max-width: 900px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .menu-area,
  .nav {
    justify-content: flex-start;
  }

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

  .nav-action {
    width: max-content;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-inner,
  .info-band,
  .services,
  .institution {
    grid-template-columns: 1fr;
  }

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

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

  .online-services,
  .access-heading {
    grid-template-columns: 1fr;
  }

  .access-button:nth-child(1),
  .access-button:nth-child(2),
  .access-button:nth-child(3),
  .access-button:nth-child(4),
  .access-button:nth-child(5),
  .access-button:nth-child(6) {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    position: static;
    gap: 12px;
    padding: 10px 16px;
    max-width: 100%;
    min-width: 0;
  }

  .identity img {
    width: min(178px, 70vw);
  }

  .nav {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    font-size: 0.84rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 8px 9px;
    white-space: nowrap;
  }

  .menu-area {
    width: 100%;
    min-width: 0;
  }

  .nav-action {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 11px 14px;
    white-space: normal;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 34px 16px 54px;
    overflow: hidden;
  }

  .hero-inner {
    min-height: auto;
    gap: 24px;
  }

  .hero-content h1 {
    font-size: clamp(1.92rem, 10vw, 2.65rem);
    overflow-wrap: normal;
  }

  .hero-content .nowrap {
    display: block;
    white-space: nowrap;
  }

  .intro {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.48;
  }

  .hero-panel {
    padding: 20px;
  }

  .online-services,
  .services,
  .institution {
    padding-left: 16px;
    padding-right: 16px;
  }

  .access-strip {
    grid-template-columns: 1fr;
  }

  .access-button,
  .access-button:first-child,
  .access-button:last-child {
    border-radius: 8px;
  }

  .access-button,
  .service-list .info-card,
  .hero-panel,
  .institution-card,
  .notice-card {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .access-button,
  .service-list .info-card,
  .notice-schedule article {
    background: linear-gradient(180deg, #ffffff 0%, #eaf4fa 100%);
    border-color: rgba(13, 79, 124, 0.22);
    box-shadow: 0 10px 22px rgba(20, 38, 53, 0.1);
  }

  .access-button.access-certificates {
    background: linear-gradient(180deg, #ffffff 0%, #f8efdd 100%);
    border-color: rgba(198, 161, 91, 0.38);
  }

  .info-band div,
  .info-band div:first-child,
  .info-band div:last-child {
    border-radius: 0;
  }

  .info-band div:first-child {
    border-radius: 8px 8px 0 0;
  }

  .info-band div:last-child {
    border-radius: 0 0 8px 8px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px;
  }

  .site-notice {
    align-items: center;
    overflow: auto;
    padding: 14px 12px;
  }

  .notice-close {
    top: 12px;
    right: 12px;
  }

  .notice-mark {
    width: fit-content;
    max-width: min(174px, 62vw);
    height: auto;
    margin-top: 22px;
    margin-bottom: 10px;
    padding: 2px;
  }

  .notice-mark img {
    width: auto;
    height: 50px;
    max-width: min(168px, 60vw);
  }

  .notice-card h2 {
    font-size: clamp(1.48rem, 7vw, 1.82rem);
  }

  .notice-intro {
    padding: 0 18px;
    font-size: 0.84rem;
  }

  .notice-schedule article {
    min-height: 76px;
    padding: 12px 13px;
  }

  .notice-label {
    letter-spacing: 0.22em;
  }

  .notice-schedule,
  .notice-actions,
  .notice-footer {
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .refined-schedule,
  .notice-actions,
  .notice-footer {
    grid-template-columns: 1fr;
  }

  .notice-actions a,
  .notice-actions button,
  .notice-footer span {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .notice-footer {
    justify-items: center;
    text-align: center;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .topbar {
    position: static;
    gap: 10px;
    padding: 8px 16px;
  }

  .identity img {
    width: min(168px, 34vw);
  }

  .menu-area {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  .nav {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 5px;
    font-size: 0.82rem;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 7px 9px;
    white-space: nowrap;
  }

  .nav-action {
    min-height: 36px;
    padding: 9px 13px;
  }

  .hero {
    padding-top: 28px;
  }
}

@media (max-width: 430px) {
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-content h1 {
    max-width: 330px;
    font-size: clamp(1.58rem, 7.2vw, 1.92rem);
    line-height: 1.08;
  }

  .hero-content .label {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .intro {
    font-size: 0.96rem;
    line-height: 1.46;
  }
}

@media (min-width: 901px) and (max-width: 1320px) {
  h1 {
    font-size: clamp(1.68rem, 3vw, 2.78rem);
    white-space: normal;
  }

  .hero-content .nowrap {
    display: block;
    white-space: nowrap;
  }

  .hero {
    padding-top: 122px;
  }

  .hero-inner {
    align-items: center;
  }

  .hero-panel {
    max-width: 268px;
    margin-top: 42px;
    padding: 14px 16px;
  }

  .hero-panel span {
    margin-bottom: 8px;
    font-size: 1.34rem;
  }

  .hero-panel strong,
  .hero-panel em,
  .hero-panel small {
    font-size: 0.68rem;
  }

  .hero-schedule article {
    padding: 5px 7px;
  }

  .hero-panel .schedule-note {
    display: block;
    max-width: 100%;
    margin: 8px auto 0;
    font-size: 0.56rem;
    line-height: 1.18;
    text-align: center;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

@media (min-width: 901px) and (max-width: 1320px) and (max-height: 760px) {
  .hero {
    padding-top: 146px;
    padding-bottom: 36px;
  }

  .hero-inner {
    align-items: center;
  }

  .hero-panel {
    margin-top: 18px;
  }

  .hero-panel .schedule-note {
    font-size: 0.54rem;
    white-space: nowrap;
  }
}

@media (max-width: 1600px) {
  .hero-inner {
    align-items: center;
  }

  .hero-content .nowrap {
    display: block;
    white-space: nowrap;
  }

  .hero-panel {
    align-self: center;
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    display: grid;
    align-items: center;
  }

  .hero-content h1 {
    overflow-wrap: normal;
  }

  .hero-content .nowrap {
    display: block;
    white-space: nowrap;
  }

  .hero-panel {
    margin-top: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 430px) {
  .hero-content h1 {
    max-width: 330px;
    font-size: clamp(1.58rem, 7.2vw, 1.92rem);
    line-height: 1.08;
  }
}

@media (max-width: 360px) {
  .hero-content h1 {
    font-size: clamp(1.48rem, 7vw, 1.72rem);
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  .hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-content h1 {
    max-width: 300px !important;
    font-size: clamp(1.42rem, 6.2vw, 1.72rem) !important;
    line-height: 1.1 !important;
  }

  .hero-content .nowrap {
    display: block;
    white-space: nowrap;
  }

  .hero-panel {
    width: min(100%, 318px);
    max-width: 318px;
    justify-self: center;
    padding: 16px 18px;
  }

  .hero-panel span {
    font-size: 1.52rem;
  }

  .hero-panel strong,
  .hero-panel em,
  .hero-panel small {
    font-size: 0.76rem;
  }

  .hero-schedule article {
    padding: 6px 8px;
  }
}

@media (min-width: 901px) and (max-width: 1320px) and (max-height: 760px) {
  .hero {
    padding-top: 158px !important;
    padding-bottom: 44px !important;
  }

  .hero-inner {
    align-items: center !important;
    min-height: 330px;
  }

  .hero-panel {
    width: min(100%, 292px);
    max-width: 292px !important;
    margin-top: 0 !important;
    justify-self: center;
  }

  .hero-panel .schedule-note {
    max-width: none !important;
    font-size: 0.48rem !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
  }
}

.access-button,
.service-list .info-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(225, 241, 249, 0.98) 100%);
  border-color: rgba(13, 79, 124, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(6, 21, 34, 0.11);
}

.access-button.access-certificates {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 236, 210, 0.98) 100%);
  border-color: rgba(198, 161, 91, 0.46);
}

.access-button.access-inscriptions {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(220, 238, 248, 0.98) 100%);
  border-color: rgba(13, 79, 124, 0.34);
}
