.regulamin-page {
  position: relative;
  overflow: clip;
  background: linear-gradient(180deg, rgba(221, 243, 255, 0.32), rgba(255, 253, 248, 0) 22rem);
}

.regulamin-document {
  min-width: 0;
}

.regulamin-hero {
  padding-block: var(--space-8) var(--space-7);
}

.regulamin-hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(0, 1fr);
  min-width: 0;
  min-height: 25rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 5vw, var(--space-8));
  background:
    radial-gradient(circle at 80% 28%, rgba(201, 148, 50, 0.18), transparent 8rem),
    radial-gradient(circle at 88% 72%, rgba(75, 43, 114, 0.13), transparent 15rem),
    linear-gradient(120deg, rgba(221, 243, 255, 0.76), rgba(247, 244, 238, 0.78) 58%, rgba(233, 221, 247, 0.76));
}

.regulamin-hero__copy,
.regulamin-hero__atmosphere,
.regulamin-rule__content,
.regulamin-info-card,
.regulamin-link-card,
.regulamin-contact-card,
.regulamin-contact-scope {
  min-width: 0;
}

.regulamin-hero__copy {
  width: min(100%, 700px);
}

.regulamin-hero__date {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  border-bottom: 1px solid var(--color-gold-500);
  padding-bottom: var(--space-3);
  color: var(--color-amethyst-700);
  font-size: var(--text-sm);
  font-weight: 700;
}

.regulamin-calendar {
  position: relative;
  width: 1.15rem;
  height: 1.1rem;
  flex: 0 0 1.15rem;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.regulamin-calendar::before,
.regulamin-calendar::after {
  position: absolute;
  top: -0.23rem;
  width: 2px;
  height: 0.4rem;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.regulamin-calendar::before { left: 0.25rem; }
.regulamin-calendar::after { right: 0.25rem; }

.regulamin-hero__atmosphere {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100%;
}

.regulamin-hero__atmosphere::before,
.regulamin-hero__atmosphere::after,
.regulamin-hero__atmosphere span {
  position: absolute;
  display: block;
  border: 1px solid rgba(201, 148, 50, 0.48);
  border-radius: 50%;
  content: "";
}

.regulamin-hero__atmosphere::before {
  top: 8%;
  right: 4%;
  width: clamp(12rem, 22vw, 19rem);
  height: clamp(12rem, 22vw, 19rem);
}

.regulamin-hero__atmosphere::after {
  right: 16%;
  bottom: 9%;
  width: 5.5rem;
  height: 5.5rem;
  border-color: rgba(76, 169, 216, 0.58);
}

.regulamin-hero__atmosphere span:first-child {
  top: 26%;
  right: 26%;
  width: 0.65rem;
  height: 0.65rem;
  border: 0;
  background: var(--color-gold-500);
  box-shadow: 0 0 0 0.38rem rgba(201, 148, 50, 0.14);
}

.regulamin-hero__atmosphere span:last-child {
  right: 8%;
  bottom: 23%;
  width: 1.1rem;
  height: 1.1rem;
  border-color: rgba(75, 43, 114, 0.48);
}

.regulamin-section {
  padding-block: clamp(var(--space-7), 7vw, var(--space-9));
}

.regulamin-section .container {
  min-width: 0;
}

.regulamin-identity {
  background: rgba(247, 244, 238, 0.55);
}

.regulamin-identity__heading,
.regulamin-rules__heading,
.regulamin-links__heading,
.regulamin-contact__heading {
  width: min(100%, 680px);
}

.regulamin-identity__notice {
  display: flex;
  width: min(100%, 780px);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: linear-gradient(135deg, rgba(221, 243, 255, 0.92), rgba(255, 253, 248, 0.88));
}

.regulamin-identity__notice > *,
.regulamin-identity__copy > *,
.regulamin-materials__intro > *,
.regulamin-rights__own > *,
.regulamin-rights__third-party-copy > *,
.regulamin-changes__panel > * {
  margin: 0;
}

.regulamin-identity__copy {
  display: flex;
  width: min(100%, 680px);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.regulamin-important {
  color: var(--color-amethyst-700);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.regulamin-important span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.regulamin-important span::before {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--color-gold-500);
  content: "";
}

.regulamin-rules__list {
  display: flex;
  width: min(100%, 832px);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.regulamin-rule {
  display: grid;
  grid-template-columns: 72px minmax(0, 760px);
  min-width: 0;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.regulamin-rule:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.regulamin-rule__number {
  width: 72px;
  margin: 0;
  color: var(--color-gold-500);
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
}

.regulamin-rule__content {
  width: min(100%, 760px);
}

.regulamin-rule__content > :last-child {
  margin-bottom: 0;
}

.regulamin-materials {
  background: linear-gradient(180deg, rgba(221, 243, 255, 0.3), rgba(255, 253, 248, 0));
}

.regulamin-materials__intro {
  display: flex;
  width: min(100%, 680px);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.regulamin-materials__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  min-width: 0;
  margin-top: var(--space-7);
}

.regulamin-materials__cards > * {
  width: 100%;
  min-width: 0;
}

.regulamin-info-card {
  height: 100%;
}

.regulamin-info-card .card__content,
.regulamin-link-card .card__content,
.regulamin-contact-card .card__content {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-3);
}

.regulamin-info-card .card__content > *,
.regulamin-link-card .card__content > *,
.regulamin-contact-card .card__content > * {
  margin: 0;
}

.regulamin-card-label {
  color: var(--color-amethyst-700);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.regulamin-card-label--coral {
  color: var(--color-coral-900);
}

.regulamin-rights__own {
  display: flex;
  width: min(100%, 680px);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.regulamin-rights__own ul {
  margin: 0;
}

.regulamin-rights__third-party {
  width: min(100%, 760px);
  min-width: 0;
  margin-top: var(--space-7);
  padding: clamp(var(--space-5), 5vw, var(--space-7));
}

.regulamin-rights__third-party-copy {
  display: flex;
  width: min(100%, 650px);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
}

.regulamin-rights__third-party-copy p {
  color: var(--color-pearl-050);
}

.regulamin-links {
  background: rgba(247, 244, 238, 0.68);
}

.regulamin-links__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  min-width: 0;
  margin-top: var(--space-6);
}

.regulamin-links__cards > * {
  width: 100%;
  min-width: 0;
}

.regulamin-link-card {
  min-height: 100%;
}

.regulamin-line-icon {
  position: relative;
  display: block;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  color: var(--color-amethyst-700);
}

.regulamin-line-icon--link::before,
.regulamin-line-icon--link::after {
  position: absolute;
  width: 1.1rem;
  height: 0.65rem;
  border: 1.5px solid currentColor;
  border-radius: 1rem;
  content: "";
}

.regulamin-line-icon--link::before {
  top: 0.42rem;
  left: 0.12rem;
  transform: rotate(-42deg);
}

.regulamin-line-icon--link::after {
  right: 0.12rem;
  bottom: 0.42rem;
  transform: rotate(-42deg);
}

.regulamin-line-icon--refresh {
  border: 1.5px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
}

.regulamin-line-icon--refresh::after {
  position: absolute;
  top: -0.12rem;
  right: 0.1rem;
  width: 0;
  height: 0;
  border-top: 0.34rem solid transparent;
  border-bottom: 0.34rem solid transparent;
  border-left: 0.5rem solid currentColor;
  content: "";
}

.regulamin-changes__panel {
  display: flex;
  width: min(100%, 780px);
  min-width: 0;
  flex-direction: column;
  gap: var(--space-4);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold-500);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-pearl-100), rgba(221, 243, 255, 0.58));
  padding: clamp(var(--space-5), 4vw, var(--space-6));
  box-shadow: var(--shadow-glass);
}

.regulamin-changes__date {
  width: fit-content;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  color: var(--color-amethyst-700);
  font-size: var(--text-sm);
  font-weight: 700;
}

.regulamin-contact {
  padding-bottom: clamp(var(--space-8), 8vw, var(--space-10));
}

.regulamin-contact__cards {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-5);
  min-width: 0;
  margin-top: var(--space-6);
}

.regulamin-contact__cards > * {
  width: 100%;
  min-width: 0;
}

.regulamin-contact-card__email {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
}

.regulamin-contact-card__email span {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.regulamin-contact-card__email a {
  overflow-wrap: anywhere;
  color: var(--color-amethyst-700);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 700;
}

.regulamin-contact-scope {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: rgba(221, 243, 255, 0.64);
}

.regulamin-contact-scope > * {
  margin: 0;
}

@media (max-width: 56.24rem) {
  .regulamin-materials__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .regulamin-materials__cards > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 51.24rem) {
  .regulamin-hero__panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .regulamin-hero__atmosphere {
    display: none;
  }
}

@media (max-width: 47.49rem) {
  .regulamin-hero {
    padding-block: var(--space-7) var(--space-6);
  }

  .regulamin-hero__panel {
    min-height: 0;
    padding: var(--space-5);
  }

  .regulamin-hero__copy {
    width: 100%;
  }

  .regulamin-hero__date {
    width: 100%;
  }

  .regulamin-section {
    padding-block: var(--space-7);
  }

  .regulamin-identity__notice {
    width: 100%;
    padding: var(--space-5);
  }

  .regulamin-identity__copy,
  .regulamin-rules__list,
  .regulamin-materials__intro,
  .regulamin-rights__own,
  .regulamin-rights__third-party,
  .regulamin-changes__panel {
    width: 100%;
  }

  .regulamin-rule {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
  }

  .regulamin-rule__number {
    width: auto;
    font-size: 1.3rem;
  }

  .regulamin-rule__content {
    width: 100%;
  }

  .regulamin-materials__cards,
  .regulamin-links__cards,
  .regulamin-contact__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .regulamin-materials__cards > :last-child {
    grid-column: auto;
  }

  .regulamin-rights__third-party {
    padding: var(--space-5);
  }

  .regulamin-contact-scope {
    padding: var(--space-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .regulamin-hero__atmosphere,
  .regulamin-hero__atmosphere * {
    animation: none;
  }
}
