:root {
  --primary: #6366f1;
  --secondary: #a855f7;
  --bg-dark: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --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 {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Aurora Background Effect */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(99, 102, 241, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(168, 85, 247, 0.15) 0%,
      transparent 40%
    );
  z-index: -1;
  pointer-events: none;
}

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

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

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

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

.header__logo-text {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
}

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

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

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

.header__cta {
  background: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.header__cta:hover {
  transform: translateY(-2px);
  background: var(--secondary);
}

/* Footer Styles */
.footer {
  background: rgba(2, 6, 23, 0.8);
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer__title {
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.footer__list,
.footer__contacts {
  list-style: none;
}

.footer__list li {
  margin-bottom: 0.8rem;
}

.footer__list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer__contacts li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

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

@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .header__nav {
    display: none; /* Logic for burger in script.js */
  }
  .header__burger {
    display: block;
  }
}

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

/* Hero & Bento Styles */
.hero {
  padding: 10rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(200px, auto));
  gap: 1.5rem;
}

.bento-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.bento-item--main {
  grid-column: span 3;
  padding: 4rem;
}

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

.bento-item--stats {
  grid-column: span 1;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
}

.bento-item--tech {
  grid-column: span 1;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.bento-item--cta {
  grid-column: span 2;
  background: var(--primary);
  color: white;
}

.bento-item--cta h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* Typography & Elements */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

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

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

.hero__actions {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

.btn--secondary {
  border: 1px solid var(--glass-border);
  color: var(--text-light);
}

.stats-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
}

.bento-icon {
  color: var(--primary);
  margin-bottom: 1rem;
}

.arrow-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
  .hero__bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento-item--main {
    grid-column: span 2;
  }
}

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

.strategy {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.section-title {
  font-family: "Manrope", sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--primary);
  font-weight: 300;
}

.strategy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.strategy__card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.strategy__num {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.6;
  letter-spacing: 2px;
}

.strategy__label {
  font-size: 1.5rem;
  font-family: "Manrope", sans-serif;
}

.strategy__card--accent {
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 100%
  );
  border-color: rgba(99, 102, 241, 0.3);
}

.strategy__icon {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  opacity: 0.2;
  transform: scale(2);
}

.strategy__main-card {
  grid-column: span 3;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  display: flex;
  align-items: center;
  padding: 4rem;
  gap: 4rem;
  margin-top: 1.5rem;
}

.strategy__content {
  flex: 1;
}

.strategy__content h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.strategy__visual {
  flex: 1;
  height: 200px;
  background: radial-gradient(
    circle at center,
    var(--primary) 0%,
    transparent 70%
  );
  filter: blur(40px);
  opacity: 0.3;
  position: relative;
}

.abstract-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--secondary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

@media (max-width: 992px) {
  .strategy__grid {
    grid-template-columns: 1fr;
  }
  .strategy__main-card {
    grid-column: span 1;
    flex-direction: column;
    padding: 2.5rem;
    text-align: center;
  }
}
.expertise {
  padding: 6rem 0;
}

.expertise__bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 320px);
  gap: 1.5rem;
}

.expertise__item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.expertise__item:hover {
  border-color: var(--secondary);
  background: rgba(168, 85, 247, 0.05);
}

.expertise__item--large {
  grid-row: span 2;
  justify-content: space-between;
  background: linear-gradient(
    225deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(15, 23, 42, 0.5) 100%
  );
}

.expertise__item--cta {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.expertise__icon {
  width: 48px;
  height: 48px;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.expertise__item--cta .expertise__icon {
  color: white;
}

.expertise__tag {
  align-self: flex-start;
  padding: 0.4rem 1rem;
  background: var(--primary);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.expertise__item h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.expertise__item p {
  color: var(--text-muted);
}

.expertise__item--cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

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

.btn--white:hover {
  background: var(--text-light);
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .expertise__bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .expertise__item--large {
    grid-row: span 1;
    height: 400px;
  }
  .expertise__item--cta {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .expertise__bento {
    grid-template-columns: 1fr;
  }
  .expertise__item--large,
  .expertise__item--cta {
    grid-column: span 1;
  }
}

.benefits {
  padding: 8rem 0;
  background-image:
    linear-gradient(var(--glass-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
  background-size: 50px 50px; /* Эффект инженерной сетки */
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.benefit-card {
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.benefit-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.benefit-card__code {
  font-family: "Monospace", monospace;
  font-size: 0.7rem;
  color: var(--primary);
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.benefit-card__icon {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.benefit-card h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.benefit-card--featured {
  grid-column: span 1;
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 100%
  );
  border-bottom: 2px solid var(--primary);
}

.benefit-card__plus {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: var(--bg-dark);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 1px solid var(--glass-border);
}

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

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

.cases {
  padding: 6rem 0 10rem;
  position: relative;
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.case-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 0; /* Editorial Style - острые углы или минимальный радиус */
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: var(--transition);
  border-left: 4px solid var(--primary);
}

.case-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.02);
}

.case-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Monospace", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.case-card__tag {
  color: var(--primary);
}

.case-card__city {
  color: var(--text-muted);
}

.case-card__body h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

.case-card__footer {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.case-stat {
  display: flex;
  flex-direction: column;
}

.case-stat__val {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
}

.case-stat__lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.cases__cta {
  text-align: center;
  background: var(--glass);
  padding: 3rem;
  border-radius: 24px;
  border: 1px dashed var(--glass-border);
}

.cases__cta p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

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

.contact {
  padding: 8rem 0;
  background: radial-gradient(
    circle at bottom right,
    rgba(99, 102, 241, 0.1),
    transparent 40%
  );
}

.contact__bento {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.contact__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact__form-wrapper {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 32px;
  backdrop-filter: blur(20px);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 1.2rem;
  border-radius: 12px;
  color: white;
  font-family: inherit;
  transition: var(--transition);
}

.contact__form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Validation */
.error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  display: none;
  margin-top: 0.5rem;
}

input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
}

/* Checkboxes */
.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(--glass-border);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
}

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

.custom-checkbox input:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Submit Button & Loader */
.btn--full {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.loader {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #white;
  animation: spin 1s ease-in-out infinite;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-message {
  display: none;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 1rem;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

@media (max-width: 992px) {
  .contact__bento {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Cookie Pop-up */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 600px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--primary);
  backdrop-filter: blur(20px);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  z-index: 9999;
  transition: bottom 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

.cookie-popup p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.cookie-popup a {
  color: var(--primary);
  text-decoration: none;
}

/* Styles for Policy Pages (privacy.php, etc.) */
.pages {
  padding: 12rem 0 8rem;
}
.pages h1 {
  font-family: "Manrope", sans-serif;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}
.pages h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--primary);
}
.pages p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}
.pages ul {
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
}
.pages li {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}
.pages strong {
  color: var(--text-light);
}
.pages a {
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: 0.3s;
}
.pages a:hover {
  border-bottom-color: var(--secondary);
}

@media (max-width: 640px) {
  .cookie-popup__content {
    flex-direction: column;
    text-align: center;
  }
}
