/* --- Variables & Reset --- */
:root {
  --color-bg: #fdfbf7;
  --color-text: #2d3436;
  --color-primary: #6c5ce7;
  --color-primary-hover: #5a4ad1;
  --color-secondary: #00cec9;
  --color-white: #ffffff;
  --color-grey-light: #f0f2f5;

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

  --radius-xl: 40px; /* Гипер-округление */
  --radius-md: 20px;
  --shadow-soft: 0 10px 30px rgba(108, 92, 231, 0.08);
  --shadow-hover: 0 15px 40px rgba(108, 92, 231, 0.15);

  --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(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

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

ul {
  list-style: none;
}

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

.container,
.header__container,
.footer__container {
  width: 100%;
  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;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease, background-color 0.3s ease;
  border: none;
  font-size: 1rem;
}

.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(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(108, 92, 231, 0.05);
}

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

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

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

.header__nav {
  display: none;
}

@media (min-width: 992px) {
  .header__nav {
    display: block;
  }
}

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

.header__link {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 5px 0;
}

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

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

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

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

.header__btn {
  display: none;
}

@media (min-width: 768px) {
  .header__btn {
    display: inline-flex;
  }
}

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

@media (min-width: 992px) {
  .header__burger {
    display: none;
  }
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 1001;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu__close {
  position: absolute;
  top: 25px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: center;
  margin-bottom: 40px;
}

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

/* --- Footer --- */
.footer {
  background-color: var(--color-white);
  padding: 80px 0 30px;
  margin-top: 0; /* Будет отступ от последней секции */
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__container {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

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

.footer__desc {
  font-size: 0.95rem;
  color: #636e72;
  max-width: 300px;
}

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

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

.footer__link {
  font-size: 0.95rem;
  color: #636e72;
}

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

.footer__list--contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #636e72;
  font-size: 0.95rem;
}

.footer__list--contacts i {
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #b2bec3;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 140px 0 80px; /* Великий відступ зверху через фіксований хедер */
  overflow: hidden;
  min-height: 90vh; /* Майже на весь екран */
  display: flex;
  align-items: center;
}

/* Декоративні плями (Blobs) */
.hero__blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
}

.hero__blob--1 {
  top: -100px;
  left: -100px;
  background-color: rgba(108, 92, 231, 0.3);
}

.hero__blob--2 {
  bottom: -50px;
  right: -100px;
  background-color: rgba(0, 206, 201, 0.2);
}

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

@media (min-width: 992px) {
  .hero__container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* Hero Content */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--color-primary);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

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

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 25px;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 4rem;
  }
}

.text-highlight {
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}

/* Підкреслення для акценту */
.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: rgba(0, 206, 201, 0.2);
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1deg);
}

.hero__text {
  font-size: 1.15rem;
  color: #636e72;
  margin-bottom: 40px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (min-width: 576px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

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

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

.hero__avatars {
  display: flex;
}

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

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

.hero__trust-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #636e72;
  max-width: 150px;
  line-height: 1.2;
}

/* Hero Visual (Parallax) */
.hero__visual {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 992px) {
  .hero__visual {
    height: 600px;
  }
}

.hero__card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  position: absolute;
  transition: transform 0.1s linear; /* Плавність для JS */
}

/* Основне фото */
.hero__card--main {
  width: 80%;
  height: 80%;
  overflow: hidden;
  z-index: 1;
  border-radius: 40px 40px 100px 40px; /* Асиметричне скруглення */
}

.hero__img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Плаваючі картки */
.hero__card--float {
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2;
  min-width: 200px;
  white-space: nowrap;
}

.hero__card--1 {
  top: 10%;
  right: 0;
  border-radius: 30px 30px 5px 30px;
}

.hero__card--2 {
  bottom: 15%;
  left: 0;
  border-radius: 30px 5px 30px 30px;
}

.icon-box {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box--blue {
  background-color: rgba(0, 206, 201, 0.1);
  color: var(--color-secondary);
}

.hero__card--float strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.1;
}

.hero__card--float span {
  font-size: 0.85rem;
  color: #636e72;
}

/* --- Global Section Styles --- */
.section-padding {
  padding: 100px 0;
}

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

.badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--color-white);
  border: 1px solid rgba(108, 92, 231, 0.2);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.section-desc {
  font-size: 1.1rem;
  color: #636e72;
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto; /* 2 rows */
  }
}

@media (min-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 350px 280px; /* Фиксована висота для цікавої сітки */
  }
}

/* Bento Items */
.bento-item {
  border-radius: 30px; /* Гіпер-округлення */
  padding: 40px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

/* Specific Sizes */
@media (min-width: 992px) {
  /* Великий блок зліва (займає 2 колонки) */
  .bento-item--large {
    grid-column: span 2;
  }

  /* Широкий блок знизу (займає 2 колонки) */
  .bento-item--wide {
    grid-column: 2 / span 2;
  }
}

/* Backgrounds */
.bg-soft-purple {
  background-color: #f4f1ff; /* Дуже світлий фіолетовий */
}

.bg-soft-blue {
  background-color: #e0fbfb; /* Дуже світлий м'ятний */
}

.bg-white {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

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

/* Content Styling */
.bento-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.bento-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-white);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.icon-blue {
  color: var(--color-secondary);
}

.bento-item h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.bento-item p {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* Dark Card Specifics */
.bg-dark h3 {
  color: var(--color-white);
}

.bg-dark p {
  color: #b2bec3;
  margin-bottom: 30px;
}

.bento-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 1.1rem;
}

.bento-link i {
  transition: transform 0.3s ease;
}

.bento-link:hover i {
  transform: translateX(5px);
}

/* Wide Block Layout */
.bento-content--row {
  flex-direction: column;
}

@media (min-width: 576px) {
  .bento-content--row {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
}

/* Decoration Elements */
.pulse-circle {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(108, 92, 231, 0.2) 0%,
    rgba(108, 92, 231, 0) 70%
  );
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

/* Mockup Chart for Wide Card */
.chart-mockup {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
  padding-top: 20px;
}

.bar {
  width: 20px;
  background-color: var(--color-secondary);
  border-radius: 10px;
  opacity: 0.8;
}

.bar-1 {
  height: 40%;
  animation: grow 2s infinite alternate;
}
.bar-2 {
  height: 70%;
  animation: grow 2.5s infinite alternate-reverse;
}
.bar-3 {
  height: 100%;
  animation: grow 2.2s infinite alternate;
}

@keyframes grow {
  from {
    transform: scaleY(0.8);
  }
  to {
    transform: scaleY(1);
  }
}

/* --- Benefits Section (Flex Expansion) --- */
.benefits__gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: auto;
}

/* Desktop styles for expansion effect */
@media (min-width: 992px) {
  .benefits__gallery {
    flex-direction: row;
    height: 500px; /* Fixed height is needed for vertical expansion logic on horizontal layout */
    gap: 15px;
  }
}

.benefit-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  background-color: var(--color-grey-light);
  /* Mobile First: Cards are stacked blocks */
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

@media (min-width: 992px) {
  .benefit-card {
    height: 100%; /* Fill gallery height */
    flex: 1; /* Default state: narrow */
    min-width: 0; /* Prevent flex overflow */
  }

  /* The Expansion Logic */
  .benefit-card:hover {
    flex: 3; /* Expanded state: wide */
  }

  /* Make the first card expanded by default if needed, or use JS to toggle classes. 
       Here we use pure CSS hover for simplicity and robustness */
}

/* Background Layer (for color) */
.benefit-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3; /* Pastel look */
  z-index: 1;
  transition: opacity 0.3s ease;
}

.benefit-card:hover .benefit-card__bg {
  opacity: 0.5;
}

/* Content Layer */
.benefit-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.benefit-card__icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-card__info {
  margin-top: auto;
}

.benefit-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  white-space: nowrap; /* Keep title on one line initially */
  color: var(--color-text);
}

.benefit-card__desc {
  font-size: 1rem;
  color: #4a4a4a;
  line-height: 1.5;
  opacity: 1;
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

/* Specific text visibility logic for Desktop */
@media (min-width: 992px) {
  .benefit-card__desc {
    opacity: 0;
    transform: translateY(20px);
    display: none; /* Hide completely to save space when collapsed */
  }

  .benefit-card:hover .benefit-card__desc {
    display: block;
    animation: fadeInSlide 0.5s forwards;
  }
}

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

.benefit-card__arrow {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-card__arrow {
  transform: rotate(45deg);
  background-color: var(--color-white);
}

/* Colors for icons */
.text-orange {
  color: #e17055;
}
.text-red {
  color: #d63031;
}
.text-teal {
  color: #00cec9;
}
.text-purple {
  color: #6c5ce7;
}

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

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

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

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

/* Scroller Container */
.reviews__scroller {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding-bottom: 40px; /* Місце для тіні */
  scroll-snap-type: x mandatory; /* Прилипання */
  scroll-behavior: smooth;

  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

/* Review Card */
.review-card {
  min-width: 300px;
  max-width: 300px;
  background-color: var(--color-white);
  border-radius: 30px; /* Гіпер-округлення */
  padding: 35px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

@media (min-width: 768px) {
  .review-card {
    min-width: 400px;
    max-width: 400px;
  }
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(108, 92, 231, 0.1);
}

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

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

.review-card__author {
  flex-grow: 1;
}

.review-card__author h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

.review-card__author span {
  font-size: 0.85rem;
  color: #b2bec3;
}

.review-card__rating {
  display: flex;
  gap: 2px;
}

.review-card__rating i {
  width: 16px;
  height: 16px;
  color: #dfe6e9;
}

.review-card__rating .fill-star {
  fill: #fdcb6e;
  color: #fdcb6e;
}

.review-card__text {
  font-size: 1rem;
  color: #636e72;
  line-height: 1.6;
  font-style: italic;
}

.review-card__text strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* --- Contact Section --- */
.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 992px) {
  .contact__wrapper {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* Contact Info Visuals */
.contact__decoration {
  position: relative;
  margin-top: 40px;
  display: none; /* Mobile hidden for compactness */
}

@media (min-width: 768px) {
  .contact__decoration {
    display: block;
    height: 300px;
  }
}

.contact__image {
  width: 100%;
  max-width: 350px;
  border-radius: 30px 100px 30px 30px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-soft);
}

.contact__blob {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 200px;
  height: 200px;
  background-color: #fab1a0;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  z-index: 1;
}

.contact__card-float {
  position: absolute;
  bottom: 40px;
  right: 20px;
  background: var(--color-white);
  padding: 15px 25px;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.contact__card-float i {
  color: var(--color-secondary);
}

.contact__card-float span {
  font-weight: 700;
  font-size: 0.9rem;
}

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

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

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

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

.form__input-wrapper {
  position: relative;
}

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

.form__input {
  width: 100%;
  padding: 16px 20px 16px 55px; /* Padding left for icon */
  border: 2px solid #f0f2f5;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  outline: none;
}

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

.form__input:focus + .form__icon,
.form__input:focus ~ .form__icon {
  /* Selector logic fix if needed */
  color: var(--color-primary);
}

.form__error {
  display: none;
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 5px;
}

.form__input.error {
  border-color: #e74c3c;
  background-color: #fff5f5;
}

.form__input.error + .form__icon {
  color: #e74c3c;
}

.form__group.error .form__error {
  display: block;
}

.captcha-box {
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 15px 15px;
  width: 100%;
  max-width: 300px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
  margin-bottom: 5px;
}

.captcha-box input {
  display: none;
}

.captcha-checkmark {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background-color: #fff;
  margin-right: 12px;
  position: relative;
  transition: all 0.2s;
}

.captcha-checkmark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #4caf50;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s;
}

.captcha-box input:checked + .captcha-checkmark::after {
  transform: rotate(45deg) scale(1);
}

.captcha-text {
  font-size: 14px;
  color: #000;
  font-weight: 500;
  flex-grow: 1;
}

.captcha-logo {
  width: 32px;
  height: 32px;
  opacity: 0.7;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 12px;
}

.checkbox-label input {
  display: none;
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #dfe6e9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background-color: #fff;
}

.custom-checkbox i {
  width: 14px;
  height: 14px;
  color: var(--color-white);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

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

.checkbox-label input:checked + .custom-checkbox i {
  opacity: 1;
  transform: scale(1);
}

.checkbox-text {
  font-size: 0.85rem;
  color: #636e72;
  line-height: 1.4;
}

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

.form__submit {
  width: 100%;
  margin-top: 10px;
  position: relative;
}

.loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotation 1s linear infinite;
}

.form__submit.loading .btn-text {
  display: none;
}

.form__submit.loading .loader {
  display: inline-block;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease;
}

.form-success.active {
  display: block;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(0, 206, 201, 0.1);
  color: var(--color-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

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

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

.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px); /* Сховано */
  width: 90%;
  max-width: 600px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(108, 92, 231, 0.1);
}

@media (min-width: 768px) {
  .cookie-popup {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

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

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

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

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

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

/* --- Styles for Legal Pages (Privacy, Terms etc.) --- */
.pages {
  padding: 140px 0 80px; /* Відступ для хедера */
  min-height: 60vh;
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 40px;
  text-align: center;
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 40px;
  margin-bottom: 20px;
}

.pages p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 20px;
  max-width: 800px; /* Щоб текст не розтягувався на весь екран, так легше читати */
  margin-left: auto;
  margin-right: auto;
}

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pages li {
  margin-bottom: 10px;
  color: #4a4a4a;
  line-height: 1.6;
}

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

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