/* ================================================
   SECTION PAGES — Shared CSS
   Школьная Пора · Разделы
   ================================================ */

/* --- HEADER --- */
.section-header {
  background: white;
  padding: 18px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}
.section-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-logo {
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--zab-blue);
  text-decoration: none;
  transition: color 0.3s;
}
.section-logo:hover { color: var(--zab-red); }
.section-back {
  font-weight: 600;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s, transform 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.section-back:hover { color: var(--text-dark); transform: translateX(-4px); }

/* --- SECTION HERO --- */
.section-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
}
/* --- SCRAPBOOK SUBPAGE HERO --- */
.subpage-hero {
  padding-top: 140px; /* Account for fixed header */
}

/* EMOJI STICKERS (For subpage heroes) */
.emoji-sticker {
  position: absolute;
  width: 90px;
  height: 90px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: var(--shadow-sticker);
  border: 4px solid white;
  z-index: 2;
  will-change: transform;
}
.emoji-sticker::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Base positional classes for 4 stickers in hero */
.sticker-1 { top: 15%; left: 10%; }
.sticker-2 { top: 25%; right: 12%; }
.sticker-3 { bottom: 20%; left: 15%; }
.sticker-4 { bottom: 15%; right: 15%; }

/* Mobile adjustments */
@media (max-width: 992px) {
  .emoji-sticker { width: 70px; height: 70px; font-size: 2.2rem; }
  .sticker-1 { top: 10%; left: 5%; }
  .sticker-2 { top: 15%; right: 5%; }
  .sticker-3 { bottom: 10%; left: 5%; }
  .sticker-4 { bottom: 15%; right: 5%; }
}
@media (max-width: 576px) {
  .emoji-sticker { width: 60px; height: 60px; font-size: 1.8rem; }
  .sticker-1 { top: 5%; left: 2%; }
  .sticker-2 { top: 10%; right: 2%; }
  .sticker-3 { bottom: 5%; left: 2%; }
  .sticker-4 { bottom: 10%; right: 2%; }
}

.section-hero-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: white;
  position: relative;
  z-index: 2;
}
.section-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--text-dark);
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 0 rgba(255,255,255,0.8);
}
.section-hero-desc {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  line-height: 1.6;
}

/* Hero color themes */
.section-hero--blue { background: linear-gradient(180deg, #DBEAFE 0%, var(--bg-paper) 100%); }
.section-hero--green { background: linear-gradient(180deg, #D1FAE5 0%, var(--bg-paper) 100%); }
.section-hero--red { background: linear-gradient(180deg, #FEE2E2 0%, var(--bg-paper) 100%); }
.section-hero--purple { background: linear-gradient(180deg, #EDE9FE 0%, var(--bg-paper) 100%); }
.section-hero--gold { background: linear-gradient(180deg, #FEF3C7 0%, var(--bg-paper) 100%); }

/* --- SECTION BODY --- */
.section-body {
  padding: 60px 0 100px;
}

/* --- SECTION CARDS GRID --- */
.section-cards-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text-dark);
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: -0.01em;
}
.section-cards-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 48px;
}
.section-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.section-card {
  background: #fdfdfc;
  border-radius: 8px 8px 12px 12px;
  padding: 40px 32px 32px;
  box-shadow: 2px 4px 15px rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.03);
}
.section-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 6px 12px 24px rgba(0,0,0,0.1);
  z-index: 10;
}
.section-card-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 2px 4px 10px rgba(0,0,0,0.08);
  border: 3px solid white;
  transform: rotate(-6deg);
  transition: transform 0.3s;
}
.section-card:hover .section-card-icon {
  transform: rotate(4deg) scale(1.1);
}
.section-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
  text-transform: none;
  color: var(--text-dark);
}
.section-card p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
  flex-grow: 1;
}
.section-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  margin-bottom: 16px;
  background: white;
  color: var(--text-dark);
  border: 1px dashed rgba(0,0,0,0.15);
  box-shadow: 1px 2px 4px rgba(0,0,0,0.03);
  transform: rotate(-1.5deg);
  border-radius: 2px;
}

/* Scrapbook Tape / Accent */
.section-card::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 70px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  backdrop-filter: blur(4px);
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.5);
}
.section-card:nth-child(even)::before { transform: translateX(-50%) rotate(3deg); }
.section-card:nth-child(3n)::before { transform: translateX(-50%) rotate(-4deg); }

/* Tape colored versions based on section-card modifiers */
.section-card--blue::before { background-color: rgba(59, 130, 246, 0.2); }
.section-card--green::before { background-color: rgba(16, 185, 129, 0.2); }
.section-card--red::before { background-color: rgba(239, 68, 68, 0.2); }
.section-card--gold::before { background-color: rgba(245, 158, 11, 0.2); }
.section-card--purple::before { background-color: rgba(139, 92, 246, 0.2); }

/* --- CHECKLIST BLOCK --- */
.checklist-block {
  background: white;
  border-radius: var(--radius-card);
  padding: 48px 40px;
  box-shadow: var(--shadow-paper);
  position: relative;
  margin-bottom: 60px;
  border: 1px solid rgba(28, 25, 23, 0.05);
}
.checklist-block h2 {
  font-size: 1.8rem;
  margin-bottom: 32px;
  color: var(--text-dark);
  text-transform: none;
  letter-spacing: -0.01em;
}
.checklist-items {
  list-style: none;
  columns: 2;
  column-gap: 48px;
}
.checklist-items li {
  padding: 12px 0 12px 36px;
  position: relative;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  break-inside: avoid;
  border-bottom: 1px solid rgba(28, 25, 23, 0.04);
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.checklist-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--zab-blue);
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.checklist-items li:hover::before {
  border-color: var(--chalk-green);
  transform: scale(1.1);
}
.checklist-items li.checked::before {
  background-color: var(--chalk-green);
  border-color: var(--chalk-green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
}

/* --- INFO BLOCK --- */
.info-block {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  margin-bottom: 60px;
  position: relative;
  box-shadow: var(--shadow-paper);
  border: 1px solid rgba(28, 25, 23, 0.04);
}
.info-block h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-dark);
  text-transform: none;
}
.info-block p {
  font-size: 1.05rem;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* --- TIPS BLOCK (recommendations for parents) - STICKY NOTES --- */
.tips-block {
  margin-bottom: 80px;
  position: relative;
}
.tips-block h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--text-dark);
  text-align: center;
  position: relative;
}
.tips-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 0;
}
.tips-list li {
  position: relative;
  padding: 30px 24px 24px;
  font-size: 1.05rem;
  color: var(--text-dark);
  line-height: 1.5;
  background: #FEF3C7; /* default yellow */
  box-shadow: 2px 4px 12px rgba(0,0,0,0.08);
  border-radius: 2px 2px 8px 8px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  will-change: transform;
}
.tips-list li::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 60px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
  z-index: 2;
}
.tips-list li:hover {
  transform: translateY(-8px) scale(1.02) rotate(0deg) !important;
  box-shadow: 4px 8px 24px rgba(0,0,0,0.12);
  z-index: 10;
}
.tips-list li strong {
  display: block;
  font-family: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #1F2937;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 100%);
  padding-bottom: 2px;
}
/* Variations for sticky notes */
.tips-list li:nth-child(1) { background: #FEF3C7; transform: rotate(-2deg); } /* Yellow */
.tips-list li:nth-child(2) { background: #D1FAE5; transform: rotate(1deg); } /* Green */
.tips-list li:nth-child(3) { background: #DBEAFE; transform: rotate(-1.5deg); } /* Blue */
.tips-list li:nth-child(4) { background: #FEE2E2; transform: rotate(2deg); } /* Red */
.tips-list li:nth-child(5) { background: #EDE9FE; transform: rotate(-1deg); } /* Purple */
.tips-list li:nth-child(6) { background: #FEF3C7; transform: rotate(1.5deg); }

/* --- SCRAPBOOK INFO BLOCK (Notepad / Paper) --- */
.scrapbook-info-block {
  background-color: #fdfbf7;
  background-image: linear-gradient(transparent 95%, #e0e7ff 95%);
  background-size: 100% 28px;
  border-radius: 4px 12px 12px 4px;
  padding: 40px 40px 40px 50px;
  margin-bottom: 80px;
  position: relative;
  box-shadow: 4px 4px 15px rgba(0,0,0,0.06);
  border-left: 2px solid #ef4444;
  line-height: 28px;
  font-size: 1.05rem;
}
.scrapbook-info-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 16px 30px, #e5e7eb 5px, transparent 5px),
              radial-gradient(circle at 16px 70px, #e5e7eb 5px, transparent 5px),
              radial-gradient(circle at 16px 110px, #e5e7eb 5px, transparent 5px),
              radial-gradient(circle at 16px 150px, #e5e7eb 5px, transparent 5px),
              radial-gradient(circle at 16px 190px, #e5e7eb 5px, transparent 5px),
              radial-gradient(circle at 16px 230px, #e5e7eb 5px, transparent 5px);
  pointer-events: none;
}
.scrapbook-info-block h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: var(--text-dark);
  text-transform: none;
  background: white;
  display: inline-block;
  padding: 4px 12px;
  line-height: 1.2;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.05);
  border-radius: 4px;
}
.scrapbook-info-block p {
  color: var(--text-dark);
  margin-bottom: 14px;
}
.scrapbook-info-block strong {
  background: var(--zab-gold);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-dark);
  margin-right: 6px;
  font-weight: 800;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
  display: inline-block;
  transform: rotate(-1deg);
}
.hand-drawn-list {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  margin-bottom: 14px;
}
.hand-drawn-list li {
  position: relative;
  padding-left: 36px;
}
.hand-drawn-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* --- TIMELINE --- */
.timeline-block {
  margin-bottom: 60px;
  position: relative;
  padding: 40px 0;
}
.timeline-block h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-dark);
  text-transform: none;
}
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--zab-blue), var(--zab-gold));
  transform: translateX(-50%);
  border-radius: 3px;
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}
.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}
.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 6px solid var(--zab-blue);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.15), 0 4px 12px rgba(29, 78, 216, 0.3);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: box-shadow 0.3s ease;
}
.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.2), 0 8px 16px rgba(29, 78, 216, 0.4);
}
.timeline-content {
  width: 42%;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-paper);
}
.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-dark);
  text-transform: none;
}
.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
}
.timeline-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--zab-blue);
  margin-bottom: 6px;
}

/* --- BACK BUTTON --- */
.section-back-block {
  text-align: center;
  padding: 40px 0 20px;
}
.section-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--text-dark);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 100px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.section-back-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* --- CATEGORIES GRID (for clubs page) --- */
.direction-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  justify-content: center;
}
.direction-tag {
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid rgba(0,0,0,0.1);
  background: white;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s;
}
.direction-tag:hover {
  background: var(--zab-gold);
  border-color: var(--zab-gold);
  transform: translateY(-2px);
}

/* --- FOOTER --- */
.section-footer {
  background: var(--text-dark);
  color: white;
  padding: 50px 0;
  text-align: center;
}
.section-footer-logo {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.section-footer p {
  opacity: 0.7;
  font-size: 0.95rem;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .section-hero { padding: 70px 0 50px; }
  .section-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .section-hero-emoji { font-size: 3rem; gap: 10px; }
  .section-hero-desc { font-size: 1.05rem; }

  .section-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .checklist-items { columns: 1; }
  
  .checklist-block,
  .info-block,
  .tips-block {
    padding: 28px 20px;
  }

  /* Timeline mobile - single column */
  .timeline::before { left: 16px; }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    padding-left: 48px;
    text-align: left;
  }
  .timeline-dot {
    left: 16px;
    top: 4px;
  }
  .timeline-content { width: 100%; }
}

@media (max-width: 480px) {
  .section-hero { padding: 50px 0 40px; }
  .section-hero-emoji { font-size: 2.5rem; }
  .section-card { padding: 24px 20px; }
}

/* --- ANIMATIONS (GSAP-compatible data attributes) --- */
[data-section-anim] {
  opacity: 0;
  transform: translateY(30px);
}
