/* ============================================================
   ARФестПерсонажі — Auxiliary Pages Stylesheet
   (About Us, Privacy Policy, Terms of Service, Cookie Policy)
   ============================================================ */

/* Imports same tokens as style.css — must be loaded together or standalone */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #0DCCFF;
  --color-dark: #0A0E1A;
  --color-surface: #111827;
  --color-mid: #1E2A3A;
  --color-accent: #FF6B2B;
  --color-text: #E8EDF5;
  --color-muted: #8094A8;
  --color-border: #1E3050;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --max-width: 1200px;
}

html {
  background-color: var(--color-dark);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { color: var(--color-muted); line-height: 1.75; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER (shared with main, but self-contained here)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 14, 26, 0.96);
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo-svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.header-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.header-brand span {
  color: var(--color-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a:hover { color: var(--color-primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:hover { color: var(--color-primary); }
.mobile-nav.is-open { display: block; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 64px 0 56px;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--color-muted);
  font-family: var(--font-heading);
}

.page-breadcrumb a {
  color: var(--color-muted);
  text-decoration: none;
}

.page-breadcrumb a:hover { color: var(--color-primary); }

.page-breadcrumb span {
  color: var(--color-primary);
}

.page-breadcrumb-sep {
  color: var(--color-border);
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero p {
  max-width: 600px;
  font-size: 1.05rem;
}

/* ============================================================
   PAGE CONTENT WRAPPER
   ============================================================ */
.page-content {
  padding: 72px 0;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.about-intro-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-intro-text .section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.about-intro-text h2 {
  margin-bottom: 16px;
}

.about-intro-text p {
  margin-bottom: 16px;
}

/* Values block */
.about-values {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 72px 0;
  margin-bottom: 80px;
}

.about-values-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-values-header h2 {
  margin-bottom: 12px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background-color: var(--color-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.value-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(13, 204, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.value-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.8;
}

.value-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.87rem;
}

/* Team block */
.about-team {
  margin-bottom: 0;
}

.about-team-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-team-header h2 {
  margin-bottom: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.team-card {
  background-color: var(--color-mid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.team-card-avatar {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-border);
}

.team-card-body {
  padding: 20px 16px;
}

.team-card-body h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card-body p {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ============================================================
   LEGAL PAGES (Privacy, Terms, Cookie)
   ============================================================ */
.legal-placeholder {
  background-color: var(--color-mid);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 80px 40px;
  text-align: center;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.legal-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--color-muted);
  fill: none;
  stroke-width: 1.4;
}

.legal-placeholder h3 {
  font-size: 1.1rem;
  color: var(--color-muted);
  font-weight: 500;
}

.legal-placeholder p {
  font-size: 0.88rem;
  color: var(--color-muted);
  max-width: 360px;
}

/* ============================================================
   FOOTER (auxiliary pages)
   ============================================================ */
.site-footer {
  background-color: var(--color-dark);
  border-top: 1px solid var(--color-border);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  text-decoration: none;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
}

.footer-brand-name span { color: var(--color-primary); }

.footer-desc {
  font-size: 0.87rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.87rem;
  color: var(--color-muted);
}

.footer-col ul li a:hover { color: var(--color-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy { font-size: 0.82rem; color: var(--color-muted); }

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--color-muted);
}

.footer-legal a:hover { color: var(--color-primary); }

/* ============================================================
   RESPONSIVE — Auxiliary pages
   ============================================================ */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-legal {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ============================================================
   LEGAL CONTENT STYLING
   ============================================================ */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.legal-content h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: var(--color-primary);
}

.legal-content h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: var(--color-text);
}

.legal-content ul,
.legal-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  margin-bottom: 12px;
  color: var(--color-muted);
  line-height: 1.8;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
   ABOUT PAGE STYLING
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.about-intro-img {
  text-align: center;
}

.about-intro-img img {
  border-radius: 16px;
  width: 100%;
}

.about-intro-text h2 {
  margin-bottom: 24px;
  font-size: 2.2rem;
}

.about-intro-text p {
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-values {
  background: linear-gradient(135deg, rgba(13, 204, 255, 0.05) 0%, rgba(255, 107, 43, 0.05) 100%);
  padding: 80px 0;
  margin: 60px 0;
}

.about-values-header {
  text-align: center;
  margin-bottom: 60px;
}

.about-values-header h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 32px;
  background: rgba(30, 42, 58, 0.5);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.value-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 204, 255, 0.1);
  border-radius: 12px;
}

.value-card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-primary);
}

.value-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.value-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-team-header {
  text-align: center;
  margin-bottom: 60px;
}

.about-team-header h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
  padding: 32px 24px;
  background: rgba(30, 42, 58, 0.7);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.team-card-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-dark);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.team-card-body h4 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  color: var(--color-text);
}

.team-card-body p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   TIMELINE STYLING
   ============================================================ */
.about-timeline-header {
  text-align: center;
  margin-bottom: 60px;
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding: 0 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 24px;
  align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
  grid-column: 1;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: left;
  grid-column: 3;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  opacity: 0.6;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border: 4px solid var(--color-dark);
  border-radius: 50%;
  margin: 0 auto;
  grid-column: 2;
}

.timeline-content h4 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  color: var(--color-text);
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .timeline {
    padding: 0;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    grid-column: 2;
  }

  .timeline-year {
    text-align: center;
    font-size: 1.4rem;
  }

  .timeline-dot {
    margin: 0;
  }
}

/* ============================================================
   WHY US SECTION
   ============================================================ */
.why-us-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.why-us-layout > div:first-child h2 {
  font-size: 2.2rem;
  margin: 16px 0 24px;
}

.why-us-features {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

.why-us-feature {
  display: flex;
  gap: 16px;
}

.why-us-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 204, 255, 0.15);
  border-radius: 8px;
}

.why-us-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  fill: none;
}

.why-us-feature h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--color-text);
}

.why-us-feature p {
  font-size: 0.95rem;
  margin: 0;
}

.why-us-img {
  text-align: center;
}

.why-us-img img {
  border-radius: 16px;
  width: 100%;
}

@media (max-width: 1024px) {
  .why-us-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   RESPONSIVE ABOUT PAGE
   ============================================================ */
@media (max-width: 768px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-intro-text h2 {
    font-size: 1.8rem;
  }

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

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

  .team-card {
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE LEGAL CONTENT
   ============================================================ */
@media (max-width: 640px) {
  .legal-content {
    font-size: 1rem;
  }

  .legal-content h2 {
    font-size: 1.4rem;
    margin-top: 36px;
  }

  .legal-content h3 {
    font-size: 1.1rem;
  }
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-mid);
  border-top: 1px solid var(--color-border);
  padding: 24px;
  z-index: 999;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-banner-actions .btn {
    width: 100%;
    text-align: center;
  }
}
