/* --- Variables & Reset --- */
:root {
  --bg-color: #0f0f0f; /* Deep Dark */
  --surface-color: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #ccff00; /* Acid Lime */
  --accent-hover: #b3e600;
  --border-color: #333333;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --container-width: 1240px;
  --header-height: 80px;
  --sp-md: 2rem;
  --sp-lg: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.main {
  flex: 1; /* Pushes footer down */
}

/* --- Utility Classes --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-color);
  color: var(--bg-color);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header__container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo-img {
  width: 32px;
  height: 32px;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.header__nav {
  display: none; /* Mobile first hidden */
}

.header__menu {
  display: flex;
  gap: 32px;
}

.header__link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.header__link:hover {
  color: var(--accent-color);
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.header__link:hover::after {
  width: 100%;
}

.header__cta {
  display: none; /* Hidden on very small screens */
}

.header__burger {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Desktop Styles for Header */
@media (min-width: 992px) {
  .header__nav {
    display: block;
  }
  .header__cta {
    display: inline-flex;
  }
  .header__burger {
    display: none;
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  margin-top: auto;
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer__col--brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}

.footer__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer__link:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer__icon {
  width: 20px;
  height: 20px;
  color: var(--accent-color);
  flex-shrink: 0;
}

.footer__copy {
  margin-top: auto;
  font-size: 0.8rem;
  color: #555;
  padding-top: 20px;
}

/* Tablet/Desktop Footer Grid */
@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh; /* Майже на весь екран */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

/* Фонова сітка для ефекту кібер-простору */
.hero__bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid var(--accent-color);
  border-radius: 100px;
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Title */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Адаптивний шрифт */
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero__title-accent {
  color: var(--accent-color);
  font-family: 'Courier New', monospace; /* Моноширинний для ефекту коду */
  background: rgba(204, 255, 0, 0.1);
  padding: 0 10px;
}

/* Subtitle */
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  border-left: 2px solid var(--accent-color);
  padding-left: 20px;
}

.hero__subtitle strong {
  color: var(--text-primary);
}

/* Actions */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.hero__btn {
  padding: 16px 32px;
  font-size: 1rem;
}

.hero__stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.hero__stat-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* Visual - Code Block Styling */
.hero__visual {
  display: none; /* Mobile hidden */
  justify-content: center;
}

.code-block {
  background: #151515;
  border: 1px solid #333;
  padding: 30px;
  border-radius: 12px;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  color: #a9b7c6;
  box-shadow: 20px 20px 0px rgba(204, 255, 0, 0.1); /* Brutalist shadow */
  width: 100%;
  max-width: 400px;
}

.code-line {
  margin-bottom: 8px;
}
.indent {
  padding-left: 20px;
}
.c-purple {
  color: #cc7832;
}
.c-blue {
  color: #a9b7c6;
}
.c-yellow {
  color: #ffc66d;
}
.c-green {
  color: #6a8759;
}
.c-orange {
  color: #6897bb;
}

.cursor-blink {
  display: inline-block;
  color: var(--accent-color);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Desktop Grid */
@media (min-width: 992px) {
  .hero__container {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .hero__visual {
    display: flex;
  }
}

/* --- Courses Section (Terminal List Style) --- */
.courses {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.courses__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.section-title {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: none;
}

/* List Styles */
.courses__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.course-item::before {
  content: '>';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-color);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

.course-item:hover,
.course-item.active {
  padding-left: 20px; /* Shift content */
}

.course-item:hover::before,
.course-item.active::before {
  opacity: 1;
}

.course-item:hover .course-item__title,
.course-item.active .course-item__title {
  color: var(--accent-color);
}

.course-item__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.course-item__code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.course-item__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
}

.course-item__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tag {
  background: #222;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #fff;
  border: 1px solid #333;
}

/* Preview Window Styles */
.courses__preview {
  display: none; /* Mobile: hidden by default, or just show list */
}

.preview-window {
  background: #151515;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 100px; /* Sticky scroll */
  min-height: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.preview-window__bar {
  background: #222;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
}

.preview-window__dots {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}

.preview-window__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
}

.preview-window__dots span:nth-child(1) {
  background: #ff5f56;
}
.preview-window__dots span:nth-child(2) {
  background: #ffbd2e;
}
.preview-window__dots span:nth-child(3) {
  background: #27c93f;
}

.preview-window__title {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #888;
}

.preview-window__content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.preview-tag {
  color: var(--accent-color);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.preview-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.preview-desc {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1rem;
}

.preview-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.preview-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.preview-specs i {
  color: var(--accent-color);
  width: 18px;
  height: 18px;
}

.preview-btn {
  margin-top: auto;
  width: fit-content;
}

/* Desktop Grid */
@media (min-width: 992px) {
  .courses__container {
    grid-template-columns: 1fr 1fr;
  }
  .courses__preview {
    display: block;
  }
}

/* --- Methodology (Pipeline Style) --- */
.methodology {
  padding: 100px 0;
  position: relative;
}

.pipeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Вертикальна лінія (сіра база) */
.pipeline__line {
  position: absolute;
  left: 20px; /* Центр по маркерам */
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #333;
  z-index: 0;
}

/* Прогрес лінії (кольоровий, буде мінятися висота через JS) */
.pipeline__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  transition: height 0.5s ease;
}

.pipeline-item {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
  opacity: 0.3; /* За замовчуванням тьмяне */
  transform: translateY(20px);
  transition: all 0.6s ease;
}

/* Коли клас active додається через JS */
.pipeline-item.active {
  opacity: 1;
  transform: translateY(0);
}

.pipeline-item:last-child {
  margin-bottom: 0;
}

/* Маркер (точка) */
.pipeline-item__marker {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--bg-color);
  border: 2px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.pipeline-item.active .pipeline-item__marker {
  border-color: var(--accent-color);
}

.pipeline-item__dot {
  width: 12px;
  height: 12px;
  background-color: #333;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.pipeline-item.active .pipeline-item__dot {
  background-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
}

/* Контент */
.pipeline-item__content {
  background: var(--surface-color);
  padding: 24px;
  border: 1px solid #333;
  border-radius: 8px;
  width: 100%;
}

.pipeline-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

.pipeline-code {
  color: var(--accent-color);
}

.pipeline-time {
  color: #555;
}

.pipeline-item__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.pipeline-item__desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

.pipeline-item__desc strong {
  color: var(--text-primary);
}

.methodology__cta {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

/* Desktop Adjustment */
@media (min-width: 768px) {
  .pipeline__line {
    left: 50%; /* Центр екрану */
    transform: translateX(-50%);
  }

  .pipeline-item {
    gap: 0;
    justify-content: center;
    align-items: center;
  }

  .pipeline-item__marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }

  /* Шаховий порядок: непарні зліва, парні справа */
  .pipeline-item:nth-child(odd) .pipeline-item__content {
    margin-right: 50%;
    margin-left: 0;
    transform: translateX(-60px); /* Відступ від центру */
    text-align: right;
  }

  .pipeline-item:nth-child(even) .pipeline-item__content {
    margin-left: 50%;
    margin-right: 0;
    transform: translateX(60px);
    text-align: left;
  }

  /* Фікс для активного стану, щоб не з'їжджало при анімації появи */
  .pipeline-item:nth-child(odd).active .pipeline-item__content {
    /* Ми компенсуємо translateY в базовому класі, тут position relative, тому просто margin */
  }
}

/* --- Tech Stack & Info Grid --- */
.tech-stack {
  padding-bottom: 100px;
  background-color: var(--bg-color);
  overflow: hidden;
}

/* Marquee Styles */
.marquee-container {
  background: var(--accent-color);
  color: var(--bg-color);
  padding: 20px 0;
  margin-bottom: 80px;
  width: 100vw;
  overflow: hidden;
  position: relative;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg); /* Трохи нахилимо для динаміки */
  width: 120%; /* Ширше екрану щоб не було видно країв при повороті */
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: scroll 20s linear infinite;
}

.marquee span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  padding: 0 10px;
}

.marquee .divider {
  opacity: 0.4;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Grid Layout */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.grid-item {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 4px;
}

/* Main Info Block */
.main-info {
  border-left: 4px solid var(--accent-color);
}

.manifesto-text {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 30px;
  max-width: 600px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-color);
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.link-arrow:hover {
  border-bottom-color: var(--accent-color);
  gap: 15px;
}

/* Stats Box */
.stats-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.stat-label {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(145deg, var(--surface-color), #222);
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background: var(--accent-color);
  filter: blur(60px);
  opacity: 0.2;
}

.highlight-icon {
  color: var(--accent-color);
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}

.highlight-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.highlight-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.highlight-desc strong {
  color: #fff;
  border-bottom: 1px solid var(--accent-color);
}

/* Desktop Grid */
@media (min-width: 992px) {
  .grid-layout {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
  }

  .main-info {
    grid-row: 1 / 3; /* Займає всю висоту зліва */
  }
}


/* --- Access Pass (Ticket) Section --- */
.access-pass-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.access-ticket {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.access-ticket:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 50px rgba(204, 255, 0, 0.1);
}

/* Ticket Left Side */
.ticket-main {
    padding: 40px;
    flex: 1;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-family: 'Courier New', monospace;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.ticket-label {
    background: #333;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

.ticket-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-transform: uppercase;
}

.ticket-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(204, 255, 0, 0.05);
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
    border-radius: 100px;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: blink 2s infinite;
}

.ticket-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.ticket-desc strong {
    color: #fff;
    border-bottom: 1px solid #555;
}

.ticket-footer {
    display: flex;
    gap: 40px;
}

.ticket-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-info-item .label {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #666;
}

.ticket-info-item .value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Ticket Divider (Perforation) */
.ticket-divider {
    position: relative;
    height: 2px;
    width: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-divider .line {
    width: 100%;
    height: 1px;
    border-top: 2px dashed #333;
}

.notch {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--bg-color); /* Колір фону сторінки */
    border-radius: 50%;
    border: 1px solid var(--border-color);
    z-index: 2;
}

/* Для мобільного розділювач горизонтальний */
.notch-top { left: -12px; top: -12px; } /* Тут це "ліво" і "право" візуально для мобілки */
.notch-bottom { right: -12px; top: -12px; }

/* Ticket Right Side (Stub) */
.ticket-stub {
    background: #111;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

/* Імітація баркоду CSS-градієнтом */
.barcode {
    width: 100%;
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        #fff 0px,
        #fff 2px,
        transparent 2px,
        transparent 4px,
        #fff 4px,
        #fff 8px,
        transparent 8px,
        transparent 9px
    );
    opacity: 0.8;
    max-width: 200px;
}

.stub-note {
    font-size: 0.8rem;
    color: #666;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stub-note i {
    width: 16px;
    height: 16px;
    color: var(--accent-color);
}

.ticket-btn {
    width: 100%;
    justify-content: center;
}

/* Desktop Styles */
@media (min-width: 768px) {
    .access-ticket {
        flex-direction: row;
    }

    /* Вертикальний розділювач для десктопу */
    .ticket-divider {
        width: 2px;
        height: auto;
        flex-direction: column;
    }

    .ticket-divider .line {
        width: 1px;
        height: 100%;
        border-top: none;
        border-left: 2px dashed #333;
    }

    .notch-top { left: -11px; top: -12px; right: auto; }
    .notch-bottom { left: -11px; bottom: -12px; top: auto; right: auto; }

    .ticket-stub {
        width: 300px;
        border-left: none;
    }
}

/* --- Contact Section --- */
.contact-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background-color: #0b0b0b; /* Трохи темніше основного фону */
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.contact__desc {
    color: var(--text-secondary);
    max-width: 400px;
    font-size: 1.1rem;
}

.highlight-text {
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Form Styling */
.contact__form-wrapper {
    background: var(--surface-color);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.3s ease;
}

.form.hidden {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-label {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.form-input {
    background: #0F0F0F;
    border: 1px solid #333;
    padding: 16px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.1);
}

/* Captcha Styling */
.captcha-box {
    display: flex;
    gap: 16px;
    align-items: center;
}

.captcha-question {
    background: #222;
    color: var(--accent-color);
    padding: 14px 20px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    border: 1px dashed #444;
    user-select: none; /* Щоб не копіювали */
}

.captcha-input {
    width: 80px;
    text-align: center;
}

.form-error {
    color: #ff4d4d;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none; /* Hidden by default */
}

.form-error.visible {
    display: block;
}

/* Checkbox Styling */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

.form-checkbox input {
    margin-top: 4px;
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    cursor: pointer;
}

.form-checkbox a {
    color: #fff;
    text-decoration: underline;
}

.form-checkbox a:hover {
    color: var(--accent-color);
}

.form-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.form-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #333;
    color: #888;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 0;
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.success-message.visible {
    display: flex;
}

.success-icon {
    width: 80px;
    height: 80px;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 16px;
}

.success-desc {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Desktop Grid */
@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 100%;
    max-width: 400px;
    background: #151515;
    border: 1px solid var(--accent-color);
    padding: 20px;
    border-radius: 8px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: translateY(150%); /* Сховано */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-popup.visible {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cookie-content i {
    color: var(--accent-color);
    flex-shrink: 0;
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.cookie-text a {
    color: #fff;
    text-decoration: underline;
}

.cookie-btn {
    align-self: flex-end;
}

@media (max-width: 480px) {
    .cookie-popup {
        bottom: 0;
        right: 0;
        max-width: 100%;
        border-radius: 8px 8px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
}

/* --- Generic Pages Styles (Privacy, Terms etc.) --- */
/* Ці стилі застосуються, коли ти створиш файл privacy.html з <section class="pages"> */

.pages {
    padding: 140px 0 80px; /* Відступ зверху під фіксований хедер */
    min-height: 80vh;
}

.pages .container {
    max-width: 800px; /* Вужчий контейнер для читабельності тексту */
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
}

.pages p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.pages ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.pages li {
    list-style: disc;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 8px;
}

.pages li::marker {
    color: var(--accent-color);
}

.pages a {
    color: var(--accent-color);
    text-decoration: underline;
}

.pages strong {
    color: var(--text-primary);
}