@font-face {
  font-family: "HSE Sans";
  src: url("assets/fonts/HSESans-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "HSE Sans";
  src: url("assets/fonts/HSESans-SemiBold.otf") format("opentype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "HSE Sans";
  src: url("assets/fonts/HSESans-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --hse-navy: #102D69;
  --hse-blue: #1658da;
  --hse-orange: #e8682c;
  --hse-red: #ed1846;
  --hse-bg: #f4f7fc;
  --hse-surface: rgba(255, 255, 255, 0.92);
  --hse-line: #d3ddf1;
  --hse-text: #112245;
  --hse-muted: #5d6e91;
  --shadow: 0 20px 55px rgba(15, 45, 105, 0.12);
  --shadow-sm: 0 8px 24px rgba(15, 45, 105, 0.08);
  --radius: clamp(20px, 2.4vw, 28px);
  --radius-sm: 16px;
  --space-section: clamp(18px, 6vw, 34px);
  --partner-marquee-duration: 40s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "HSE Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--hse-text);
  overflow-x: clip;
  background:
    radial-gradient(ellipse at top right, rgba(22, 88, 218, 0.14), transparent 38%),
    radial-gradient(ellipse at bottom left, rgba(232, 104, 44, 0.06), transparent 42%),
    linear-gradient(180deg, #edf3ff 0%, #f7f9fd 30%, #f2f5fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 45, 105, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 45, 105, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

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

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

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) 0 56px;
}

.page-shell__content {
  display: grid;
  gap: var(--space-section);
  min-width: 0;
}

.partner-strip_top {
  margin-bottom: calc(var(--space-section) * -0.55);
}

.footer {
  margin-top: calc(var(--space-section) * -0.4);
}

.eyebrow,
.member-card__eyebrow,
.partner-strip__label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--hse-blue);
}

.hero,
.feature-card,
.registration-copy,
.form-card {
  animation: lift-in 0.7s ease both;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(20px, 2.4vw, 26px);
  overflow: hidden;
  border: 1px solid rgba(15, 45, 105, 0.1);
  border-radius: clamp(24px, 3vw, 34px);
  background: var(--hse-surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero::before {
  content: "";
  position: absolute;
  top: -72px;
  right: -72px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 88, 218, 0.2) 0%, transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 88, 218, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 88, 218, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at bottom left, black, transparent 60%);
  pointer-events: none;
  opacity: 0.6;
}

.eyebrow_term {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px dashed rgba(22, 88, 218, 0.3);
  border-radius: 8px;
  background: rgba(22, 88, 218, 0.06);
  font-family: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;
  letter-spacing: 0.06em;
  color: var(--hse-blue);
  width: fit-content;
}

.eyebrow_term::before {
  content: "▍";
  color: var(--hse-orange);
  animation: blink 1.2s steps(2) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__case-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--hse-line);
  border-radius: 999px;
  background: #fff;
  font-family: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--hse-navy);
  width: fit-content;
  text-transform: uppercase;
}

.hero__case-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hse-orange);
  box-shadow: 0 0 0 4px rgba(232, 104, 44, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}

.hero__case-flag {
  color: var(--hse-blue);
  font-size: 0.72rem;
}

.hse-brandmark {
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid rgba(15, 45, 105, 0.12);
  background: #fff;
  width: fit-content;
}

.hse-brandmark__square {
  display: grid;
  place-content: center;
  align-content: center;
  gap: 1px;
  width: 56px;
  flex: 0 0 auto;
  padding: 8px 0;
  background: var(--hse-navy);
  color: #fff;
  font-family: "HSE Sans", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.hse-brandmark__square span {
  display: block;
}

.hse-brandmark__text {
  display: grid;
  align-content: center;
  gap: 1px;
  padding: 8px 14px;
  line-height: 1.1;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--hse-navy);
  text-transform: uppercase;
}

.hse-brandmark__text em {
  margin-top: 4px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--hse-navy);
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero > .hero__content,
.hero > .hero__visual {
  position: relative;
  z-index: 2;
}

.hero__stripes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(15, 45, 105, 0.08) 0,
    rgba(15, 45, 105, 0.08) 14px,
    transparent 14px,
    transparent 28px
  );
  mask-image: linear-gradient(135deg, black 0%, transparent 38%);
  opacity: 0.7;
}

.section-heading::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 14px;
  background:
    linear-gradient(90deg,
      var(--hse-navy) 0 33%,
      var(--hse-navy) 33% 66%,
      var(--hse-navy) 66% 100%);
}

/* Brandbook square/pixel block — uses geometric square motif */
.hse-square-block {
  display: inline-grid;
  grid-template-columns: repeat(4, 8px);
  grid-auto-rows: 8px;
  gap: 2px;
  margin-top: 14px;
}

.hse-square-block i {
  display: block;
  background: var(--hse-navy);
}

.hse-square-block i:nth-child(3n) { background: var(--hse-blue); }
.hse-square-block i:nth-child(5n) { background: var(--hse-red); }
.hse-square-block i:nth-child(7n) { background: var(--hse-orange); }
.hse-square-block i:nth-child(4n+2) { opacity: 0.35; }

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 2vw, 26px);
  width: 28px;
  height: 4px;
  background: var(--hse-navy);
}

.feature-card {
  position: relative;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--hse-red);
  border-right: 2px solid var(--hse-red);
  opacity: 0.65;
  pointer-events: none;
}

.feature-card:nth-child(2n)::after { border-color: var(--hse-orange); }
.feature-card:nth-child(3n)::after { border-color: var(--hse-blue); }

.feature-card_no-corner::after {
  content: none;
}

.partner-strip {
  position: relative;
}

.partner-strip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(180deg, var(--hse-navy) 0 50%, var(--hse-orange) 50% 100%);
}

@keyframes pulse {
  50% { transform: scale(1.25); }
}

.crow-stamp {
  position: absolute;
  top: -54px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px 8px;
  border: 2px dashed rgba(232, 104, 44, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--hse-orange);
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.crow-stamp img {
  width: 44px;
  height: 44px;
  filter: brightness(0) saturate(100%) invert(45%) sepia(78%) saturate(1421%) hue-rotate(346deg) brightness(91%) contrast(91%);
}

.crow-stamp span {
  font-family: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2vw, 24px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: var(--hse-navy);
}

.hero__lead {
  max-width: 32rem;
  margin: 0;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.65;
  color: var(--hse-muted);
}

.hero__org-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-left: 4px;
  margin-top: -18px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.hero__org-mark-label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hse-muted);
  white-space: nowrap;
}

.hero__org-mark img {
  display: block;
  width: min(5rem, 18vw);
  height: auto;
}

.hero__org-mark:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.hero__org-mark:focus-visible {
  outline: 2px solid var(--hse-blue);
  outline-offset: 6px;
  border-radius: 10px;
}

.hero__actions,
.hero__stats,
.form-actions,
.footer {
  display: flex;
  flex-wrap: wrap;
}

.hero__actions {
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.button:disabled:hover {
  transform: none;
}

.button_primary {
  color: #fff;
  background: var(--hse-navy);
  box-shadow: 0 12px 28px rgba(15, 45, 105, 0.2);
}

.button_primary:hover {
  background: var(--hse-blue);
}

.button_secondary {
  color: var(--hse-navy);
  background: transparent;
  border-color: var(--hse-line);
}

.button_secondary:hover {
  border-color: var(--hse-blue);
  color: var(--hse-blue);
}

.hero__stats {
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__stats li {
  padding: 8px 14px;
  border: 1px solid var(--hse-line);
  border-radius: 999px;
  background: rgba(244, 247, 252, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hse-navy);
}

.hero__visual {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.hero__logo-card {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(220px, 32vw, 360px);
  padding: 22px;
  border-radius: clamp(20px, 2.4vw, 30px);
  background: linear-gradient(180deg, #0f2d69 0%, #17367a 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* HSE square/pixel pattern — brandbook decorative motif */
.hse-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 70%);
  z-index: 0;
}

.hero__logo-card > img {
  position: relative;
  z-index: 1;
}

/* L-shaped corner brackets — HSE «уголки» */
.hse-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 2;
}

.hse-corner_tl {
  top: 14px;
  left: 14px;
  border-top: 2px solid var(--hse-red);
  border-left: 2px solid var(--hse-red);
}

.hse-corner_br {
  bottom: 14px;
  right: 14px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  opacity: 0.6;
}

/* HSE round seal */
.hse-seal {
  position: absolute;
  bottom: 18px;
  left: 18px;
  width: clamp(72px, 9vw, 92px);
  aspect-ratio: 1;
  color: rgba(255, 255, 255, 0.92);
  z-index: 3;
  animation: seal-spin 30s linear infinite;
}

.hse-seal svg {
  width: 100%;
  height: 100%;
}

.hse-seal__core {
  position: absolute;
  inset: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: transparent;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  animation: seal-spin 30s linear infinite reverse;
}

.hse-seal__core strong {
  display: block;
}

@keyframes seal-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hse-seal,
  .hse-seal__core {
    animation: none;
  }
}

.hero__logo-card img {
  width: min(100%, 360px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
}

.story-card {
  position: relative;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid var(--hse-line);
  border-radius: 22px;
  background: #fff;
}

.story-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--hse-blue) 0%, var(--hse-orange) 100%);
}

.story-card__label,
.story-card p {
  padding-left: 16px;
}

.story-card__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hse-blue);
}

.story-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--hse-muted);
}

.main-stack {
  display: grid;
  gap: var(--space-section);
}

.section {
  padding-top: 0;
  position: relative;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.section-heading h2,
.registration-copy h2,
.form-card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--hse-navy);
}

.section-heading p:not(.eyebrow),
.registration-copy > p:not(.eyebrow),
.feature-card p,
.form-card__hint,
.form-note,
.registration-copy__label,
.form-status,
.footer {
  color: var(--hse-muted);
}

.section-heading p:not(.eyebrow),
.registration-copy > p:not(.eyebrow),
.feature-card p {
  margin: 0;
  line-height: 1.65;
}

.feature-grid,
.member-card__grid,
.choice-row,
.form-row,
.section_registration {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.registration-copy,
.form-card {
  border: 1px solid rgba(15, 45, 105, 0.1);
  border-radius: var(--radius);
  background: var(--hse-surface);
  box-shadow: var(--shadow);
}

.form-card_closed .registration-form {
  display: none !important;
}

.form-card__closed-note {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(232, 104, 44, 0.28);
  border-radius: 14px;
  background: rgba(232, 104, 44, 0.08);
  color: var(--hse-navy);
  font-weight: 600;
  line-height: 1.45;
}

/* Easter egg: BB bug -- bottom-right, smaller, clickable */
#bb-easter {
  display: block;
  position: fixed;
  bottom: 16px;
  right: 16px;
  left: auto;
  width: 90px;
  z-index: 9999;
  transition: transform 0.28s ease, opacity 0.28s ease;
  animation: bb-bob 4s ease-in-out infinite;
  pointer-events: auto;
  cursor: pointer;
}

#bb-easter img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.18));
  border-radius: 8px;
}

#bb-easter.bb-easter--tucked {
  transform: translateY(24px) scale(0.96);
  opacity: 0.85;
}

@keyframes bb-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.feature-card {
  padding: clamp(20px, 2.4vw, 26px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(15, 45, 105, 0.16);
}

.feature-card h3,
.member-card__header h3 {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 1.6vw, 1.24rem);
  line-height: 1.2;
  color: var(--hse-navy);
}

.section_registration {
  grid-template-columns: minmax(260px, 0.4fr) minmax(0, 0.6fr);
  align-items: start;
}

.registration-copy,
.form-card {
  padding: clamp(22px, 2.6vw, 30px);
}

.registration-copy {
  position: sticky;
  top: 20px;
}

.info-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0 28px;
  list-style: none;
}

.info-list li {
  position: relative;
  padding-left: 18px;
  font-weight: 600;
}

.info-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hse-blue);
}

.registration-copy__contacts {
  display: grid;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 45, 105, 0.12);
}

.registration-copy__contacts a {
  width: fit-content;
  font-weight: 600;
  color: var(--hse-blue);
}

.registration-copy__contacts a:hover,
.footer a:hover {
  color: var(--hse-navy);
}

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

.form-card__hint {
  max-width: 15rem;
  margin: 0;
  text-align: right;
  line-height: 1.5;
}

.registration-form,
.field-group,
.members-grid {
  display: grid;
  gap: 20px;
}

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

.field-group {
  padding: 0;
  margin: 0;
  border: 0;
}

.field-group legend {
  margin-bottom: 12px;
  padding: 0;
  font-weight: 600;
  color: var(--hse-navy);
}

.choice-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.choice {
  position: relative;
  display: flex;
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--hse-line);
  border-radius: 18px;
  background: var(--hse-bg);
  font-weight: 600;
  color: var(--hse-muted);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.choice input:checked + span {
  border-color: rgba(22, 88, 218, 0.5);
  background: rgba(22, 88, 218, 0.08);
  box-shadow: inset 0 0 0 1px rgba(22, 88, 218, 0.45);
  color: var(--hse-navy);
}

.form-row {
  grid-template-columns: minmax(0, 1.3fr) minmax(140px, 0.7fr);
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hse-navy);
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--hse-line);
  border-radius: 16px;
  background: #fff;
  color: var(--hse-text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--hse-navy) 50%),
    linear-gradient(135deg, var(--hse-navy) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field input::placeholder {
  color: #8695b5;
}

.field input:focus,
.field select:focus,
.choice input:focus + span,
.member-card__captain:focus-within {
  outline: none;
  border-color: rgba(22, 88, 218, 0.55);
  box-shadow: 0 0 0 4px rgba(22, 88, 218, 0.14);
}

.field input:hover,
.field select:hover {
  border-color: rgba(22, 88, 218, 0.4);
}

.autocomplete {
  position: relative;
}

.autocomplete__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  overflow: hidden;
  border: 1px solid rgba(15, 45, 105, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 45, 105, 0.16);
  backdrop-filter: blur(14px);
}

.autocomplete__panel[hidden] {
  display: none;
}

.autocomplete__list {
  padding: 6px;
  margin: 0;
  list-style: none;
}

.autocomplete__option {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.autocomplete__option:hover,
.autocomplete__option.is-active {
  background: rgba(22, 88, 218, 0.08);
}

.autocomplete__title {
  font-weight: 600;
  color: var(--hse-navy);
}

.autocomplete__meta {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--hse-muted);
}

.autocomplete__note {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--hse-muted);
}

.member-card {
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--hse-line);
  border-radius: 22px;
  background: var(--hse-bg);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.member-card:not(.is-hidden):hover {
  box-shadow: 0 14px 32px rgba(15, 45, 105, 0.08);
}

.member-card.is-hidden {
  display: none;
}

.member-card__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.member-card__eyebrow {
  margin-bottom: 6px;
  color: var(--hse-blue);
}

.member-card__header h3 {
  margin-bottom: 0;
}

.member-card__captain {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hse-line);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  color: var(--hse-navy);
  cursor: pointer;
}

.member-card__captain input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--hse-blue);
}

.member-card__grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

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

.form-note {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.consent-field {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--hse-line);
  border-radius: 18px;
  background: var(--hse-bg);
  line-height: 1.55;
  color: var(--hse-muted);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.consent-field:hover {
  border-color: rgba(22, 88, 218, 0.4);
}

.consent-field:focus-within {
  outline: none;
  border-color: rgba(22, 88, 218, 0.55);
  box-shadow: 0 0 0 4px rgba(22, 88, 218, 0.14);
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--hse-blue);
}

.consent-field__text {
  display: block;
}

.consent-field__link {
  color: var(--hse-blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.consent-field__link:hover {
  color: var(--hse-navy);
}

.form-actions {
  gap: 14px;
  align-items: center;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  line-height: 1.5;
}

.form-status[data-state="success"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(17, 113, 60, 0.18);
  border-radius: 999px;
  background: rgba(17, 113, 60, 0.08);
  color: #11713c;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(17, 113, 60, 0.12);
}

.form-status[data-state="error"] {
  color: #be461b;
}

.footer {
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  margin-top: 0;
  border-top: 1px solid rgba(15, 45, 105, 0.12);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer p {
  margin: 0;
}

.section_rules {
  display: grid;
  gap: 24px;
}

.rules-card {
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid rgba(15, 45, 105, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.95)),
    radial-gradient(circle at top right, rgba(22, 88, 218, 0.08), transparent 34%);
  box-shadow: var(--shadow);
}

.rules-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: rule;
}

.rules-list li {
  position: relative;
  padding: 0.05rem 0 0.05rem 48px;
  line-height: 1.65;
  color: var(--hse-text);
  counter-increment: rule;
}

.rules-list li::before {
  content: counter(rule);
  position: absolute;
  top: 0.15rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--hse-navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.rules-card__note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 45, 105, 0.12);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--hse-muted);
}

/* === Slim partner strip === */
.partner-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border: 1px solid rgba(15, 45, 105, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.partner-strip__label {
  flex: 0 0 auto;
  color: var(--hse-muted);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.partner-strip__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.partner-strip__track {
  display: flex;
  width: max-content;
  gap: 56px;
  align-items: center;
  animation: partner-marquee-scroll var(--partner-marquee-duration) linear infinite;
  will-change: transform;
}

.partner-strip__group {
  display: flex;
  gap: 56px;
  align-items: center;
  flex: 0 0 auto;
}

.partner-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  color: var(--hse-muted);
  font-size: 1.02rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.78;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.partner-strip__item:hover {
  opacity: 1;
}

.partner-strip__item img {
  width: 64px;
  height: 56px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.2s ease;
}

.partner-strip__item:hover img {
  filter: grayscale(0);
}

.partner-strip:hover .partner-strip__track {
  animation-play-state: paused;
}

@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes partner-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--partner-marquee-shift, 0px)));
  }
}

@media (max-width: 1080px) {
  .hero,
  .section_registration {
    grid-template-columns: 1fr;
  }

  .registration-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: calc(100% - 20px);
  }

  .hero {
    padding: 22px;
    border-radius: 24px;
  }

  .hero__visual {
    order: -1;
  }

  .hero__logo-card {
    min-height: 220px;
  }

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

  .form-card__hint {
    max-width: none;
    text-align: left;
  }

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

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

  .button {
    width: 100%;
  }

  .hero__actions {
    width: 100%;
  }

  .rules-list li {
    padding-left: 42px;
  }

  .rules-list li::before {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .partner-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-radius: 20px;
    padding: 12px 14px;
  }

  .partner-strip__label {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .hero__stats li {
    font-size: 0.88rem;
    padding: 6px 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
