.subpage-hero {
  min-height: clamp(380px, 72vh, 760px);
}

.subpage-hero-link {
  text-decoration: none;
  cursor: pointer;
}

.subpage-hero-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  z-index: 2;
  pointer-events: none;
}

.subpage-hero-link:hover::after,
.subpage-hero-link:focus-visible::after {
  border-color: rgba(255, 240, 214, 0.9);
  background-color: rgba(62, 1, 76, 0.06);
}

.subpage-hero-link:focus-visible {
  outline: none;
}

.subpage-hero .hero-content {
  gap: 18px;
  width: min(100%, 980px);
  padding-inline: 20px;
}

.subpage-kicker {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #3e014c;
}

.subpage-hero-title {
  margin: 0;
  font-family: "Righteous", sans-serif;
  font-size: clamp(56px, 12vw, 132px);
  line-height: 0.92;
  color: #fff0d6;
  text-transform: uppercase;
}

.subpage-hero-subtitle {
  margin: 0;
  max-width: 760px;
  font-family: "Bellota", system-ui;
  font-size: clamp(22px, 3.3vw, 34px);
  line-height: 1.3;
  color: #3e014c;
}

.subpage-panel {
  text-align: center;
  padding-inline: 20px;
}

.team-section {
  padding-inline: 20px;
  padding-block: var(--section-space);
}

.team-shell {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 36px;
  border: 3px solid #a069c1;
  background:
    radial-gradient(circle at 16% 18%, rgba(160, 105, 193, 0.26), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(255, 240, 214, 0.08), transparent 22%),
    linear-gradient(135deg, #4d0a5f 0%, #3e014c 45%, #2f0039 100%);
  box-shadow: 0 18px 40px rgba(28, 0, 35, 0.22);
  position: relative;
  overflow: hidden;
}

.team-shell::before,
.team-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 240, 214, 0.14);
  pointer-events: none;
}

.team-shell::before {
  width: min(28vw, 280px);
  aspect-ratio: 1;
  left: -110px;
  bottom: -120px;
  box-shadow: 0 0 34px rgba(160, 105, 193, 0.22);
}

.team-shell::after {
  width: min(24vw, 220px);
  aspect-ratio: 1;
  right: -80px;
  top: -80px;
  box-shadow: 0 0 28px rgba(160, 105, 193, 0.18);
}

.team-heading {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  margin: 0 auto clamp(30px, 4vw, 44px);
  text-align: center;
}

.team-kicker {
  margin: 0 0 12px;
  font-family: "Bellota", system-ui;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 240, 214, 0.82);
}

.team-title {
  margin: 0 0 16px;
  font-family: "Righteous", sans-serif;
  font-size: 38px;
  line-height: 1;
  color: #fff0d6;
}

.team-intro {
  margin: 0;
  font-family: "Bellota", system-ui;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.6;
  color: rgba(255, 246, 224, 0.84);
}

.team-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 3vw, 34px);
}

.team-member {
  flex: 0 1 258px;
  max-width: 258px;
}

.team-member-link {
  display: block;
  text-align: center;
  text-decoration: none;
}

.team-member-link:focus-visible {
  outline: none;
}

.team-member-portrait {
  width: min(100%, 246px);
  aspect-ratio: 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 240, 214, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(160, 105, 193, 0.82), rgba(62, 1, 76, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 214, 0.14),
    0 0 30px rgba(160, 105, 193, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-member-portrait::before,
.team-member-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.team-member-portrait::before {
  background-image: var(--team-default);
  opacity: 1;
}

.team-member-portrait::after {
  background-image: var(--team-hover);
  opacity: 0;
}

.team-member-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.team-member-image-hover {
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.team-member-image-default {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.team-member:hover .team-member-portrait,
.team-member-link:focus-visible .team-member-portrait {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 214, 0.22),
    0 0 42px rgba(160, 105, 193, 0.36);
}

.team-member:hover .team-member-portrait::before,
.team-member-link:focus-visible .team-member-portrait::before {
  opacity: 0;
  transform: scale(1.03);
}

.team-member:hover .team-member-portrait::after,
.team-member-link:focus-visible .team-member-portrait::after {
  opacity: 1;
  transform: scale(1.03);
}

.team-member:hover .team-member-image-hover,
.team-member-link:focus-visible .team-member-image-hover {
  opacity: 1;
  transform: scale(1.03);
}

.team-member:hover .team-member-image-default,
.team-member-link:focus-visible .team-member-image-default {
  opacity: 0;
  transform: scale(1.03);
}

.team-member h3 {
  margin: 0 0 8px;
  font-family: "Righteous", sans-serif;
  font-size: 24px;
  line-height: 1.08;
  color: #fff0d6;
}

.team-member p {
  margin: 0;
  font-family: "Bellota", system-ui;
  font-size: 16px;
  line-height: 1.35;
  color: rgba(255, 246, 224, 0.76);
}

.subpage-card-grid,
.subpage-contact-grid {
  width: min(100%, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.subpage-card,
.subpage-contact-card {
  background-color: #3e014c;
  color: #fff6e0;
  border: 3px solid #a069c1;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 18px 40px rgba(28, 0, 35, 0.22);
  text-align: left;
}

.subpage-card h3,
.subpage-contact-card h3 {
  margin: 0 0 12px;
  font-family: "Righteous", sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1;
  color: #fff6e0;
}

.subpage-card p,
.subpage-contact-card p,
.subpage-contact-card a {
  margin: 0;
  font-family: "Bellota", system-ui;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.6;
  color: #fff6e0;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.subpage-contact-card a:hover {
  color: #ffb0e0;
}

.subpage-document-wrap {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.subpage-document-frame {
  width: 100%;
  min-height: 72vh;
  border: 0;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(28, 0, 35, 0.2);
}

.subpage-note {
  width: min(100%, 980px);
  margin: 24px auto 0;
  font-family: "Bellota", system-ui;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.6;
  color: #3e014c;
}

.subpage-actions {
  padding-inline: 20px;
}

.subpage-button-row {
  width: min(100%, 1200px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 24px);
}

.subpage-button {
  font-size: clamp(24px, 3.6vw, 40px);
  padding: clamp(18px, 2.4vw, 24px) clamp(28px, 5vw, 58px);
  white-space: normal;
}

.subpage-button.subpage-button-secondary {
  background-color: transparent;
  color: #fff0d6;
  border-color: #fff0d6;
}

.subpage-button.subpage-button-secondary::after {
  border-color: #3e014c;
}

.subpage-button.subpage-button-secondary:hover {
  background-color: rgba(62, 1, 76, 0.14);
}

.regulament-panel {
  padding-inline: 20px;
}

.regulament-sheet {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  border: 3px solid #a069c1;
  background: #fff6e0;
  color: #3e014c;
  text-align: left;
  box-shadow: 0 18px 40px rgba(28, 0, 35, 0.2);
}

.regulament-sheet + .regulament-sheet {
  margin-top: 24px;
}

.regulament-sheet-compact {
  padding: clamp(22px, 3vw, 30px);
}

.regulament-toc {
  margin: 0;
  padding-left: 1.4rem;
  column-count: 2;
  column-gap: 40px;
}

.regulament-toc li {
  break-inside: avoid;
  margin-bottom: 10px;
  font-family: "Bellota", system-ui;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.5;
}

.regulament-toc a {
  color: #3e014c;
  text-decoration: none;
}

.regulament-toc a:hover {
  color: #a069c1;
}

.regulament-chapter {
  margin: 0;
  font-family: "Righteous", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  text-transform: uppercase;
}

.regulament-section-title {
  margin: 8px 0 0;
  font-family: "Righteous", sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

.regulament-section-block + .regulament-section-block {
  margin-top: 28px;
}

.regulament-subsection {
  margin: 26px 0 0;
  font-family: "Righteous", sans-serif;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.2;
  text-transform: uppercase;
}

.regulament-subsection-label {
  display: block;
  margin-bottom: 6px;
  color: #a069c1;
  font-size: 0.82em;
  letter-spacing: 0.08em;
}

.regulament-article {
  margin-top: 22px;
}

.regulament-article-title {
  margin: 0 0 10px;
  font-family: "Righteous", sans-serif;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.2;
}

.regulament-article p,
.regulament-article li,
.regulament-intro,
.regulament-table {
  font-family: "Bellota", system-ui;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.65;
}

.regulament-article p {
  margin: 0 0 12px;
}

.regulament-article p:last-child {
  margin-bottom: 0;
}

.regulament-article ul {
  margin: 12px 0;
  padding-left: 1.4rem;
}

.regulament-article li + li {
  margin-top: 6px;
}

.regulament-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
}

.regulament-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: rgba(160, 105, 193, 0.08);
}

.regulament-table th,
.regulament-table td {
  padding: 14px 16px;
  border: 1px solid rgba(62, 1, 76, 0.2);
  vertical-align: top;
}

.regulament-table th {
  background: #3e014c;
  color: #fff6e0;
  font-family: "Righteous", sans-serif;
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.35;
  text-align: left;
}

.regulament-table td {
  color: #3e014c;
}

.regulament-table tbody tr:nth-child(even) {
  background: rgba(62, 1, 76, 0.04);
}

@media (max-width: 900px) {
  .subpage-hero .hero-content {
    gap: 14px;
  }

  .subpage-hero-title {
    font-size: clamp(46px, 11vw, 88px);
  }

  .team-member {
    flex-basis: 280px;
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .subpage-panel,
  .team-section,
  .subpage-actions,
  .regulament-panel {
    padding-inline: 16px;
  }

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

  .subpage-document-frame {
    min-height: 60vh;
    border-radius: 22px;
  }

  .subpage-button-row {
    flex-direction: column;
    align-items: center;
  }

  .subpage-button {
    width: min(100%, 440px);
  }

  .team-shell {
    border-radius: 28px;
    padding: 24px 18px 30px;
  }

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

  .team-member {
    flex: none;
    max-width: none;
    min-width: 0;
  }

  .team-grid > .team-member:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 280px);
  }

  .regulament-toc {
    column-count: 1;
  }

  .regulament-sheet {
    border-radius: 24px;
  }

  .regulament-table {
    min-width: 640px;
  }
}

@media (max-width: 560px) {
  .subpage-kicker {
    font-size: 16px;
    letter-spacing: 0.18em;
  }

  .subpage-hero .hero-content {
    gap: 10px;
    padding-inline: 12px;
  }

  .subpage-hero-title {
    font-size: clamp(40px, 15vw, 64px);
  }

  .subpage-hero-subtitle {
    font-size: clamp(18px, 5.4vw, 24px);
  }

  .subpage-card,
  .subpage-contact-card,
  .regulament-sheet {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .subpage-card h3,
  .subpage-contact-card h3 {
    font-size: clamp(20px, 7vw, 28px);
  }

  .subpage-card p,
  .subpage-contact-card p,
  .subpage-contact-card a {
    font-size: 18px;
    line-height: 1.55;
  }

  .subpage-button {
    width: 100%;
  }

  .team-grid {
    gap: 20px 10px;
  }

  .team-member {
    max-width: none;
  }

  .team-grid > .team-member:last-child:nth-child(odd) {
    width: min(100%, 200px);
  }

  .team-member-portrait {
    width: min(100%, 160px);
    margin-bottom: 14px;
  }

  .team-member h3 {
    margin-bottom: 6px;
    font-size: clamp(16px, 4.4vw, 20px);
  }

  .team-member p {
    font-size: 14px;
    line-height: 1.3;
  }

  .regulament-table {
    min-width: 560px;
  }
}

@media (max-width: 420px) {
  .subpage-panel,
  .team-section,
  .subpage-actions,
  .regulament-panel {
    padding-inline: 12px;
  }

  .team-shell {
    padding: 20px 14px 24px;
    border-radius: 22px;
  }

  .team-title {
    font-size: 30px;
  }

  .team-grid {
    gap: 18px 8px;
  }

  .team-grid > .team-member:last-child:nth-child(odd) {
    width: min(100%, 168px);
  }

  .team-member-portrait {
    width: min(100%, 128px);
  }

  .team-member h3 {
    font-size: clamp(15px, 4.8vw, 18px);
  }

  .team-member p {
    font-size: 13px;
  }

  .regulament-toc {
    padding-left: 1.1rem;
  }

  .regulament-table {
    min-width: 520px;
  }

  .regulament-table th,
  .regulament-table td {
    padding: 12px;
  }
}
