/* Глобальные настройки */
:root {
  --bg-color: #08090a;
  --text-color: #ffffff;
  --accent-holographic: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --card-bg: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.1);
  --font-main: "Inter", sans-serif;
  --font-heading: "Syne", sans-serif;
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Стили заголовков (для будущих секций и страниц политик) */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
}

/* Aurora Background Effect */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(168, 237, 234, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(254, 214, 227, 0.05) 0%,
      transparent 40%
    );
  z-index: -1;
  pointer-events: none;
}

/* Хедер */
.header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-color);
}

.logo__text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav__link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 400;
  transition: var(--transition);
}

.nav__link:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(168, 237, 234, 0.5);
}

.nav__link--cta {
  padding: 10px 20px;
  background: var(--accent-holographic);
  border-radius: 50px;
  color: #000;
  font-weight: 600;
}

.nav__link--cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(168, 237, 234, 0.3);
}

/* Бургер меню */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__burger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-color);
  transition: var(--transition);
}

/* Футер */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
  margin-top: 100px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer__title {
  margin-bottom: 24px;
  font-size: 1rem;
  color: #fff;
}

.footer__list,
.footer__contact-info {
  list-style: none;
}

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

.footer__list a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}

.footer__list a:hover {
  color: #a8edea;
  padding-left: 5px;
}

.footer__contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact-info svg {
  width: 18px;
  color: #a8edea;
}

.footer__bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Адаптивність */
@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header__burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #000;
    padding: 100px 40px;
    transition: var(--transition);
  }

  .nav--active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Hero Section & Bento Grid */
.hero {
  padding: 160px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 24px;
}

.bento-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.bento-item:hover {
  border-color: rgba(168, 237, 234, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* Главная карточка */
.hero__main-card {
  grid-column: span 3;
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(168, 237, 234, 0.1);
  border: 1px solid rgba(168, 237, 234, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  color: #a8edea;
  margin-bottom: 24px;
  width: fit-content;
}

.hero__title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.text-gradient {
  background: var(--accent-holographic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  max-width: 90%;
}

/* Кнопки */
.hero__actions {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 16px 32px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.btn--primary {
  background: var(--accent-holographic);
  color: #000;
}

.btn--secondary {
  border: 1px solid var(--border-color);
  color: #fff;
}

.btn:hover {
  transform: translateY(-5px);
}

/* Карточка статистики */
.hero__stat-card {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 3rem;
  background: var(--accent-holographic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Визуальная карточка (Holo Sphere) */
.hero__visual-card {
  grid-column: span 1;
  grid-row: span 2;
  background: radial-gradient(
    circle at center,
    rgba(168, 237, 234, 0.15) 0%,
    transparent 70%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero__holo-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: var(--accent-holographic);
  filter: blur(60px);
  opacity: 0.4;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -55%);
  }
  50% {
    transform: translate(-50%, -45%);
  }
}

/* Адаптивность Bento */
@media (max-width: 992px) {
  .hero__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .hero__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__main-card {
    grid-column: span 1;
  }
}

/* Секция Применение */
.usage {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  max-width: 600px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-desc {
  color: rgba(255, 255, 255, 0.6);
}

.usage__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}

.usage__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.usage__item--large {
  grid-column: span 2;
  grid-row: span 1;
  flex-direction: row;
  align-items: center;
}

.usage__item--wide {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.usage__icon {
  width: 50px;
  height: 50px;
  background: rgba(168, 237, 234, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #a8edea;
}

.usage__item--large .usage__icon,
.usage__item--wide .usage__icon {
  margin-bottom: 0;
  margin-right: 25px;
}

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

.usage__content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.usage__illustration {
  position: relative;
  width: 150px;
  height: 150px;
}

.usage__blob {
  width: 100%;
  height: 100%;
  background: var(--accent-holographic);
  filter: blur(40px);
  opacity: 0.3;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blob-morph 8s linear infinite;
}

@keyframes blob-morph {
  0%,
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }
  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }
}

.usage__link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a8edea;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.usage__link:hover {
  gap: 15px;
  text-shadow: 0 0 10px rgba(168, 237, 234, 0.5);
}

/* Адаптивность Usage */
@media (max-width: 992px) {
  .usage__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .usage__item--large,
  .usage__item--wide {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
  }
  .usage__illustration {
    display: none;
  }
}

@media (max-width: 600px) {
  .usage__grid {
    grid-template-columns: 1fr;
  }
  .usage__item--large,
  .usage__item--wide {
    grid-column: span 1;
  }
}

/* Секция Обучение */
.education {
  padding: 100px 0;
  background: radial-gradient(
    circle at bottom left,
    rgba(254, 214, 227, 0.03) 0%,
    transparent 50%
  );
}

.education__path {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Линия связи между шагами (Tech style) */
.education__path::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border-color),
    transparent
  );
  z-index: 0;
}

.education__step {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 60%;
  z-index: 1;
  position: relative;
}

/* Чередование сторон для Bento-шагов */
.education__step:nth-child(odd) {
  align-self: flex-start;
  padding-right: 60px;
}

.education__step:nth-child(even) {
  align-self: flex-end;
  flex-direction: row-reverse;
  padding-left: 60px;
  text-align: right;
}

.education__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.2;
  background: var(--accent-holographic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
}

.education__step:hover .education__number {
  opacity: 1;
  transform: scale(1.1);
}

.education__info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.education__info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

/* Финальный шаг */
.education__step--final {
  width: 100%;
  align-self: center;
  text-align: center;
  flex-direction: column;
  padding: 60px;
  background: linear-gradient(
    135deg,
    rgba(168, 237, 234, 0.05) 0%,
    rgba(254, 214, 227, 0.05) 100%
  );
  border: 1px solid rgba(168, 237, 234, 0.2);
}

.education__step--final .btn {
  margin-top: 30px;
}

/* Адаптивность для пути */
@media (max-width: 768px) {
  .education__path::before {
    left: 20px;
  }
  .education__step,
  .education__step:nth-child(even) {
    width: 100%;
    align-self: flex-start;
    flex-direction: row;
    text-align: left;
    padding: 30px;
    gap: 20px;
  }
  .education__number {
    font-size: 2rem;
  }
}

/* Секция Инструменты */
.tools {
  padding: 100px 0;
  position: relative;
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  perspective: 1000px; /* Для 3D эффектов */
}

.tool-card {
  position: relative;
  height: 380px;
  background: transparent !important; /* Переопределяем фон bento-item */
  border: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.tool-card__glass {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  z-index: 1;
  transition: var(--transition);
}

.tool-card:hover .tool-card__glass {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(168, 237, 234, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(168, 237, 234, 0.1);
}

.tool-card__content {
  position: relative;
  z-index: 2;
  padding: 40px;
  text-align: center;
  transform: translateZ(30px); /* Выталкиваем контент вперед */
}

.tool-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--accent-holographic);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.tool-card__icon svg {
  width: 32px;
  height: 32px;
}

.tool-card__content h3 {
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.tool-card__content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

.tool-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a8edea;
  border-bottom: 1px solid rgba(168, 237, 234, 0.3);
}

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

.link-underline {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #a8edea;
  transition: var(--transition);
}

.link-underline:hover {
  color: #a8edea;
}

/* Секция Кейсы */
.cases {
  padding: 120px 0;
  overflow: hidden; /* Чтобы гигантский текст не создавал скролл */
}

.cases__big-title {
  font-size: clamp(3rem, 10vw, 8rem); /* Гигантский шрифт */
  font-family: var(--font-heading);
  line-height: 0.9;
  margin-bottom: 60px;
  letter-spacing: -3px;
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.case-card {
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

.case-card--wide {
  grid-column: span 2;
  min-height: 350px;
  flex-direction: row;
  align-items: center;
}

.case-card__number {
  font-size: 1.2rem;
  font-weight: 800;
  color: #a8edea;
  font-family: var(--font-heading);
}

.case-card__content {
  position: relative;
  z-index: 5;
  max-width: 80%;
}

.case-card__title {
  font-size: 2rem;
  margin: 20px 0;
  line-height: 1.2;
}

.case-card__text {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 30px;
}

.case-card__tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Гигантский фоновый текст (Brutalism) */
.case-card__giant-text {
  position: absolute;
  bottom: -20px;
  right: -10px;
  font-size: 10rem;
  font-family: var(--font-heading);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 2;
  transition: var(--transition);
}

.case-card:hover .case-card__giant-text {
  color: rgba(168, 237, 234, 0.05);
  transform: translateY(-20px);
}

/* Адаптивность для кейсов */
@media (max-width: 992px) {
  .cases__grid {
    grid-template-columns: 1fr;
  }
  .case-card--wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
  .case-card__giant-text {
    font-size: 6rem;
  }
}

/* Секция Контакты */
.contact {
  padding: 100px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: start;
}

.contact__methods {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

.contact__method {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.contact__method i {
  color: #a8edea;
}

.contact__method span {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Форма */
.form {
  display: grid;
  gap: 20px;
  position: relative;
}

.form__input {
  width: 100%;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: #fff;
  font-family: inherit;
  transition: var(--transition);
}

.form__input:focus {
  outline: none;
  border-color: #a8edea;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 15px rgba(168, 237, 234, 0.1);
}

.form__error {
  color: #ff6b6b;
  font-size: 0.75rem;
  margin-top: 5px;
  display: none;
}

.form__input:invalid:not(:placeholder-shown) {
  border-color: #ff6b6b;
}

/* Кастомная капча */
.form__captcha {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.captcha-checkbox input {
  display: none;
}

.captcha-checkbox__box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  transition: var(--transition);
}

.captcha-checkbox input:checked + .captcha-checkbox__box {
  background: #a8edea;
  border-color: #a8edea;
}

.captcha-checkbox input:checked + .captcha-checkbox__box::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-weight: bold;
}

.captcha-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6rem;
  opacity: 0.5;
}

/* Согласие */
.form__policy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.form__policy a {
  color: #a8edea;
  text-decoration: none;
}

/* Сообщение об успехе */
.form__success {
  position: absolute;
  inset: 0;
  background: #08090a;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  border-radius: 32px;
}

.form__success-icon {
  color: #a8edea;
  margin-bottom: 20px;
}

.form__success svg {
  width: 64px;
  height: 64px;
}

/* Адаптивність */
@media (max-width: 850px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie Pop-up */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: rgba(15, 16, 18, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  padding: 20px 40px;
  border-radius: 24px;
  z-index: 2000;
  width: 90%;
  max-width: 600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.cookie-popup p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 20px;
}

.btn--small {
  padding: 10px 24px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Стили для текстовых страниц (privacy.php, и др.) */
.pages {
  padding: 160px 0 100px;
}

.pages h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  background: var(--accent-holographic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pages h2 {
  font-size: 1.8rem;
  margin: 40px 0 20px;
  color: #a8edea;
}

.pages p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 800px;
}

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

.pages li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.pages li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 1px;
  background: #a8edea;
}

.pages strong {
  color: #fff;
}

.pages a {
  color: #a8edea;
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 237, 234, 0.3);
}
