:root {
  --bg: #fffefe;
  --bg-2: #faf8ff;
  --ink: #1d1d28;
  --muted: #565563;

  --graphite: #20202b;
  --graphite-2: #302d3a;
  --champagne: #b7a586;
  --champagne-soft: #efe8dc;
  --porcelain: #fffefd;
  --powder: #f6f7fb;
  --mist: #f0f1f7;
  --blush: #eadde6;
  --violet-soft: #eeeaff;
  --violet-glow: #d9d0ff;

  --glass: rgba(255, 255, 255, .66);
  --glass-strong: rgba(255, 255, 255, .84);
  --line: rgba(42, 39, 58, .085);
  --line-bright: rgba(174, 160, 224, .26);

  --shadow: 0 16px 54px rgba(36, 34, 48, .060);
  --shadow-soft: 0 24px 72px rgba(36, 34, 48, .085);

  --radius-xl: 30px;
  --radius-lg: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.58;
  background:
    radial-gradient(circle at 8% 6%, rgba(224, 218, 255, .24), transparent 36%),
    radial-gradient(circle at 88% 5%, rgba(250, 250, 255, .98), transparent 38%),
    radial-gradient(circle at 84% 88%, rgba(236, 225, 236, .14), transparent 40%),
    linear-gradient(135deg, #ffffff 0%, var(--bg) 54%, var(--bg-2) 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  opacity: .36;
  filter: blur(10px);
}

body::before {
  width: 36vw;
  height: 36vw;
  min-width: 280px;
  min-height: 280px;
  top: -18vw;
  left: -10vw;
  background:
    radial-gradient(circle at 35% 35%, rgba(224,218,255,.38), transparent 46%),
    radial-gradient(circle at 70% 64%, rgba(255,255,255,.94), transparent 54%);
  animation: ambientMove 46s ease-in-out infinite alternate;
}

body::after {
  width: 34vw;
  height: 34vw;
  min-width: 270px;
  min-height: 270px;
  right: -12vw;
  bottom: -16vw;
  background:
    radial-gradient(circle at 34% 35%, rgba(236,225,236,.22), transparent 44%),
    radial-gradient(circle at 68% 65%, rgba(224,218,255,.22), transparent 56%);
  animation: ambientMove 50s ease-in-out infinite alternate-reverse;
}

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

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(49, 46, 42, .065);
  background: rgba(254, 253, 255, .82);
  backdrop-filter: blur(22px) saturate(145%);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-size: .82rem;
  font-weight: 840;
  letter-spacing: .035em;
  background:
    linear-gradient(135deg, rgba(255,255,255,.20), transparent 45%),
    linear-gradient(145deg, var(--graphite), var(--graphite-2));
  box-shadow: 0 14px 32px rgba(35, 35, 43, .15), inset 0 1px 0 rgba(255,255,255,.34);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(238,234,255,.96), rgba(255,255,255,.88), rgba(183,165,134,.24));
  opacity: .88;
}

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

.brand-title {
  font-size: .98rem;
  font-weight: 780;
  letter-spacing: -.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 580;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: 999px;
  color: #4b4741;
  font-size: .87rem;
  font-weight: 660;
  transition:
    transform .95s cubic-bezier(.16, 1, .3, 1),
    background .95s cubic-bezier(.16, 1, .3, 1),
    color .95s cubic-bezier(.16, 1, .3, 1),
    box-shadow .95s cubic-bezier(.16, 1, .3, 1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--graphite);
  background: rgba(255,255,255,.60);
  box-shadow: 0 8px 20px rgba(39, 36, 32, .044);
  transform: translateY(-.4px);
  outline: none;
}

.hero {
  padding: 40px 0 22px;
}

.hero-shell {
  backdrop-filter: blur(18px) saturate(135%);
  position: relative;
  min-height: 232px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(22px, 3.8vw, 38px);
  border: 1px solid rgba(255,255,255,.74);
  border-radius: clamp(26px, 4.4vw, 42px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.80), rgba(255,255,255,.42)),
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.86), transparent 42%);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.42);
  background:
    radial-gradient(circle at 20% 18%, rgba(238,234,255,.36), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(246,247,251,.70), transparent 36%),
    radial-gradient(circle at 50% 94%, rgba(234,221,230,.10), transparent 36%),
    linear-gradient(90deg, transparent 0 49%, rgba(49,46,42,.013) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 0 49%, rgba(49,46,42,.013) 49% 51%, transparent 51%);
  background-size: auto, auto, auto, 76px 76px, 76px 76px;
  mask-image: radial-gradient(circle at 50% 46%, black 0, transparent 80%);
}

.hero-shell::after {
  content: "";
  position: absolute;
  width: 138px;
  height: 138px;
  top: -46px;
  right: 10%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,.94), transparent 18%),
    conic-gradient(from 145deg, rgba(238,234,255,.54), rgba(246,247,251,.64), rgba(183,165,134,.10), rgba(255,255,255,.42), rgba(238,234,255,.54));
  opacity: .70;
  animation: orb 34s ease-in-out infinite alternate;
}

.kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--graphite);
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .065em;
  text-transform: uppercase;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(49, 46, 42, .075);
  box-shadow: 0 10px 26px rgba(39, 36, 32, .036);
}

h1,
.page-title,
.section-title {
  margin: 0;
  letter-spacing: -.042em;
  line-height: 1;
}

h1 {
  max-width: 900px;
  margin-top: 15px;
  font-size: clamp(2.32rem, 5.7vw, 4.9rem);
  font-weight: 690;
}

.title-gradient {
  display: block;
  color: transparent;
  background: linear-gradient(105deg, #20202a 0%, #34313d 48%, #7a6eb4 78%, #9a835f 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-actions,
.action-row,
.stage-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 25px;
}

.btn,
.action-btn,
.stage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 17px;
  border-radius: 999px;
  color: #ffffff;
  font-size: .9rem;
  font-weight: 690;
  background:
    linear-gradient(135deg, rgba(255,255,255,.20), transparent 44%),
    linear-gradient(135deg, var(--graphite), var(--graphite-2));
  border: 1px solid rgba(255,255,255,.50);
  box-shadow: 0 13px 32px rgba(35, 35, 43, .14);
  transition:
    transform .95s cubic-bezier(.16, 1, .3, 1),
    box-shadow .95s cubic-bezier(.16, 1, .3, 1),
    background .95s cubic-bezier(.16, 1, .3, 1),
    border-color .95s cubic-bezier(.16, 1, .3, 1),
    color .95s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

.btn:hover,
.btn:focus-visible,
.action-btn:hover,
.action-btn:focus-visible,
.stage-btn:hover,
.stage-btn:focus-visible {
  transform: translateY(-.45px);
  box-shadow: 0 15px 36px rgba(35, 35, 43, .16);
  outline: none;
}

.btn.alt,
.action-btn.light,
.stage-btn.light {
  color: var(--graphite);
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.44)),
    radial-gradient(circle at 18% 12%, rgba(239,227,207,.42), transparent 36%),
    radial-gradient(circle at 88% 20%, rgba(243,245,248,.58), transparent 36%);
  border-color: rgba(49, 46, 42, .085);
  box-shadow: 0 10px 26px rgba(39, 36, 32, .046);
}

.home-board {
  padding: 32px 0 58px;
}

.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px;
  align-items: start;
}

.list-panel {
  backdrop-filter: blur(18px) saturate(135%);
  min-height: 100%;
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.76);
  background:
    linear-gradient(135deg, rgba(255,255,255,.74), rgba(255,255,255,.42)),
    radial-gradient(circle at 10% 0%, rgba(238,234,255,.30), transparent 38%),
    radial-gradient(circle at 90% 0%, rgba(251,251,255,.86), transparent 40%);
  box-shadow: 0 12px 34px rgba(36, 34, 48, .036);
}

.section {
  padding: 31px 0;
}

.section-head {
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.48rem, 2.4vw, 2.35rem);
  font-weight: 680;
}

.grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.tile {
  backdrop-filter: blur(14px) saturate(130%);
  position: relative;
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.70);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.48)),
    radial-gradient(circle at 7% 50%, rgba(238,234,255,.34), transparent 38%),
    radial-gradient(circle at 95% 50%, rgba(251,251,255,.78), transparent 42%);
  box-shadow: 0 8px 20px rgba(36, 34, 48, .034);
  overflow: hidden;
  transition:
    transform 1s cubic-bezier(.16, 1, .3, 1),
    box-shadow 1s cubic-bezier(.16, 1, .3, 1),
    border-color 1s cubic-bezier(.16, 1, .3, 1),
    background 1s cubic-bezier(.16, 1, .3, 1);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 43%, rgba(255,255,255,.30) 50%, transparent 58%),
    linear-gradient(180deg, transparent, rgba(49,46,42,.012));
  transform: translateX(-135%);
  transition: transform 1.35s cubic-bezier(.16, 1, .3, 1);
}

.tile::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  right: -15px;
  top: -15px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(238,234,255,.58), rgba(246,247,251,.60), rgba(183,165,134,.12));
  opacity: .60;
  transform: rotate(18deg);
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-.5px);
  box-shadow: 0 12px 30px rgba(39, 36, 32, .066);
  border-color: var(--line-bright);
  outline: none;
}

.tile:hover::before,
.tile:focus-visible::before {
  transform: translateX(135%);
}

.tile-title {
  position: relative;
  z-index: 1;
  max-width: 96%;
  margin: 0;
  font-size: clamp(.98rem, 1.1vw, 1.06rem);
  line-height: 1.25;
  letter-spacing: -.006em;
  font-weight: 670;
}

.page-hero {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 44px 0;
}

.page-card,
.olymp-card,
.stage-card {
  backdrop-filter: blur(18px) saturate(135%);
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(25px, 4.6vw, 52px);
  border-radius: clamp(27px, 4.8vw, 48px);
  border: 1px solid rgba(255,255,255,.76);
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.40)),
    radial-gradient(circle at 16% 18%, rgba(238,234,255,.34), transparent 40%),
    radial-gradient(circle at 86% 16%, rgba(251,251,255,.82), transparent 40%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-card {
  min-height: 295px;
}

.page-card::before,
.olymp-card::before,
.stage-card::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 90deg, rgba(238,234,255,.26), rgba(251,251,255,.72), rgba(183,165,134,.06), rgba(255,255,255,.34), rgba(238,234,255,.26));
  animation: slowSpin 54s linear infinite;
}

.page-title {
  position: relative;
  z-index: 1;
  max-width: 930px;
  font-size: clamp(1.86rem, 4.55vw, 4.05rem);
  font-weight: 670;
  color: transparent;
  background: linear-gradient(105deg, #20202a 0%, #34313d 48%, #7a6eb4 78%, #9a835f 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.olymp-card,
.stage-card {
  align-content: center;
  gap: 20px;
  min-height: 430px;
}

.olymp-content,
.stage-content {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  display: grid;
  gap: 20px;
}

.olymp-title,
.stage-title {
  margin: 0;
  color: transparent;
  background: linear-gradient(105deg, #20202a 0%, #34313d 48%, #7a6eb4 78%, #9a835f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(1.82rem, 4.05vw, 3.55rem);
  font-weight: 670;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.stage-heading {
  margin: 8px 0 0;
  color: var(--graphite);
  font-size: clamp(1.12rem, 1.9vw, 1.6rem);
  font-weight: 700;
  letter-spacing: .055em;
}

.stage-row {
  margin-top: -4px;
}

.stage-text {
  max-width: 720px;
  margin: 0 auto;
  color: #474652;
  font-size: 1.04rem;
  line-height: 1.68;
  font-weight: 500;
}

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

.site-footer {
  padding: 25px 0 29px;
  border-top: 1px solid rgba(49, 46, 42, .07);
  background: rgba(255,255,255,.50);
  backdrop-filter: blur(16px);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .88rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-grid a {
  color: var(--graphite);
  font-weight: 680;
}

@keyframes ambientMove {
  from { transform: translate3d(0,0,0) rotate(0deg); }
  to { transform: translate3d(12px, 10px, 0) rotate(5deg); }
}

@keyframes orb {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-8px, 14px, 0) rotate(6deg); }
}

@keyframes slowSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-top: 34px;
  }

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

@media (max-width: 680px) {
  body {
    font-size: 14px;
  }

  .container {
    width: min(var(--max), calc(100% - 22px));
  }

  .nav {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 5px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: .82rem;
  }

  .hero {
    padding: 22px 0 14px;
  }

  .hero-shell {
    min-height: 238px;
    padding: 22px 16px;
  }

  h1 {
    font-size: clamp(2.2rem, 12.2vw, 3.55rem);
  }

  .hero-actions,
  .action-row,
  .stage-row {
    width: 100%;
    flex-direction: column;
  }

  .btn,
  .action-btn,
  .stage-btn {
    width: 100%;
    min-height: 42px;
  }

  .home-board {
    padding: 18px 0 34px;
  }

  .list-panel {
    padding: 16px;
  }

  .grid {
    gap: 9px;
  }

  .tile {
    min-height: 64px;
    padding: 13px 14px;
  }

  .tile-title {
    font-size: .92rem;
  }

  .page-hero {
    min-height: calc(100vh - 68px);
    padding: 29px 0;
  }

  .page-card {
    min-height: 270px;
  }

  .olymp-card,
  .stage-card {
    min-height: 440px;
  }

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

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* =========================================================
   Тестирование: 3 этап олимпиады школьников по педагогике
   ========================================================= */

.test-page {
  min-height: 100vh;
  padding-bottom: 54px;
}

.test-hero {
  padding: clamp(28px, 5vw, 54px) 0 18px;
}

.test-hero-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: clamp(190px, 26vw, 300px);
  padding: clamp(24px, 4vw, 44px);
  text-align: center;
  border-radius: clamp(26px, 4.4vw, 42px);
  border: 1px solid rgba(255,255,255,.76);
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.48)),
    radial-gradient(circle at 20% 10%, rgba(238,234,255,.36), transparent 38%),
    radial-gradient(circle at 90% 0%, rgba(251,251,255,.84), transparent 42%);
  box-shadow: 0 16px 54px rgba(36, 34, 48, .060);
  backdrop-filter: blur(18px) saturate(135%);
  overflow: hidden;
}

.test-title {
  margin: 0;
  color: transparent;
  background: linear-gradient(105deg, #20202a 0%, #34313d 48%, #7a6eb4 78%, #9a835f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2.1rem, 5.2vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 720;
}

.test-lead {
  margin: 0;
  color: #474652;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 680;
}

.test-section {
  padding: clamp(24px, 4vw, 44px) 0;
}

.olimp-test-form {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.test-person-panel,
.test-question,
.test-submit-panel {
  border: 1px solid rgba(255,255,255,.76);
  background:
    linear-gradient(135deg, rgba(255,255,255,.80), rgba(255,255,255,.50)),
    radial-gradient(circle at 10% 0%, rgba(238,234,255,.30), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(251,251,255,.84), transparent 42%);
  box-shadow: 0 12px 34px rgba(36, 34, 48, .040);
  backdrop-filter: blur(18px) saturate(135%);
}

.test-person-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: 28px;
}

.test-field {
  display: grid;
  gap: 8px;
}

.test-field span {
  color: #474652;
  font-size: .86rem;
  font-weight: 720;
}

.test-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: #20202b;
  font: inherit;
  border-radius: 16px;
  border: 1px solid rgba(42,39,58,.12);
  background: rgba(255,255,255,.82);
  outline: none;
  transition:
    border-color .75s cubic-bezier(.16, 1, .3, 1),
    box-shadow .75s cubic-bezier(.16, 1, .3, 1),
    background .75s cubic-bezier(.16, 1, .3, 1);
}

.test-field input:focus {
  border-color: rgba(174,160,224,.52);
  box-shadow: 0 0 0 4px rgba(174,160,224,.16);
  background: rgba(255,255,255,.94);
}

.test-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.test-questions {
  display: grid;
  gap: 14px;
}

.test-question {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: 26px;
}

.test-question legend {
  padding: 0;
  color: #20202b;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.45;
  font-weight: 720;
}

.test-options {
  display: grid;
  gap: 10px;
}

.test-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 52px;
  padding: 13px 14px;
  border-radius: 17px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(42,39,58,.08);
  cursor: pointer;
  transition:
    border-color .75s cubic-bezier(.16, 1, .3, 1),
    background .75s cubic-bezier(.16, 1, .3, 1),
    transform .75s cubic-bezier(.16, 1, .3, 1),
    box-shadow .75s cubic-bezier(.16, 1, .3, 1);
  -webkit-tap-highlight-color: transparent;
}

.test-option:hover {
  transform: translateY(-.3px);
  border-color: rgba(174,160,224,.30);
  background: rgba(255,255,255,.86);
  box-shadow: 0 8px 22px rgba(36, 34, 48, .035);
}

.test-option:has(input:checked) {
  border-color: rgba(122,110,180,.44);
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(238,234,255,.54)),
    #ffffff;
  box-shadow: 0 10px 26px rgba(122,110,180,.10);
}

.test-option input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: .18em;
  accent-color: #7a6eb4;
}

.test-option span {
  color: #3f3e49;
  line-height: 1.48;
  font-weight: 540;
}

.test-submit-panel {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: 28px;
  text-align: center;
}

.test-submit-btn {
  min-width: 230px;
  border: 0;
  cursor: pointer;
}

.test-submit-btn:disabled {
  opacity: .62;
  cursor: wait;
}

.test-help {
  max-width: 760px;
  margin: 0;
  color: #565563;
  font-size: .96rem;
  line-height: 1.55;
}

.test-status {
  width: min(820px, 100%);
  min-height: 0;
  margin-top: 2px;
  padding: 0;
  border-radius: 22px;
  color: transparent;
  font-size: 0;
  line-height: 1.35;
  font-weight: 780;
  text-align: center;
  outline: none;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity .45s ease,
    transform .45s ease,
    padding .45s ease,
    font-size .45s ease;
}

.test-status.is-visible {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 28px);
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  opacity: 1;
  transform: translateY(0);
}

.test-status.success {
  color: #204c38;
  border: 1px solid rgba(47, 96, 71, .24);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, .94), rgba(255,255,255,.78));
  box-shadow: 0 16px 38px rgba(47, 96, 71, .10);
}

.test-status.error {
  color: #783143;
  border: 1px solid rgba(138, 52, 72, .22);
  background:
    linear-gradient(135deg, rgba(255, 241, 245, .96), rgba(255,255,255,.78));
  box-shadow: 0 16px 38px rgba(138, 52, 72, .10);
}

.test-status.info {
  color: #403c58;
  border: 1px solid rgba(122,110,180,.22);
  background:
    linear-gradient(135deg, rgba(245, 243, 255, .96), rgba(255,255,255,.80));
  box-shadow: 0 16px 38px rgba(122,110,180,.10);
}

@media (max-width: 860px) {
  .test-person-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .test-page {
    padding-bottom: 34px;
  }

  .test-hero {
    padding: 22px 0 8px;
  }

  .test-hero-card {
    min-height: 210px;
    padding: 22px 16px;
  }

  .test-submit-btn {
    width: 100%;
    min-width: 0;
  }

  .test-option {
    min-height: 58px;
    padding: 13px 12px;
  }

  .test-status.is-visible {
    min-height: 96px;
    font-size: clamp(1.22rem, 7vw, 1.75rem);
  }
}

/* =========================================================
   Страница кафедры музыкального педагогического образования
   ========================================================= */

.music-page {
  padding-bottom: 54px;
}

.music-hero {
  padding: clamp(28px, 5vw, 54px) 0 18px;
}

.music-hero-card {
  position: relative;
  min-height: clamp(230px, 34vw, 390px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, .80);
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.48)),
    radial-gradient(circle at 18% 16%, rgba(238,234,255,.42), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(251,251,255,.88), transparent 38%),
    radial-gradient(circle at 52% 96%, rgba(183,165,134,.08), transparent 36%);
  box-shadow: 0 18px 58px rgba(36, 34, 48, .062);
  backdrop-filter: blur(20px) saturate(140%);
  overflow: hidden;
  isolation: isolate;
}

.music-hero-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.46);
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(42,39,58,.014) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 0 49%, rgba(42,39,58,.014) 49% 51%, transparent 51%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.52), transparent 72%);
  background-size: 76px 76px, 76px 76px, auto;
  mask-image: radial-gradient(circle at 50% 50%, black 0, transparent 78%);
}

.music-hero-card::after {
  content: "";
  position: absolute;
  width: clamp(150px, 20vw, 260px);
  height: clamp(150px, 20vw, 260px);
  right: -42px;
  top: -52px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.96), transparent 16%),
    conic-gradient(from 145deg, rgba(238,234,255,.58), rgba(251,251,255,.74), rgba(183,165,134,.10), rgba(255,255,255,.42), rgba(238,234,255,.58));
  opacity: .78;
  animation: orb 34s ease-in-out infinite alternate;
}

.music-eyebrow {
  margin: 0 0 14px;
  color: #464351;
  font-size: clamp(.78rem, 1.1vw, .92rem);
  font-weight: 760;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.music-title {
  max-width: 980px;
  margin: 0;
  color: transparent;
  background: linear-gradient(105deg, #1d1d28 0%, #34313d 48%, #7a6eb4 78%, #9a835f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(2rem, 5.2vw, 5.05rem);
  font-weight: 720;
  line-height: .98;
  letter-spacing: -.055em;
}

.music-section {
  padding: clamp(28px, 4.2vw, 54px) 0;
}

.music-content {
  display: grid;
  gap: 20px;
}

.music-section-head {
  display: grid;
  gap: 8px;
}

.music-section-kicker {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  color: #514b70;
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .075em;
  text-transform: uppercase;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(174,160,224,.20);
  box-shadow: 0 8px 20px rgba(36, 34, 48, .034);
}

.music-section h2 {
  margin: 0;
  color: #1d1d28;
  font-size: clamp(1.72rem, 3.4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 700;
}

.music-lead,
.music-text {
  max-width: 940px;
  margin: 0;
  color: #44424f;
  font-size: clamp(1.02rem, 1.25vw, 1.12rem);
  line-height: 1.74;
  font-weight: 500;
}

.pdf-panel,
.form-panel,
.contact-card,
.graduate-card {
  border: 1px solid rgba(255,255,255,.74);
  background:
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,255,255,.46)),
    radial-gradient(circle at 9% 0%, rgba(238,234,255,.30), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(251,251,255,.82), transparent 42%);
  box-shadow: 0 12px 34px rgba(36, 34, 48, .040);
  backdrop-filter: blur(18px) saturate(135%);
}

.pdf-panel {
  display: grid;
  gap: 16px;
  padding: clamp(14px, 2.3vw, 24px);
  border-radius: 28px;
}

.pdf-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pdf-panel-head h3 {
  margin: 0 0 5px;
  color: #242430;
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.pdf-panel-head p {
  max-width: 680px;
  margin: 0;
  color: #565563;
  font-size: .96rem;
  line-height: 1.55;
}

.soft-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 999px;
  color: #262431;
  font-size: .88rem;
  font-weight: 720;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(174,160,224,.22);
  box-shadow: 0 8px 22px rgba(36, 34, 48, .040);
  transition:
    transform .9s cubic-bezier(.16, 1, .3, 1),
    box-shadow .9s cubic-bezier(.16, 1, .3, 1),
    border-color .9s cubic-bezier(.16, 1, .3, 1);
}

.soft-link:hover,
.soft-link:focus-visible {
  transform: translateY(-.5px);
  box-shadow: 0 12px 28px rgba(36, 34, 48, .058);
  border-color: rgba(174,160,224,.34);
  outline: none;
}

.pdf-viewer {
  width: 100%;
  height: min(78vh, 820px);
  min-height: 560px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(42,39,58,.08);
}

.graduate-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 18px);
  align-items: start;
}

.graduate-card {
  grid-column: span 6;
  display: grid;
  gap: 11px;
  padding: 12px;
  border-radius: 26px;
}

.graduate-card-wide {
  grid-column: span 8;
}

.graduate-card-portrait {
  grid-column: span 4;
}

.graduate-card-large {
  grid-column: span 7;
}

.graduate-card-photo {
  grid-column: span 5;
}

.graduate-card p {
  margin: 0;
  padding: 0 4px 3px;
  color: #454350;
  font-size: .94rem;
  line-height: 1.35;
  font-weight: 660;
}

.media-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.76), rgba(238,234,255,.34)),
    #f7f6fb;
  box-shadow: inset 0 0 0 1px rgba(42,39,58,.08);
}

.ratio-wide {
  aspect-ratio: 16 / 9;
}

.ratio-portrait {
  width: min(100%, 410px);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}

.ratio-photo {
  aspect-ratio: 4 / 3;
}

.media-shell video,
.media-shell img {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

.media-shell video {
  background: #111;
}

.form-panel {
  padding: clamp(12px, 2.2vw, 20px);
  border-radius: 28px;
  overflow: hidden;
}

.yandex-form-frame {
  width: 100%;
  min-height: 720px;
  display: block;
  border: 0;
  border-radius: 22px;
  background: #fff;
}

.music-section-contacts {
  padding-bottom: clamp(42px, 6vw, 78px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.contact-card {
  display: grid;
  gap: 7px;
  min-height: 130px;
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: 26px;
  transition:
    transform .9s cubic-bezier(.16, 1, .3, 1),
    box-shadow .9s cubic-bezier(.16, 1, .3, 1),
    border-color .9s cubic-bezier(.16, 1, .3, 1);
}

.contact-card:hover,
.contact-card:focus-visible {
  transform: translateY(-.5px);
  border-color: rgba(174,160,224,.34);
  box-shadow: 0 14px 36px rgba(36, 34, 48, .060);
  outline: none;
}

.contact-card span {
  color: #6b6877;
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.contact-card strong {
  color: #20202b;
  font-size: clamp(1.04rem, 1.6vw, 1.32rem);
  line-height: 1.22;
  letter-spacing: -.02em;
}

.contact-card em {
  color: #565563;
  font-size: .95rem;
  line-height: 1.45;
  font-style: normal;
}

@media (max-width: 980px) {
  .graduate-card,
  .graduate-card-wide,
  .graduate-card-portrait,
  .graduate-card-large,
  .graduate-card-photo {
    grid-column: span 12;
  }

  .graduate-card-portrait {
    max-width: 500px;
    justify-self: center;
    width: 100%;
  }

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

@media (max-width: 680px) {
  .music-page {
    padding-bottom: 34px;
  }

  .music-hero {
    padding: 22px 0 8px;
  }

  .music-hero-card {
    min-height: 245px;
    padding: 24px 16px;
  }

  .music-eyebrow {
    font-size: .68rem;
    line-height: 1.35;
  }

  .music-title {
    font-size: clamp(2.05rem, 12vw, 3.25rem);
    line-height: 1.02;
  }

  .music-section {
    padding: 28px 0;
  }

  .music-section h2 {
    font-size: clamp(1.65rem, 9vw, 2.45rem);
  }

  .music-lead,
  .music-text {
    font-size: 1rem;
    line-height: 1.68;
  }

  .pdf-panel-head {
    display: grid;
  }

  .soft-link {
    width: 100%;
  }

  .pdf-viewer {
    height: 68vh;
    min-height: 430px;
    border-radius: 18px;
  }

  .graduate-gallery {
    gap: 12px;
  }

  .graduate-card {
    padding: 10px;
    border-radius: 22px;
  }

  .media-shell {
    border-radius: 17px;
  }

  .yandex-form-frame {
    min-height: 780px;
    border-radius: 18px;
  }

  .contact-card {
    min-height: auto;
  }
}
/* =========================================================
   Точечные правки страницы кафедры: PDF, симметрия визиток,
   обложки и корректное отображение вертикального видео
   ========================================================= */

.pdf-panel-head {
  align-items: center;
}

.pdf-panel-head h3 {
  margin-bottom: 0;
  font-size: clamp(1.24rem, 2vw, 1.72rem);
  color: #20202b;
}

.pdf-viewer {
  background: #ffffff;
}

.graduate-gallery-balanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
}

.graduate-gallery-balanced .graduate-card,
.graduate-gallery-balanced .graduate-card-wide,
.graduate-gallery-balanced .graduate-card-portrait,
.graduate-gallery-balanced .graduate-card-large,
.graduate-gallery-balanced .graduate-card-photo {
  grid-column: auto;
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.ratio-showcase,
.graduate-gallery-balanced .ratio-wide,
.graduate-gallery-balanced .ratio-portrait,
.graduate-gallery-balanced .ratio-photo {
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  margin: 0;
}

.graduate-gallery-balanced .media-shell {
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(238,234,255,.32)),
    #f8f7fc;
}

.graduate-gallery-balanced .media-shell video,
.graduate-gallery-balanced .media-shell img {
  width: 100%;
  height: 100%;
  display: block;
}

.graduate-gallery-balanced .media-shell video {
  object-fit: contain;
  background: #111111;
}

.graduate-gallery-balanced .media-shell img {
  object-fit: contain;
  background:
    linear-gradient(135deg, rgba(255,255,255,.80), rgba(238,234,255,.36)),
    #f8f7fc;
}

.graduate-gallery-balanced .graduate-card p {
  text-align: center;
}

@media (max-width: 780px) {
  .graduate-gallery-balanced {
    grid-template-columns: 1fr;
  }

  .ratio-showcase,
  .graduate-gallery-balanced .ratio-wide,
  .graduate-gallery-balanced .ratio-portrait,
  .graduate-gallery-balanced .ratio-photo {
    aspect-ratio: 16 / 9;
  }
}
/* =========================================================
   Правки v3: логотип, мобильный PDF без панели, фото-ссылка,
   компактная форма, блок визиток без подписей
   ========================================================= */

.music-logo {
  width: clamp(54px, 7vw, 74px);
  height: clamp(54px, 7vw, 74px);
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(174,160,224,.22);
  box-shadow: 0 10px 26px rgba(36, 34, 48, .050);
}

.pdf-js-viewer {
  height: min(78vh, 820px);
  min-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(250,249,255,.62)),
    #ffffff;
  scroll-behavior: smooth;
}

.pdf-page-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 auto 14px;
}

.pdf-page-wrap:last-child {
  margin-bottom: 0;
}

.pdf-page-canvas {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(36, 34, 48, .075);
}

.pdf-reader-status {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #474652;
  font-size: 1.02rem;
  line-height: 1.55;
  text-align: center;
  font-weight: 600;
}

.pdf-reader-error {
  color: #5a3340;
}

.graduate-gallery-balanced .graduate-card {
  gap: 0;
  padding: 12px;
}

.photo-open-link {
  cursor: zoom-in;
  transition:
    transform .9s cubic-bezier(.16, 1, .3, 1),
    box-shadow .9s cubic-bezier(.16, 1, .3, 1),
    border-color .9s cubic-bezier(.16, 1, .3, 1);
}

.photo-open-link:hover,
.photo-open-link:focus-visible {
  transform: translateY(-.5px);
  box-shadow: 0 14px 34px rgba(36, 34, 48, .070);
  border-color: rgba(174,160,224,.34);
  outline: none;
}

.yandex-form-frame {
  min-height: 540px;
  height: 570px;
}

@media (max-width: 680px) {
  .music-logo {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
    border-radius: 18px;
  }

  .pdf-js-viewer {
    height: 72vh;
    min-height: 430px;
    padding: 10px;
  }

  .pdf-page-wrap {
    margin-bottom: 10px;
  }

  .pdf-page-canvas {
    border-radius: 11px;
  }

  .yandex-form-frame {
    min-height: 585px;
    height: 585px;
  }
}
/* =========================================================
   Оптимизация производительности: lazy PDF, lazy form, video preload none
   ========================================================= */

.pdf-js-viewer {
  contain: content;
}

.pdf-page-placeholder {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.82), rgba(245,243,255,.56)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(42,39,58,.06);
}

.pdf-page-loading {
  color: #6a6876;
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: .02em;
}

.pdf-page-canvas {
  content-visibility: auto;
  contain-intrinsic-size: 900px 510px;
}

.form-lazy {
  position: relative;
}

.form-loader {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #565563;
  font-size: .98rem;
  line-height: 1.55;
  text-align: center;
  font-weight: 600;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(245,243,255,.48)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(42,39,58,.06);
}

.form-lazy iframe {
  display: none;
}

.form-lazy.is-loaded .form-loader {
  display: none;
}

.form-lazy.is-loaded iframe {
  display: block;
}

.graduate-gallery-balanced .media-shell video {
  background:
    linear-gradient(135deg, rgba(32,32,43,.96), rgba(48,45,58,.96));
}

@media (max-width: 680px) {
  .pdf-page-canvas {
    contain-intrinsic-size: 420px 237px;
  }

  .form-loader {
    min-height: 140px;
    padding: 20px;
  }
}
/* =========================================================
   Оптимизация видео: одновременно активно только одно видео
   ========================================================= */

.graduate-gallery video {
  will-change: auto;
}

.graduate-gallery-balanced .media-shell {
  contain: content;
}
/* =========================================================
   Раздел «Программа творческих испытаний»
   ========================================================= */

.creative-exam-panel {
  display: grid;
  gap: 18px;
  margin-top: clamp(22px, 3.4vw, 36px);
  padding: clamp(18px, 3vw, 28px);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.76);
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.48)),
    radial-gradient(circle at 10% 0%, rgba(238,234,255,.34), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(251,251,255,.82), transparent 42%);
  box-shadow: 0 12px 34px rgba(36, 34, 48, .040);
  backdrop-filter: blur(18px) saturate(135%);
}

.creative-exam-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.creative-exam-link {
  min-width: 190px;
}

.creative-exam-note {
  max-width: 860px;
}

.creative-exam-note a {
  color: #302d3a;
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgba(174,160,224,.45);
  text-underline-offset: 4px;
}

.creative-exam-note a:hover,
.creative-exam-note a:focus-visible {
  text-decoration-color: rgba(174,160,224,.9);
  outline: none;
}

@media (max-width: 680px) {
  .creative-exam-panel {
    padding: 16px;
    border-radius: 24px;
  }

  .creative-exam-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .creative-exam-link {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   Служебные классы: скрытие элементов и центрирование кнопок
   ========================================================= */

.is-hidden {
  display: none !important;
}

.stage-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.stage-actions .stage-btn {
  flex: 0 1 220px;
  max-width: 260px;
}

@media (max-width: 680px) {
  .stage-actions {
    flex-direction: column;
  }

  .stage-actions .stage-btn {
    width: 100%;
    max-width: 100%;
    flex: 0 1 auto;
  }
}
