/* --- Змінні та налаштування кольорів (Airy Pastel Theme) --- */
:root {
  /* Палітра */
  --color-bg: #f9fafd; /* Дуже світлий сіро-блакитний фон */
  --color-text-main: #2d3142; /* Глибокий темний для тексту */
  --color-text-muted: #7d8597;
  --color-primary: #6c5ce7; /* М'який фіолетовий акцент */
  --color-primary-hover: #5649c0;
  --color-accent: #00cec9; /* Свіжий тіффані/м'ятний */
  --color-white: #ffffff;
  --color-footer-bg: #edf0f7;

  /* Геометрія */
  --radius-xl: 50px; /* Гіпер-округлення */
  --radius-md: 20px;
  --container-width: 1240px;
  --header-height: 80px;

  /* Тіні (Soft Shadows) */
  --shadow-soft: 0 10px 40px -10px rgba(108, 92, 231, 0.15);
  --shadow-hover: 0 20px 50px -10px rgba(108, 92, 231, 0.25);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

html,
body {
  width: 100%;
  overflow-x: hidden; /* Забороняє горизонтальну прокрутку всієї сторінки */
  position: relative;
}

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 Helpers --- */
h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.2;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  border: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* --- HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(249, 250, 253, 0.85); /* Glass effect */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

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

/* Desktop Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

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

/* Hover Effect: Dot Appearance */
.header__link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.header__link:hover::after {
  transform: translateX(-50%) scale(1);
}

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

/* --- FOOTER --- */
.footer {
  background-color: var(--color-footer-bg);
  padding: 80px 0 30px;
  margin-top: auto; /* Push footer to bottom */
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.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: 24px;
  color: var(--color-text-main);
}

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

.footer__logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

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

.footer__link,
.footer__link-contact {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer__link:hover,
.footer__link-contact:hover {
  color: var(--color-primary);
  transform: translateX(5px);
}

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

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

.footer__eu-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 30px;
}

.footer__copyright {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* --- MOBILE ADAPTIVE --- */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 40px;
  }

  .header__nav.is-active {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
  }

  .header__link {
    font-size: 1.5rem;
  }

  .header__burger {
    display: block;
    z-index: 1001;
  }

  /* Burger animation state can be added here */
}

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

  .footer__desc {
    margin: 20px auto;
  }

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

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 160px 0 100px; /* Відступ зверху враховує фіксований хедер */
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.8) 0%,
    var(--color-bg) 100%
  );
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Позаду контенту */
  pointer-events: none;
}

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

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
  border: 1px solid rgba(108, 92, 231, 0.2);
}

.hero__badge i {
  width: 16px;
  height: 16px;
}

/* Typography */
.hero__title {
  font-size: 5.5rem; /* Гігантський заголовок */
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 30px;
  color: var(--color-text-main);
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero__description {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.6;
}

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

.hero__btn {
  padding: 18px 42px;
  font-size: 1.1rem;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  background: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

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

/* Stats */
.hero__stats {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.hero__stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 5px;
}

.hero__stat-divider {
  width: 1px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.1);
}

/* Visual / Floating Card */
.hero__visual {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 30px;
  border-radius: 40px; /* Гіпер-округлення */
  box-shadow: 0 20px 60px rgba(108, 92, 231, 0.15);
  width: 300px;
  animation: float 6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.hero__card-icon {
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
}

.hero__card-text {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.hero__card-text strong {
  font-size: 1.2rem;
  color: var(--color-text-main);
}

.hero__card-text span {
  font-size: 0.9rem;
  color: var(--color-accent);
}

.hero__card-loader {
  width: 100%;
  height: 6px;
  background: rgba(108, 92, 231, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 60%;
  background: var(--color-accent);
  border-radius: 10px;
  animation: load 2s infinite ease-in-out;
}

@keyframes load {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Mobile Adaptive */
@media (max-width: 992px) {
  .hero__title {
    font-size: 3.5rem;
  }
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__stats {
    justify-content: center;
  }
  .hero__visual {
    display: none;
  } /* Приховуємо картку на планшетах для чистоти */
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 2.8rem;
    word-wrap: break-word;
  }
  .hero__badge {
    margin: 0 auto 20px;
  }
}

/* --- GLOBAL SECTION STYLES --- */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 600px;
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

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

.about__features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 40px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
  color: var(--color-text-main);
  transition: transform 0.3s ease;
}

.feature-pill:hover {
  transform: translateY(-5px);
}

.feature-pill i {
  color: var(--color-accent);
  width: 20px;
}

/* About Visual - Asymmetric Grid */
.about__visual {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 200px 150px;
  gap: 20px;
}

.about__card {
  background: var(--color-white);
  border-radius: 40px; /* Hyper-rounded */
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.about__card:hover {
  transform: scale(1.02);
}

.about__card--large {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  background: linear-gradient(135deg, var(--color-primary) 0%, #a29bfe 100%);
  color: var(--color-white);
}

.about__card--small {
  grid-column: 1 / 2; /* Зміщення для асиметрії */
  grid-row: 2 / 3;
}

.about__big-num {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.about__icon-bg {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 150px;
  height: 150px;
  opacity: 0.1;
  color: var(--color-white);
}

.user-avatars {
  display: flex;
  margin-bottom: 15px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--color-white);
  margin-left: -15px;
}

.avatar:first-child {
  margin-left: 0;
}

/* --- PROGRAM SECTION --- */
.program {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  margin: 20px; /* Відступи по краях екрану */
}

.program__steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.step-card {
  background-color: var(--color-bg);
  border-radius: 40px;
  padding: 40px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid transparent;
}

.step-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(108, 92, 231, 0.1);
  transform: translateY(-5px);
}

.step-card--highlight {
  background-color: #e0f7fa; /* Дуже світлий м'ятний */
}

.step-card--accent {
  background-color: #f3e5f5; /* Дуже світлий фіолетовий */
}

.step-card__num {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.05);
  position: absolute;
  top: 20px;
  right: 30px;
  line-height: 1;
}

.step-card__icon {
  width: 50px;
  height: 50px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  color: var(--color-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.step-card__text {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.program__cta {
  text-align: center;
  margin-top: 60px;
}

/* --- ADAPTIVE STYLES FOR SECTIONS --- */
@media (max-width: 992px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about__visual {
    justify-content: center;
  }

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

@media (max-width: 576px) {
  .section-title {
    font-size: 2.2rem;
  }

  .about__card--small {
    grid-column: 1 / 3; /* На мобільному на всю ширину */
  }

  .step-card {
    padding: 30px;
  }
}

/* --- BENTO GRID (Advantages) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 30px;
}

.bento-card {
  background-color: var(--color-white);
  border-radius: 40px;
  padding: 35px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: relative;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.bento-card--large {
  grid-column: span 2;
  background-color: #f8f9fe; /* Дуже світлий фон */
}

.bento-card--medium {
  grid-column: span 1;
}

.bento-card--wide {
  grid-column: span 3;
  background: linear-gradient(135deg, #a29bfe 0%, var(--color-primary) 100%);
  color: var(--color-white);
}

.bento-card__content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bento-icon-wrapper {
  width: 60px;
  height: 60px;
  background: #e0e7ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-primary);
}

.bento-icon--accent {
  background: #e0f2f1;
  color: var(--color-accent);
}
.bento-icon--blue {
  background: #e3f2fd;
  color: #2196f3;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.bento-card p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.bento-card--wide p {
  color: rgba(255, 255, 255, 0.9);
}

/* Wide Card specific layout */
.bento-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.large-icon {
  width: 100px;
  height: 100px;
  opacity: 0.2;
  color: var(--color-white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 600;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}

/* --- REVIEWS SLIDER --- */
.reviews__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
}

.reviews__nav {
  display: flex;
  gap: 15px;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--color-text-main);
}

.nav-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.reviews__slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 40px; /* Місце для тіні */
  padding-left: 5px;
  padding-right: 5px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
  scrollbar-width: none; /* Hide scrollbar Firefox */
}

.reviews__slider::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.review-card {
  min-width: 400px;
  background: var(--color-white);
  padding: 30px;
  border-radius: 40px;
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.review-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-white);
  font-size: 1.1rem;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
}
.author-role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.review-stars {
  display: flex;
  gap: 4px;
}
.star-filled {
  width: 16px;
  height: 16px;
  fill: #ffc107;
  color: #ffc107;
}
.star-half {
  width: 16px;
  height: 16px;
  fill: url(#half);
  color: #ffc107; /* спрощено */
}

.review-text {
  color: var(--color-text-main);
  font-style: italic;
  line-height: 1.6;
}

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

  .bento-card--large,
  .bento-card--medium,
  .bento-card--wide {
    grid-column: span 1;
  }

  .review-card {
    min-width: 300px;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  background: linear-gradient(180deg, var(--color-bg) 0%, #e3f2fd 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
}

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

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

.benefit-item i {
  color: var(--color-accent);
  width: 20px;
}

/* Form Styles */
.contact__form-wrapper {
  background: var(--color-white);
  padding: 40px;
  border-radius: 40px;
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-left: 10px;
}

.form-input {
  width: 100%;
  padding: 16px 24px;
  border-radius: 30px; /* Hyper-rounded inputs */
  border: 2px solid #f0f2f5;
  background: #f9fafd;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

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

.custom-captcha {
  background: #f9fafd;
  border: 1px solid #e0e0e0;
  padding: 15px 20px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  width: fit-content;
  user-select: none;
}

.custom-captcha.is-checked {
  border-color: var(--color-accent);
  background: rgba(0, 206, 201, 0.05);
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #c4c4c4;
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s;
  position: relative;
}

.custom-captcha.is-checked .captcha-checkbox {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.custom-captcha.is-checked .captcha-checkbox::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.captcha-text {
  font-weight: 500;
  color: var(--color-text-main);
}

.captcha-icon {
  margin-left: auto;
  width: 20px;
  color: var(--color-text-muted);
}

.error-msg {
  color: #ff7675;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
  margin-left: 10px;
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  position: relative;
}

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

.checkmark {
  position: relative;
  top: 2px;
  height: 20px;
  width: 20px;
  background-color: #f0f2f5;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s;
}

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

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

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

.success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.success-message.is-visible {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.cookie-popup {
  position: fixed;
  z-index: 10000; /* Максимально зверху */

  /* Позиціонування по центру */
  bottom: 20px;
  left: 0;
  right: 0;
  margin: 0 auto; /* Магія центрування при left:0 і right:0 */

  /* Розміри */
  width: 92%; /* Займає 92% ширини будь-якого екрану */
  max-width: 600px; /* На десктопі не стає гігантським */

  /* Стиль */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);

  /* Анімація появи знизу */
  transform: translateY(150%); /* Ховаємо внизу */
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-popup.is-active {
  transform: translateY(0); /* Піднімаємо на місце */
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.cookie-content p {
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin: 0;
  line-height: 1.4;
}

.cookie-content a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.cookie-btn {
  padding: 12px 24px;
  font-size: 0.9rem;
  white-space: nowrap;
  border-radius: 50px;
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  flex-shrink: 0; /* Щоб кнопка не здавлювалась */
}

/* --- ADAPTIVE (MOBILE) --- */
@media (max-width: 600px) {
  .cookie-popup {
    bottom: 15px; /* Трохи нижче на мобілці */
    width: 95%; /* Ще ширше на маленьких екранах */
    padding: 20px 15px;
  }

  .cookie-content {
    flex-direction: column; /* Текст зверху, кнопка знизу */
    text-align: center;
  }

  .cookie-btn {
    width: 100%; /* Кнопка на всю ширину для зручності */
    padding: 14px;
  }
}

/* --- STYLES FOR POLICY PAGES (privacy.html etc) --- */
.pages {
  padding: 120px 0 80px;
  min-height: 80vh;
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--color-primary);
}

.pages h2 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--color-text-main);
}

.pages p {
  margin-bottom: 15px;
  color: var(--color-text-muted);
}

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

.pages li {
  margin-bottom: 10px;
}
.pages a {
  color: var(--color-primary);
}

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

  .contact__form-wrapper {
    order: -1; /* Форма зверху на мобільному */
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-btn {
    width: 100%;
  }
}
