:root {
  --surface: #10131a;
  --surface-lowest: #0b0e14;
  --surface-low: #191c22;
  --surface-container: rgba(22, 27, 34, 0.72);
  --surface-high: #272a31;
  --text: #e1e2eb;
  --muted: #ccc3d8;
  --muted-2: #958da1;
  --primary: #d2bbff;
  --primary-strong: #7c3aed;
  --secondary: #00f4fe;
  --secondary-soft: #e6feff;
  --tertiary: #e9c400;
  --border: rgba(255, 255, 255, 0.1);
  --shadow-primary: 0 0 28px rgba(124, 58, 237, 0.36);
  --shadow-cyan: 0 0 28px rgba(0, 244, 254, 0.24);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1200px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(124, 58, 237, 0.2), transparent 32rem),
    radial-gradient(circle at 8% 24rem, rgba(0, 244, 254, 0.12), transparent 28rem),
    var(--surface-lowest);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-140%);
  z-index: 200;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: #002021;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - calc(var(--gutter) * 2), var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 96px 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(11, 14, 20, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-shell {
  width: min(100% - 48px, 1280px);
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand img,
.footer-brand img {
  width: 132px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(210, 187, 255, 0.24));
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--secondary);
}

.header-phone {
  padding: 10px 14px;
  border: 1px solid rgba(0, 244, 254, 0.45);
  border-radius: var(--radius-sm);
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 124px;
  overflow: hidden;
}

.hero-media,
.hero-media video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 14, 20, 0.94) 0%, rgba(11, 14, 20, 0.78) 45%, rgba(11, 14, 20, 0.34) 100%),
    radial-gradient(circle at 80% 30%, rgba(0, 244, 254, 0.18), transparent 30rem);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: center;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Montserrat, Inter, sans-serif;
  line-height: 1.1;
}

h1 {
  max-width: 850px;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 800;
}

h3 {
  font-size: 22px;
  font-weight: 750;
}

.hero-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions,
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-strong), var(--secondary));
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-secondary {
  background: rgba(0, 244, 254, 0.04);
  color: var(--secondary);
  border: 1px solid rgba(0, 244, 254, 0.62);
  box-shadow: var(--shadow-cyan);
}

.btn-light {
  background: var(--secondary-soft);
  color: #003739;
}

.hero-badges {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.hero-orbit {
  justify-self: center;
}

.orbit-card {
  position: relative;
  width: min(390px, 36vw);
  aspect-ratio: 1;
  padding: 18px;
  border: 1px dashed rgba(210, 187, 255, 0.36);
  border-radius: 50%;
  background: rgba(16, 19, 26, 0.54);
  box-shadow: 0 0 90px rgba(0, 244, 254, 0.22);
  overflow: hidden;
}

.orbit-card::before,
.orbit-card::after,
.case-frame::before,
.case-frame::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(210, 187, 255, 0.72);
  z-index: 3;
}

.orbit-card::before,
.case-frame::before {
  top: 16px;
  left: 16px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.orbit-card::after,
.case-frame::after {
  right: 16px;
  bottom: 16px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.orbit-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.rec-dot {
  position: absolute;
  z-index: 4;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 14, 20, 0.7);
  color: var(--secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.rec-dot {
  top: 34px;
  left: 40px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.section-heading::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin: 22px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.glass-card {
  background: var(--surface-container);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.services-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card,
.benefits-grid article {
  padding: 28px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.benefits-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 244, 254, 0.32);
  box-shadow: var(--shadow-cyan);
}

.icon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  margin-bottom: 24px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  background: rgba(0, 244, 254, 0.08);
  color: var(--secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.service-card p,
.benefits-grid p,
.text-card p,
.contact-copy p,
.case-card p,
.process-list p {
  color: var(--muted);
}

.ai-section {
  padding-top: 40px;
}

.ai-panel {
  min-height: 300px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid rgba(210, 187, 255, 0.32);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 16rem),
    linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(0, 244, 254, 0.7)),
    var(--primary-strong);
  box-shadow: var(--shadow-primary);
  overflow: hidden;
}

.ai-panel h2 span {
  display: inline-block;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  color: #25005a;
}

.ai-panel p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
}

.portfolio-section {
  background: rgba(5, 7, 10, 0.34);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 18px;
}

.case-card h3 {
  margin-top: 16px;
  font-size: 18px;
}

.case-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.case-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #05070a;
  overflow: hidden;
  cursor: pointer;
}

.case-video-main,
.case-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.case-frame--vertical .case-video-bg {
  position: absolute;
  inset: -16%;
  width: 132%;
  height: 132%;
  object-fit: cover;
  filter: blur(20px) saturate(1.25) brightness(0.55);
  transform: scale(1.08);
}

.case-frame--vertical .case-video-main {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  max-width: 46%;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.58);
}

.play-mark {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(230, 254, 255, 0.94);
  color: #003739;
  font-size: 12px;
  font-weight: 800;
}

.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: start;
}

.text-card {
  padding: 34px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list li {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(39, 42, 49, 0.72), rgba(16, 19, 26, 0.74));
}

.process-list span {
  display: block;
  margin-bottom: 24px;
  color: var(--primary);
  font-family: "JetBrains Mono", monospace;
}

.contact-section {
  background:
    linear-gradient(180deg, rgba(39, 42, 49, 0.58), rgba(11, 14, 20, 0.92)),
    var(--surface);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-list a,
.contact-list span {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.contact-list a:hover {
  color: var(--secondary);
  border-color: rgba(0, 244, 254, 0.36);
}

.contact-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.contact-list .contact-icons {
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-icons a {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.contact-icons a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 224, 255, 0.7);
  background: rgba(0, 224, 255, 0.13);
  color: #fff;
}

.contact-icons svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icons a[href*="vk.com"] svg,
.contact-icons a[href*="t.me"] svg {
  fill: currentColor;
  stroke: none;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 28px;
}

.lead-form label,
.lead-form .full {
  grid-column: span 2;
}

.lead-form label:nth-of-type(1),
.lead-form label:nth-of-type(2) {
  grid-column: span 1;
}

.lead-form span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: #05070a;
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(0, 244, 254, 0.12);
}

.lead-form .field-error {
  border-color: #ffb4ab;
}

.form-consent,
.form-status {
  grid-column: span 2;
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
}

.consent-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 14px;
}

.consent-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: var(--secondary);
}

.consent-check span {
  margin: 0;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.consent-check a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.8);
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.form-status.is-success {
  color: var(--secondary-soft);
}

.form-status.is-error {
  color: #ffb4ab;
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--border);
  background: #05070a;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  color: var(--muted);
}

.video-modal[hidden] {
  display: none;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 24px;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.86);
  backdrop-filter: blur(14px);
}

.video-modal-dialog {
  position: relative;
  width: min(960px, 100%);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-lowest);
  box-shadow: 0 0 70px rgba(0, 244, 254, 0.16);
}

.video-modal-dialog h2 {
  margin: 0 48px 16px 0;
  font-size: 24px;
}

.video-modal-dialog video {
  width: 100%;
  max-height: 76vh;
  border-radius: var(--radius-sm);
  background: black;
}

.video-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 170;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(720px, calc(100% - 48px));
  padding: 20px;
  border: 1px solid rgba(0, 244, 254, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(11, 14, 20, 0.94);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 54px rgba(0, 244, 254, 0.16);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 6px;
  font-family: Montserrat, Inter, sans-serif;
  font-size: 18px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cookie-actions a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  min-height: 100vh;
  padding: 48px 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(124, 58, 237, 0.14), transparent 28rem),
    var(--surface-lowest);
}

.legal-document {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(22, 27, 34, 0.82);
  color: var(--text);
}

.legal-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--secondary);
  font-weight: 700;
}

.legal-document h1 {
  font-size: clamp(34px, 6vw, 58px);
}

.legal-document h2 {
  margin-top: 32px;
  font-size: clamp(22px, 3vw, 30px);
}

.legal-document p {
  color: var(--muted);
}

.legal-document a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-note {
  margin-top: 36px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
