/* --- GLOBAL RESET & VARIABLES --- */
:root {
  /* Palette: Clean, Airy, High Contrast */
  --color-bg: #f8f9fb;
  --color-text-main: #111827;
  --color-text-muted: #6b7280;
  --color-accent: #2563eb; /* Royal Blue */
  --color-accent-hover: #1d4ed8;
  --color-surface: #ffffff;
  --color-black: #000000;

  /* Geometry */
  --radius-xl: 40px; /* Hyper-rounded */
  --radius-md: 20px;
  --radius-sm: 12px;

  /* Spacing */
  --container-width: 1240px;
  --header-height: 80px;

  /* Transitions */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px; /* Pill shape */
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

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

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  background-color: var(--color-accent);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

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

.header__container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

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

.logo__shape {
  width: 32px;
  height: 32px;
}

.logo__text {
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

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

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

.nav__link:hover,
.nav__link--active {
  color: var(--color-text-main);
}

/* Hover Effect: Micro-dot appearing below */
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 4px; /* Makes it a dot */
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger__bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-black);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-black);
  color: var(--color-surface);
  padding: 80px 0 40px;
  margin-top: 80px;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.footer__container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.logo__text--light {
  color: var(--color-surface);
}

.footer__desc {
  margin-top: 20px;
  color: #9ca3af;
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.6;
}

/* --- FOOTER FIX --- */
.footer__copy {
  /* Робимо так, щоб елемент займав всю ширину сітки (всі колонки) */
  grid-column: 1 / -1;

  /* Відступи та стиль */
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Тонка лінія-розділювач */

  font-size: 0.8rem;
  color: #4b5563;
  text-align: center; /* Центруємо текст (стандарт для нижнього бару) */
}

/* На мобільному можна вирівняти вліво, якщо хочеться, але по центру виглядає охайніше */
@media (max-width: 600px) {
  .footer__copy {
    text-align: left;
    margin-top: 30px;
  }
}

.footer__title {
  font-size: 1rem;
  margin-bottom: 24px;
  color: var(--color-surface);
}

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

.footer__link {
  color: #9ca3af;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--color-surface);
  padding-left: 5px; /* Slight nudge on hover */
}

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

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer__icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: var(--color-accent);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .header__nav {
    display: none;
  }

  .burger {
    display: flex;
    /* Вирівнювання бургера */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Легка рамка для візуальної ваги */
    border-radius: 50%;
  }

  /* Виправляємо контейнер кнопок: строго в ряд */
  .header__actions {
    display: flex;
    align-items: center;
    gap: 8px; /* Відступ між кнопкою та бургером */
    flex-wrap: nowrap; /* Забороняємо перенос на новий рядок */
  }

  /* Адаптуємо кнопку "Написать нам" */
  .header__btn {
    display: inline-flex !important; /* Примусово показуємо */
    padding: 8px 16px; /* Менші відступи */
    height: 40px; /* Фіксована висота як у бургера */
    font-size: 0.8rem; /* Менший шрифт */
    white-space: nowrap; /* Текст в один рядок */
  }

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

@media (max-width: 600px) {
  .header__container {
    padding: 0 16px;
    height: 60px;
  }

  .header__btn {
    display: none; /* Hide CTA button on very small screens to save space */
  }

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

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 60px); /* Account for fixed header */
  padding-bottom: 80px;
  min-height: 90vh; /* Takes almost full screen */
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #e0f2fe; /* Light Blue */
  color: #0369a1;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: #0284c7;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(2, 132, 199, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

/* Typography */
.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive giant text */
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: var(--color-text-main);
}

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

/* Underline decoration for accent text */
.text-accent::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 0.2em;
  background-color: rgba(37, 99, 235, 0.1);
  z-index: -1;
  border-radius: 4px;
}

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

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

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

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

.icon-sm {
  width: 20px;
  height: 20px;
  color: #10b981; /* Green check */
}

/* --- HERO VISUALS (Floating System) --- */
.hero__visual {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Soft Gradient Background Blob */
.hero__blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.1) 0%,
    rgba(248, 249, 251, 0) 70%
  );
  border-radius: 50%;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.floating-pill {
  position: absolute;
  background: #ffffff;
  padding: 12px 24px;
  border-radius: 100px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-main);
  z-index: 2;
  transition: transform 0.1s linear; /* Smooth mouse follow */
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.pill-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.pill-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Positioning Pills manually for composition */
.floating-pill--1 {
  top: 10%;
  right: 10%;
}
.floating-pill--2 {
  top: 60%;
  left: 0%;
  font-size: 0.9rem;
  padding: 10px 20px;
}
.floating-pill--3 {
  top: 20%;
  left: 15%;
  background: var(--color-black);
  color: white;
}
.floating-pill--3 .pill-icon {
  color: var(--color-black);
  background: white;
}
.floating-pill--4 {
  bottom: 10%;
  right: 20%;
  padding: 6px;
  padding-right: 20px;
}
.floating-pill--5 {
  top: 45%;
  right: -5%;
  background: #e0e7ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

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

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

  .text-accent::after {
    left: 50%;
    transform: translateX(-50%);
    width: 105%;
  }

  .hero__visual {
    height: 400px;
    width: 100%;
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }
  .floating-pill {
    transform: scale(0.8); /* Shrink visuals on small mobile */
  }
}

/* --- METHODOLOGY (Bento Grid) --- */
.methodology {
  padding: 100px 0;
  background-color: var(
    --color-surface
  ); /* White bg to contrast with light grey body */
  border-radius: var(--radius-xl);
  margin: 20px 0; /* Creates a gap effect */
}

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

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

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

/* Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 24px;
}

/* Card Base */
.bento-card {
  background-color: var(--color-bg);
  border-radius: 30px; /* Super rounded */
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: relative;
}

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

/* Card Variations */
.bento-card--large {
  grid-column: span 1;
  grid-row: span 2;
  background-color: #f0f9ff; /* Very light blue */
}

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

.bento-card--wide {
  grid-column: span 2;
  background-color: #fdf2f8; /* Very light pink accent or keep neutral */
  background-color: var(--color-bg);
}

.bento-card--dark {
  background-color: var(--color-black);
  color: var(--color-surface);
}

.bento-card--dark p {
  color: #9ca3af;
}

/* Content Styling */
.bento-content h3,
.bento-card h3 {
  font-size: 1.5rem;
  margin: 16px 0 12px;
  font-weight: 600;
}

.bento-content p,
.bento-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.bento-icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: var(--color-surface);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bento-icon--blue {
  background-color: #eff6ff;
  color: var(--color-accent);
}

.bento-icon--white {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(5px);
}

/* Visuals */
.bento-visual--graph {
  margin-top: 30px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 0 10px;
}

.graph-bar {
  flex: 1;
  background-color: #bfdbfe;
  border-radius: 8px 8px 0 0;
  transition: height 1s ease;
}

.graph-bar--active {
  background-color: var(--color-accent);
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 16px;
  font-size: 0.95rem;
}

.stat-item {
  text-align: center;
  background: var(--color-surface);
  padding: 20px 30px;
  border-radius: 24px;
}

.stat-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  font-family: "Unbounded", sans-serif;
  color: var(--color-accent);
}

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

/* Responsive Grid */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card--large {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
  }
  .section-title {
    font-size: 2rem;
  }
  .bento-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .stat-item {
    width: 100%;
    margin-top: 20px;
  }
}

/* --- GROWTH SECTION (Accordion) --- */
.growth {
  padding: 100px 0;
}

.growth__header {
  margin-bottom: 60px;
  max-width: 600px;
}

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

.accordion__item {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.accordion__item--active {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.accordion__header {
  display: flex;
  align-items: center;
  padding: 24px 32px;
  cursor: pointer;
  gap: 24px;
}

.accordion__num {
  font-family: "Unbounded", sans-serif;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  opacity: 0.5;
}

.accordion__title {
  flex-grow: 1;
  font-size: 1.25rem;
  margin: 0;
}

.accordion__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.accordion__item--active .accordion__icon {
  transform: rotate(45deg);
  background-color: var(--color-accent);
  color: #fff;
}

.accordion__body {
  max-height: 0; /* Hidden by default */
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.accordion__content {
  padding: 0 32px 32px 80px; /* Aligned with title */
  color: var(--color-text-muted);
}

.accordion__tags {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.accordion__tags span {
  font-size: 0.8rem;
  padding: 6px 12px;
  background-color: #f3f4f6;
  border-radius: 20px;
  color: var(--color-text-main);
  font-weight: 500;
}

/* --- INSIGHTS SECTION (Blog) --- */
.insights {
  padding: 80px 0 120px;
  background-color: #f8f9fb;
}

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

.blog-card {
  background-color: var(--color-surface);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.blog-card__image {
  height: 220px;
  background-color: #e5e7eb;
  position: relative;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__category {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-black);
}

.blog-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

.blog-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

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

/* Responsive */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr; /* 2 cols on tablet */
  }
  .blog-card:last-child {
    display: none; /* Hide 3rd card on tablet for symmetry, or make it span 2 */
  }
}

@media (max-width: 600px) {
  .accordion__header {
    padding: 20px;
    gap: 16px;
  }
  .accordion__content {
    padding: 0 20px 24px 20px;
  }
  .accordion__num {
    display: none; /* Hide numbers on small screens to save space */
  }

  .blog-grid {
    grid-template-columns: 1fr; /* 1 col on mobile */
  }
  .blog-card:last-child {
    display: flex; /* Show all on mobile */
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    #f8f9fb 0%,
    #eff6ff 100%
  ); /* Subtle gradient */
}

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

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

.contact__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Form Side */
.contact__form-wrapper {
  background-color: var(--color-surface);
  padding: 40px;
  border-radius: 40px; /* Hyper-rounded */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.3s ease;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form__label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 12px;
}

.form__input {
  width: 100%;
  padding: 16px 24px;
  border-radius: 100px;
  border: 1px solid #e5e7eb;
  background-color: #f9fafb;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form__input:focus {
  border-color: var(--color-accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

.form__error {
  font-size: 0.8rem;
  color: #ef4444;
  margin-left: 12px;
  display: none;
}

.form__input.error + .form__error {
  display: block;
}

.form__captcha {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  width: fit-content;
  margin-top: 8px;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 40px;
}

.captcha-box input {
  display: none;
}

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

.captcha-box input:checked ~ .captcha-checkmark {
  border-color: #00a950; /* Captcha green */
}

.captcha-box input:checked ~ .captcha-checkmark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid #00a950;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.captcha-text {
  font-size: 0.9rem;
  color: #555;
}

.captcha-logo {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  opacity: 0.7;
}

.form__consent {
  margin-top: 8px;
}

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

.checkbox-label input {
  display: none;
}

.custom-checkbox {
  min-width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-top: 2px;
}

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

.check-icon {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.checkbox-label input:checked ~ .custom-checkbox .check-icon {
  opacity: 1;
}

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

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

.btn--full {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
  height: 54px;
}

.form-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.form-success.active {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #d1fae5; /* Light green */
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

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

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

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

/* Responsive */
@media (max-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact__info {
    text-align: center;
  }
  .contact__desc {
    margin: 0 auto 40px;
  }
  .contact__features {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .contact__form-wrapper {
    padding: 24px;
    border-radius: 24px;
  }
}

.cookie-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-surface);
  padding: 20px 24px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 9999;
  max-width: 400px;
  transform: translateY(150%); /* Сховано за замовчуванням */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

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

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

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

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

/* --- POLICY PAGES STYLING (privacy.html, terms.html etc.) --- */
/* Цей блок відповідає за те, щоб сторінки з купою тексту виглядали читабельно */

.pages {
  padding: 140px 0 80px; /* Відступ зверху під фіксований хедер */
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--color-text-main);
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 24px;
}

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

.pages p {
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 16px;
}

.pages ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
  color: #4b5563;
}

.pages li {
  margin-bottom: 8px;
  line-height: 1.6;
}

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

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

@media (max-width: 600px) {
  .cookie-popup {
    left: 16px;
    right: 16px;
    bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-popup .btn {
    width: 100%;
    justify-content: center;
  }
}
