:root {
  /* Palette: Airy Pastel */
  --color-bg: #f8fafc; /* Дуже світлий сірий, майже білий */
  --color-surface: #ffffff;
  --color-primary: #7c3aed; /* М'який фіолетовий */
  --color-primary-hover: #6d28d9;
  --color-accent: #14b8a6; /* Пастельний бірюзовий */
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;

  /* Geometry */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 35px; /* Гіпер-округлення */
  --radius-full: 9999px;

  /* Spacing */
  --container-width: 1280px;
  --header-height: 90px;
  --section-gap: 120px;

  /* Shadows */
  --shadow-soft: 0 10px 40px -10px rgba(124, 58, 237, 0.08);
  --shadow-card: 0 20px 50px -12px rgba(0, 0, 0, 0.05);

  /* Fonts */
  --font-head: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

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

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

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

ul {
  list-style: none;
}

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

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

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

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

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

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.25);
}

/* HEADER */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
}

.header__container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.header__logo-icon {
  width: 36px;
  height: 36px;
}

.header__logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

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

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

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

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

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

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

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

/* FOOTER */
.footer {
  background-color: var(--color-surface);
  padding: 80px 0 30px;
  margin-top: var(--section-gap);
  border-top-left-radius: 60px; /* Гігантське округлення зверху */
  border-top-right-radius: 60px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02);
}

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

.footer__logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: 20px;
}

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

.footer__note,
.footer__subtext {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  background: rgba(20, 184, 166, 0.1);
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.footer__title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-text-main);
}

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

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

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

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

.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__bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Mobile Adaptation */
@media (max-width: 1024px) {
  .header__container {
    padding: 0 20px;
  }
  .header__nav {
    display: none; /* Mobile menu logic to be handled by JS class toggling */
    position: absolute;
    top: 110%;
    right: 0;
    left: 0;
    background: white;
    flex-direction: column;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin: 0 20px;
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .header__burger {
    display: block;
  }

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

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .header__container {
    height: 70px;
  }
  :root {
    --header-height: 70px;
  }
}

/* HERO SECTION */
.hero {
  padding: 160px 0 100px; /* Відступ зверху враховує фіксований хедер */
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

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

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
  border: 1px solid var(--color-border);
}

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

/* Typography */
.hero__title {
  font-family: var(--font-head);
  font-size: 4rem; /* Великий заголовок */
  line-height: 1.1;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.text-highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: rgba(124, 58, 237, 0.15);
  z-index: -1;
  border-radius: 4px;
}

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

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

.btn--lg {
  padding: 18px 40px;
  font-size: 1.125rem;
}

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

.hero__avatars {
  display: flex;
}

.hero__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--color-text-main);
  margin-left: -12px;
}

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

.hero__trust-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
}

/* Visual Composition (Right Side) */
.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__circle {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.1) 0%,
    rgba(20, 184, 166, 0.05) 70%
  );
  border-radius: 50%;
  z-index: 0;
  filter: blur(40px);
}

.hero__main-img {
  width: 320px;
  height: 400px;
  object-fit: cover;
  border-radius: 100px; /* Гіпер-округлення */
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-card);
  border: 8px solid white;
}

/* Floating Cards */
.hero__card {
  position: absolute;
  background: white;
  padding: 16px 24px;
  border-radius: var(--radius-lg); /* 30px+ */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
  max-width: 220px;
  animation: float 6s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero__icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.hero__card-text {
  display: flex;
  flex-direction: column;
}

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

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

/* Позиціонування карток */
.hero__card--1 {
  top: 40px;
  left: 0;
  animation-delay: 0s;
}

.hero__card--2 {
  bottom: 60px;
  right: -20px;
  animation-delay: 2s;
}

.hero__card--3 {
  top: 150px;
  right: -40px;
  animation-delay: 4s;
}

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

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

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

  .hero__title {
    font-size: 3rem;
  }

  .hero__visual {
    height: 400px;
    width: 100%;
  }

  .hero__main-img {
    width: 260px;
    height: 340px;
  }

  .hero__card {
    transform: scale(0.9);
  }
}

@media (max-width: 600px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__card--3 {
    display: none; /* Сховати одну картку на мобільному */
  }
  .hero__actions {
    justify-content: center;
  }
}
/* ЗАГАЛЬНІ СТИЛІ ДЛЯ СЕКЦІЙ */
.section {
  padding: var(--section-gap) 0;
}

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

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

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

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto); /* Автовисота */
  gap: 24px;
}

/* Base Card Style */
.bento-card {
  border-radius: 40px; /* Hyper-rounded */
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

/* Modifiers for Size */
.bento-card--large {
  grid-column: span 2;
  grid-row: span 2;
  background-color: #dcfce7; /* Mint */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}

.bento-card--wide {
  grid-column: span 2;
  background-color: #f3e8ff; /* Lavender */
}

/* Modifiers for Color */
.bento-card--blue {
  background-color: #e0f2fe; /* Light Blue */
}

.bento-card--peach {
  background-color: #ffedd5; /* Peach */
}

/* Content Styling */
.bento-card__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text-main);
}

.bento-card__text {
  font-size: 1rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
}

.bento-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--color-primary);
}

/* Large Card Specifics */
.bento-card__icon-bg {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #15803d; /* Dark green for mint card */
}

.bento-card__img {
  width: 40%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  mix-blend-mode: multiply; /* Ефект вписання в фон */
}

.bento-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #15803d;
  font-size: 1rem;
}

.bento-card__link:hover {
  gap: 12px;
}

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

.bento-card__decoration i {
  width: 80px;
  height: 80px;
  color: rgba(124, 58, 237, 0.1);
  transform: rotate(-15deg);
}

/* Анімація появи (Fade In) */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card--large {
    grid-column: span 2;
    flex-direction: column;
    text-align: center;
  }
  .bento-card__img {
    width: 100%;
    height: 200px;
    margin-top: 20px;
  }
  .bento-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .bento-card {
    padding: 24px;
  }
  .section-title {
    font-size: 2rem;
  }
}

/* TOOLS SECTION (TABS) */
.tools {
  background-color: var(--color-surface);
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.tab-btn i {
  width: 20px;
  height: 20px;
}

.tab-btn:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

.tab-btn.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

/* Tabs Body */
.tabs-body {
  position: relative;
  min-height: 500px; /* Фіксуємо мінімальну висоту, щоб блок не стрибав */
}

.tab-content {
  display: none; /* Приховано за замовчуванням */
  background-color: #f8fafc;
  border-radius: 40px; /* Hyper-rounded */
  padding: 60px;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInTab 0.6s ease forwards;
}

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

/* Tab Content Details */
.tab-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(124, 58, 237, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.tab-title {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.tab-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.tab-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.tab-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--color-text-main);
}

.tab-features i {
  color: var(--color-accent);
  width: 20px;
  height: 20px;
}

/* Tab Visuals */
.tab-content__visual {
  position: relative;
  height: 400px;
  border-radius: 30px;
  overflow: visible; /* Щоб плаваюча картка могла виходити за межі */
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-content__visual--mint {
  background-color: #dcfce7;
}
.tab-content__visual--blue {
  background-color: #e0f2fe;
}
.tab-content__visual--purple {
  background-color: #f3e8ff;
}

.tab-img {
  width: 80%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.tab-content:hover .tab-img {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.tab-floating-card {
  position: absolute;
  bottom: 40px;
  right: -20px;
  background: white;
  padding: 16px 24px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  animation: float 5s ease-in-out infinite;
}

.tab-floating-card span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.tab-floating-card strong {
  font-size: 1rem;
  color: var(--color-text-main);
}

/* Mobile */
@media (max-width: 1024px) {
  .tab-content.active {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    gap: 40px;
  }
  .tab-content__visual {
    height: 300px;
    margin-top: 20px;
  }
  .tab-floating-card {
    right: 0;
    bottom: -20px;
  }
}

@media (max-width: 600px) {
  .tabs-nav {
    flex-direction: column;
    width: 100%;
  }
  .tab-btn {
    width: 100%;
    justify-content: center;
  }
}

/* INFO BLOCK GRID */
.info-block {
  background-color: #f1f5f9; /* Трохи темніший фон для контрасту */
  position: relative;
  overflow: hidden;
}

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

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

.badge {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

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

.highlight-text {
  font-weight: 600;
  color: var(--color-primary);
}

/* REVIEWS MARQUEE (Vertical) */
.reviews-marquee-wrapper {
  position: relative;
  height: 500px;
  overflow: hidden;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.reviews-marquee {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: scrollUp 20s linear infinite;
}

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

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  } /* Рухаємо на 50%, бо контент сдубльовано */
}

.review-card {
  background: white;
  padding: 24px;
  border-radius: 24px; /* Soft round */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #1e293b;
}

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

.review-text {
  font-size: 0.95rem;
  color: #475569;
  font-style: italic;
  line-height: 1.5;
}

/* FAQ ACCORDION */
.faq-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--color-text-main);
}

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

.accordion-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-main);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.accordion-body {
  padding: 0 24px 24px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Active State */
.accordion-item.active {
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  max-height: 200px; /* Достатньо для тексту */
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq-cta {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--color-text-main);
}

.link-arrow {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.link-arrow:hover {
  gap: 10px;
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 1024px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .reviews-marquee-wrapper {
    height: 400px;
  }
}

/* CONTACT SECTION */
.contact-section {
  background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 100%); /* Градієнт */
  padding: 100px 0;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card {
  background: white;
  border-radius: 50px; /* Гіпер-округлення */
  padding: 60px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 30px 60px -10px rgba(109, 40, 217, 0.15);
  position: relative;
  overflow: hidden;
}

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

.contact-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 12px;
}

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

/* Form Elements */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

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

.input-wrapper {
  position: relative;
}

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

.form-input {
  width: 100%;
  padding: 16px 20px 16px 52px; /* Місце для іконки */
  border-radius: var(--radius-full);
  border: 2px solid #f1f5f9;
  background-color: #f8fafc;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-input.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.error-msg {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  margin-left: 12px;
}

.form-input.error + .error-msg,
.custom-checkbox.error + .error-msg {
  display: block;
  animation: shake 0.3s ease;
}

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

/* Custom Checkbox (Captcha & Consent) */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 8px 0;
}

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

/* Стиль квадратика/кружечка */
.checkmark {
  height: 24px;
  width: 24px;
  background-color: #f1f5f9;
  border-radius: 6px; /* Трохи скруглений квадрат */
  border: 2px solid #e2e8f0;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.checkmark.box {
  border-radius: 8px;
}

/* Ховер */
.custom-checkbox:hover input ~ .checkmark {
  background-color: #e2e8f0;
}

/* Активний стан */
.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Галочка */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.label-text {
  font-size: 0.95rem;
  color: var(--color-text-main);
}

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

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

/* Button & Note */
.btn--full {
  width: 100%;
  margin-top: 10px;
  gap: 10px;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 20px;
}

/* Success Message */
.success-message {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 10;
}

.success-message.visible {
  display: flex;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

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

.success-message h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

/* Mobile */
@media (max-width: 600px) {
  .contact-card {
    padding: 30px 20px;
    border-radius: 30px;
  }
  .contact-title {
    font-size: 1.5rem;
  }
}

/* COOKIE POPUP */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Сховано знизу */
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 30px;
  border-radius: var(--radius-full);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.cookie-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie-icon {
  color: #d97706; /* Cookie color */
}

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

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

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

@media (max-width: 600px) {
  .cookie-popup {
    flex-direction: column;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
  }
  .cookie-content {
    flex-direction: column;
  }
  .btn--sm {
    width: 100%;
  }
}

/* POLICY PAGES STYLES */
.pages {
  padding: 160px 0 80px; /* Великий відступ зверху, бо хедер фіксований */
  min-height: 100vh;
}

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

.pages h1 {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 40px;
  line-height: 1.1;
}

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

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

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

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

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

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

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