:root {
  --bg-dark: #050505;
  --accent-blue: #00f2ff;
  --accent-purple: #7000ff;
  --text-main: #e0e0e0;
  --text-dim: #a0a0a0;
  --glass: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  /* Aurora Mesh Gradient Background */
  background-image:
    radial-gradient(at 0% 0%, rgba(112, 0, 255, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 242, 255, 0.1) 0px, transparent 50%);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.03;
  pointer-events: none;
  z-index: 10;
}

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

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

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

.header__logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

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

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

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

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

.header__btn {
  text-decoration: none;
  color: var(--bg-dark);
  background: var(--accent-blue);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.header__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 242, 255, 0.4);
}

/* Footer Styles */
.footer {
  background: #0a0a0a;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
}

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

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

.footer__list {
  list-style: none;
}

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

.footer__list a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__list a:hover {
  color: var(--accent-purple);
}

.footer__tagline {
  margin-top: 20px;
  color: var(--text-dim);
  max-width: 250px;
}

.footer__bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Burger Menu Mobile */
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

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

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

@media (max-width: 992px) {
  .header__menu {
    display: none;
  }
  .header__burger {
    display: block;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
/* Hero Section */
.hero {
  padding: 140px 0 60px;
}

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

.hero__item {
  background: var(--glass);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

/* Main Block */
.hero__item--main {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(112, 0, 255, 0.1);
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  width: fit-content;
}

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

.text-gradient {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 40px;
}

/* Buttons */
.hero__actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--bg-dark);
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-secondary:hover {
  background: var(--border-color);
}

/* Visualization Block */
.hero__item--viz {
  grid-column: span 1;
  grid-row: span 1;
  padding: 0;
  background: #000;
}

#hero-canvas {
  width: 100%;
  height: 100%;
}

.hero__viz-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  font-family: monospace;
  font-size: 10px;
  color: var(--accent-blue);
}

/* Info & Stats Blocks */
.hero__item--info {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero__info-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__item--stats {
  grid-column: span 2;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--accent-blue);
  font-weight: 700;
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Responsive Bento */
@media (max-width: 992px) {
  .hero__bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero__item--main {
    grid-column: span 2;
  }
  .hero__item--viz {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .hero__bento {
    grid-template-columns: 1fr;
  }
  .hero__item--main,
  .hero__item--info,
  .hero__item--stats {
    grid-column: span 1;
  }
  .hero__actions {
    flex-direction: column;
  }
}

/* General Section Styles */
.section {
  padding: 100px 0;
}

.section--dark {
  background: rgba(112, 0, 255, 0.03);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 60px;
  text-align: center;
}

/* Capabilities Grid */
.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cap-card {
  background: var(--glass);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 16px;
  transition: all 0.4s ease;
}

.cap-card--large {
  grid-column: span 2;
}

.cap-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-5px);
}

.cap-icon {
  color: var(--accent-blue);
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
}

.cap-list {
  list-style: none;
  margin-top: 20px;
}

.cap-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.cap-list i {
  color: var(--accent-purple);
  width: 18px;
}

/* Process Steps */
.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.step-item {
  position: relative;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

.step-num {
  position: absolute;
  top: -15px;
  left: 0;
  background: var(--bg-dark);
  padding-right: 15px;
  font-family: var(--font-heading);
  color: var(--accent-blue);
  font-weight: 700;
}

/* Blog Styles */
.blog__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.blog-card {
  display: flex;
  background: var(--glass);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.blog-card__img {
  flex: 0 0 40%;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__content {
  padding: 30px;
}

.blog-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent-purple);
  letter-spacing: 1px;
  font-weight: 700;
}

.blog-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .capabilities__grid,
  .process__steps,
  .blog__grid {
    grid-template-columns: 1fr;
  }
  .cap-card--large {
    grid-column: span 1;
  }
  .blog-card {
    flex-direction: column;
  }
}

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

.contact-form {
  background: var(--glass);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 15px;
  color: #fff;
  border-radius: 8px;
  outline: none;
}

.form-group input:focus {
  border-color: var(--accent-blue);
}

.form-captcha,
.form-policy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.captcha-container,
.policy-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-btn {
  width: 100%;
  cursor: pointer;
  border: none;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.form-message.success {
  background: rgba(0, 255, 127, 0.1);
  color: #00ff7f;
  border: 1px solid #00ff7f;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--accent-blue);
  padding: 20px;
  z-index: 1000;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}
@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Styles for Policy Pages */
.pages {
  padding: 120px 0 80px;
}
.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 30px;
}
.pages h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--accent-blue);
}
.pages p {
  margin-bottom: 20px;
  color: var(--text-dim);
}
.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
}
.pages li {
  margin-bottom: 10px;
}

.form-group input {
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-group input:invalid:not(:placeholder-shown) {
  border-color: #ff4d4d;
}

/* Эффект при фокусе на валидном поле */
.form-group input:focus:valid {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}
/* Кнопка бургера */
.header__burger {
  display: none; /* По умолчанию скрыта */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.header__burger .line {
  width: 30px;
  height: 2px;
  background-color: var(--accent-blue);
  transition: all 0.3s ease;
  border-radius: 10px;
}

/* Анимация бургера в "X" */
.header__burger.is-active .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.header__burger.is-active .line:nth-child(2) {
  opacity: 0;
}
.header__burger.is-active .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 992px) {
  .header__burger {
    display: flex; /* Показываем на планшетах и мобилках */
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%; /* Прячем за экран */
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(15px);
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-left: 1px solid var(--accent-purple);
  }

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

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

  .header__link {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: #fff;
  }
}

.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Спрятан внизу */
  width: 90%;
  max-width: 600px;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--accent-blue);
  border-radius: 100px; /* Овальная современная форма */
  padding: 10px 25px;
  z-index: 9999;
  transition:
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s;
  opacity: 0;
  box-shadow: 0 10px 40px rgba(0, 242, 255, 0.15);
}

/* Класс, который добавляет ваш JS */
.cookie-popup.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-popup__content {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
}

.cookie-popup__icon {
  color: var(--accent-blue);
  display: flex;
  align-items: center;
}

.cookie-popup__text {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.3;
  flex: 1;
}

.cookie-popup__text a {
  color: var(--accent-purple);
  text-decoration: none;
  font-weight: 600;
}

.cookie-popup__btn {
  background: var(--accent-blue);
  color: var(--bg-dark);
  border: none;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.cookie-popup__btn:hover {
  box-shadow: 0 0 15px var(--accent-blue);
  transform: scale(1.05);
}

/* Мобильная адаптация */
@media (max-width: 600px) {
  .cookie-popup {
    border-radius: 20px;
    padding: 20px;
    bottom: 20px;
  }
  .cookie-popup__content {
    flex-direction: column;
    text-align: center;
  }
}
