:root {
  --navy-900: #12233f;
  --navy-700: #25558f;
  --paper: #dce8f6;
  --ink: #18283f;
  --ink-soft: #49607e;
  --sky-300: #83cdf4;
  --teal-500: #1e8ea3;
  --sun-400: #f2bc4c;
  --coral-500: #eb6a63;
  --header-surface: linear-gradient(
    120deg,
    rgba(162, 195, 226, 0.98),
    rgba(142, 183, 218, 0.97) 52%,
    rgba(125, 172, 201, 0.96)
  );
  --main-surface: linear-gradient(
    160deg,
    rgba(196, 220, 243, 0.95),
    rgba(174, 208, 233, 0.93) 50%,
    rgba(216, 210, 188, 0.9)
  );
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 14px 34px rgba(12, 33, 66, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 92% -8%, rgba(131, 205, 244, 0.34), transparent 60%),
    radial-gradient(950px 460px at -6% 102%, rgba(242, 188, 76, 0.2), transparent 58%),
    var(--paper);
}

img {
  max-width: 100%;
  display: block;
}

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

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-surface);
  border-bottom: 1px solid #a9c6e6;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(24, 54, 94, 0.08);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 55%),
    repeating-linear-gradient(
      -22deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 8px,
      transparent 8px,
      transparent 20px
    );
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(30, 142, 163, 0.2), rgba(30, 142, 163, 0.75), rgba(30, 142, 163, 0.2));
}

.nav-inner {
  width: min(1180px, 94%);
  margin: 0 auto;
  min-height: 102px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 96px;
  height: auto;
}

.brand-title {
  font-size: 2rem;
  line-height: 1;
  margin: 0;
  font-weight: 800;
}

.brand-tag {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.main-nav {
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  color: #204874;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: linear-gradient(135deg, var(--teal-500), var(--navy-700));
  color: #fff;
  transform: translateY(-1px);
}

.main-nav a.active {
  background: linear-gradient(135deg, #2a6daf, #1e8ea3);
  color: #fff;
}

.container {
  width: 100%;
  margin: 0;
  padding: 0 3%;
  background: var(--header-surface);
}

.container .hero {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 470px;
  display: flex;
  align-items: center;
  padding: clamp(20px, 4vw, 64px);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
}

.hero .panel {
  width: min(860px, 100%);
  background: linear-gradient(140deg, rgba(19, 45, 76, 0.62), rgba(30, 142, 163, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 34px);
  color: #fff;
}

.hero .panel h1,
.hero .panel h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.hero .panel p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.08rem;
  line-height: 1.58;
}

.panel--light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border: 1px solid #d4e5f7;
}

.panel--light p,
.panel--light li,
.panel--light label {
  color: var(--ink-soft);
}

#admissions-form .field label {
  color: #7f8fa3;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.93rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  padding: 11px 12px;
  border: 1px solid #c4ccd7;
  border-radius: 8px;
  font: inherit;
}

.field textarea {
  resize: vertical;
}

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

.actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-700), var(--teal-500));
  color: #fff;
}

.btn-secondary {
  background: #fff3d8;
  color: #6d541c;
}

.note {
  font-size: 0.9rem;
  color: #5b6f89;
}

.status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  display: none;
}

.status.show {
  display: block;
}

.status.ok {
  background: #e8f8ef;
  color: #1a663a;
  border: 1px solid #9ed6b2;
}

.status.error {
  background: #fdeaea;
  color: #8a1f1f;
  border: 1px solid #e4aaaa;
}

.site-footer {
  margin-top: 0;
  border-top: 1px solid #a9c6e6;
  background: var(--header-surface);
}

.footer-inner {
  width: min(1180px, 94%);
  margin: 0 auto;
  padding: 20px 0 28px;
  color: #4a5f7a;
}

.footer-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--coral-500);
}

@media (max-width: 880px) {
  .nav-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .brand img {
    width: 70px;
  }

  .brand-title {
    font-size: 1.35rem;
  }

  .brand-tag {
    font-size: 0.94rem;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .main-nav a {
    padding: 8px 11px;
    font-size: 0.92rem;
  }

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