/* ============================================
   O-FEST — Inner pages specific styles
   (regulations, team, manifest)
   ============================================ */

/* ---------- Regulations layout ---------- */
.reg-layout {
  display: flex;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.reg-toc {
  width: 220px;
  flex-shrink: 0;
}

.reg-toc-inner {
  position: sticky;
  top: 100px;
  background: var(--color-whisper-02);
  border: 1px solid var(--color-whisper-08);
  padding: 33px;
}

.reg-toc h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 20px;
}

.reg-toc ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reg-toc a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.72px;
  color: var(--color-whisper-45);
  transition: color 0.2s ease;
}

.reg-toc a:hover,
.reg-toc a.active {
  color: var(--color-whisper);
}

.reg-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reg-section-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2.08px;
  text-transform: uppercase;
  color: var(--color-red);
  border-bottom: 1px solid var(--color-red-20);
  padding-bottom: 13px;
  width: 100%;
  scroll-margin-top: 100px;
}

.reg-subtitle {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.54px;
  text-transform: uppercase;
  color: var(--color-whisper-50);
  padding-top: 22px;
}

.reg-text {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 27px;
  color: var(--color-whisper-65);
  padding-top: 6px;
  padding-bottom: 20px;
}

.reg-text:last-child {
  padding-bottom: 42px;
}

.reg-list {
  display: flex;
  flex-direction: column;
}

.reg-list li {
  position: relative;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 25.5px;
  color: var(--color-whisper-60);
  padding: 8px 0 9px 24px;
  border-bottom: 1px solid var(--color-whisper-04);
}

.reg-list li:last-child {
  margin-bottom: 22px;
}

.reg-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-red);
}

.reg-list li strong {
  color: var(--color-whisper);
  font-weight: 700;
}

.reg-contacts {
  background: var(--color-red-06);
  border: 1px solid var(--color-red-20);
  padding: 51px 41px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reg-contacts h3 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 6px;
}

.reg-contacts a {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--color-whisper);
  text-decoration: underline;
}

/* ---------- Team page ---------- */
.team-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding-top: 80px;
}

.team-intro {
  max-width: 560px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 28px;
  color: var(--color-whisper-60);
  padding: 0 24px;
}

.team-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-red);
  padding-top: 32px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: var(--container-max);
  padding: 80px 40px 152px;
  width: 100%;
}

.team-card {
  border: 1px solid var(--color-whisper-08);
  padding: 33px;
  width: 346px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Founder cards (with photo) ---------- */
.founders-grid {
  max-width: 900px;
  flex-wrap: nowrap;
}

.team-card.founder {
  width: 380px;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .founders-grid {
    flex-wrap: wrap;
  }
  .team-card.founder {
    width: 100%;
    max-width: 420px;
  }
}

.team-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-cinder);
}

.team-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-red);
  z-index: 2;
}

.team-card.founder:nth-child(2) .team-photo::before {
  background: var(--color-blue-light);
}

.team-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(229,10,0,0.22) 0%, rgba(54,141,250,0.14) 55%, transparent 85%);
  mix-blend-mode: color;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(1) contrast(1.12) brightness(0.96);
  transition: filter 0.5s ease, transform 0.6s ease;
}

.team-card.founder:hover .team-photo img {
  filter: grayscale(0.3) contrast(1.12) brightness(1);
  transform: scale(1.03);
}

.team-card.founder:hover .team-photo::after {
  opacity: 0.5;
}

.team-card-body {
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-credentials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}

.team-credentials li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 18px;
  color: var(--color-whisper-55);
  padding-left: 15px;
  position: relative;
}

.team-credentials li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-red);
}

.team-filmography {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-whisper-06);
}

.team-filmography .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--color-whisper-35);
  margin-bottom: 7px;
}

.team-filmography .films {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 21px;
  color: var(--color-whisper-70);
}

.team-name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-whisper);
}

.team-name-en {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-whisper-40);
  margin-top: 5px;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.54px;
  text-transform: uppercase;
  color: var(--color-red);
}

.team-bio {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 23.1px;
  color: var(--color-whisper-55);
  padding-top: 7px;
}

.team-divider {
  border-top: 1px solid var(--color-whisper-06);
  max-width: var(--container-max);
  width: calc(100% - 80px);
}

.team-contact {
  max-width: 600px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 23px;
  padding: 32px 40px 120px;
}

.team-contact h2 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  text-transform: uppercase;
  color: var(--color-whisper);
}

.team-contact p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 25.5px;
  color: var(--color-whisper-55);
}

.team-contact .email-link {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-red);
  border-bottom: 2px solid rgba(229,10,0,0.3);
  padding-bottom: 6px;
}

/* ---------- Manifest page ---------- */
.manifest-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 40px 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.manifest-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 50px 0;
}

.manifest-block.first {
  gap: 32px;
  padding-top: 0;
}

.manifest-divider {
  border-top: 1px solid var(--color-red-20);
  height: 1px;
  width: 100%;
}

.manifest-big {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
  color: var(--color-whisper);
}

.manifest-big .accent { color: var(--color-red); }

.manifest-text {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  color: var(--color-whisper-85);
}

.manifest-text.dim {
  color: var(--color-whisper-40);
}

.manifest-text .accent {
  color: var(--color-red);
}

.manifest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 30px 0;
}

.manifest-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--color-red);
  white-space: nowrap;
}

.manifest-closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 54px;
}

.manifest-closing-o {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 100px;
  letter-spacing: -3px;
  color: var(--color-whisper);
}

.manifest-closing-line {
  width: 2px;
  height: 60px;
  background: var(--color-red);
}

.manifest-uppercase {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-align: center;
  color: var(--color-whisper-40);
}

.manifest-text-center {
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1.7;
  text-align: center;
  color: var(--color-whisper-85);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .reg-layout {
    flex-direction: column;
    padding: 60px 24px 80px;
  }
  .reg-toc {
    width: 100%;
  }
  .reg-toc-inner {
    position: static;
  }
  .reg-toc ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .team-card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  .manifest-section {
    padding: 60px 24px 100px;
  }
  .manifest-closing-o {
    font-size: 64px;
  }
  /* Long Russian compound tags (e.g. "экспериментальные музыкальные
     видео") can exceed the viewport width on the narrowest phones.
     Allow wrapping here as a safety net instead of nowrap overflow. */
  .manifest-tags span {
    white-space: normal;
    max-width: 100%;
  }
}
