/* --- Variables & Reset --- */
:root {
  /* Palette: Airy Pastel */
  --clr-bg: #f0f4f8; /* Светлый серо-голубой фон */
  --clr-surface: #ffffff; /* Белые плашки */
  --clr-primary: #7c3aed; /* Мягкий фиолетовый (акцент) */
  --clr-primary-hover: #6d28d9;
  --clr-secondary: #14b8a6; /* Тиловый/Мятный (доп. акцент) */
  --clr-text-main: #1f2937; /* Темно-серый для текста */
  --clr-text-muted: #6b7280; /* Серый для описаний */
  --clr-border: #e5e7eb;

  /* Shapes */
  --radius-xl: 32px; /* Глобальное скругление */
  --radius-l: 24px;
  --radius-m: 16px;
  --radius-pill: 100px; /* Для кнопок */

  /* Spacing */
  --header-height: 80px;

  /* Shadows (Soft) */
  --shadow-soft: 0 10px 30px -10px rgba(124, 58, 237, 0.15);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Quicksand", sans-serif;
  background-color: var(--clr-bg);
  color: var(--clr-text-main);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  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:active {
  transform: scale(0.95);
}

.btn--primary {
  background-color: var(--clr-primary);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.4);
}

.btn--primary:hover {
  background-color: var(--clr-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -8px rgba(124, 58, 237, 0.5);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--clr-primary);
}

.header__logo-img {
  width: 40px;
  height: 40px;
}

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

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

.header__link {
  font-weight: 600;
  color: var(--clr-text-main);
  position: relative;
}

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

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

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

.header__close,
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--clr-text-main);
}

/* --- Mobile Nav Logic --- */
@media (max-width: 992px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--clr-surface);
    flex-direction: column;
    justify-content: center;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1001;
    border-top-left-radius: var(--radius-xl);
    border-bottom-left-radius: var(--radius-xl);
  }

  .header__nav.active {
    right: 0;
  }

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

  .header__link {
    font-size: 1.25rem;
  }

  .header__burger {
    display: block;
  }

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

  .header__actions .btn {
    display: none; /* Hide CTA button on mobile header, usually moved to drawer but keeping simple here */
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--clr-surface);
  border-top-left-radius: 60px; /* Hyper-rounded top corners */
  border-top-right-radius: 60px;
  padding: 80px 0 20px;
  margin-top: 80px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.02);
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--clr-primary);
  margin-bottom: 20px;
}

.footer__logo-img {
  width: 32px;
  height: 32px;
}

.footer__desc {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.footer__eu-note {
  font-size: 0.75rem;
  color: var(--clr-secondary);
  font-weight: 600;
}

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: var(--clr-text-main);
}

.footer__list li {
  margin-bottom: 12px;
}

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

.footer__link:hover {
  color: var(--clr-primary);
  padding-left: 5px; /* Micro-animation */
}

.footer__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

.footer__icon {
  width: 20px;
  height: 20px;
  color: var(--clr-primary);
  flex-shrink: 0;
}

.footer__bottom {
  text-align: center;
  border-top: 1px solid var(--clr-border);
  padding-top: 20px;
  color: #9ca3af;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer__container {
    grid-template-columns: 1fr;
  }
  .footer {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 160px 0 100px; /* Отступ сверху учитвает фиксированный хедер */
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Animated Background Elements */
.hero__bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}

.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--clr-primary) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  opacity: 0.15;
}

.hero__blob--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--clr-secondary) 0%, transparent 70%);
  bottom: 10%;
  right: -5%;
  opacity: 0.15;
}

.hero__blob--3 {
  width: 200px;
  height: 200px;
  background: #ffd166; /* Доп пастельный желтый */
  top: 40%;
  left: 40%;
  opacity: 0.1;
  filter: blur(40px);
}

/* Layout */
.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--clr-primary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Typography */
.hero__title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--clr-text-muted);
  margin-bottom: 40px;
  max-width: 540px;
}

/* Actions */
.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--clr-border);
  color: var(--clr-text-main);
}

.btn--outline:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: rgba(255, 255, 255, 0.5);
}

.hero__note {
  font-size: 0.85rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.hero__image-mask {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1/1.1;
  /* Супер-округлая уникальная форма маски */
  border-radius: 46% 54% 39% 61% / 55% 59% 41% 45%;
  overflow: hidden;
  position: relative;
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05);
  background: #fff;
  transition: border-radius 5s ease-in-out infinite alternate;
  /* Анимация "дыхания" формы */
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0% {
    border-radius: 46% 54% 39% 61% / 55% 59% 41% 45%;
  }
  50% {
    border-radius: 59% 41% 65% 35% / 46% 38% 62% 54%;
  }
  100% {
    border-radius: 46% 54% 39% 61% / 55% 59% 41% 45%;
  }
}

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

/* Floating Card */
.hero__card {
  position: absolute;
  top: 10%;
  right: -20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  padding: 16px 24px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 2;
}

.hero__card-icon {
  width: 48px;
  height: 48px;
  background: #ecfdf5;
  color: var(--clr-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__card-val {
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
}

.hero__card-label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

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

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    margin: 0 auto 40px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__note {
    justify-content: center;
  }

  .hero__card {
    right: 0;
    top: 0;
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 2.25rem;
  }
  .hero {
    padding-top: 120px;
  }
}

/* --- Global Section Styles --- */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Advantages Section --- */
.advantages {
  padding: 100px 0;
  position: relative;
  /* Легкий градиент на фоне секции */
  background: linear-gradient(180deg, var(--clr-bg) 0%, #e0e7ff 100%);
}

.advantages__header {
  text-align: center;
  margin-bottom: 80px;
}

/* Broken Grid Layout */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  margin-bottom: 60px;
  /* Отступ по бокам, чтобы декоративные элементы не обрезались */
  padding: 20px;
}

/* Decorative Background Blobs specific to this section */
.advantages__deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
}

.advantages__deco--1 {
  width: 300px;
  height: 300px;
  background: rgba(20, 184, 166, 0.2); /* Teal */
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
}

.advantages__deco--2 {
  width: 300px;
  height: 300px;
  background: rgba(124, 58, 237, 0.2); /* Purple */
  top: 20%;
  right: 10%;
}

/* Glass Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  position: relative;
  z-index: 1;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.glass-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
  background: rgba(255, 255, 255, 0.85);
}

/* Breaking the Grid: Individual Card Positioning */
.glass-card--1 {
  margin-top: 40px; /* Сдвиг вниз */
}

.glass-card--2 {
  margin-top: 0; /* Выше всех */
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--clr-primary);
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.1);
}

.glass-card--3 {
  margin-top: 80px; /* Сильный сдвиг вниз */
}

.glass-card__icon-box {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 20px; /* Squircle */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  margin-bottom: 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  font-size: 24px;
}

.glass-card--accent .glass-card__icon-box {
  background: var(--clr-primary);
  color: #fff;
}

.glass-card__title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.glass-card__desc {
  font-size: 1rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.glass-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #def7ec;
  color: #03543f;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.advantages__cta {
  text-align: center;
  margin-top: 60px;
}

.form-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}

/* Adaptive for Grid Breaking */
@media (max-width: 992px) {
  .advantages__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Reset margins on mobile */
  .glass-card--1,
  .glass-card--2,
  .glass-card--3 {
    margin-top: 0;
  }
}

/* --- Methodology Section --- */
.methodology {
  padding: 100px 0;
  overflow: hidden;
}

.methodology__header {
  text-align: center;
  margin-bottom: 80px;
}

/* Timeline Container */
.steps {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Central Line Decoration */
.steps__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0) 0%,
    var(--clr-primary) 20%,
    var(--clr-secondary) 80%,
    rgba(20, 184, 166, 0) 100%
  );
  transform: translateX(-50%);
  z-index: 0;
  border-radius: 2px;
}

/* Step Item Layout */
.step {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.step--left {
  justify-content: flex-start;
}

.step--right {
  justify-content: flex-end; /* Контент справа */
  flex-direction: row-reverse; /* Маркер меняется местами с контентом визуально в потоке */
}

/* Marker (Circle Number) */
.step__marker {
  width: 80px;
  height: 80px;
  background: var(--clr-bg);
  border: 4px solid var(--clr-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--clr-primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 10px rgba(240, 244, 248, 0.8); /* "Halo" effect to cover line */
  z-index: 2;
}

/* Content Card overrides */
.step__content {
  width: 45%; /* Чуть меньше половины */
  padding: 40px;
}

.step--right .step__content {
  text-align: left; /* Текст внутри правого блока все равно слева */
}

.step__icon {
  width: 50px;
  height: 50px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--clr-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step__desc {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  margin-bottom: 20px;
}

.step__btn {
  width: 100%;
}

/* Animation State */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .steps__line {
    left: 30px; /* Линия сдвигается влево */
  }

  .step {
    flex-direction: row; /* Всегда ряд */
    justify-content: flex-start;
    padding-left: 80px; /* Отступ под маркер */
  }

  .step--right {
    flex-direction: row; /* Отменяем реверс */
  }

  .step__marker {
    left: 30px; /* Маркер слева на линии */
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .step__content {
    width: 100%; /* Карточка на всю ширину */
  }
}

/* --- FAQ Section --- */
.faq {
  padding: 100px 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.faq__item {
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}

.faq__item:hover {
  box-shadow: var(--shadow-soft);
}

.faq__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-text-main);
  cursor: pointer;
  text-align: left;
}

.faq__icon {
  transition: transform 0.3s ease;
  color: var(--clr-primary);
}

.faq__item.active .faq__icon {
  transform: rotate(180deg);
}

.faq__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: rgba(249, 250, 251, 0.5); /* Very light grey */
}

.faq__body {
  padding: 0 24px 24px;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact {
  padding: 80px 0 120px;
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  padding: 60px;
  background: #fff; /* Opaque background for form readability */
  overflow: hidden;
}

.contact__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact__desc {
  color: var(--clr-text-muted);
  margin-bottom: 30px;
}

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

.contact__benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--clr-text-main);
}

.contact__benefits i {
  color: var(--clr-secondary);
}

/* Form Styles */
.contact__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-text-main);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #9ca3af;
  transition: color 0.3s ease;
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 48px; /* space for icon */
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-m);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-input:focus {
  outline: none;
  border-color: var(--clr-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-input:focus + .input-icon, /* This selector logic needs icon after input or JS */
.input-wrapper:focus-within .input-icon {
  color: var(--clr-primary);
}

/* Error states */
.form-input.error {
  border-color: #ef4444;
}

.error-msg {
  font-size: 0.8rem;
  color: #ef4444;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  height: 0;
}

.form-group.has-error .error-msg {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-top: 4px;
}

/* Custom Checkboxes */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

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

.checkmark {
  height: 24px;
  width: 24px;
  background-color: #eee;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.checkmark--square {
  border-radius: 4px;
}

.checkmark--circle {
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: #ccc;
}

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

.custom-checkbox input.error ~ .checkmark {
  border-color: #ef4444;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

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

/* Checkmark draw */
.checkmark--square:after {
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.checkmark--circle:after {
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Captcha Box Specifics */
.captcha-group {
  background: #f9fafb;
  padding: 16px;
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  width: fit-content;
  min-width: 250px;
  display: flex;
  justify-content: space-between;
}

.captcha-box {
  width: 100%;
  justify-content: flex-start;
}

.captcha-logo {
  width: 32px;
  margin-left: auto;
  opacity: 0.5;
}

.privacy-text {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

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

/* Success Overlay */
.form-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.form-success.active {
  opacity: 1;
  pointer-events: all;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }
}

/* --- Cookie Pop-up --- */
.cookie-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Спрятан внизу */
  width: 90%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-l);
  padding: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

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

.cookie-popup__icon {
  color: var(--clr-primary);
  flex-shrink: 0;
}

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

.cookie-popup__text a {
  color: var(--clr-primary);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 576px) {
  .cookie-popup {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .cookie-popup__btn {
    width: 100%;
  }
}

/* --- Legal Pages (Privacy, Terms, etc.) --- */
/* Этот стиль применяется к main на внутренних страницах */
.page-content {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  min-height: 80vh;
}

.pages {
  max-width: 800px; /* Оптимальная ширина для чтения */
  margin: 0 auto;
  background: #fff;
  padding: 60px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.pages h1 {
  font-size: 2.5rem;
  color: var(--clr-text-main);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--clr-bg);
}

.pages h2 {
  font-size: 1.5rem;
  color: var(--clr-text-main);
  margin-top: 40px;
  margin-bottom: 16px;
}

.pages p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text-muted);
  margin-bottom: 16px;
}

.pages ul {
  margin-bottom: 24px;
  padding-left: 20px;
  list-style: disc;
  color: var(--clr-text-muted);
}

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

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

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

@media (max-width: 768px) {
  .pages {
    padding: 30px;
  }
  .pages h1 {
    font-size: 2rem;
  }
}
