/* --- Variables & Setup --- */
:root {
  --bg-dark: #0b0c10;
  --bg-card: #1f2833;
  --primary-neon: #66fcf1; /* Cyan Neon */
  --secondary-neon: #45a29e;
  --text-main: #ffffff;
  --text-muted: #c5c6c7;

  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-lg: 30px;
  --radius-sm: 12px;

  --container-width: 1200px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-height); /* Компенсація фіксованого хедера */
}

ul {
  list-style: none;
}

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

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

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

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 50px; /* Hyper-rounded */
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--neon {
  background-color: var(--primary-neon);
  color: var(--bg-dark);
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.4);
}

.btn--neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(102, 252, 241, 0.6);
}

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

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

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

.header__logo-img {
  height: 40px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.header__list {
  display: flex;
  gap: 30px;
}

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

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

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

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

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

/* --- Mobile Nav --- */
@media (max-width: 991px) {
  .header__burger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 40px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    gap: 20px;
  }

  .header__nav.is-active {
    transform: translateX(0);
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-size: 1.2rem;
  }
}

/* --- Footer --- */
.footer {
  background-color: #050608;
  padding: 80px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 15px;
}

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

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(102, 252, 241, 0.1);
  color: var(--primary-neon);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.footer__list li {
  margin-bottom: 12px;
}

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

.footer__link:hover {
  color: var(--primary-neon);
  padding-left: 5px; /* Micro-interaction */
}

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

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

.footer__icon-sm {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* --- Mobile Footer --- */
@media (max-width: 768px) {
  .footer__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh; /* На весь екран */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0;
}

/* Canvas Background */
.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6; /* Щоб не заважав тексту */
}

.hero__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--bg-dark), transparent);
  z-index: 2;
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 3;
}

.hero__content {
  max-width: 800px;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 50px;
  color: var(--primary-neon);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 25px;
  backdrop-filter: blur(5px);
}

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

/* Typography */
.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Адаптивний шрифт */
  line-height: 1.1;
  margin-bottom: 30px;
  color: var(--text-main);
}

.text-neon {
  color: var(--primary-neon);
  text-shadow: 0 0 20px rgba(102, 252, 241, 0.3);
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.8;
}

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

.btn--lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn__icon-right {
  margin-left: 10px;
  width: 20px;
  height: 20px;
}

.hero__info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Animations */
@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
    padding-top: 120px; /* Більше місця для хедера на мобільному */
  }

  .hero__content {
    margin: 0 auto;
  }

  .hero__actions {
    justify-content: center;
  }
}

/* --- About Section --- */
.about {
  padding: 120px 0;
  position: relative;
}

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

/* Typography Helpers */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 30px;
  color: var(--text-main);
}

/* Visual Card (Left Side) */
.about__visual {
  position: relative;
}

.about__card {
  background: var(--bg-card);
  border-radius: 40px; /* Hyper-rounded */
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.about__stat {
  position: relative;
  z-index: 2;
}

.about__stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-neon);
  line-height: 1;
  margin-bottom: 10px;
}

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

.about__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  width: fit-content;
  margin-top: 20px;
  border: 1px solid rgba(102, 252, 241, 0.1);
}

.about__badge-icon {
  color: var(--primary-neon);
}

/* Decorative Glow inside card */
.about__glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: var(--primary-neon);
  filter: blur(80px);
  opacity: 0.2;
  z-index: 1;
}

/* Content (Right Side) */
.about__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}

.about__feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(102, 252, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-neon);
  flex-shrink: 0;
}

.feature-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--text-main);
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 991px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about__visual {
    order: -1; /* Картинка зверху на планшетах */
    max-width: 500px;
    margin: 0 auto;
  }
}

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

  .about__card {
    padding: 40px 25px;
  }

  .about__stat-num {
    font-size: 3rem;
  }
}

/* --- Program Section (Accordion) --- */
.program {
  padding: 100px 0;
}

.program__header-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.program__subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-top: 15px;
}

/* Accordion Styles */
.accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.accordion__item {
  background: var(--bg-card);
  border-radius: 30px; /* Hyper-rounded */
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.accordion__item.is-open {
  border-color: var(--primary-neon);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
}

.accordion__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--secondary-neon);
  margin-right: 20px;
  font-weight: 700;
}

.accordion__title {
  font-size: 1.2rem;
  font-weight: 600;
  flex-grow: 1;
  margin-right: 20px;
}

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

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg); /* Plus becomes X */
  color: var(--primary-neon);
}

/* Content Animation */
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion__body {
  padding: 0 30px 30px 80px; /* Indent to align with text */
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.accordion__list {
  margin-top: 15px;
  list-style: disc;
  padding-left: 20px;
}

.accordion__list li {
  margin-bottom: 5px;
}

.accordion__action {
  margin-top: 20px;
}

.btn--sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .accordion__btn {
    padding: 20px;
  }

  .accordion__body {
    padding: 0 20px 20px 20px;
  }

  .accordion__num {
    display: none; /* Hide numbers on small screens */
  }
}

/* --- Advantages Section --- */
.advantages {
  padding: 100px 0;
}

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

.mb-60 {
  margin-bottom: 60px;
}

/* Grid Layout */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto; /* 2 ряди */
  gap: 30px;
}

/* Base Card Style */
.adv-card {
  background: var(--bg-card);
  border-radius: 40px; /* Hyper-rounded */
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Hover Effects (Complex) */
.adv-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(102, 252, 241, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(102, 252, 241, 0.1); /* Neon glow */
}

/* Modifiers for Grid Spanning */
.adv-card--tall {
  grid-column: span 1;
  grid-row: span 2; /* Займає всю висоту зліва */
  background: linear-gradient(145deg, var(--bg-card) 0%, #15191e 100%);
}

.adv-card--wide {
  grid-column: span 2; /* Займає дві колонки справа внизу */
}

/* Card Content */
.adv-card__icon-box {
  width: 60px;
  height: 60px;
  background: rgba(102, 252, 241, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-neon);
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.adv-card:hover .adv-card__icon-box {
  transform: rotate(10deg) scale(1.1);
  background: var(--primary-neon);
  color: var(--bg-dark);
}

.adv-card__title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.adv-card__desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.adv-card__desc strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Decorative Background Icon for Tall Card */
.adv-card__bg-icon {
  position: absolute;
  bottom: -20px;
  right: -20px;
  color: rgba(255, 255, 255, 0.02);
  transform: rotate(-15deg);
  transition: all 0.5s ease;
}

.adv-card__bg-icon svg {
  width: 200px;
  height: 200px;
}

.adv-card:hover .adv-card__bg-icon {
  transform: rotate(0deg) scale(1.1);
  color: rgba(102, 252, 241, 0.05);
}

/* Layout for Wide Card */
.adv-card__content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.adv-card__visual-icon {
  width: 80px;
  height: 80px;
  color: var(--secondary-neon);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.adv-card:hover .adv-card__visual-icon {
  opacity: 1;
  filter: drop-shadow(0 0 10px var(--secondary-neon));
}

/* Responsive */
@media (max-width: 991px) {
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .adv-card--tall {
    grid-column: span 2; /* На планшеті стає широкою */
    grid-row: span 1;
  }
}

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

  .adv-card--tall,
  .adv-card--wide {
    grid-column: span 1;
    grid-row: auto;
  }
}

/* --- Reviews Section (Marquee) --- */
.reviews {
  padding: 100px 0;
  overflow: hidden; /* Важливо: приховує елементи, що виходять за межі */
}

.section-desc {
  color: var(--text-muted);
  max-width: 500px;
  margin: 10px auto 0;
}

/* Marquee Container */
.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee__content {
  display: flex;
  gap: 30px;
  width: max-content; /* Ширина залежить від контенту */
}

/* Animation Defs */
.marquee--left .marquee__content {
  animation: scrollLeft 40s linear infinite;
}

.marquee--right .marquee__content {
  animation: scrollRight 40s linear infinite;
}

/* Pause on Hover */
.marquee:hover .marquee__content {
  animation-play-state: paused;
}

/* Keyframes */
@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* Рухаємо на половину (бо дублювали контент) */
}

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

/* Review Card Styling */
.review-card {
  background: var(--bg-card);
  width: 400px; /* Фіксована ширина для передбачуваності */
  padding: 30px;
  border-radius: 30px; /* Hyper-rounded */
  border: 1px solid rgba(255, 255, 255, 0.05);
  white-space: normal; /* Текст всередині переноситься */
  flex-shrink: 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
  border-color: rgba(102, 252, 241, 0.5);
  transform: scale(1.02);
  cursor: default;
}

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

.review-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(102, 252, 241, 0.1);
  color: var(--primary-neon);
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  flex-shrink: 0;
}

.review-card__name {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 700;
}

.review-card__loc {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

.review-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.review-card__text strong {
  color: var(--text-main);
}

.review-card__rating {
  color: #ffd700; /* Gold for stars */
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
  .review-card {
    width: 300px;
    padding: 20px;
  }

  .marquee--left .marquee__content,
  .marquee--right .marquee__content {
    animation-duration: 20s; /* Швидше на мобілках або повільніше - за смаком */
  }
}

/* --- Contact Section --- */
.contact {
  padding: 100px 0;
  background: linear-gradient(to bottom, var(--bg-dark), #0f1216);
}

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

/* Left Side */
.contact__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-neon);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact__dot {
  width: 8px;
  height: 8px;
  background: var(--primary-neon);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-neon);
  animation: pulse 1.5s infinite;
}

.contact__desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 450px;
}

.contact__benefits {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact__benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-main);
  font-weight: 500;
}

/* Right Side: Form Container */
.contact__form-box {
  background: var(--bg-card);
  padding: 50px;
  border-radius: 40px; /* Hyper-rounded */
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Inputs */
.form__group {
  margin-bottom: 25px;
}

.form__label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-left: 15px;
}

.form__input-wrapper {
  position: relative;
}

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

.form__input {
  width: 100%;
  background: rgba(11, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px; /* Hyper-rounded inputs */
  padding: 18px 20px 18px 55px; /* Padding left for icon */
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--primary-neon);
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.15);
}

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

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  color: var(--text-main);
}

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

.checkmark {
  height: 24px;
  width: 24px;
  background-color: rgba(11, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  position: relative;
  transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: var(--primary-neon);
}

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

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

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

.custom-checkbox .checkmark:after {
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid var(--bg-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form__captcha {
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 25px;
  width: fit-content;
}

.form__legal {
  margin-bottom: 30px;
}

.checkmark--sm {
  height: 18px;
  width: 18px;
  border-radius: 4px;
}

.checkmark--sm:after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
}

.form__legal .checkbox-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

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

.btn--full {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
}

/* Success Message */
.success-message {
  display: none;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border-radius: 40px;
  z-index: 10;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(102, 252, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-neon);
  margin-bottom: 25px;
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.success-title {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 15px;
}

.success-text {
  color: var(--text-muted);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

  .contact__form-box {
    padding: 30px;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Схований знизу */
  width: 90%;
  max-width: 600px;
  background: rgba(31, 40, 51, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(102, 252, 241, 0.2);
  border-radius: 20px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.is-visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-popup__content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cookie-popup__icon {
  color: var(--primary-neon);
  flex-shrink: 0;
}

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

.cookie-popup__text a {
  color: var(--text-main);
  text-decoration: underline;
}

.cookie-popup__text a:hover {
  color: var(--primary-neon);
}

@media (max-width: 600px) {
  .cookie-popup {
    flex-direction: column;
    align-items: flex-start;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    padding: 25px;
  }

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

  .cookie-popup button {
    width: 100%;
  }
}

/* --- Policy Pages Styling --- */
.page-content-wrapper {
  padding-top: 40px;
  min-height: 80vh;
}

.pages {
  padding: 60px 0 100px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
  color: var(--primary-neon);
  text-align: center;
}

.pages {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 50px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pages h2 {
  font-size: 1.5rem;
  margin: 40px 0 20px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.pages h2:first-child {
  margin-top: 0;
}

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

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.pages li {
  margin-bottom: 10px;
}

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

.pages a {
  color: var(--primary-neon);
  text-decoration: underline;
  transition: opacity 0.3s;
}

.pages a:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .pages {
    padding: 30px 20px;
  }
}

/* --- Validation Styles --- */
.form__input.is-invalid {
  border-color: #ff4d4d; /* Red Neon */
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
  animation: shake 0.4s ease-in-out;
}

.form__input.is-invalid + .form__icon {
  color: #ff4d4d;
}

.input-error-msg {
  color: #ff4d4d;
  font-size: 0.8rem;
  margin-top: 5px;
  padding-left: 15px;
  display: none; /* Сховано за замовчуванням */
}

.form__input.is-invalid ~ .input-error-msg {
  display: block;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
