:root {
  /* НОВАЯ ПАЛИТРА: Copper & Deep Space */
  --bg-main: #0a0a0c; /* Глубокий почти черный */
  --bg-alt: #141418; /* Немного светлее для контраста секций */
  --accent: #c47d53; /* Благородный медный/оранжевый */
  --accent-muted: rgba(196, 125, 83, 0.2);
  --text-bright: #e0e0e0;
  --text-muted: #9999a1;
  --border-color: rgba(255, 255, 255, 0.08);

  --font-main: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --container: 1200px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-main);
  color: var(--text-bright);
  font-family: var(--font-main);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Текстурный шум на фоне */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./images/black-plain-concrete-textured-background\ \(1\).jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
  z-index: 9999;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.section {
  padding: 140px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}
.bg-alt {
  background-color: var(--bg-alt);
}
.center {
  text-align: center;
}
.narrow-text {
  max-width: 800px;
  margin: 0 auto;
}
.max-800 {
  max-width: 800px;
  margin: 0 auto;
}
.max-600 {
  max-width: 600px;
  margin: 0 auto;
}
.relative-z {
  position: relative;
  z-index: 5;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-bright);
}
h1 {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  letter-spacing: -1px;
}
h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}
p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}
.accent-text {
  color: var(--accent);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  display: block;
  text-transform: uppercase;
}
.mono-badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 2rem;
}

/* Header */
.header {
  height: 90px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-bright);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1px;
}
.logo img {
  width: 42px;
  height: 42px;
}
.logo-icon {
  color: var(--accent);
}
.desktop-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.desktop-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  position: relative;
}
.desktop-nav a:hover {
  color: var(--accent);
}
.nav-btn {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 8px 18px;
}
.nav-btn:hover {
  background: var(--accent);
  color: var(--bg-main) !important;
}
.burger-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-bright);
  cursor: pointer;
}

/* NEW HERO: Layered Parallax */
.hero-layered {
  position: relative;
  /* Высота больше экрана для скролла */
  min-height: 130vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

/* Фоновый слой, который будет двигаться медленнее */
.hero-parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Абстрактный технологичный фон */
  background-image: linear-gradient(
      to bottom,
      rgba(10, 10, 12, 0.6),
      var(--bg-main)
    ),
    repeating-linear-gradient(
      45deg,
      rgba(196, 125, 83, 0.03) 0px,
      rgba(196, 125, 83, 0.03) 1px,
      transparent 1px,
      transparent 50px
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(196, 125, 83, 0.15),
      transparent 40%
    );
  background-size: cover;
  z-index: 1;
  /* Важно: начальная позиция */
  transform: translateY(0);
  will-change: transform;
}

.hero-content {
  max-width: 900px;
}
.hero-essay {
  border-left: 2px solid var(--accent);
  padding-left: 30px;
  margin-bottom: 3rem;
}
.hero-essay p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #ccc;
}
.hero-actions {
  display: flex;
  gap: 20px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 20px 40px;
  background: var(--accent);
  color: var(--bg-main);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: #d69670;
  transform: translateY(-3px);
}
.btn-outline {
  display: inline-block;
  padding: 18px 38px;
  border: 2px solid var(--border-color);
  color: var(--text-bright);
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Layouts & Placeholders */
.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.grid-split.reverse {
  direction: rtl;
}
.grid-split.reverse .text-block {
  direction: ltr;
}

.copper-border {
  border: 1px solid var(--accent);
  padding: 20px;
  position: relative;
}
/* Декоративные уголки */
.copper-border::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 20px;
  height: 20px;
  border-bottom: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
}

.placeholder-visual1 {
  width: 100%;
  height: 400px;
  background-image: url("./images/futuristic-technology-concept\ \(1\).jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  opacity: 0.5;
}
.placeholder-visual2 {
  width: 100%;
  height: 400px;
  background-image: url("./images/navy-operations-specialist-following-hostile-warship-trajectory\ \(1\).jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  opacity: 0.5;
}
.placeholder-visual3 {
  width: 100%;
  height: 400px;
  background-image: url("./images/ordinary-human-job-performed-by-anthropomorphic-robot\ \(1\).jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  opacity: 0.5;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}
.tech-card {
  padding: 40px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.tech-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}
.tech-card i {
  color: var(--accent);
  width: 40px;
  height: 40px;
  margin-bottom: 25px;
}
.tech-card.no-border {
  border: none;
  background: transparent;
  padding: 20px 0;
  border-top: 2px solid var(--accent);
}

/* FAQ */
.accordion {
  margin-top: 50px;
}
.acc-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
}
.acc-header {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-bright);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.acc-header:hover {
  color: var(--accent);
}
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.acc-content p {
  padding-bottom: 30px;
}
.acc-item.active .acc-content {
  max-height: 400px;
}
.acc-item.active .acc-header i {
  transform: rotate(45deg);
  color: var(--accent);
}

/* Form */
.form-wrapper {
  background: var(--bg-alt);
  padding: 60px;
}
.form-intro {
  margin-bottom: 40px;
}
.vertical-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.input-wrap label {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.input-wrap input {
  padding: 18px;
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  font-family: var(--font-mono);
  transition: var(--transition);
}
.input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
}
.check-wrap {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-top: 10px;
}
.check-wrap input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--accent);
}
.check-wrap label {
  font-size: 0.9rem;
  line-height: 1.4;
}
.check-wrap a {
  color: var(--accent);
}

.btn-submit {
  padding: 18px 0;
  background: var(--accent);
  border: none;
  color: var(--bg-main);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

/* Footer */
.footer {
  padding: 100px 0 0;
  background: #000;
  border-top: 1px solid var(--border-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 80px;
}
.logo-footer {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 20px;
}
.footer-desc {
  max-width: 400px;
}
.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--accent);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: 0.3s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-contacts p {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.footer-contacts i {
  color: var(--accent);
  width: 18px;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  font-size: 0.85rem;
  color: #666;
}
.legal-row {
  display: flex;
  justify-content: space-between;
}
.legal-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #666;
}
.legal-links a:hover {
  color: var(--accent);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 30px;
  right: 30px;
  max-width: 500px;
  background: var(--bg-alt);
  border: 1px solid var(--accent);
  padding: 30px;
  z-index: 5000;
  display: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.cb-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.cb-content i {
  color: var(--accent);
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.btn-cookie {
  padding: 12px 24px;
  background: var(--accent);
  border: none;
  font-weight: 700;
  cursor: pointer;
  color: var(--bg-main);
}

/* Mobile Nav */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-main);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: 0.5s cubic-bezier(0.8, 0, 0.2, 1);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: center;
}
.mobile-links a {
  font-size: 2rem;
  color: var(--text-bright);
  text-decoration: none;
  font-weight: 800;
}
.close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--text-bright);
  cursor: pointer;
}

@media (max-width: 1070px) {
  .grid-split,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .desktop-nav {
    display: none;
  }
  .burger-toggle {
    display: block;
  }
  .legal-row {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .legal-links a {
    margin: 0 10px;
  }
  .hero-layered {
    min-height: auto;
    padding: 150px 0 100px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }
}

.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: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    margin: 80px 0 30px;
    font-size: 28px;
  }
}
