:root {
  --bg: #09090f;
  --bg-soft: #101019;
  --surface: #14141f;
  --surface-2: #1b1b29;
  --text: #f4f2ea;
  --muted: #a7a7b8;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --lime: #c8ff3d;
  --violet: #9b7bff;
  --cyan: #4ce3ff;
  --orange: #ff9d4d;
  --pink: #ff6fb5;
  --blue: #6f9dff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Inter", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(155, 123, 255, 0.22), transparent 60%),
    radial-gradient(800px 520px at 92% 4%, rgba(76, 227, 255, 0.14), transparent 55%),
    radial-gradient(700px 520px at 50% 100%, rgba(200, 255, 61, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 15%, #000 20%, transparent 75%);
}

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

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

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin: 0 0 0.4em;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 6.6vw, 5.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--lime);
  color: #0b0b12;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--lime);
  color: #0b0b12;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 12px 0;
  background: rgba(9, 9, 15, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--lime);
  color: #0b0b12;
  font-size: 1.05rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.4), 0 8px 30px rgba(200, 255, 61, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--lime);
  color: #0a0a10;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 30px rgba(200, 255, 61, 0.16);
}

.button:hover {
  transform: translateY(-2px);
  background: #d6ff66;
  box-shadow: 0 16px 40px rgba(200, 255, 61, 0.26);
}

.button:active {
  transform: translateY(0);
}

.button-small {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.9rem;
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: none;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.button-full {
  width: 100%;
}

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 12%;
  right: -12%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 123, 255, 0.28), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(200, 255, 61, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 255, 61, 0);
  }
}

.grad {
  background: linear-gradient(100deg, var(--lime) 0%, var(--cyan) 46%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

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

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin: 38px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  padding: 0 26px;
  border-left: 1px solid var(--line);
}

.hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dt {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-facts dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 36px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(200, 255, 61, 0.34), rgba(155, 123, 255, 0.28), transparent 70%);
  filter: blur(18px);
  opacity: 0.7;
}

.hero-image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1.03;
  object-fit: cover;
  border-radius: 28px;
}

.floating-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(17, 17, 27, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.84rem;
}

.floating-card-top {
  top: 8%;
  left: -8%;
}

.floating-card-top strong {
  font-size: 0.95rem;
  color: var(--lime);
}

.floating-label {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.floating-card-bottom {
  right: -4%;
  bottom: 9%;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}

.floating-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
}

.ticker {
  overflow: hidden;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.ticker-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: ticker 34s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span::after {
  content: "✦";
  color: var(--lime);
  font-size: 0.8rem;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(64px, 9vw, 116px) 0;
}

.section-tinted {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about-visual {
  position: relative;
  padding-bottom: 18px;
}

.about-image-wrap {
  position: relative;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(155, 123, 255, 0.2), rgba(76, 227, 255, 0.08));
  box-shadow: var(--shadow);
}

.about-image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 23px;
}

.about-badge {
  position: absolute;
  right: -8px;
  bottom: 0;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: #0b0b12;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.about-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--muted);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--lime), #8fe22a);
  box-shadow: 0 0 0 4px rgba(200, 255, 61, 0.12);
}

.check-list li::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 6px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #0b0b12;
  border-bottom: 2px solid #0b0b12;
  transform: rotate(-45deg);
}

.check-list strong {
  color: var(--text);
}

.value-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.value-pill {
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
  margin-bottom: 0;
}

.section-note {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 200px at 110% -10%, var(--card-glow, rgba(200, 255, 61, 0.16)), transparent 70%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--card-accent, var(--lime));
  opacity: 0.55;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
}

.card-lime {
  --card-accent: var(--lime);
  --card-glow: rgba(200, 255, 61, 0.18);
}

.card-violet {
  --card-accent: var(--violet);
  --card-glow: rgba(155, 123, 255, 0.22);
}

.card-cyan {
  --card-accent: var(--cyan);
  --card-glow: rgba(76, 227, 255, 0.16);
}

.card-orange {
  --card-accent: var(--orange);
  --card-glow: rgba(255, 157, 77, 0.16);
}

.card-pink {
  --card-accent: var(--pink);
  --card-glow: rgba(255, 111, 181, 0.16);
}

.card-blue {
  --card-accent: var(--blue);
  --card-glow: rgba(111, 157, 255, 0.18);
}

.card-number {
  position: absolute;
  top: 14px;
  right: 20px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 3.7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 34px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--card-accent, var(--lime));
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.18rem, 1.9vw, 1.48rem);
  line-height: 1.12;
  hyphens: auto;
}

.card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.card-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admission-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.admission-copy > p:not(.eyebrow, .admission-note) {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 18px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--lime);
  font-weight: 800;
}

.steps strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.02rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.admission-note {
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.86rem;
}

.form-card {
  scroll-margin-top: 100px;
  padding: clamp(22px, 3.2vw, 36px);
  border: 1px solid rgba(200, 255, 61, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(600px 280px at 100% 0%, rgba(200, 255, 61, 0.1), transparent 65%),
    linear-gradient(165deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.form-head {
  margin-bottom: 24px;
}

.form-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.form-head h3 {
  margin-bottom: 6px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.field em,
.consent em {
  color: var(--lime);
  font-style: normal;
}

input[type="text"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(5, 5, 10, 0.45);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 21px,
    calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

input::placeholder,
textarea::placeholder {
  color: rgba(167, 167, 184, 0.62);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--lime);
  background: rgba(5, 5, 10, 0.65);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.13);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--lime);
  cursor: pointer;
}

.consent a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(200, 255, 61, 0.6);
  text-underline-offset: 3px;
}

.consent a:hover {
  color: var(--lime);
}

.consent.has-error {
  color: #ffb3b3;
}

.form-note {
  margin: 12px 0 0;
  color: rgba(167, 167, 184, 0.72);
  font-size: 0.74rem;
  line-height: 1.45;
}

.form-status {
  display: none;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-status:not(:empty) {
  display: block;
}

.form-status.is-success {
  border: 1px solid rgba(200, 255, 61, 0.38);
  background: rgba(200, 255, 61, 0.1);
  color: #ddffa1;
}

.form-status.is-error {
  border: 1px solid rgba(255, 107, 107, 0.42);
  background: rgba(255, 107, 107, 0.1);
  color: #ffb3b3;
}

.button[aria-busy="true"] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contacts-lead {
  max-width: 48ch;
  color: var(--muted);
}

.contact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 30px 0;
}

.contact-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.contact-label {
  display: block;
  margin-bottom: 6px;
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-item p {
  margin: 0;
  line-height: 1.5;
}

.contact-item a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
}

.contact-item a:hover {
  color: var(--lime);
}

.contact-panel {
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(155, 123, 255, 0.22), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel h3 {
  font-size: 1.6rem;
}

.contact-panel > p {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-panel-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.contact-panel-row span {
  flex-shrink: 0;
  color: var(--muted);
}

.contact-panel-row strong {
  max-width: 64%;
  text-align: right;
  line-height: 1.35;
}

.contact-panel-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-panel-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--lime);
  font-weight: 800;
}

.contact-panel-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.brand-footer {
  margin-bottom: 14px;
}

.footer-note {
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-nav,
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.footer-nav a,
.footer-contacts a,
.footer-contacts span {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-contacts a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: rgba(167, 167, 184, 0.72);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--lime);
}

@media (max-width: 1000px) {
  .hero-grid,
  .about-grid,
  .admission-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }

  .about-visual {
    max-width: 560px;
  }

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

  .section-head {
    display: block;
  }

  .section-note {
    margin-top: 14px;
  }

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

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 130px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    margin-left: 0;
    padding-top: 2px;
  }

  .main-nav a {
    padding-inline: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .header-inner > .button {
    margin-left: auto;
  }

  .hero-facts div {
    padding-inline: 18px;
  }

  .floating-card-top {
    left: 0;
  }

  .floating-card-bottom {
    right: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 540px) {
  .shell {
    width: calc(100% - 28px);
  }

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

  .card {
    min-height: 240px;
  }

  .brand-text span {
    display: none;
  }

  .button {
    width: 100%;
  }

  .header-inner > .button {
    width: auto;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-facts div {
    padding-inline: 10px;
  }

  .hero-facts dt {
    font-size: 1.15rem;
  }

  .hero-facts dd {
    font-size: 0.66rem;
  }

  .floating-card {
    display: none;
  }

  .about-badge {
    right: 8px;
    font-size: 0.7rem;
  }

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

/* Legal pages and staff cabinet */

.legal-page,
.staff-page {
  padding: 56px 0 80px;
}

.legal-shell {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
}

.legal-card {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-card h2 {
  margin-top: 34px;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-back:hover {
  color: var(--lime);
}

.staff-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

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

.staff-top h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.staff-top p {
  margin: 0;
  color: var(--muted);
}

.staff-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.staff-toolbar .field {
  flex: 1 1 280px;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.lead-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.lead-table th,
.lead-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.lead-table th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  color: var(--lime);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lead-table tr:last-child td {
  border-bottom: 0;
}

.lead-table td {
  color: var(--muted);
}

.lead-table strong {
  color: var(--text);
}

.staff-empty {
  padding: 34px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
}

.staff-status {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.staff-status.is-error {
  color: #ffb3b3;
}

.staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
