/* --- VARIABLES: NEO-BRUTALISM --- */
:root {
  --c-bg: #fff8f0; /* Мягкий беж (Off-white) */
  --c-surface: #ffffff;
  --c-text: #121212;
  --c-border: #000000;

  /* Акцентные цвета */
  --c-primary: #3b82f6; /* Яркий синий */
  --c-secondary: #f97316; /* Насыщенный оранжевый */
  --c-accent: #a3e635; /* Лайм */

  --font-main: "Space Grotesk", sans-serif;

  --border-width: 2px;
  --shadow-hard: 4px 4px 0px var(--c-border);
  --shadow-hover: 2px 2px 0px var(--c-border);
  --radius: 0px; /* Прямые углы для брутализма */

  --header-height: 72px;
  --container-width: 1280px;
}

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

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

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  border-left: var(--border-width) solid var(--c-border);
  border-right: var(--border-width) solid var(--c-border);
  min-height: 100vh;
  margin: 0 auto;
  max-width: 1600px; /* Ограничиваем "холст" */
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--c-primary);
  color: #fff;
  border: var(--border-width) solid var(--c-border);
  padding: 12px 24px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 transparent; /* "Нажатие" кнопки */
}

.btn__icon {
  width: 18px;
  height: 18px;
}

/* --- HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--c-surface);
  border-bottom: var(--border-width) solid var(--c-border);
}

.header__wrapper {
  display: flex;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo Section */
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-right: var(--border-width) solid var(--c-border);
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--c-surface);
  transition: background 0.3s;
}

.header__logo:hover {
  background: var(--c-accent);
}

/* Desktop Navigation */
.header__nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__list {
  display: flex;
  gap: 0;
  height: 100%;
}

.header__item {
  height: 100%;
  display: flex;
  align-items: center;
}

.header__link {
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  font-weight: 500;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  transition: all 0.2s;
}

.header__link:hover {
  background-color: var(--c-secondary);
  color: white;
  border-color: var(--c-border);
}

/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  border-left: var(--border-width) solid var(--c-border);
  background-color: var(--c-bg);
}

/* Burger */
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  border-top: var(--border-width) solid var(--c-border);
  background: var(--c-surface);
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  box-shadow: var(--shadow-hard);
}

.mobile-menu.open {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu__list li {
  border-bottom: 1px solid var(--c-border);
}

.mobile-menu__list li:last-child {
  border-bottom: none;
}

.mobile-menu__link {
  display: block;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: 0.2s;
}

.mobile-menu__link:hover,
.mobile-menu__link.highlight {
  background-color: var(--c-primary);
  color: white;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--c-surface);
  border-top: var(--border-width) solid var(--c-border);
  margin-top: 80px;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  max-width: 1600px;
  margin: 0 auto;
}

/* Footer Grid Borders */
.footer__col {
  padding: 40px 24px;
  border-right: var(--border-width) solid var(--c-border);
}

.footer__col:last-child {
  border-right: none;
}

.footer__logo {
  display: inline-block;
  font-weight: 700;
  font-size: 1.5rem;
  background-color: var(--c-text);
  color: #fff;
  padding: 4px 10px;
  margin-bottom: 16px;
  transform: rotate(-2deg); /* Brutalist touch */
}

.footer__desc {
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: #444;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width) solid var(--c-border);
  box-shadow: var(--shadow-hard);
  transition: 0.2s;
  background: #fff;
}

.social-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 transparent;
  background: var(--c-secondary);
  color: white;
}

.footer__title {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: var(--c-accent);
  display: inline-block;
  padding: 2px 8px;
  border: var(--border-width) solid var(--c-border);
}

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

.footer__list a {
  position: relative;
  width: fit-content;
}

.footer__list a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--c-primary);
  transition: 0.3s;
}

.footer__list a:hover::before {
  width: 100%;
}

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

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

.contact-row svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}

.footer__badge {
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-primary);
  border: 1px dashed var(--c-primary);
  padding: 8px;
  text-align: center;
}

.footer__bottom {
  border-top: var(--border-width) solid var(--c-border);
  padding: 16px;
  text-align: center;
  background-color: var(--c-text);
  color: white;
  font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }
  .header__burger {
    display: block;
  }
  .header__btn {
    display: none;
  } /* Скрываем кнопку на планшетах */

  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
  .footer__col:nth-child(2) {
    border-right: none;
  }
  .footer__col:nth-child(3) {
    border-top: var(--border-width) solid var(--c-border);
  }
  .footer__col:nth-child(4) {
    border-top: var(--border-width) solid var(--c-border);
    border-right: none;
  }
}

@media (max-width: 600px) {
  .header__logo-text {
    font-size: 1rem;
  }

  .footer__container {
    grid-template-columns: 1fr;
  }
  .footer__col {
    border-right: none;
    border-bottom: var(--border-width) solid var(--c-border);
  }
  .footer__col:last-child {
    border-bottom: none;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  border-bottom: var(--border-width) solid var(--c-border);
  background-color: var(--c-bg);
  overflow: hidden; /* Чтобы бегущая строка не ломала ширину */
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr; /* Асимметрия */
  min-height: 85vh; /* Почти полный экран */
  max-width: 1600px;
  margin: 0 auto;
}

/* Content Area */
.hero__content {
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: var(--border-width) solid var(--c-border);
  position: relative;
  background-image: radial-gradient(var(--c-border) 1px, transparent 1px);
  background-size: 20px 20px; /* Точки на фоне */
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent); /* Лайм */
  border: var(--border-width) solid var(--c-border);
  padding: 8px 16px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  width: fit-content;
  box-shadow: 4px 4px 0 var(--c-border);
  margin-bottom: 32px;
}

.hero__title {
  font-size: 4.5rem;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -2px;
}

.text-highlight {
  background-color: var(--c-primary);
  color: white;
  padding: 0 10px;
  display: inline-block;
  transform: skewX(-10deg); /* Наклон плашки */
}

.hero__subtitle {
  font-size: 1.25rem;
  max-width: 500px;
  margin-bottom: 48px;
  color: #333;
  background: white;
  border: var(--border-width) solid var(--c-border);
  padding: 20px;
  box-shadow: var(--shadow-hard);
}

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

.btn--xl {
  padding: 16px 40px;
  font-size: 1.1rem;
  background-color: var(--c-secondary); /* Оранжевый */
}

.btn--xl:hover {
  background-color: var(--c-primary);
}

.hero__info {
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--c-border);
  padding-left: 16px;
}

.hero__info-val {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero__info-label {
  font-size: 0.85rem;
  color: #666;
}

/* Visual Area */
.hero__visual {
  background-color: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* Decorative background lines for visual area */
.hero__visual::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 0, 0, 0.05) 10px,
    rgba(0, 0, 0, 0.05) 20px
  );
}

.hero__card-stack {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
}

.card-back {
  position: absolute;
  top: 20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background-color: var(--c-primary);
  border: var(--border-width) solid var(--c-border);
}

.card-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  border: var(--border-width) solid var(--c-border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.hero__card-stack:hover .card-front {
  transform: translate(-10px, -10px); /* Hover эффект сдвига */
}

.hero__img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border: var(--border-width) solid var(--c-border);
  filter: grayscale(100%) contrast(120%); /* Брутальный ч/б */
}

.hero__overlay-text {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}

/* Marquee (Бегущая строка) */
.marquee-wrapper {
  border-top: var(--border-width) solid var(--c-border);
  background: var(--c-accent); /* Лайм */
  color: var(--c-text);
  padding: 15px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 20s linear infinite;
  width: max-content; /* Важно для бесконечной прокрутки */
}

.marquee__item {
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.marquee__star {
  width: 16px;
  height: 16px;
  fill: var(--c-border);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* Двигаем на 50%, т.к. контент сдублирован */
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }

  .hero__content {
    border-right: none;
    border-bottom: var(--border-width) solid var(--c-border);
    padding: 60px 20px;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__visual {
    padding: 60px 20px;
    min-height: 400px;
  }

  .card-back {
    right: -10px;
    top: 10px;
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 2.2rem;
  }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .desktop-only {
    display: none;
  }
}

/* --- SECTION UTILS --- */
.section-header {
  margin-bottom: 60px;
  max-width: 800px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
  text-transform: uppercase;
}

.highlight-box {
  background-color: var(--c-accent); /* Lime */
  padding: 0 10px;
  box-shadow: 4px 4px 0 var(--c-border);
  display: inline-block;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #444;
  border-left: 4px solid var(--c-primary);
  padding-left: 20px;
}

/* --- TECHNOLOGY SECTION --- */
.tech-section {
  padding: 100px 0;
  border-bottom: var(--border-width) solid var(--c-border);
  background-image: linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 100px 100px; /* Эффект миллиметровой бумаги */
  background-color: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  padding: 20px 0;
}

/* Пунктирная линия на фоне */
.steps-connector {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: 4px;
  border-top: 4px dashed var(--c-border);
  z-index: 0;
}

.step-card {
  background: var(--c-surface);
  border: var(--border-width) solid var(--c-border);
  padding: 30px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-hard);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

/* Разные цвета при ховере для каждой карточки */
.step-card:nth-child(2):hover {
  background-color: #e0f2fe; /* Light Blue */
  transform: translate(-5px, -5px);
  box-shadow: 8px 8px 0 var(--c-border);
}
.step-card:nth-child(3):hover {
  background-color: #ffedd5; /* Light Orange */
  transform: translate(-5px, -5px);
  box-shadow: 8px 8px 0 var(--c-border);
}
.step-card:nth-child(4):hover {
  background-color: #ecfccb; /* Light Lime */
  transform: translate(-5px, -5px);
  box-shadow: 8px 8px 0 var(--c-border);
}

.step-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.step-number {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--c-border);
  opacity: 0.3;
  transition: 0.3s;
}

.step-card:hover .step-number {
  opacity: 1;
  color: var(--c-border);
}

.step-icon {
  width: 48px;
  height: 48px;
  color: var(--c-text);
  background: var(--c-bg);
  border: var(--border-width) solid var(--c-border);
  padding: 10px;
  box-shadow: 2px 2px 0 var(--c-border);
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.step-desc {
  font-size: 1rem;
  color: #555;
  flex-grow: 1;
}

/* CTA BLOCK */
.tech-cta {
  margin-top: 60px;
  background: var(--c-text);
  color: white;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: var(--border-width) solid var(--c-border);
  box-shadow: var(--shadow-hard);
}

.tech-cta p {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

  .steps-connector {
    display: none; /* Убираем линию на мобильных */
  }

  .tech-cta {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }
}

/* Animation Utility */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Важно: конфликт с ховером */
.step-card.visible:hover {
  transform: translate(-5px, -5px); /* Возвращаем ховер эффект после анимации */
}

/* --- BENEFITS BENTO GRID --- */
.benefits-section {
  padding: 100px 0;
  background-color: var(--c-bg);
}

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

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 колонки */
  grid-template-rows: repeat(
    2,
    minmax(250px, auto)
  ); /* 2 ряда минимум по 250px */
  gap: 20px;
  margin-top: 50px;
}

/* Общий стиль карточки */
.bento-item {
  border: var(--border-width) solid var(--c-border);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-hard);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Ховер эффекты */
.bento-item:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--c-border);
}

/* Модификаторы размеров */
.bento-item--large {
  grid-column: span 2; /* Занимает 2 колонки */
}

.bento-item--tall {
  grid-row: span 2; /* Занимает 2 ряда (вертикальный) */
  background-color: var(--c-accent); /* Lime */
}

.bento-item--wide {
  grid-column: span 2; /* Занимает 2 колонки */
}

/* Цветовые утилиты */
.bg-white {
  background-color: #fff;
}
.bg-lime {
  background-color: var(--c-accent);
}
.bg-blue {
  background-color: var(--c-primary);
}
.bg-orange {
  background-color: var(--c-secondary);
}
.text-white {
  color: #fff;
}

/* Внутренние элементы */
.bento-icon-box {
  width: 50px;
  height: 50px;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.bento-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  line-height: 1.1;
}

.bento-item p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.bento-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--c-text);
  color: #fff;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 50px;
}

/* Стили для вертикального блока */
.bento-content-vertical {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 20px;
}

.icon-xl {
  width: 64px;
  height: 64px;
}

.btn-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  box-shadow: 4px 4px 0 var(--c-border);
}

.btn-circle:hover {
  transform: rotate(45deg);
  background: var(--c-primary);
  color: #fff;
}

/* Стили для широкого нижнего блока */
.bento-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.icon-decorative {
  width: 80px;
  height: 80px;
  opacity: 0.2;
  transform: rotate(15deg);
}

.mb-4 {
  margin-bottom: 1.5rem;
}

/* --- RESPONSIVE BENTO --- */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr; /* 2 колонки на планшете */
    grid-template-rows: auto;
  }

  .bento-item--tall {
    grid-row: auto; /* Отменяем вертикальность */
    grid-column: span 2; /* Делаем широким */
    min-height: 250px;
  }

  .bento-content-vertical {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    display: flex;
    flex-direction: column; /* Все в столбик на телефоне */
  }

  .bento-item--large,
  .bento-item--wide,
  .bento-item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .bento-item {
    min-height: auto;
  }
}

/* --- FAQ SECTION --- */
.faq-section {
  padding: 100px 0;
  background-color: #fff;
  border-bottom: var(--border-width) solid var(--c-border);
}

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

.faq-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  border: var(--border-width) solid var(--c-border);
  background-color: var(--c-surface);
  box-shadow: var(--shadow-hard);
  transition: all 0.3s ease;
}

/* Активное состояние (открытый вопрос) */
.faq-item.active {
  box-shadow: 2px 2px 0 var(--c-border); /* Тень уменьшается */
  transform: translate(2px, 2px); /* Эффект нажатия */
}

/* Кнопка вопроса */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s;
}

.faq-item.active .faq-question {
  background-color: #ffe600; /* Желтый фон при открытии */
  border-bottom: var(--border-width) solid var(--c-border);
}

.faq-q-text {
  font-family: var(--font-main);
  font-size: 1.2rem;
  font-weight: 700;
}

.faq-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-border);
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Пружинистая анимация */
}

/* Поворот иконки при открытии */
.faq-item.active .faq-icon {
  transform: rotate(135deg); /* Плюс превращается в крестик */
  background: var(--c-border);
  color: #ffe600;
  border-color: var(--c-border);
}

/* Ответ (спрятанный блок) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-content {
  padding: 30px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  border-top: none;
}

/* Mobile tweak */
@media (max-width: 576px) {
  .faq-question {
    padding: 20px;
  }
  .faq-q-text {
    font-size: 1rem;
    padding-right: 15px;
  }
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding: 100px 0;
  background-color: var(--c-primary); /* Синий фон для контраста */
  border-bottom: var(--border-width) solid var(--c-border);
}

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

/* Left Info */
.contact-title {
  font-size: 3.5rem;
  color: #fff;
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 700;
}

.bg-orange {
  background-color: var(--c-secondary);
  color: #fff;
}

.contact-desc {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 400px;
}

.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Form Box */
.contact-form-box {
  background: #fff;
  padding: 40px;
  border: var(--border-width) solid var(--c-border);
  box-shadow: 8px 8px 0 var(--c-border); /* Hard Shadow */
  position: relative;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  width: 20px;
  height: 20px;
}

.form-input {
  width: 100%;
  padding: 16px 16px 16px 48px; /* padding for icon */
  border: 2px solid var(--c-border);
  font-family: var(--font-main);
  font-size: 1rem;
  outline: none;
  transition: 0.2s;
  background: #f9f9f9;
}

.form-input:focus {
  background: #fff;
  box-shadow: 4px 4px 0 var(--c-primary);
  border-color: var(--c-primary);
}

/* Captcha Style */
.captcha-box {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 4px;
  width: fit-content;
  cursor: pointer;
  user-select: none;
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  background: #fff;
  border-radius: 2px;
  position: relative;
}

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

.captcha-text {
  font-size: 0.9rem;
  color: #000;
  font-weight: 500;
}

.captcha-logo {
  height: 24px;
  margin-left: auto;
  opacity: 0.7;
}

.error-msg {
  color: red;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
  font-weight: 700;
}

/* Terms Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.custom-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--c-primary);
  margin-top: 3px;
}

.terms-label {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

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

/* Submit Button */
.btn--full {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 18px;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 20px;
  animation: fadeIn 0.5s;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--c-accent); /* Lime */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid var(--c-border);
  box-shadow: 4px 4px 0 var(--c-border);
}

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

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

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 20px;
  right: 20px;
  max-width: 400px;
  background: #fff;
  border: var(--border-width) solid var(--c-border);
  padding: 20px;
  z-index: 9999;
  box-shadow: 8px 8px 0 var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: bottom 0.5s ease-out;
}

.cookie-popup.show {
  bottom: 20px;
}

.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  align-self: flex-end;
}

/* Responsive Contact */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-title {
    font-size: 2.5rem;
  }
}

/* --- PAGES (Privacy, Terms etc) --- */
.pages {
  padding: 120px 0 80px; /* Больше отступ сверху из-за fixed header */
  background: #fff;
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Узкий контейнер для чтения */
  border: var(--border-width) solid var(--c-border);
  padding: 40px;
  box-shadow: var(--shadow-hard);
  background: var(--c-surface);
}

.pages h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  text-transform: uppercase;
  border-bottom: 4px solid var(--c-primary);
  padding-bottom: 10px;
}

.pages h2 {
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
  color: var(--c-text);
}

.pages p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333;
}

.pages ul {
  margin-bottom: 20px;
  list-style: none;
}

.pages ul li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.pages ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--c-secondary);
  border: 1px solid #000;
}

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

.pages a:hover {
  background: var(--c-primary);
  color: #fff;
  text-decoration: none;
}

/* Додати в кінець файлу або до секції форм */

/* Стиль для поля з помилкою */
.form-input.error {
  border-color: #ef4444 !important; /* Червоний бордер */
  background-color: #fef2f2;
  box-shadow: 4px 4px 0 #ef4444 !important; /* Червона тінь */
  color: #ef4444;
}

/* Анімація тремтіння для привернення уваги */
@keyframes shake-input {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake-input 0.4s ease-in-out;
}
