/* --- Global Styles & Variables --- */
:root {
  /* Soft & Airy Palette */
  --color-bg: #f7f9fc; /* Дуже світлий сірий */
  --color-surface: #ffffff; /* Білий для карток */
  --color-primary: #4361ee; /* Індиго */
  --color-secondary: #4cc9f0; /* М'ята */
  --color-text-main: #2b2d42; /* Темно-сірий, майже чорний */
  --color-text-light: #8d99ae; /* Світло-сірий для підписів */
  --color-accent-bg: #eef2ff; /* Дуже світлий індиго фон */

  --font-heading: "Outfit", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-full: 50px; /* Для кнопок */

  --shadow-soft: 0 10px 40px -10px rgba(67, 97, 238, 0.1);
  --shadow-hover: 0 20px 50px -10px rgba(67, 97, 238, 0.2);

  --container-width: 1240px;
  --header-height: 90px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  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-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn--primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

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

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

/* "Плаваюча" навігація для сучасного вигляду */
.header__container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  max-width: var(--container-width);
}

.header__logo-img {
  height: 40px;
}

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

.header__list {
  display: flex;
  gap: 40px;
}

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

/* Анімація підкреслення - м'яка точка */
.header__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  transition: var(--transition);
}

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

.header__link:hover::after {
  transform: translateX(-50%) scale(1);
}

.header__burger,
.header__close-btn {
  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: 80px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px; /* Дуже м'який верх */
}

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

.footer__logo img {
  height: 35px;
  margin-bottom: 20px;
}

.footer__text {
  color: var(--color-text-light);
  font-size: 15px;
  max-width: 300px;
}

.footer__note {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

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

.footer__list li,
.footer__contacts li {
  margin-bottom: 14px;
}

.footer__link {
  color: var(--color-text-light);
  font-size: 15px;
  display: inline-block;
}

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

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--color-text-light);
  font-size: 15px;
}

.footer__icon {
  width: 18px;
  height: 18px;
  color: var(--color-secondary);
  margin-top: 3px;
}

.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 30px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
}

/* --- Adaptive --- */
@media (max-width: 992px) {
  .header__list {
    gap: 20px;
  }
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header {
    top: 0;
  }
  .header__container {
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
  }
  .header__burger {
    display: block;
  }

  .header__btn {
    display: none;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: center;
    transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Ефект "пружності" */
    z-index: 999;
  }

  .header__nav.active {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .header__link {
    font-size: 20px;
    font-weight: 700;
  }

  .header__close-btn {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
  }

  .footer {
    border-radius: 30px 30px 0 0;
  }
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__contacts li {
    justify-content: center;
  }
  .footer__text {
    margin: 0 auto;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 160px 0 100px; /* Відступ зверху враховує фіксований хедер */
  overflow: hidden;
  min-height: 100vh; /* На весь екран */
  display: flex;
  align-items: center;
}

/* Декоративні плями на фоні */
.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}

.hero__bg-shape--1 {
  width: 500px;
  height: 500px;
  background: rgba(76, 201, 240, 0.15); /* Mint tint */
  top: -100px;
  right: -100px;
  animation: floating-slow 10s infinite ease-in-out;
}

.hero__bg-shape--2 {
  width: 400px;
  height: 400px;
  background: rgba(67, 97, 238, 0.1); /* Indigo tint */
  bottom: -50px;
  left: -100px;
  animation: floating-slow 12s infinite ease-in-out reverse;
}

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

/* Content */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-surface);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.hero__badge-icon {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: 56px; /* Велика типографіка */
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--color-text-main);
  letter-spacing: -1px;
}

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

.hero__descr {
  font-size: 18px;
  color: var(--color-text-light);
  max-width: 480px;
  margin-bottom: 40px;
}

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

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

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

.hero__avatars {
  display: flex;
}

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

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

.hero__info-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
}

/* Visual Right Side */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__card-glass {
  position: relative;
  z-index: 1;
}

.hero__image-wrapper {
  width: 450px;
  height: 550px;
  border-radius: 40px; /* Гіпер-округлення */
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background-color: var(--color-surface);
}

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

/* Status Cards (Floating Elements) */
.hero__status-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.hero__status-card--1 {
  top: 60px;
  left: -40px;
}

.hero__status-card--2 {
  bottom: 80px;
  right: -30px;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.status-icon {
  width: 40px;
  height: 40px;
  background-color: #e0f7fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00b4d8;
}

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

.status-label {
  font-size: 12px;
  color: var(--color-text-light);
}

.status-value {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-main);
}

.status-big {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1;
}

.star-row {
  display: flex;
  gap: 2px;
}

.star-row svg {
  width: 14px;
  height: 14px;
}

.status-mini {
  font-size: 12px;
  color: var(--color-text-light);
}

/* Animations */
@keyframes floating-slow {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

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

.floating-slow {
  animation: floating-slow 4s infinite ease-in-out;
}

.floating-fast {
  animation: floating-fast 3s infinite ease-in-out;
}

/* Adaptive Hero */
@media (max-width: 992px) {
  .hero {
    padding-top: 120px;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero__descr {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image-wrapper {
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 0 auto;
  }

  .hero__status-card--1 {
    left: 0;
  }

  .hero__status-card--2 {
    right: 0;
  }
}

/* --- METHODOLOGY SECTION --- */
.methodology {
  padding: 100px 0;
  position: relative;
}

/* Загальні стилі для заголовків секцій */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 42px;
  color: var(--color-text-main);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

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

/* Декоративне підкреслення під словом */
.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(76, 201, 240, 0.3); /* Mint transparent */
  z-index: -1;
  border-radius: 4px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--color-text-light);
}

/* Сітка карток */
.methodology__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Стиль картки */
.method-card {
  background-color: var(--color-surface);
  border-radius: 32px; /* Гіпер-округлення */
  padding: 40px 32px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.5); /* Дуже тонкий бордер */
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

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

/* Іконка */
.method-card__icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: var(--color-accent-bg);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.method-card__icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.method-card:hover .method-card__icon-wrapper {
  background-color: var(--color-primary);
}

.method-card:hover .method-card__icon {
  color: #ffffff;
}

/* Тексти */
.method-card__title {
  font-size: 24px;
  font-family: var(--font-heading);
  margin-bottom: 16px;
  color: var(--color-text-main);
}

.method-card__text {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 30px;
  flex-grow: 1; /* Щоб посилання було внизу */
}

.method-card__text strong {
  color: var(--color-text-main);
  font-weight: 500;
}

/* Посилання внизу картки */
.method-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 15px;
}

.method-card__link i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.method-card__link:hover i {
  transform: translateX(5px);
}

/* Акцентна картка (центральна) */
.method-card--accent {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  border: 1px solid rgba(67, 97, 238, 0.1);
}

.method-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--color-secondary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Адаптивність */
@media (max-width: 992px) {
  .methodology__grid {
    grid-template-columns: 1fr; /* Одна колонка на планшетах і моб */
    gap: 20px;
  }

  .method-card {
    align-items: center;
    text-align: center;
    padding: 30px 20px;
  }

  .section-title {
    font-size: 32px;
  }
}

/* --- PROGRAMS SECTION --- */
.programs {
  padding: 80px 0 100px;
}

.programs__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 1000px; /* Трохи вужче, щоб виглядало зібрано */
  margin: 0 auto;
}

.program-card {
  display: flex;
  background-color: var(--color-surface);
  border-radius: 30px;
  padding: 30px 40px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid transparent;
  align-items: center;
  gap: 40px;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(67, 97, 238, 0.2);
}

/* Featured Card Style */
.program-card--featured {
  background: linear-gradient(to right, #ffffff, #f8faff);
  border: 1px solid rgba(67, 97, 238, 0.15);
  position: relative;
  overflow: hidden;
}

.program-card--featured::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--color-primary);
}

/* Content Side */
.program-card__content {
  flex: 1;
}

.program-card__tags {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}

.tag--blue {
  background: #e0f2fe;
  color: #0284c7;
}
.tag--purple {
  background: #f3e8ff;
  color: #9333ea;
}
.tag--green {
  background: #dcfce7;
  color: #16a34a;
}
.tag--light {
  background: #f1f5f9;
  color: #64748b;
}
.tag--highlight {
  background: var(--color-secondary);
  color: white;
}

.program-card__title {
  font-size: 26px;
  font-family: var(--font-heading);
  color: var(--color-text-main);
  margin-bottom: 12px;
}

.program-card__desc {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  line-height: 1.5;
}

.program-card__desc strong {
  color: var(--color-primary);
  font-weight: 500;
}

.program-card__stack {
  display: flex;
  gap: 20px;
}

.program-card__stack li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
}

.icon-tiny {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
}

/* Action Side */
.program-card__action {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Вирівнювання по правому краю */
  gap: 20px;
  min-width: 220px;
  border-left: 1px solid #f1f5f9;
  padding-left: 40px;
}

.program-card__price {
  text-align: right;
}

.price-label {
  display: block;
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.price-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-main);
}

.text-red {
  color: #ef476f;
}

/* Custom Outline Button for Cards */
.btn--outline {
  background-color: transparent;
  border: 2px solid #e2e8f0;
  color: var(--color-text-main);
  padding: 12px 24px;
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: #f8faff;
  transform: translateY(-2px);
}

/* Adaptive Programs */
@media (max-width: 992px) {
  .program-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    gap: 25px;
  }

  .program-card__action {
    width: 100%;
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
    flex-direction: row; /* На мобільному ціна і кнопка в ряд */
    justify-content: space-between;
    align-items: center;
  }

  .program-card__price {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .program-card__action {
    flex-direction: column;
    align-items: stretch; /* Кнопка на всю ширину */
    gap: 15px;
  }

  .program-card__stack {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* --- ABOUT & FAQ SECTION --- */
.about {
  padding: 100px 0;
  background-color: #ffffff; /* Білий фон для контрасту */
  border-radius: 60px; /* Велике заокруглення секції */
  margin: 0 20px; /* Відступи по краях екрану */
}

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

/* Info Side */
.about__text {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 40px;
  line-height: 1.7;
}

.about__text strong {
  color: var(--color-primary);
}

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

.stat-item {
  padding: 20px;
  background-color: var(--color-bg); /* Світло-сірий фон плашки */
  border-radius: 24px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.2;
}

/* FAQ Side (Accordion) */
.about__faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background-color: var(--color-bg);
  border-radius: 24px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  background-color: #f0f4ff; /* Світлий відтінок активного питання */
}

.faq-head {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-title {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-main);
}

.faq-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: rotate(45deg); /* Перетворюємо плюс на хрестик */
}

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

.faq-content {
  padding: 0 30px 30px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Adaptive */
@media (max-width: 992px) {
  .about__container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about {
    margin: 0;
    border-radius: 0; /* На планшетах прибираємо відступи */
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr; /* Статистика в стовпчик на моб */
  }

  .faq-head {
    padding: 15px 20px;
  }

  .faq-title {
    font-size: 16px;
    max-width: 85%; /* Щоб текст не наліз на кнопку */
  }
}

/* --- CAREER SECTION (TIMELINE) --- */
.career {
  padding: 100px 0;
  position: relative;
  overflow: hidden; /* Щоб лінія не вилазила */
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 20px 0;
}

/* Центральна лінія */
.timeline__line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-primary),
    transparent
  );
  z-index: 0;
  opacity: 0.3;
}

.timeline__item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

/* Маркер (Кружечок з цифрою) */
.timeline__marker {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(247, 249, 252, 1); /* "Маска" для лінії */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Картка з контентом */
.timeline__content {
  width: 45%; /* Трохи менше половини */
  background-color: #ffffff;
  padding: 30px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
  margin-right: auto; /* За замовчуванням зліва */
  margin-left: 0;
  transition: var(--transition);
}

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

/* Стрілочка від картки до маркера */
.timeline__content::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  border-width: 10px 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

/* Реверсний блок (справа) */
.timeline__item--reverse .timeline__content {
  margin-right: 0;
  margin-left: auto; /* Зсуваємо направо */
}

.timeline__item--reverse .timeline__content::after {
  right: auto;
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent #ffffff transparent transparent;
}

/* Вміст картки */
.timeline__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--color-accent-bg);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.timeline__title {
  font-size: 20px;
  font-family: var(--font-heading);
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.timeline__text {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.5;
}

.timeline__text strong {
  color: var(--color-primary);
  font-weight: 500;
}

/* CTA внизу секції */
.career__cta {
  text-align: center;
  margin-top: 40px;
}

.career__cta-text {
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-weight: 500;
}

/* Адаптивність Timeline */
@media (max-width: 768px) {
  .timeline__line {
    left: 20px; /* Лінія зміщується вліво */
  }

  .timeline__marker {
    left: 20px; /* Маркери теж вліво */
  }

  .timeline__content {
    width: calc(100% - 60px); /* Картка займає всю ширину мінус відступ */
    margin-left: 60px !important; /* Завжди відступ зліва */
    margin-right: 0 !important;
  }

  /* Стрілочка завжди зліва */
  .timeline__content::after {
    right: auto !important;
    left: -10px !important;
    border-width: 10px 10px 10px 0 !important;
    border-color: transparent #ffffff transparent transparent !important;
  }

  .timeline__item {
    margin-bottom: 40px;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 80px 0 120px;
}

.contact__wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 40px; /* Гіпер-округлення */
  padding: 50px;
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}

/* Декоративна лінія зверху форми */
.contact__wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
}

.contact__title {
  font-family: var(--font-heading);
  font-size: 32px;
  text-align: center;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.contact__subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 40px;
  font-size: 16px;
}

.contact__subtitle strong {
  color: var(--color-primary);
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-left: 15px; /* Вирівнювання під округлений інпут */
}

.form-input {
  width: 100%;
  padding: 16px 24px;
  border-radius: 50px; /* Pill shape */
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text-main);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

/* Валідація: помилки */
.form-group.error .form-input {
  border-color: #ef476f;
  background-color: #fff5f7;
}

.error-msg {
  display: none;
  font-size: 12px;
  color: #ef476f;
  margin-top: 5px;
  margin-left: 20px;
}

.form-group.error .error-msg {
  display: block;
}

/* Custom Checkbox */
.form-checkbox-wrapper {
  margin-bottom: 20px;
}

.custom-checkbox-input {
  display: none;
}

.custom-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.4;
}

.checkbox-visual {
  min-width: 20px;
  height: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background-color: #ffffff;
}

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

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

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

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

.captcha-wrapper {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 15px 20px;
  width: fit-content;
  margin-bottom: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  min-width: 250px;
}

.captcha-input {
  display: none;
}

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

.captcha-checkbox {
  width: 28px;
  height: 28px;
  border: 2px solid #c1c1c1;
  border-radius: 4px;
  background-color: #ffffff;
  position: relative;
  transition: 0.3s;
}

.captcha-input:checked + .captcha-label .captcha-checkbox::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 6px;
  height: 14px;
  border: solid #4361ee;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

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

.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #9ca3af;
  gap: 2px;
}

.captcha-logo i {
  width: 18px;
  height: 18px;
  color: #4361ee;
}

.contact__submit-btn {
  width: 100%;
  margin-bottom: 15px;
  font-size: 18px;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-light);
  opacity: 0.7;
}

.contact__success {
  display: none;
  text-align: center;
  padding: 40px 0;
}

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

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

.success-title {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-text-main);
  margin-bottom: 10px;
}

.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Схований внизу */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 15px 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  max-width: 90%;
  width: 500px;
  border: 1px solid #ffffff;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

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

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

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

.cookie-btn {
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
}

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

.pages .container {
  max-width: 900px;
  background: #ffffff;
  padding: 60px;
  border-radius: 40px;
  box-shadow: var(--shadow-soft);
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--color-text-main);
  margin-bottom: 40px;
  text-align: center;
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--color-text-main);
  margin-top: 40px;
  margin-bottom: 20px;
}

.pages p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

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

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

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

/* Адаптивність форми */
@media (max-width: 600px) {
  .contact__wrapper {
    padding: 30px 20px;
  }

  .cookie-popup {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    width: 90%;
  }

  .cookie-content {
    flex-direction: column;
  }

  .pages .container {
    padding: 30px 20px;
  }

  .pages h1 {
    font-size: 32px;
  }
}
