:root {
  --bg: #0f1115;
  --bg-alt: #16191f;
  --text: #e1e1e1;
  --text-dim: #94a3b8;
  --accent: #e27d60;
  --border: #2d3139;
  --white: #ffffff;
  --font-head: "Space Grotesk", sans-serif;
  --font-main: "Inter", sans-serif;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}
.bg-dim {
  background: var(--bg-alt);
}
.center {
  text-align: center;
}
.max-800 {
  max-width: 800px;
  margin: 0 auto;
}
.max-600 {
  max-width: 600px;
  margin: 0 auto;
}
.narrow {
  max-width: 900px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  letter-spacing: -3px;
}
h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -2px;
}
p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
}
.accent {
  color: var(--accent);
}
.section-label {
  color: var(--accent);
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

/* Header */
.header {
  height: 90px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
}
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-family: var(--font-head);
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-link {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
}
.nav-link:hover {
  color: var(--accent);
}
.btn-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 25px;
  height: 2px;
  background: #fff;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.mono-badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-family: monospace;
  margin-bottom: 2rem;
}
.hero-essay {
  border-left: 2px solid var(--accent);
  padding-left: 30px;
  margin-bottom: 3rem;
}
.hero-actions {
  display: flex;
  gap: 20px;
}
.btn-main {
  padding: 18px 36px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-radius: 4px;
  transition: 0.3s;
}
.btn-sec {
  padding: 18px 36px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-radius: 4px;
}

.hero-visual {
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.visual-grid-box {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 48%,
    var(--accent) 50%,
    transparent 52%
  );
  background-size: 40px 40px;
  opacity: 0.1;
}

/* Content Layouts */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-layout.reverse {
  direction: rtl;
}
.split-layout.reverse .layout-text {
  direction: ltr;
}
.layout-img img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.essay-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.method-card {
  padding: 40px;
  border: 1px solid var(--border);
  transition: 0.3s;
}
.method-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}
.method-card i {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.case-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  background: #000;
  padding: 60px;
  border-radius: 8px;
  align-items: center;
}
.case-img img {
  width: 100%;
  filter: grayscale(1);
  opacity: 0.7;
}
.mono {
  font-family: monospace;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.info-card {
  padding: 40px;
  border-top: 2px solid var(--accent);
  background: var(--bg);
}

/* FAQ */
.acc-item {
  border-bottom: 1px solid var(--border);
}
.acc-trigger {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.5rem;
  cursor: pointer;
}
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.5s ease-out;
}
.acc-content p {
  padding-bottom: 30px;
}
.acc-item.active .acc-content {
  max-height: 300px;
}

/* Form */
.form-card {
  padding: 60px;
  background: #1a1e25;
  border-radius: 4px;
}
.vertical-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 1px;
}
.form-group input {
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: #fff;
  font-family: inherit;
}
.captcha-wrap {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.captcha-wrap input {
  width: 100px;
}
.form-check {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.form-check input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 4px;
  accent-color: var(--accent);
}
.form-check a {
  text-decoration: underline;
  color: var(--accent);
}
.btn-submit {
  padding: 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.3s;
}

/* Footer */
.footer {
  padding: 100px 0 40px;
  background: #000;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-contacts p {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.footer-contacts i {
  color: var(--accent);
  width: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid #111;
  font-size: 0.8rem;
  color: #444;
}

/* Cookie & Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.mobile-menu.active {
  display: flex;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}
.mobile-nav a {
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
}
.menu-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 3rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  right: 30px;
  max-width: 450px;
  background: #fff;
  color: #000;
  padding: 30px;
  border-radius: 4px;
  z-index: 5000;
  display: none;
}
.btn-cookie {
  padding: 10px 20px;
  background: var(--bg);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  margin-top: 15px;
}

@media (max-width: 1024px) {
  .hero-grid,
  .split-layout,
  .essay-cols,
  .cards-grid,
  .case-banner,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-visual {
    display: none;
  }
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero {
    padding-top: 150px;
  }
  .split-layout.reverse {
    direction: ltr;
  }
}

.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 {
    margin: 80px 0 30px;
    font-size: 28px;
  }
}
