/* ===================================================================
   HERO
   =================================================================== */

.hero {
  padding: 48px 0 0;
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow--hero {
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(15px, calc(4.7vw - 1.3px), 48px);
  letter-spacing: -0.5px;
  max-width: 1020px;
  margin-bottom: 14px;
}

.hero__slogan {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  font-size: clamp(24px, 6.6vw, 42px);
  letter-spacing: -0.5px;
  line-height: 1.2;
  max-width: 480px;
  margin-bottom: 10px;
}

@media (min-width: 1024px) {
  .hero__title {
    max-width: 1020px;
  }

  .hero__slogan {
    font-size: clamp(40px, 4.4vw, 58px);
    max-width: 1200px;
    white-space: nowrap;
  }
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(16px, 3.4vw, 32px);
  letter-spacing: -0.4px;
  max-width: 820px;
  margin-bottom: 22px;
}

.hero__desc {
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 44px;
  gap: 14px;
}

.hero__actions .btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
}

@media (min-width: 560px) {
  .hero__actions {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }

  .hero__actions .btn {
    width: auto;
  }
}

/* hero visual (landscape photo + description/actions/prize card) */

.hero__visual {
  position: relative;
  padding: 8px 0 64px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  display: none;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, #fff 0%, rgba(255, 255, 255, 0.55) 10%, rgba(255, 255, 255, 0.2) 26%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 76%, #fff 100%),
    linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0) 88%, #fff 100%);
}

.hero__visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* mobile hero image card (distinct block, per mobile design) */

.hero__mobile-image {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 2 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 4px 0 28px;
}

.hero__mobile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

@media (min-width: 768px) {
  .hero__mobile-image {
    display: none;
  }

  .hero__bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
  }
}

/* prize card */

.prize-card {
  width: 100%;
  max-width: 400px;
  background: rgba(70, 96, 56, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 40px 24px 32px;
  color: #fff;
  text-align: center;
}

.prize-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(250, 204, 21, 0.22);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.prize-card__icon .icon {
  width: 34px;
  height: 34px;
}

.prize-card__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.prize-card__amount {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: clamp(36px, 8vw, 48px);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.prize-card__amount span {
  font-size: 1em;
}

.prize-card__text {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  padding-top: 20px;
  margin-bottom: 22px;
}

.prize-card__text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
}

.prize-card__text strong {
  color: #fff;
}

.prize-card__bank {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.prize-card__bank img {
  height: 26px;
  width: auto;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 64px;
  }

  .prize-card {
    max-width: 620px;
    padding: 44px 56px 40px;
    background: linear-gradient(160deg, rgba(70, 96, 56, 0.42), rgba(35, 48, 28, 0.34));
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
  }

  .prize-card__icon {
    background: rgba(250, 204, 21, 0.28);
  }

  .prize-card__bank img {
    height: 30px;
  }
}

/* ===================================================================
   ABOUT
   =================================================================== */

.about-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ===================================================================
   STAGES
   =================================================================== */

.stages {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 8px;
}

.stages__line {
  display: none;
}

@media (min-width: 900px) {
  .stages {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .stages__line {
    display: block;
    position: absolute;
    top: 112px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
  }
}

.stage-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage-card__photo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 4px solid var(--color-primary-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  background: #fff;
}

.stage-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-card .chip {
  background: rgba(70, 96, 56, 0.08);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}

.stage-card__title {
  font-family: var(--font-accent);
  font-size: 20px;
  margin-bottom: 12px;
}

.stage-card__text {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 22px;
  flex: 1;
}

.stage-card__date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg-soft);
  border: 1px solid rgba(222, 225, 230, 0.7);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text);
}

.stage-card__date .icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* ===================================================================
   REQUIREMENTS
   =================================================================== */

.req-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .req-grid {
    grid-template-columns: 1.6fr 1fr;
  }
}

.req-card,
.req-tech,
.req-forbidden {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 20px;
}

@media (min-width: 640px) {
  .req-card,
  .req-tech,
  .req-forbidden {
    padding: 36px;
  }
}

.req-card {
  border: 4px solid var(--color-border);
}

.req-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.req-card__head .icon {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.req-forbidden .req-card__head .icon {
  color: var(--color-red);
}

.req-card__head h3 {
  font-family: var(--font-accent);
  font-size: 20px;
  color: var(--color-primary);
}

.req-forbidden .req-card__head h3 {
  color: var(--color-red);
}

.req-tech .req-card__head h3 {
  color: var(--color-text);
}

.req-list {
  counter-reset: none;
  display: flex;
  flex-direction: column;
}

.req-list > li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(222, 225, 230, 0.6);
}

.req-list > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.req-list > li:first-child {
  padding-top: 0;
}

.req-list__num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background: rgba(70, 96, 56, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.req-list strong {
  display: block;
  font-family: var(--font-accent);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.req-list p {
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.req-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.req-tech {
  border: 1px solid var(--color-border);
}

.req-tech__label {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
}

.req-tech__formats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.chip--outline {
  background: var(--color-bg-soft-2);
}

.req-tech__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 18px;
}

.req-tech__note {
  font-size: 13px;
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.req-forbidden {
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: #fffafa;
}

.req-forbidden__list li {
  position: relative;
  padding-left: 18px;
  color: rgba(220, 38, 38, 0.92);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.req-forbidden__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
}

.req-forbidden__list li:last-child {
  margin-bottom: 0;
}

/* ===================================================================
   DOCS
   =================================================================== */

.docs-section {
  border-top: 1px solid var(--color-border);
}

.docs-section__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.docs-section__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: rgba(70, 96, 56, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.docs-section__icon .icon {
  width: 38px;
  height: 38px;
}

.docs-section .section-subtitle {
  max-width: 620px;
}

.docs-section__btn {
  margin-top: 32px;
  padding: 15px 32px;
}

.docs-section__meta {
  margin-top: 16px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.docs-section__meta--muted {
  font-style: italic;
}

/* ===================================================================
   DOC PREVIEW MODAL
   =================================================================== */

.doc-preview {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.doc-preview[hidden] {
  display: none;
}

.doc-preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.doc-preview__panel {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: min(90vh, 900px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: docPreviewIn 0.25s ease-out;
}

@keyframes docPreviewIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.doc-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  flex-shrink: 0;
}

.doc-preview__title {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.doc-preview__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

.doc-preview__header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.doc-preview__close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.doc-preview__close:hover {
  color: var(--color-text);
  background: var(--color-bg-soft-2);
}

.doc-preview__close .icon {
  width: 20px;
  height: 20px;
}

.doc-preview__body {
  flex: 1;
  overflow-y: auto;
  background: #f3f4f6;
  padding: 20px;
  -webkit-overflow-scrolling: touch;
}

.doc-preview__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 240px;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 15px;
  padding: 24px;
}

.doc-preview__state[hidden] {
  display: none;
}

.doc-preview__state--error .icon {
  width: 40px;
  height: 40px;
  color: #dc2626;
}

.doc-preview__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: docSpin 0.8s linear infinite;
}

@keyframes docSpin {
  to { transform: rotate(360deg); }
}

.doc-preview__document {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 48px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
  color: #1f2937;
  font-size: 15px;
  line-height: 1.65;
}

.doc-preview__document h1,
.doc-preview__document h2,
.doc-preview__document h3 {
  font-family: var(--font-accent);
  color: var(--color-text);
  margin: 1.4em 0 0.6em;
  line-height: 1.3;
}

.doc-preview__document h1 { font-size: 1.5rem; margin-top: 0; }
.doc-preview__document h2 { font-size: 1.25rem; }
.doc-preview__document h3 { font-size: 1.1rem; }

.doc-preview__document p {
  margin: 0 0 0.85em;
}

.doc-preview__document ul,
.doc-preview__document ol {
  margin: 0 0 1em 1.25em;
  padding: 0;
}

.doc-preview__document li {
  margin-bottom: 0.35em;
}

.doc-preview__document table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 14px;
}

.doc-preview__document th,
.doc-preview__document td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.doc-preview__document th {
  background: #f9fafb;
  font-weight: 600;
}

.doc-preview__footer {
  display: none;
  padding: 14px 16px;
  border-top: 1px solid var(--color-border);
  background: #fff;
  flex-shrink: 0;
}

.doc-preview__footer .btn {
  gap: 8px;
}

.doc-preview__footer .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 767px) {
  .doc-preview {
    padding: 0;
    align-items: stretch;
  }

  .doc-preview__panel {
    max-width: none;
    max-height: none;
    height: 100%;
    border-radius: 0;
    animation: docPreviewSlideUp 0.28s ease-out;
  }

  @keyframes docPreviewSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .doc-preview__header {
    padding: 14px 16px;
  }

  .doc-preview__title {
    font-size: 16px;
  }

  .doc-preview__download-desktop {
    display: none;
  }

  .doc-preview__body {
    padding: 12px;
  }

  .doc-preview__document {
    padding: 24px 20px;
    font-size: 14.5px;
    border-radius: 6px;
  }

  .doc-preview__footer {
    display: block;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }
}

@media (min-width: 768px) {
  .doc-preview__footer {
    display: none !important;
  }
}
