:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --secondary: #9333ea;
  --bg-light: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --border: rgba(226, 232, 240, 0.8);
  --radius-m: 16px;
  --radius-l: 24px;
  --container-width: 1200px;
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Mesh Gradient Background */
.mesh-gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(
      circle at 0% 0%,
      rgba(79, 70, 229, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(147, 51, 234, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 215, 0, 0.05) 0%,
      transparent 50%
    );
  filter: blur(80px);
}

.mesh-gradient-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.2;
  pointer-events: none;
}

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

.header__container {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
}

.header__menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.header__link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

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

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
  background: var(--primary-dark);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.header__burger span,
.header__burger span::before,
.header__burger span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary);
  left: 0;
  transition: 0.3s;
}

.header__burger span {
  top: 9px;
}
.header__burger span::before {
  top: -9px;
}
.header__burger span::after {
  top: 9px;
}

/* Footer */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
  margin-top: 100px;
}

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

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.footer__description {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 260px;
}

.footer__title {
  font-family: var(--font-heading);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer__list {
  list-style: none;
}

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

.footer__list a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: 0.3s;
}

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

.footer__list--contacts li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__list--contacts svg {
  width: 18px;
  color: var(--primary);
}

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

/* Page Styles (Policies) */
.pages {
  padding: 160px 0 100px;
}
.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 30px;
}
.pages h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}
.pages p {
  margin-bottom: 15px;
  color: var(--text-muted);
}
.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
}
.pages li {
  margin-bottom: 10px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
  .header__nav,
  .header__cta {
    display: none;
  }
  .header__burger {
    display: block;
  }
}

@media (max-width: 576px) {
  .footer__container {
    grid-template-columns: 1fr;
  }
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 80px;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
}

.hero__content {
  background: var(--white);
  padding: 60px;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

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

.hero__text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 15px;
}

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

.btn--outline:hover {
  background: var(--bg-light);
  border-color: var(--primary);
}

/* Hero Visual & Floating Animation */
.hero__visual {
  position: relative;
  height: 400px;
}

.hero__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
}

.floating-card {
  position: absolute;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-m);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--border);
  z-index: 2;
  transition: transform 0.1s ease-out;
}

.floating-card i {
  color: var(--primary);
}
.floating-card span {
  font-weight: 600;
  font-size: 0.9rem;
}

.card-1 {
  top: 10%;
  left: 10%;
}
.card-2 {
  top: 50%;
  right: 0;
}
.card-3 {
  bottom: 10%;
  left: 20%;
}

@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__content {
    padding: 40px 20px;
  }
  .hero__text {
    margin: 0 auto 40px;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__visual {
    height: 300px;
    margin-top: 40px;
  }
}

/* Bento Grid Layout */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Обновление сетки */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Заменяем 300px на minmax, чтобы блоки могли расти */
  grid-auto-rows: minmax(300px, auto);
  gap: 24px;
  margin-bottom: 24px;
}

/* Модификатор для блоков с большим количеством текста */
.bento-item--auto {
  grid-row: span 2; /* Занимает высоту двух стандартных рядов */
  height: auto;
  min-height: 450px; /* Увеличиваем базовую высоту */
  display: flex;
  align-items: center; /* Центрируем текст по вертикали, если нужно */
}

/* Уточнение отступов внутри контента */
.experience__text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 800px; /* Немного расширим для лучшей читаемости */
  line-height: 1.5;
}

.experience__main {
  padding: 60px; /* Больше внутреннего пространства */
}

@media (max-width: 992px) {
  .bento-item--auto {
    grid-row: auto;
    min-height: min-content;
    padding: 40px 20px;
  }
}
.bento-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.bento-item--large {
  grid-column: span 2;
  flex-direction: row;
}

.bento-item--medium {
  grid-column: span 1;
}

.bento-item--accent {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  justify-content: center;
}

.text-white {
  color: var(--white) !important;
}

.bento-item__icon {
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.bento-item__content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.bento-item__content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.bento-item--accent .bento-item__content p {
  opacity: 0.9;
  margin-bottom: 25px;
}

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

/* Responsive Bento */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }
  .bento-item--large,
  .bento-item--accent {
    grid-column: span 2;
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-item--large,
  .bento-item--accent,
  .bento-item--medium {
    grid-column: span 1;
  }
}

/* Experience Section */
.experience {
  padding: 60px 0;
}

.experience__step {
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 20px;
}

.experience__text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.experience__features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.exp-chip {
  padding: 8px 18px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

.experience__stat {
  background: var(--text-main);
  color: var(--white);
  text-align: center;
  justify-content: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff 30%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Reviews Section */
.reviews {
  padding: 100px 0;
}

.reviews__slider {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.review-card {
  padding: 40px;
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.review-card__user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 50px;
  height: 50px;
  background: var(--border);
  border-radius: 50%;
}

.review-card__user h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.review-card__user span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-card__rating {
  color: #ffd700;
  letter-spacing: 2px;
}

.review-card__text {
  font-style: italic;
  color: var(--text-main);
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .reviews__slider {
    grid-template-columns: 1fr;
  }
}

/* Contact Form Styles */
.contact-form {
  margin-top: 30px;
  display: grid;
  gap: 20px;
}
.form-group {
  position: relative;
}
.contact-form input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.3s;
}
.contact-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

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

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.custom-checkbox input {
  display: none;
}
.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: 0.3s;
}
.custom-checkbox input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}
.custom-checkbox input:checked + .checkmark::after {
  content: "✓";
  color: white;
  position: absolute;
  left: 4px;
  top: -2px;
  font-weight: bold;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--white);
  padding: 20px 30px;
  border-radius: var(--radius-m);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  display: flex;
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 90%;
  max-width: 600px;
  border: 1px solid var(--border);
}
.cookie-popup.active {
  transform: translateX(-50%) translateY(0);
}
.cookie-popup__content {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.cookie-popup p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 992px) {
  /* Стили анимации иконок бургера */
  .header__burger.active span {
    background: transparent;
  }
  .header__burger.active span::before {
    transform: rotate(45deg);
    top: 0;
  }
  .header__burger.active span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* Мобильное меню */
  .header__nav {
    display: block; /* Показываем блок */
    position: fixed;
    top: 0;
    right: -100%; /* Прячем за экран */
    width: 100%;
    height: 100vh;
    background: var(--white);
    padding: 100px 40px;
    transition: 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: -1;
  }

  .header__nav.is-open {
    right: 0; /* Выезжаем */
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .header__link {
    font-size: 1.5rem;
    color: var(--text-main);
  }
}
