/* --- Variables & Reset --- */
:root {
  /* Palette: Airy Pastel */
  --color-bg: #f5f7fa;
  --color-white: #ffffff;
  --color-primary: #6c63ff; /* Soft Indigo */
  --color-secondary: #00d2a0; /* Pastel Mint */
  --color-text-dark: #2d3142;
  --color-text-gray: #7d8597;
  --color-accent-light: #e0e7ff;

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

  /* Geometry */
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --radius-btn: 50px;

  /* Shadows */
  --shadow-soft: 0 10px 40px -10px rgba(108, 99, 255, 0.15);
  --shadow-hover: 0 20px 50px -10px rgba(108, 99, 255, 0.25);

  /* Spacing */
  --container-width: 1240px;
  --spacer: 1rem;
}

*,
*::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-dark);
  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;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  border: none;
}

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

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

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

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.header__nav {
  display: none;
}

.header__menu {
  display: flex;
  gap: 2rem;
}

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

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

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

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

/* --- Footer --- */
.footer {
  background-color: var(--color-white);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.02);
}

.footer__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer__col--brand {
  max-width: 350px;
}

.header__logo--footer {
  margin-bottom: 1.5rem;
}

.footer__desc {
  color: var(--color-text-gray);
  font-size: 0.95rem;
}

.footer__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
}

.footer__list li {
  margin-bottom: 0.8rem;
}

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

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

.footer__address {
  font-style: normal;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--color-text-gray);
  font-size: 0.95rem;
}

.footer__contact-item i {
  width: 20px;
  height: 20px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid var(--color-bg);
  padding-top: 2rem;
  text-align: center;
  color: var(--color-text-gray);
  font-size: 0.85rem;
}

/* --- Media Queries --- */
@media (min-width: 992px) {
  .header__nav {
    display: block;
  }
  .header__burger {
    display: none;
  }

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

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden; /* Важливо для обрізки декоративних елементів */
}

/* Background Shapes */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}

.hero__shape--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-accent-light), transparent);
  top: -100px;
  left: -100px;
}

.hero__shape--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 210, 160, 0.2), transparent);
  bottom: 0;
  right: -50px;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

/* Content */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-white);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(108, 99, 255, 0.1);
}

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

.hero__title {
  font-size: 4rem; /* Гігантський заголовок */
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
}

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

.hero__desc {
  font-size: 1.15rem;
  color: var(--color-text-gray);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.btn--lg {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

.hero__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-gray);
  opacity: 0.8;
}

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

/* Visual Side */
.hero__visual {
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  z-index: 1;
}

.hero__img {
  width: 100%;
  height: auto;
  /* Hyper-rounded shape + asymmetry */
  border-radius: 60px 200px 60px 200px;
  box-shadow: var(--shadow-hover);
  object-fit: cover;
  aspect-ratio: 4/5;
  background-color: #eef2f5; /* Fallback color */
}

/* Floating Cards */
.hero__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 200px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero__card--top {
  top: 10%;
  left: -40px;
  animation: float 6s ease-in-out infinite;
}

.hero__card--bottom {
  bottom: 15%;
  right: -30px;
  animation: float 5s ease-in-out infinite reverse;
}

.hero__icon-box {
  width: 40px;
  height: 40px;
  background: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__icon-box--green {
  background: rgba(0, 210, 160, 0.15);
  color: var(--color-secondary);
}

.hero__card-title {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-gray);
}

.hero__card-subtitle {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text-dark);
}

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

/* Media Queries for Hero */
@media (max-width: 991px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__desc {
    margin: 0 auto 2.5rem;
  }

  .hero__actions {
    align-items: center;
  }

  .hero__card--top {
    left: 0;
  }
  .hero__card--bottom {
    right: 0;
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__img {
    border-radius: 40px;
  }
}

/* --- Program Section (Bento Grid) --- */
.program {
  padding: 6rem 0;
  background-color: var(--color-bg);
}

.program__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.program__title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.program__subtitle {
  color: var(--color-text-gray);
  font-size: 1.1rem;
}

/* Grid Layout */
.program__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 1.5rem;
}

/* Base Card Style */
.program__card {
  background: var(--color-white);
  border-radius: var(--radius-lg); /* 30px */
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.program__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(108, 99, 255, 0.1);
}

/* Modifiers for Grid Spans */
.program__card--large {
  grid-column: span 2;
}

.program__card--tall {
  grid-row: span 2;
}

.program__card--wide {
  grid-column: span 2;
}

/* Accent Card Style */
.program__card--accent {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.program__card--accent h3,
.program__card--accent p {
  color: var(--color-white);
}

.program__card--accent .program__list li {
  color: rgba(255, 255, 255, 0.9);
}

/* Content Styling */
.program__card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 1rem 0 0.8rem;
  font-weight: 700;
}

.program__card p {
  color: var(--color-text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.program__icon-wrapper {
  width: 50px;
  height: 50px;
  background: var(--color-accent-light);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.program__icon-wrapper--mint {
  background: rgba(0, 210, 160, 0.15);
  color: var(--color-secondary);
}

/* Special Elements */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--color-primary);
}

.link-arrow i {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.link-arrow:hover i {
  transform: translate(3px, -3px);
}

.program__list {
  margin-top: 2rem;
}

.program__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.program__visual-circle {
  margin-top: auto;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  backdrop-filter: blur(5px);
}

.program__visual-circle span {
  font-weight: 800;
  font-size: 1.2rem;
}

.program__visual-circle small {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Wide Card Row Layout */
.program__card-content--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.btn--circle {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Decorative Circle in Large Card */
.program__card-deco {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--color-accent-light), transparent);
  border-radius: 50%;
  opacity: 0.5;
  z-index: 0;
}

/* Media Queries */
@media (max-width: 992px) {
  .program__grid {
    grid-template-columns: 1fr 1fr;
  }
  .program__card--tall {
    grid-row: auto; /* Скасовуємо висоту на планшетах */
    grid-column: span 2; /* Робимо широким */
  }
  .program__card--large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .program__grid {
    grid-template-columns: 1fr;
  }
  .program__card--large,
  .program__card--wide,
  .program__card--tall {
    grid-column: span 1;
    grid-row: auto;
  }

  .program__card-content--row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Methodology Section --- */
.methodology {
  padding: 6rem 0;
  position: relative;
  background: linear-gradient(180deg, var(--color-bg) 0%, #ffffff 100%);
}

.methodology__container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.methodology__intro {
  position: sticky;
  top: 120px; /* Липне при скролі */
}

.methodology__title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
}

.methodology__desc {
  font-size: 1.1rem;
  color: var(--color-text-gray);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Accordion Styles */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accordion__item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.accordion__item.active {
  box-shadow: var(--shadow-soft);
  border-color: rgba(108, 99, 255, 0.2);
}

.accordion__header {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  user-select: none;
  gap: 1.5rem;
}

.accordion__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent-light); /* Світлий колір цифр за замовчуванням */
  transition: color 0.3s ease;
}

.accordion__item.active .accordion__num {
  color: var(--color-primary); /* Яскравий, коли активно */
}

.accordion__title {
  font-size: 1.25rem;
  font-weight: 700;
  flex-grow: 1;
  color: var(--color-text-dark);
}

.accordion__icon {
  width: 36px;
  height: 36px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background 0.3s;
}

.accordion__item.active .accordion__icon {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: var(--color-white);
}

/* Accordion Content Animation */
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion__body {
  padding: 0 2rem 2rem 5rem; /* Відступ зліва під текстом, щоб оминути цифру */
  color: var(--color-text-gray);
  font-size: 1rem;
  line-height: 1.6;
}

/* Media Queries */
@media (max-width: 991px) {
  .methodology__container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .methodology__intro {
    position: static; /* Відключаємо липкість на мобільних */
    text-align: center;
    margin-bottom: 1rem;
  }

  .methodology__title {
    font-size: 2.5rem;
  }

  .accordion__header {
    padding: 1.2rem;
    gap: 1rem;
  }

  .accordion__body {
    padding: 0 1.2rem 1.5rem 1.2rem;
  }
}

/* --- Mentors Section --- */
.mentors {
  padding: 6rem 0;
  background-color: var(--color-bg);
}

.mentors__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.mentors__title {
  font-size: 2.5rem;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.mentors__subtitle {
  color: var(--color-text-gray);
  font-size: 1.1rem;
}

/* Grid Layout */
.mentors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Mentor Card (Glassmorphism & Hyper-rounded) */
.mentor-card {
  position: relative;
  border-radius: 40px; /* Гіпер-скруглення */
  overflow: hidden;
  height: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background-color: var(--color-white);
}

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

.mentor-card__image-box {
  width: 100%;
  height: 100%;
}

.mentor-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(20%); /* Трохи приглушуємо кольори для стилю */
}

.mentor-card:hover .mentor-card__img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Floating Info Panel */
.mentor-card__info {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px); /* Ефект скла */
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: bottom 0.3s ease;
}

.mentor-card__role {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mentor-card__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

.mentor-card__bio {
  font-size: 0.9rem;
  color: var(--color-text-gray);
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Обмежуємо текст 2 рядками */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Social Icons */
.mentor-card__socials {
  display: flex;
  gap: 1rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.mentor-card__socials:hover {
  opacity: 1;
}

.mentor-card__socials a {
  color: var(--color-text-dark);
  transition: color 0.3s;
}

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

.mentor-card__socials i {
  width: 20px;
  height: 20px;
}

/* Action Area */
.mentors__action {
  text-align: center;
  background: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.mentors__action p {
  font-size: 1.2rem;
  color: var(--color-text-dark);
  font-weight: 500;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* --- FAQ Section (Chat Style) --- */
.faq {
  padding: 6rem 0;
  background-color: var(--color-white);
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  /* Легкий фон у клітинку для tech-vibe */
  background-image: radial-gradient(
    var(--color-accent-light) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
}

.faq__header {
  text-align: center;
  margin-bottom: 4rem;
}

.faq__title {
  font-size: 2.5rem;
  color: var(--color-text-dark);
  margin-top: 1rem;
}

.faq__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.faq__card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.3s ease;
}

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

/* Message Bubble Styles */
.faq__msg {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.faq__msg--question {
  flex-direction: row;
}

.faq__msg--answer {
  flex-direction: row-reverse; /* Відповідь праворуч */
}

.faq__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-gray);
  flex-shrink: 0;
}

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

.faq__avatar i {
  width: 20px;
  height: 20px;
}

.faq__bubble {
  padding: 1rem 1.2rem;
  border-radius: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  max-width: 85%;
}

.faq__msg--question .faq__bubble {
  background-color: #f0f2f5;
  color: var(--color-text-dark);
  border-bottom-left-radius: 4px; /* Хвостик */
}

.faq__msg--answer .faq__bubble {
  background-color: var(--color-accent-light); /* Дуже світлий фіолетовий */
  color: var(--color-primary); /* Темніший текст для контрасту */
  border-bottom-right-radius: 4px; /* Хвостик */
  text-align: right;
}

/* Особливий стиль для тексту відповіді, щоб був читабельним */
.faq__bubble--brand {
  color: var(--color-text-dark); /* Корекція кольору тексту */
  background-color: rgba(108, 99, 255, 0.1); /* Прозорий primary */
}

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

/* Media Queries */
@media (max-width: 991px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Contact Section --- */
.contact {
  padding: 6rem 0;
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

/* Background Blob styling */
.contact::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.1), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

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

/* Left Column */
.contact__title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--color-text-dark);
}

.contact__desc {
  font-size: 1.1rem;
  color: var(--color-text-gray);
  margin-bottom: 3rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__icon {
  width: 44px;
  height: 44px;
  background: var(--color-white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}

.contact__label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-gray);
  margin-bottom: 0.2rem;
}

.contact__link,
.contact__text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

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

/* Right Column: Form Card */
.contact__form-wrapper {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 40px; /* Hyper-rounded */
  box-shadow: var(--shadow-hover);
  position: relative;
}

.contact__form-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-text-dark);
}

.form-group {
  margin-bottom: 1.5rem;
}

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

.input-wrapper {
  position: relative;
}

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

.form-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem; /* Padding left for icon */
  border: 2px solid #f0f2f5;
  border-radius: 50px; /* Pill shape inputs */
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9fafb;
  color: var(--color-text-dark);
}

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

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-gray);
  user-select: none;
}

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

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

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

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

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

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

.captcha-box {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  width: fit-content;
  min-width: 250px;
  position: relative;
  margin-bottom: 0.5rem;
}

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

.captcha-checkbox:hover {
  border-color: #b2b2b2;
}

.captcha-checkbox.checked {
  border-color: transparent;
}

.captcha-checkbox.checked::after {
  content: "";
  width: 10px;
  height: 16px;
  border: solid #00d2a0; /* Mint color */
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  position: absolute;
  top: -2px;
}

.captcha-checkbox.loading {
  border-color: transparent;
}

.captcha-checkbox.loading::before {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #4a90e2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.captcha-text {
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #555;
  flex-grow: 1;
}

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

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

.error-msg.visible {
  display: block;
}

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

.btn--full {
  width: 100%;
  margin-top: 1rem;
}

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

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

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

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

.success-message h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Media Queries */
@media (max-width: 991px) {
  .contact__container {
    grid-template-columns: 1fr;
  }
  .contact__info {
    text-align: center;
  }
  .contact__details {
    align-items: center;
  }
  .contact__form-wrapper {
    padding: 2rem;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}
.spin {
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

/* --- Cookie Pop-up --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  width: 90%;
  max-width: 600px;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(108, 99, 255, 0.1);
}

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

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

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

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

.btn--sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* --- Policy Pages Styling (privacy.html etc.) --- */
.pages {
  padding: 8rem 0 6rem; /* Відступ зверху для фіксованого хедера */
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Вузька колонка для читабельності */
  background: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f2f5;
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.pages p {
  font-size: 1rem;
  color: var(--color-text-gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.pages ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.pages li {
  list-style-type: disc;
  color: var(--color-text-gray);
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.pages strong {
  color: var(--color-text-dark);
}

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

.pages a:hover {
  text-decoration: none;
}

/* Mobile adjust for policy pages */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  .pages .container {
    padding: 1.5rem;
  }
  .pages h1 {
    font-size: 2rem;
  }
}

/* --- Input Validation Styles --- */
.form-input.error {
  border-color: #ff4d4f !important;
  background-color: #fff1f0 !important;
  animation: shake 0.4s ease;
}

.input-error-text {
  color: #ff4d4f;
  font-size: 0.8rem;
  margin-top: 5px;
  margin-left: 10px;
  display: none; /* Приховано за замовчуванням */
}

.input-error-text.visible {
  display: block;
}

/* =========================================
   MOBILE HEADER FIX (Вставити в кінець файлу)
   ========================================= */

@media (max-width: 991px) {
  /* 1. Вирівнюємо кнопку і бургер в один рядок */
  .header__actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  /* 2. Зменшуємо кнопку "Связаться", щоб вона влізла поруч з бургером */
  .header__actions .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    height: 40px; /* Фіксуємо висоту */
  }

  /* 3. Налаштування кнопки бургера */
  .header__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px; /* Така ж висота як у кнопки */
    padding: 0;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text-dark);
  }

  /* 4. Випадаюче меню (Стилізація) */
  .header__nav {
    display: none; /* Сховано за замовчуванням */
    position: absolute;
    top: 85px; /* Відступ від верху сторінки */
    left: 2.5%; /* Центрування: 2.5% зліва + 95% ширина */
    width: 95%;
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.1);
    z-index: 1000;
    flex-direction: column;
  }

  /* Клас, який додає JS для відкриття */
  .header__nav.is-active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
  }

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

  .header__item {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
  }

  .header__item:last-child {
    border-bottom: none;
  }

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

/* Анімація появи */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Фікс для дуже маленьких екранів (iPhone SE і т.д.) */
@media (max-width: 380px) {
  .header__logo-text {
    display: none;
  } /* Ховаємо текст лого, якщо не влазить */
}
