/* --- VARIABLES --- */
:root {
  /* Palette */
  --color-bg: #0f172a; /* Dark Slate/Navy */
  --color-bg-light: #1e293b; /* Lighter Slate for footer/elements */
  --color-primary: #a3e635; /* Lime Green - Fresh & Innovative */
  --color-text: #f1f5f9; /* Off-white */
  --color-text-muted: #94a3b8;
  --color-accent: #38bdf8; /* Sky Blue */

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Sizes */
  --container-width: 1240px;
  --header-height: 80px;

  /* Spacing */
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

ul {
  list-style: none;
}

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

/* --- UTILS --- */
.container {
  /* Буде використано в секціях */
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  z-index: 1002;
}

.header__logo-text {
  color: var(--color-text);
}

.header__nav {
  display: flex;
  align-items: center;
}

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

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

.header__link:hover,
.header__link.active {
  color: var(--color-primary);
}

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

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__cta {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(163, 230, 53, 0.4);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  z-index: 1002;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-bg-light);
  padding: 80px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__col--brand .header__logo {
  margin-bottom: 20px;
}

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

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--color-text);
}

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

.footer__link {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

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

.footer__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* --- MOBILE & RESPONSIVE --- */
@media (max-width: 1024px) {
  .header__menu {
    display: none; /* Mobile menu logic in JS */
  }

  .header__burger {
    display: block;
  }

  .header__cta {
    display: none; /* Hide CTA in header on small screens, maybe show in menu */
  }

  /* Mobile Menu Active State */
  .header__nav.active .header__menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background-color: var(--color-bg);
    padding-top: 100px;
    align-items: center;
    z-index: 1001;
  }

  .header__nav.active .header__link {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer__container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer__col--brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer__contact-item {
    justify-content: center;
  }

  .footer__link:hover {
    padding-left: 0; /* Disable shift on hover for mobile center alignment */
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Background Canvas */
.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4; /* Subtle background effect */
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Content Column */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(163, 230, 53, 0.1);
  border: 1px solid rgba(163, 230, 53, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 500;
  width: fit-content;
}

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

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  min-height: 3.8rem; /* Prevent layout shift during animation */
}

.hero__desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 540px;
}

.text-highlight {
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 2px solid var(--color-primary);
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero__btn--primary {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

.hero__btn--primary:hover {
  box-shadow: 0 0 20px rgba(163, 230, 53, 0.4);
  transform: translateY(-2px);
}

.hero__btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.hero__btn--outline:hover {
  border-color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat-item {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-heading);
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Visual Column */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__img-wrapper {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

.hero__img {
  width: 100%;
  height: auto;
  max-width: 500px;
  object-fit: cover;
  display: block;
}

/* Floating Glass Card */
.hero__card-glass {
  position: absolute;
  bottom: -30px;
  left: -30px;
  z-index: 3;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 16px;
  width: 260px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: float 5s ease-in-out infinite reverse; /* Moves opposite to main img */
}

.hero__card-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  margin-bottom: 12px;
}

.hero__card-glass h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.hero__card-glass p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero__card-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.hero__card-bar {
  height: 100%;
  background: var(--color-primary);
}

/* Glow effects */
.hero__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.4;
}

.hero__glow--1 {
  background: var(--color-primary);
  top: -50px;
  right: -50px;
}

.hero__glow--2 {
  background: var(--color-accent);
  bottom: -50px;
  left: -50px;
}

/* Animations Keyframes */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Mobile Hero */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__content {
    align-items: center;
  }

  .hero__badge {
    margin: 0 auto;
  }

  .hero__title {
    font-size: 2.5rem;
  }

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

  .hero__visual {
    margin-top: 20px;
  }

  .hero__card-glass {
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    animation: none; /* Simplify on mobile */
  }
}

/* --- GLOBAL SECTIONS --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.highlight {
  color: var(--color-primary);
}

.text-white {
  color: var(--color-text);
}

/* --- METHODOLOGY: GRID SYSTEM --- */
.methodology {
  background-color: var(--color-bg);
}

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

.grid-item {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px;
  border-radius: 16px;
  transition: all 0.4s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.grid-item:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(163, 230, 53, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.grid-item__icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.grid-item:hover .grid-item__icon {
  background: var(--color-primary);
  color: var(--color-bg);
}

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

.grid-item__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Wide item spans 2 columns or full width depending on design */
.grid-item--wide {
  grid-column: span 3;
  display: flex;
  align-items: center;
}

.grid-item__content-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.grid-item__stat {
  text-align: right;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Accent Style */
.grid-item--accent {
  border-top: 4px solid var(--color-accent);
}

/* --- PROGRAM: TERMINAL STYLE --- */
.program {
  background-color: var(--color-bg-light); /* Slightly lighter background */
}

.program__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.1rem;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn-link:hover {
  gap: 12px;
  border-color: var(--color-primary);
}

/* Terminal Window */
.terminal {
  background: #1e1e1e; /* VS Code-like dark */
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
}

.terminal__header {
  background: #252526;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
}

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

.terminal__dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #5f6368;
}

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

.terminal__title {
  color: #9da5b4;
  font-size: 0.85rem;
}

.terminal__body {
  padding: 24px;
  color: #d4d4d4;
}

.terminal__line {
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.cmd {
  color: var(--color-primary);
}

.comment {
  color: #6a9955;
  margin-left: 10px;
  font-style: italic;
}

.terminal__block {
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 2px solid #333;
  transition: all 0.3s ease;
}

.terminal__block:hover,
.terminal__block.active {
  border-left-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.02);
}

.terminal__status {
  font-size: 0.8rem;
  color: #569cd6;
  margin-bottom: 8px;
}

.terminal__status.highlight {
  color: var(--color-primary);
}

.terminal__content h3 {
  font-family: var(--font-body); /* Switch back to clean font for readability */
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 4px;
}

.terminal__content p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #9da5b4;
}

.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #d4d4d4;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .grid-system {
    grid-template-columns: 1fr;
  }

  .grid-item--wide {
    grid-column: span 1;
  }

  .grid-item__content-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .grid-item__stat {
    text-align: left;
  }

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

/* --- REVIEWS --- */
.reviews__scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reviews__scroller::-webkit-scrollbar {
  display: none;
}

.review-card {
  min-width: 350px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.review-card__avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-primary), #4ade80);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-bg);
  font-size: 1.2rem;
}

.review-card__avatar--2 {
  background: linear-gradient(135deg, var(--color-accent), #818cf8);
}
.review-card__avatar--3 {
  background: linear-gradient(135deg, #f472b6, #fb7185);
}

.review-card__name {
  font-weight: 600;
  color: var(--color-text);
}

.review-card__role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.review-card__rating {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
  font-weight: 600;
}

.review-card__rating i {
  width: 16px;
  height: 16px;
  fill: #fbbf24;
}

.review-card__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* --- FAQ --- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion__trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
}

.accordion__trigger:hover {
  color: var(--color-primary);
}

.accordion__icon {
  transition: transform 0.3s ease;
  color: var(--color-primary);
}

.accordion__trigger[aria-expanded='true'] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.accordion__inner {
  padding-bottom: 24px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- CONTACT --- */
.contact {
  position: relative;
  overflow: hidden;
}

.contact__bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--color-primary);
  filter: blur(150px);
  opacity: 0.1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

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

.contact__list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-text);
  font-weight: 500;
}

.contact__icon-box {
  width: 32px;
  height: 32px;
  background: rgba(163, 230, 53, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contact__icon-box i {
  width: 18px;
  height: 18px;
}

/* FORM */
.form {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form__header {
  margin-bottom: 30px;
  text-align: center;
}

.form__header h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form__header p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.form__group {
  margin-bottom: 20px;
  position: relative;
}

.form__label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 8px;
  font-weight: 500;
}

.form__input-wrapper {
  position: relative;
}

.form__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  width: 20px;
  height: 20px;
  transition: color 0.3s ease;
}

.form__input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(15, 23, 42, 0.9);
}

.form__input:focus + .form__icon,
.form__input-wrapper:focus-within .form__icon {
  color: var(--color-primary);
}

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

.captcha-question {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-primary);
  letter-spacing: 2px;
  user-select: none;
}

.captcha-input {
  padding-left: 16px; /* Reset padding for captcha */
  text-align: center;
}

/* Checkbox */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkmark:after {
  content: '';
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--color-bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

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

/* Submit Button */
.form__submit {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(163, 230, 53, 0.3);
}

.form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form__error {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
  min-height: 1.2em;
}

/* Success Message State */
.form__success-message {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f172a; /* Solid background to cover form */
  border-radius: 24px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  padding: 40px;
}

.success-icon {
  width: 64px;
  height: 64px;
  color: var(--color-primary);
  margin-bottom: 20px;
}

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

  .contact__info {
    text-align: center;
    margin-bottom: 40px;
  }

  .contact__list {
    align-items: center;
  }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  right: 30px;
  max-width: 400px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(150%); /* Hidden by default */
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner__content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

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

.cookie-banner__btn {
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.3s ease;
}

.cookie-banner__btn:hover {
  background: var(--color-primary);
}

/* --- POLICY PAGES STYLES (privacy.html, terms.html etc) --- */
/* Ці стилі працюють тільки всередині <section class="pages"> */

.pages {
  padding: 140px 0 80px; /* More top padding for fixed header */
}

.pages .container {
  max-width: 800px; /* Reading mode width */
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 40px;
  color: var(--color-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
}

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

.pages p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

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

.pages li {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  list-style: disc;
  margin-left: 20px;
}

.pages strong {
  color: var(--color-text);
  font-weight: 600;
}

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

.pages a:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: none;
  }

  .pages h1 {
    font-size: 2.2rem;
  }
}
