/* GLOBAL SETTINGS & VARIABLES */
:root {
  /* Palette: Glassmorphism Blue/Teal/Dark */
  --bg-dark: #0f172a;
  --primary-gradient: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;

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

  /* Geometry */
  --radius-xl: 30px;
  --radius-md: 16px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  /* Deep gradient background mesh */
  background-image: radial-gradient(
      at 0% 0%,
      rgba(0, 198, 251, 0.15) 0px,
      transparent 50%
    ),
    radial-gradient(at 100% 100%, rgba(0, 91, 234, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-xl);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px; /* Max rounded */
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--primary {
  background: var(--primary-gradient);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 91, 234, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 198, 251, 0.4);
}

/* HEADER */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 50px; /* Hyper-rounded header */
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--glass-shadow);
}

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

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header__nav {
  display: none;
}

.header__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 20px;
}

.header__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.header__cta {
  display: none;
}

.header__burger {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* FOOTER */
.footer {
  margin-top: 100px;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 60px 20px 20px;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

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

.footer__desc {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  display: inline-block;
}

.footer__link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

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

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

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

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

.footer__icon {
  min-width: 20px;
  color: var(--accent);
}

.footer__bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

/* Responsive */
@media (min-width: 768px) {
  .header__nav {
    display: block;
  }
  .header__cta {
    display: inline-flex;
  }
  .header__burger {
    display: none;
  }
  .header__menu {
    display: flex;
    gap: 8px;
  }

  .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: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px; /* Space for fixed header */
  padding-bottom: 60px;
  overflow: hidden;
}

/* Background Animated Blobs */
.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
  animation: float 10s infinite ease-in-out alternate;
}

.hero__bg-shape--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.hero__bg-shape--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #005bea 0%, transparent 70%);
  bottom: 0;
  right: -50px;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Hero Typography */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 198, 251, 0.1);
  border: 1px solid rgba(0, 198, 251, 0.3);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
}

.highlight {
  color: white;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

/* Buttons & Actions */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

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

.btn--glass {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

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

/* 3D Glass Card Visual */
.hero__visual {
  display: flex;
  justify-content: center;
  perspective: 1000px; /* Enable 3D space */
}

.glass-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 450px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out; /* Smooth follow */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Inner content pushed forward in 3D */
.glass-card__content {
  transform: translateZ(50px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.glass-card__icon-box {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.glass-card__icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.glass-card h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

/* Loading Bar Simulation */
.loading-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.loading-bar__fill {
  width: 80%;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 10px;
  animation: load 2s infinite ease-in-out;
}

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

.glass-card__stats {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-top: 10px;
}

.glass-card__blob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(-20px);
  width: 200px;
  height: 200px;
  background: var(--primary-gradient);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.4;
}

/* Desktop Grid */
@media (min-width: 992px) {
  .hero__container {
    grid-template-columns: 1.2fr 1fr;
  }
  .hero__title {
    font-size: 5rem;
  }
}

/* SECTIONS COMMON */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* FEATURES SECTION */
.features {
  padding: 100px 0;
  position: relative;
}

.features__header {
  text-align: center;
  margin-bottom: 80px;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Feature Card Styling */
.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Glass hover effect */
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card__icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(0, 198, 251, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.feature-card__icon-wrapper i {
  width: 28px;
  height: 28px;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: white;
}

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

.feature-card__desc strong {
  color: #fff;
  font-weight: 600;
}

.feature-card__link {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-card__link:hover {
  gap: 10px;
}

/* Highlight Card Style */
.feature-card--highlight {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(0, 91, 234, 0.1) 100%
  );
  border: 1px solid rgba(0, 198, 251, 0.3);
}

.feature-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-gradient);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

/* Responsive Broken Grid Logic */
@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* GUIDE SECTION & TIMELINE */
/* GUIDE SECTION & TIMELINE */
.guide {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.center-text {
  text-align: center;
  margin-bottom: 80px; /* Більший відступ від заголовка до таймлайну */
}

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

/* Central glowing line */
.timeline__line {
  position: absolute;
  left: 20px; /* Mobile position */
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden; /* Важливо! Обрізає краплю */
}

/* Moving gradient inside the line */
.timeline__line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30%; /* Зменшили висоту краплі */
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent),
    transparent
  );
  animation: flowDown 4s infinite linear; /* Трохи повільніше */
}

@keyframes flowDown {
  0% {
    top: -30%;
  } /* Починає вище */
  100% {
    top: 100%;
  }
}

.timeline__item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 70px; /* Збільшили відступ на мобільному */
  width: 100%;
}

/* The Number Marker */
.timeline__marker {
  position: absolute;
  left: -2px; /* Центруємо по лінії (44/2 - 4/2 + offset) */
  top: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-dark);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 198, 251, 0.5);
  z-index: 2;
}

/* Content Card */
.timeline__content {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 30px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 1;
}

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

@media (min-width: 768px) {
  .timeline__line {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline__item {
    width: 50%;
  }

  /* --- LEFT SIDE ITEMS --- */
  .timeline__item:nth-child(odd) {
    padding-left: 0;
    padding-right: 60px; /* Відступ картки від лінії */
    text-align: right;
  }

  .timeline__item:nth-child(odd) .timeline__marker {
    left: auto;
    right: -82px; /* (padding-right 60 + marker-width 44) / 2 = зсув, підбираємо вручну щоб не залазив */
  }

  /* --- RIGHT SIDE ITEMS --- */
  .timeline__item--right {
    margin-left: 50%;
    padding-left: 60px; /* Відступ картки від лінії */
    padding-right: 0;
    text-align: left;
  }

  .timeline__item--right .timeline__marker {
    left: -82px; /* Симетрично до лівого */
    right: auto;
  }
}

/* REVIEWS SECTION */
.reviews {
  padding: 100px 0;
  overflow: hidden; /* Crucial for marquee */
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 91, 234, 0.05),
    transparent
  );
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.marquee {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scroll 40s linear infinite;
}

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

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

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* Shift by half because content is doubled */
}

/* Review Card */
.review-card {
  width: 350px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
}

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

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

.review-card__name {
  color: white;
  font-size: 1.1rem;
  font-family: var(--font-heading);
}

.review-card__stars {
  color: #ffd700; /* Gold */
  font-size: 0.9rem;
  letter-spacing: 2px;
}

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

.review-card__text strong {
  color: var(--accent);
  font-style: normal;
}

/* CONTACT SECTION */
.contact {
  padding: 100px 0;
  position: relative;
  /* Darker background for contrast */
  background: radial-gradient(
    circle at 50% 50%,
    rgba(15, 23, 42, 0.8),
    #0f172a
  );
}

.contact__blob {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 91, 234, 0.15), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

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

/* Left Side Info */
.contact__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 30px;
  border: 1px solid rgba(0, 198, 251, 0.2);
}

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

.contact__benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 1.05rem;
}

.contact__benefits i {
  color: var(--accent);
}

/* Right Side Form */
.contact__form-wrapper {
  position: relative;
  perspective: 1000px;
}

.glass-form {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
}

.glass-form__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 24px;
  text-align: center;
  color: white;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.input-wrapper {
  position: relative;
}

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

.form-input {
  width: 100%;
  padding: 14px 14px 14px 48px; /* space for icon */
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 198, 251, 0.1);
  background: rgba(15, 23, 42, 0.8);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--accent);
}

.error-msg {
  display: none;
  color: #ff4757;
  font-size: 0.8rem;
  margin-top: 5px;
}

.form-input.error {
  border-color: #ff4757;
}

.custom-captcha {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.captcha-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.captcha-container input {
  display: none;
}

.captcha-box {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: white;
  position: relative;
  transition: all 0.2s;
}

.captcha-container input:checked + .captcha-box {
  background: #4a90e2;
  border-color: #4a90e2;
}

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

.captcha-text {
  color: #333;
  font-size: 0.9rem;
  font-family: sans-serif;
}

.captcha-icon {
  color: #555;
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.privacy-label {
  display: flex;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

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

.privacy-label input {
  margin-top: 3px;
  accent-color: var(--accent);
}

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

.success-message {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  animation: fadeIn 0.5s ease;
}

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

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 198, 251, 0.4);
}

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

/* Loader */
.loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100%;
  max-width: 400px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  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.4, 0, 0.2, 1);
}

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

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

.cookie-popup__icon {
  color: var(--accent);
  min-width: 24px;
}

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

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

.btn--sm {
  padding: 8px 20px;
  font-size: 0.9rem;
  align-self: flex-end;
}

.pages {
  padding: 160px 0 80px;
  min-height: 80vh;
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: white;
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--accent);
}

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

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

.pages li {
  margin-bottom: 10px;
  color: var(--text-muted);
  list-style-type: disc;
  padding-left: 5px;
}

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

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

.form-input.input-error {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.1);
  animation: shake 0.4s ease-in-out;
}

.form-input.input-error:focus {
  box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.2);
}

.error-msg {
  display: none;
  color: #ff4757;
  font-size: 0.8rem;
  margin-top: 6px;
  padding-left: 4px;
  font-weight: 500;
}

.error-msg.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.custom-captcha {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 320px;
  user-select: none;
  cursor: pointer;
  transition: all 0.3s;
}

.custom-captcha.error-border {
  border-color: #ff4757;
  background: rgba(255, 71, 87, 0.05);
}

.custom-captcha.verified {
  background: #f0fff4;
  border-color: #2ecc71;
  cursor: default;
}

.captcha-checkbox {
  width: 26px;
  height: 26px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-right: 12px;
}

.captcha-checkmark {
  width: 18px;
  height: 18px;
  color: #2ecc71;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s cubic-bezier(0.5, 1.8, 0.9, 0.8);
}

.captcha-spinner {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  opacity: 0;
  animation: spin 1s linear infinite;
}

.custom-captcha.loading .captcha-spinner {
  opacity: 1;
}

.custom-captcha.verified .captcha-checkmark {
  opacity: 1;
  transform: scale(1);
}

.custom-captcha.verified .captcha-checkbox {
  border-color: transparent;
}

.captcha-text {
  flex-grow: 1;
  color: #333;
  font-size: 0.9rem;
  font-family: sans-serif;
}

.captcha-icon-logo {
  width: 28px;
  height: 28px;
  color: #555;
  opacity: 0.5;
}

.privacy-label input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-group.error-border {
  border-left: 2px solid #ff4757;
  padding-left: 10px;
}

/* Стилі для меню на мобільних (початковий стан - сховано) */
@media (max-width: 767px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 10px 20px;
    /background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
  }

  .header__nav.is-active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .header__menu {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }

  .header__item {
    width: 100%;
  }

  .header__link {
    display: block;
    font-size: 1.1rem;
    padding: 10px;
  }

  .header__nav .header__cta {
    display: inline-flex;
    margin-top: 20px;
  }
}
