/* Variables & Reset */
:root {
  --bg-main: #0b1121;
  --bg-card: #151f32;
  --bg-accent: #1e293b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent: #10b981;
  --text-white: #f8fafc;
  --text-gray: #94a3b8;
  --border: #334155;
  --header-h: 80px;
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

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

/* Typography Utility */
.text-center {
  text-align: center;
}

h1,
h2,
h3,
h4 {
  color: var(--text-white);
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-gray);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  gap: 8px;
}

.btn--primary {
  background: linear-gradient(90deg, var(--primary), #6366f1);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn--header {
  background: white;
  color: var(--bg-main);
  padding: 8px 20px;
  font-size: 0.9rem;
}

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

.btn--accent {
  background: var(--accent);
  color: var(--bg-main);
  font-size: 1.1rem;
  padding: 16px 32px;
}

.btn--accent:hover {
  background: #059669;
  color: white;
}

.btn--block {
  width: 100%;
}

.btn--xs {
  padding: 6px 14px;
  font-size: 0.85rem;
  background: var(--primary);
  color: white;
}

.btn-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
}
.btn-text:hover {
  border-color: var(--primary);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 15px;
}
.link-arrow:hover {
  gap: 12px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(11, 17, 33, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 50px;
  height: 50px;
}

.logo__highlight {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__list {
  display: flex;
  gap: 25px;
}
.nav__link {
  font-size: 0.95rem;
  color: var(--text-gray);
  font-weight: 500;
}
.nav__link:hover,
.nav__link.active {
  color: var(--primary);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.burger div {
  width: 25px;
  height: 2px;
  background: white;
  transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-main);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu__header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.mobile-menu__header img {
  width: 32px;
}

.mobile-menu__close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.mobile-menu__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.mobile-menu__list a {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 60% 40%,
      rgba(59, 130, 246, 0.15),
      transparent 50%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(16, 185, 129, 0.05),
      transparent 40%
    );
  z-index: -1;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero__text-wrapper {
  max-width: 900px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero__title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: 1.25rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-gray);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Sections General */
.section {
  padding: 100px 0;
}
.section:nth-child(even) {
  background: var(--bg-card);
}

/* Mission Grid */
.mission__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.mission__card {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: 0.3s;
}

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

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.mission__card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}
.mission__card p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Workflow (Zig-Zag) */
.step-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}
.step-row:last-child {
  margin-bottom: 0;
}
.step-row--reverse {
  flex-direction: row-reverse;
}

.step-content {
  flex: 1;
}
.step-image {
  flex: 1;
}

.step-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  transition: transform 0.5s;
}

.step-image:hover img {
  transform: scale(1.02);
}

.step-num {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}

.step-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.step-content p {
  color: var(--text-gray);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-gray);
}
.step-list i {
  color: var(--accent);
  width: 20px;
}

/* Technology Banner */
.technology-banner {
  padding: 60px 0;
}

.tech-box {
  background: linear-gradient(120deg, #1e293b, #0f172a);
  border-radius: 24px;
  padding: 60px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 50px;
  overflow: hidden;
}

.tech-box__content {
  flex: 1;
}
.tech-box__visual {
  flex: 1;
}

.tech-box__visual img {
  width: 100%;
  border-radius: 12px;
  box-shadow: -20px 20px 0 rgba(59, 130, 246, 0.1);
}

.tech-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--accent);
}
.stat span {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* Cases */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.case-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: 0.3s;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.case-card__img {
  position: relative;
  height: 220px;
}

.case-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.case-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.case-card__body {
  padding: 25px;
}
.case-card__body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.case-card__body p {
  color: var(--text-gray);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* System Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid transparent;
  transition: 0.3s;
}

.feature-item:hover {
  border-color: var(--primary);
  background: var(--bg-accent);
}

.feature-item i {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  color: var(--accent);
}

.feature-item h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.feature-item p {
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* Blog */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-post {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.blog-post__img {
  height: 200px;
}
.blog-post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.blog-post__content {
  padding: 25px;
}
.blog-date {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}
.blog-post__content h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.blog-post__content p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.blog-post__content a {
  color: var(--text-white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--primary);
}

/* Transformation (Big Text) */
.transformation__box {
  background: linear-gradient(180deg, var(--bg-accent), var(--bg-main));
  padding: 80px;
  border-radius: 24px;
  border: 1px solid var(--border);
}

.transformation__text {
  max-width: 900px;
  margin: 40px auto;
}

.transformation__text p {
  margin-bottom: 24px;
  font-size: 1.15rem;
  color: var(--text-gray);
  line-height: 1.8;
}

.transformation__btn-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* FAQ */
.faq__container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq__item {
  background: var(--bg-accent);
  border-radius: 12px;
  overflow: hidden;
}

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

.faq__trigger i {
  transition: transform 0.3s;
}
.faq__item.active .faq__trigger i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(0, 0, 0, 0.2);
}

.faq__text {
  padding: 0 30px 25px;
  color: var(--text-gray);
}

/* Contact Form Column */
.contact__wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.form-column {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.form-group input:not([type="checkbox"]) {
  width: 100%;
  padding: 14px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  outline: none;
}

.form-group input:focus {
  border-color: var(--primary);
}
.form-group input.error {
  border-color: #ef4444;
}

.footer__contacts--margin {
  margin-bottom: 20px;
}

.checkbox-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checkbox-wrapper a {
  text-decoration: underline;
  color: var(--accent);
}

.checkbox-wrapper input {
  margin-top: 4px;
  accent-color: var(--primary);
}

.checkbox-wrapper label {
  font-size: 0.8rem;
  line-height: 1.4;
  cursor: pointer;
}

/* Notification Modal */
.notification-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.notification-modal.show {
  opacity: 1;
  pointer-events: all;
}

.notification-content {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--primary);
  max-width: 400px;
}

.success-icon {
  width: 60px;
  height: 60px;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background: #020617;
  padding: 80px 0 20px;
  border-top: 1px solid var(--border);
}

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

.logo--footer {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.footer__contacts ul li {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.footer__contacts i {
  color: var(--primary);
  width: 18px;
}

.footer__links ul li {
  margin-bottom: 10px;
}
.footer__links a {
  color: var(--text-gray);
  font-size: 0.95rem;
}
.footer__links a:hover {
  color: white;
}

.footer__bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  max-width: 350px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  flex-direction: column;
  gap: 15px;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 3rem;
  }
  .step-row {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .step-row--reverse {
    flex-direction: column;
  }
  .step-image img {
    height: 300px;
  }
  .step-list {
    display: inline-block;
    text-align: left;
  }

  .tech-box {
    flex-direction: column;
    padding: 40px;
    text-align: center;
  }
  .tech-stats {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__contacts ul li {
    justify-content: center;
  }
}

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

  .text-center {
    font-size: 25px;
  }

  .hero__title {
    font-size: 2.2rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }

  .transformation__box {
    padding: 30px 20px;
  }
  .form-column {
    padding: 25px;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}
