body {
  background-color: #f8f7f9;
  color: #171414;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.text-color-dark {
  color: #171414;
}
.text-color-warm-dark {
  color: #4b3d3c;
}
.text-color-blue {
  color: #0c2130;
}
.text-color-muted {
  color: #89839a;
}
.text-color-light {
  color: #f8f7f9;
}

.bg-color-dark {
  background-color: #171414;
}
.bg-color-warm-dark {
  background-color: #4b3d3c;
}
.bg-color-blue {
  background-color: #0c2130;
}
.bg-color-muted {
  background-color: #89839a;
}
.bg-color-light {
  background-color: #f8f7f9;
}

.decorative-line::before {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background-color: #89839a;
  margin-bottom: 1.5rem;
}

.decorative-shape {
  position: absolute;
  z-index: 0;
  opacity: 0.5;
}

.parallax-bg-container {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.parallax-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  object-fit: cover;
  z-index: -1;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1.2s ease-out;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-arrow {
  transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) or (max-width: 768px) {
  .reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
  }
  .parallax-bg-image {
    height: 100%;
    transform: translateY(0) !important;
  }
}

#mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
#mobile-menu.open {
  transform: translateX(0);
}
/*
 * СТИЛИ ДЛЯ СЕКЦИЙ "ÜBER UNS"
 * Эти стили добавляют уникальные декоративные элементы для 3 новых секций.
 */

/* Декоративная форма для Секции 1 (Миссия) */
.mission-shape-wrapper {
  position: relative;
  z-index: 1;
}

.mission-shape-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-width: 600px;
  max-height: 600px;
  border: 2px solid #89839a; /* .color4 */
  border-radius: 45% 55% 70% 30% / 30% 60% 40% 70%;
  opacity: 0.3;
  z-index: -1;
  animation: slowSpin 30s linear infinite;
}

/* Анимация для формы */
@keyframes slowSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Стили для Секции 2 (Основатель) - смещенная рамка */
.founder-image-wrapper {
  position: relative;
}

.founder-image-wrapper::after {
  content: "";
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 100%;
  height: 100%;
  border: 3px solid #0c2130; /* .color3 */
  z-index: -1;
  border-radius: 0.5rem;
  opacity: 0.5;
  transition: all 0.5s ease;
}

/* Адаптация рамки для мобильных */
@media (max-width: 1024px) {
  .founder-image-wrapper::after {
    bottom: -1rem;
    right: -1rem;
  }
}

/* Стили для Секции 3 (Философия) - декоративные линии */
.philosophy-text-block {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid #89839a; /* .color4 */
  margin-bottom: 2rem;
}

.philosophy-text-block::before {
  content: "";
  position: absolute;
  left: -0.65rem; /* Позиционирование на линии */
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background-color: #f8f7f9; /* .color5 */
  border: 2px solid #89839a; /* .color4 */
  border-radius: 50%;
}
/*
 * СТИЛИ ДЛЯ СТРАНИЦЫ "SERVICE"
 */

/* 1. Декоративная форма для Секции 1 (Фокус) */
.service-focus-decorator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
/* Внешняя рамка */
.service-focus-decorator::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 400px;
  border: 2px solid #89839a; /* .color4 */
  border-radius: 0.5rem;
  transform: rotate(-10deg);
  opacity: 0.5;
  transition: transform 0.5s ease;
}
/* Внутренняя форма */
.service-focus-decorator::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 350px;
  max-height: 350px;
  background-color: #0c2130; /* .color3 */
  border-radius: 0.5rem;
  transform: rotate(5deg);
  opacity: 0.1;
  transition: transform 0.5s ease;
}
/* Эффект при наведении на контейнер (опционально, но красиво) */
.service-focus-decorator:hover::before {
  transform: rotate(0deg);
}
.service-focus-decorator:hover::after {
  transform: rotate(0deg);
}

/* 2. Макет "Процесс" (Таймлайн) для Секции 2 */
.service-process-container {
  position: relative;
  padding-left: 2rem; /* Отступ для линии */
}

/* Вертикальная линия таймлайна */
.service-process-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background-color: #89839a; /* .color4 */
  opacity: 0.3;
}

.service-process-step {
  position: relative;
  padding-left: 1.5rem; /* Отступ текста от основной линии */
  padding-bottom: 3rem; /* Пространство между шагами */
}

/* "Точка" на таймлайне для каждого шага */
.service-process-step::before {
  content: "";
  position: absolute;
  left: -0.45rem; /* (Ширина 1rem / 2) + (Ширина линии 2px / 2) = 0.5rem + 0.1rem (примерно) */
  top: 0.75rem; /* Выравнивание по вертикали */
  width: 1rem;
  height: 1rem;
  background-color: #f8f7f9; /* .color5 (фон) */
  border: 2px solid #89839a; /* .color4 */
  border-radius: 50%;
  z-index: 1;
}

/* Номер шага */
.service-step-number {
  display: block;
  font-size: 0.875rem; /* 14px */
  font-weight: 600;
  color: #89839a; /* .color4 */
  margin-bottom: 0.5rem;
}

/* Адаптация таймлайна для десктопа (сложный макет) */
@media (min-width: 1024px) {
  .service-process-container {
    padding-left: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Линия по центру */
  .service-process-container::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .service-process-step {
    width: 50%;
    padding-bottom: 4rem;
  }

  /* Шаги слева */
  .service-process-step:nth-child(odd) {
    padding-left: 0;
    padding-right: 3rem;
    text-align: right;
    align-self: flex-start;
  }

  /* Шаги справа */
  .service-process-step:nth-child(even) {
    padding-left: 3rem;
    padding-right: 0;
    text-align: left;
    align-self: flex-end;
  }

  /* Точки для левых шагов */
  .service-process-step:nth-child(odd)::before {
    left: auto;
    right: -0.5rem;
    transform: translateX(50%);
  }

  /* Точки для правых шагов */
  .service-process-step:nth-child(even)::before {
    left: -0.5rem;
    transform: translateX(-50%);
  }

  /* Сдвиг номеров шагов */
  .service-process-step:nth-child(odd) .service-step-number {
    text-align: right;
  }
  .service-process-step:nth-child(even) .service-step-number {
    text-align: left;
  }
}

/* 3. Секция 3 (Результаты) - Перекрытие блоков */
.service-results-overlap {
  background-color: #f8f7f9; /* .color5 */
  padding: 2.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
  .service-results-overlap {
    /* Эффект "перекрытия" */
    margin-left: -4rem; /* Сдвигает этот блок влево, на колонку с изображением */
    position: relative;
    z-index: 10;
  }
}
/*
 * СТИЛИ ДЛЯ СТРАНИЦЫ "FAQ"
 */

/* --- Стили для Аккордеона (Секция 2) --- */
/*
 * Эти стили управляют открытием/закрытием.
 * JavaScript будет добавлять/удалять класс 'active'.
 */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 600px; /* Увеличено для большего объема текста */
}

/* Кастомный "плюс/минус" для аккордеона */
.faq-toggle-icon {
  position: relative;
  width: 1.25rem; /* 20px */
  height: 1.25rem;
  flex-shrink: 0;
  margin-left: 1rem;
}
/* Горизонтальная линия */
.faq-toggle-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem; /* 16px */
  height: 2px;
  background-color: #89839a; /* .color4 */
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease-out;
}
/* Вертикальная линия */
.faq-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem; /* 16px */
  height: 2px;
  background-color: #89839a; /* .color4 */
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Анимация в "минус" при 'active' */
.faq-item.active .faq-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0; /* Скрываем вертикальную линию */
}

/* --- Стили для "липкого" изображения (Секция 2) --- */
@media (min-width: 1024px) {
  /* "Прилипание" блока с изображением при прокрутке */
  .faq-sticky-wrapper {
    position: sticky;
    top: 6rem; /* (Высота хедера + отступ) */
    height: 600px; /* Фиксированная высота */
    z-index: 1; /* Ниже, чем оверлей меню, но выше контента */
  }
}

/* --- Стили для декора в Секции 1 (Hero) --- */
.faq-hero-image-wrapper {
  position: relative;
  min-height: 400px;
}
/* Декоративная рамка-тень */
.faq-hero-image-wrapper::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  border: 3px solid #0c2130; /* .color3 */
  opacity: 0.2;
  z-index: -1;
  transition: all 0.4s ease;
}
/* Декоративная точка */
.faq-hero-image-wrapper::before {
  content: "";
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  width: 3rem;
  height: 3rem;
  background-color: #89839a; /* .color4 */
  border-radius: 50%;
  opacity: 0.5;
  z-index: 2;
}

/* --- Стили для декора в Секции 3 (CTA) --- */
.faq-cta-decorator {
  position: relative;
  overflow: hidden; /* Важно для ::before/::after */
  z-index: 1;
}
/* Абстрактные фоновые формы (круги) */
.faq-cta-decorator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 20%;
  width: 300px;
  height: 300px;
  border: 2px solid #89839a; /* .color4 */
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.1;
  z-index: -1;
}
.faq-cta-decorator::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10%;
  width: 500px;
  height: 500px;
  border: 2px solid #f8f7f9; /* .color5 */
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0.05;
  z-index: -1;
} /*
 * СТИЛИ ДЛЯ СТРАНИЦЫ "CONTACT"
 * (Без лишней графики, упор на типографику и CSS-декор)
 */

/* --- Стили для контейнера секции --- */
/*
 * Мы используем .color3 (темно-синий) в качестве фона 
 * для этой секции, чтобы она отличалась от других.
 */
.contact-section-wrapper {
  position: relative;
  background-color: #0c2130; /* .color3 */
  color: #f8f7f9; /* .color5 (светлый текст) */
  overflow: hidden;
  z-index: 1;
}

/* * Декоративная фоновая линия (CSS-элемент, без графики).
* Она создает сложный асимметричный вид.
*/
.contact-section-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%; /* Асимметричное положение */
  width: 2px;
  height: 100%;
  background-color: #89839a; /* .color4 (приглушенный) */
  opacity: 0.2;
  z-index: -1;
}

/* --- Стили для полей формы --- */
.contact-form-input {
  width: 100%;
  border: 2px solid #89839a; /* .color4 */
  background-color: transparent;
  color: #f8f7f9; /* .color5 (текст в поле) */
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form-input::placeholder {
  color: #89839a; /* .color4 */
  opacity: 0.7;
}

.contact-form-input:focus {
  outline: none;
  border-color: #f8f7f9; /* .color5 */
  box-shadow: 0 0 0 3px rgba(248, 247, 249, 0.2); /* Фокус */
}

/* * Стилизация HTML5-валидации: 
* Поля становятся красными, если не заполнены/неверный email
*/
.contact-form-input:invalid:not(:placeholder-shown) {
  border-color: #cb4c4c; /* Красный для ошибки */
}

/* --- Стили для кнопки отправки --- */
.contact-submit-btn {
  background-color: #f8f7f9; /* .color5 */
  color: #0c2130; /* .color3 */
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px; /* Форма "пилюли" */
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.contact-submit-btn:hover {
  background-color: transparent;
  color: #f8f7f9;
  border-color: #f8f7f9;
}

/* --- Стили для Нотификации (Toast) --- */
#form-success-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #f8f7f9; /* .color5 */
  color: #171414; /* .color1 */
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 100;
  /* Изначально скрыта и смещена */
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  visibility: hidden;
}

#form-success-toast.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Cookie Consent Popup */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(23, 20, 20, 0.98),
    rgba(23, 20, 20, 0.95)
  );
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent.hidden {
  display: none;
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 280px;
}

.cookie-consent-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8f7f9;
  margin-bottom: 0.5rem;
}

.cookie-consent-description {
  font-size: 0.95rem;
  color: #f8f7f9;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.cookie-consent-link {
  font-size: 0.875rem;
  color: #89839a;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-consent-link:hover {
  color: #f8f7f9;
}

.cookie-consent-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.cookie-btn-primary {
  background-color: #89839a;
  color: #f8f7f9;
  box-shadow: 0 4px 12px rgba(137, 131, 154, 0.3);
}

.cookie-btn-primary:hover {
  background-color: #0c2130;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(12, 33, 48, 0.4);
}

.cookie-btn-secondary {
  background-color: transparent;
  color: #f8f7f9;
  border: 2px solid #4b3d3c;
}

.cookie-btn-secondary:hover {
  background-color: #4b3d3c;
  border-color: #4b3d3c;
  transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-consent {
    padding: 1.25rem;
  }

  .cookie-consent-content {
    flex-direction: column;
    gap: 1.25rem;
  }

  .cookie-consent-text {
    text-align: center;
  }

  .cookie-consent-title {
    font-size: 1.125rem;
  }

  .cookie-consent-description {
    font-size: 0.875rem;
  }

  .cookie-consent-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }

  .cookie-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
}
