/* Contest Rules Page (B5, B5.1) */

/* ---- CSS reset inherited from styles.css ---- */

body {
  font-family: var(--font-base);
  background: linear-gradient(180deg, #A7D2C4 0%, #A7D2C4 15%, #98C8BA 85%, #A7D2C4 100%);
  background-color: #A7D2C4;
  min-height: 100vh;
}

.contest-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 40px;
}

/* Header */
.contest-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  animation: fadeInUp 0.5s ease-out;
}

.contest-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #000;
}

/* Hero Section */
.contest-hero {
  background: white;
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 20px;
  animation: fadeInUp 0.5s ease-out 0.1s backwards;
}

.hero-icon {
  font-size: 72px;
  margin-bottom: 15px;
}

.contest-hero h2 {
  font-size: 28px;
  font-weight: 600;
  color: #000;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 16px;
  color: #666;
}

/* Hero: только слоган под заголовком страницы */
.contest-hero .hero-subtitle:first-child:last-child {
  font-size: 18px;
  line-height: 1.45;
  color: #444;
  margin: 0;
}

/* Contest Section */
.contest-section {
  background: white;
  border-radius: 20px;
  padding: 25px 20px;
  margin-bottom: 15px;
  animation: fadeInUp 0.5s ease-out calc(var(--delay, 0) * 0.05s) backwards;
}

.contest-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #000;
  margin-bottom: 15px;
}

/* Info Box */
.info-box {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 15px;
}

.info-box p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 8px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box strong {
  color: #000;
}

/* Prizes Grid */
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.prize-card {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;
  color: white;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 165, 0, 0.2);
}

.prize-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 28px rgba(255, 165, 0, 0.3);
}

.prize-card.special {
  background: linear-gradient(135deg, #D47D99 0%, #c96d89 100%);
  grid-column: 1 / -1;
}

.prize-place {
  font-size: 36px;
  margin-bottom: 8px;
}

.prize-title {
  font-size: 14px;
  margin-bottom: 8px;
  opacity: 0.95;
}

.prize-value {
  font-size: 18px;
  font-weight: 600;
}

/* Rules List */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rule-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.rule-number {
  width: 32px;
  height: 32px;
  background: #D47D99;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.rule-text {
  flex: 1;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

.rule-text strong {
  color: #000;
  display: block;
  margin-bottom: 3px;
}

/* Legal Text */
.legal-text {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.legal-text strong {
  color: #000;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item[open] {
  background: #f0f0f0;
}

.faq-item summary {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  list-style: none;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 25px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* CTA Section */
/* Скачивание полных правил (DOCX) */
.contest-doc-download .doc-download-intro {
  font-size: 15px;
  color: #555;
  line-height: 1.45;
  margin: 0 0 16px;
}

.doc-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 20px;
  border-radius: 16px;
  border: 2px solid #2d7a5e;
  background: #f0faf6;
  color: #1a5c44;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.doc-download-link:hover {
  background: #dff5ec;
  transform: translateY(-1px);
}

.doc-download-link:active {
  transform: translateY(0);
}

.cta-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  animation: fadeInUp 0.5s ease-out 0.5s backwards;
}

.btn-participate {
  background: linear-gradient(135deg, #D47D99 0%, #c96d89 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 18px 32px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(212, 125, 153, 0.3);
}

.btn-participate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(212, 125, 153, 0.4);
}

.btn-participate:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: #000;
  border: 2px solid #000;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 380px) {
  .contest-header h1 {
    font-size: 20px;
  }

  .contest-hero h2 {
    font-size: 24px;
  }

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

  .prize-card.special {
    grid-column: auto;
  }

  .btn-participate {
    font-size: 16px;
    padding: 16px 28px;
  }
}
