:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --primary: #3b82f6; /* Electric Blue */
  --primary-hover: #2563eb;
  --accent: #8b5cf6; /* Neon Purple */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --success: #10b981;
  --error: #ef4444;
  --font-main: "Inter", sans-serif;
  --font-code: "JetBrains Mono", monospace;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
}

h3 {
  font-size: 1.5rem;
  color: #fff;
}

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

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.btn-primary.small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--primary);
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid var(--primary);
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.1);
}

.btn-link {
  font-weight: 600;
  color: var(--text-main);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 15px 0;
}

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

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.logo-text {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

.desk-nav {
  display: flex;
  gap: 30px;
}

.nav-item {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 2001; /* Выше мобильного меню */
}

.burger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
}

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

.mm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mm-logo {
  font-family: var(--font-code);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.mm-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
  justify-content: center;
}

.mm-link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.mm-link:hover,
.mm-link.highlight {
  color: var(--primary);
}

.mm-footer {
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 70%);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 550px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.code-block {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  font-family: var(--font-code);
  font-size: 0.9rem;
}

.code-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

pre {
  color: #a9b7c6;
  white-space: pre-wrap;
}

/* Sections */
.section {
  padding: 100px 0;
}

.bg-dark {
  background: #0b1120;
}

.bg-gray {
  background: var(--bg-card);
}

.text-center {
  text-align: center;
}

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

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

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

.card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: 0.3s;
}

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

.icon-box {
  color: var(--primary);
  margin-bottom: 20px;
}

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

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature-list {
  margin-top: 30px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: #fff;
}

.feature-list i {
  color: var(--success);
}

.mt-30 {
  margin-top: 30px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.use-case {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.uc-tag {
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-code);
}

/* Tech Stack */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.tech-item {
  background: var(--bg-card);
  padding: 15px 30px;
  border-radius: 30px;
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-muted);
}

.tech-item:hover {
  border-color: var(--primary);
  color: #fff;
  background: rgba(59, 130, 246, 0.1);
}

.center-cta {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--bg-dark);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.blog-meta {
  font-family: var(--font-code);
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.blog-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.read-more {
  color: #fff;
  font-weight: 600;
  border-bottom: 1px solid var(--primary);
}

/* Interactive Box */
.interactive-wrap {
  display: flex;
  justify-content: center;
}

.interactive-box {
  background: linear-gradient(135deg, var(--bg-card), #151d2f);
  padding: 60px;
  border-radius: 16px;
  text-align: center;
  max-width: 900px;
  border: 1px solid var(--border);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.interactive-box p {
  max-width: 600px;
  margin: 20px auto;
  color: var(--text-muted);
}

.ib-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.small-disclaimer {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step {
  position: relative;
  padding: 20px;
}

.step-num {
  font-family: var(--font-code);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.step h4 {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.step p {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
}

/* FAQ */
.narrow-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.acc-item {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}

.acc-btn {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s;
}

.acc-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.acc-content p {
  padding: 0 20px 20px;
  color: var(--text-muted);
}

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.ci-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.ci-row i {
  color: var(--primary);
}

.form-box {
  background: var(--bg-card);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.input-group {
  margin-bottom: 20px;
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.input-group input {
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: #fff;
  font-family: var(--font-main);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.error-msg {
  display: none;
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 5px;
}

.input-group.error input {
  border-color: var(--error);
}

.input-group.error .error-msg {
  display: block;
}

.checkbox-group {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.checkbox-group input {
  margin-top: 5px;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.checkbox-group a {
  color: var(--primary);
  text-decoration: underline;
}

.full-width {
  width: 100%;
}

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

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

.f-logo {
  font-family: var(--font-code);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.f-col h5 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1rem;
}

.f-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.f-col a:hover {
  color: var(--primary);
}

.contact-link-foot {
  color: var(--primary) !important;
  font-weight: 600;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  padding: 20px;
  border-radius: 8px;
  z-index: 9000;
  max-width: 350px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  transition: 0.5s;
}

.cookie-popup.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-content p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: var(--text-muted);
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    margin: 0 auto;
  }
  .hero-btns {
    justify-content: center;
  }

  .desk-nav,
  .header-actions {
    display: none;
  }

  .burger {
    display: flex;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }
  .grid-3,
  .blog-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .ib-actions {
    flex-direction: column;
  }
  .interactive-box {
    padding: 40px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }
  .hero-btns {
    flex-direction: column;
  }
}
.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;
}

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

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

.cp-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 140px;
    text-align: center;
  }

  .cp-phone-link {
    font-size: 2rem;
  }
}
