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

:root {
  --bg: #000;
  --teal: #60c8ff;
  --white: #f2ede6;
  --body: 'Inter', sans-serif;
  --head: 'Unbounded', sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--bg); color: var(--white); font-family: var(--body); overflow-x: hidden; }
body.menu-open { overflow: hidden; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--teal); }

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

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

.container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.section { padding: 120px 40px; position: relative; }
.heading {
  font-family: var(--head);
  font-weight: 300;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.heading .accent { color: var(--teal); font-weight: 400; }
.heading .muted { color: rgba(96,200,255,0.22); }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; background: rgba(0,0,0,0.88); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(46,232,198,0.07);
}
.logo {
  font-family: var(--head); font-weight: 400; font-size: 12px; letter-spacing: 0.08em;
  position: relative; z-index: 3;
}
.logo .dot { color: var(--teal); }
.logo .sub { opacity: 0.6; margin-left: 4px; }
.nav-links { display: flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--head); font-size: 11px; color: rgba(242,237,230,0.5);
  text-decoration: none; letter-spacing: 0.05em;
}
.nav-links a.phone {
  color: var(--teal); border: 1px solid rgba(96,200,255,0.27);
  padding: 7px 16px; border-radius: 2px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 3;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.burger:focus,
.burger:active,
.burger:focus-visible {
  outline: none;
  box-shadow: none;
  border: 0;
}
.burger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero {
  min-height: 100vh; position: relative; display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden; padding: 0 0 80px;
}
.hero-bg, .hero-overlays { position: absolute; inset: 0; }
.hero-bg > div, .hero-overlays > div { position: absolute; inset: 0; }
.hero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(0.6) contrast(1.1) saturate(0.85);
}
.hero-content {
  position: relative; z-index: 2; padding: 0 40px;
  margin-top: auto;
}
.hero h1 {
  font-family: var(--head);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.15;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.hero h1 span { display: block; }
.hero .line1 { color: #b8d8f0; }
.hero .line2 { color: var(--teal); font-weight: 400; }
.hero p {
  font-family: var(--head); font-size: 13px; line-height: 1.9;
  color: rgba(242,237,230,0.55); max-width: 420px; font-weight: 300;
}

.about { border-top: 1px solid rgba(96,200,255,0.07); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about p { font-family: var(--head); font-weight: 300; line-height: 1.9; }
.about .p1 { font-size: 15px; color: rgba(242,237,230,0.6); margin-bottom: 28px; }
.about .p2 { font-size: 14px; color: rgba(242,237,230,0.4); }
.big-num {
  font-family: var(--head); font-weight: 700; font-size: clamp(80px, 12vw, 160px);
  line-height: 0.85; color: rgba(96,200,255,0.08); letter-spacing: -0.02em;
}
.big-note {
  font-family: var(--head); font-weight: 300; font-size: 13px;
  color: var(--teal); letter-spacing: 0.1em; margin-top: 16px; opacity: 0.8;
}
.line { width: 48px; height: 1px; background: var(--teal); margin-top: 20px; opacity: 0.4; }

.products { position: relative; }
.products .bg-side {
  position: absolute; right: 0; top: 0; bottom: 0; width: 40%; z-index: 0; overflow: hidden;
}
.products .bg-side img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(0.38) contrast(1.15) saturate(0.7);
}
.products .bg-side .fade {
  position: absolute; inset: 0; background: linear-gradient(to right, #000 0%, transparent 40%, #000 100%);
}
.cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.card {
  background: rgba(242,237,230,0.02);
  border: 1px solid rgba(242,237,230,0.06);
  padding: 32px 28px; text-decoration: none; color: inherit;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.card:hover { background: rgba(96,200,255,0.04); border-color: rgba(96,200,255,0.2); }
.card .code {
  font-family: var(--head); font-weight: 300; font-size: 22px;
  letter-spacing: 0.04em; margin-bottom: 6px; color: #b8d8f0;
}
.card:hover .code { color: var(--teal); }
.card .title {
  font-family: var(--head); font-size: 10px; color: rgba(242,237,230,0.2);
  letter-spacing: 0.1em; margin-bottom: 20px;
}
.card .desc {
  font-family: var(--head); font-size: 13px; line-height: 1.7;
  color: rgba(242,237,230,0.5); margin-bottom: 24px; font-weight: 300;
}
.card .more {
  font-family: var(--head); font-size: 10px; color: rgba(242,237,230,0.3);
  letter-spacing: 0.1em;
}
.card:hover .more { color: var(--teal); }

.industries { border-top: 1px solid rgba(96,200,255,0.07); overflow: hidden; }
.industries .left-bg {
  position: absolute; left: 0; top: 0; bottom: 0; width: 35%; z-index: 0;
}
.industries .left-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(0.42) contrast(1.2) saturate(0.8);
}
.industries .left-bg .fade1 {
  position: absolute; inset: 0; background: linear-gradient(to right, #000 0%, transparent 30%, #000 100%);
}
.industries .left-bg .fade2 {
  position: absolute; inset: 0; background: linear-gradient(to bottom, #000 0%, transparent 20%, transparent 80%, #000 100%);
}
.ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.diagram-wrap { display:flex; flex-direction:column; align-items:center; gap: 0; }
.diagram-top {
  width: 100%; background: rgba(96,200,255,0.05); border: 1px solid rgba(96,200,255,0.2);
  border-radius: 10px; padding: 14px 24px; text-align: center;
  font-family: var(--head); font-weight: 300; font-size: 13px; color: var(--teal);
}
.diagram-top span { font-size: 10px; opacity: 0.55; }
.arr { text-align: center; color: rgba(96,200,255,0.4); font-size: 16px; line-height: 1; padding: 3px 0; }
.arr-row { display: flex; width: 100%; justify-content: space-around; }
.arr-h { padding: 0 4px; }
.node {
  border-radius: 10px; padding: 12px 16px; font-family: var(--head);
  font-weight: 600; font-size: 12px; color: #fff; text-align: center; line-height: 1.35;
  border: 1.5px solid transparent;
}
.node.l3 { width: 100%; font-size: 14px; padding: 16px 24px; background: #3a7bd5bb; border-color: #3a7bd588; }
.node.l2 { background: #e6a817bb; border-color: #e6a81788; white-space: pre-line; flex: 1; }
.node.tsd { background: #d4712abb; border-color: #d4712a88; white-space: pre-line; flex: 1; }
.node.t2 { background: #3a9e4fbb; border-color: #3a9e4f88; white-space: pre-line; flex: 1; }
.node.plk { background: #6b7280bb; border-color: #6b728088; white-space: pre-line; flex: 1; }
.nodes-3 { display: flex; gap: 8px; width: 100%; align-items: center; }
.nodes-3-right { display:flex; align-items:center; flex:1; gap:0; }
.nodes-2 { display: flex; gap: 8px; width: 58%; align-self: flex-start; align-items: center; }
.diagram-down-arrow { width:100%; display:flex; justify-content:flex-start; padding-left:16%; }

.services { border-top: 1px solid rgba(242,237,230,0.05); }
.service-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 0;
  border-top: 1px solid rgba(242,237,230,0.07);
  border-left: 1px solid rgba(242,237,230,0.07);
}
.service {
  padding: 40px 32px; border-right: 1px solid rgba(242,237,230,0.07);
  border-bottom: 1px solid rgba(242,237,230,0.07);
}
.service .n {
  font-family: var(--head); font-weight: 300; font-size: 48px;
  color: rgba(96,200,255,0.15); line-height: 1; margin-bottom: 24px;
}
.service .t {
  font-family: var(--head); font-weight: 300; font-size: 13px; letter-spacing: 0.05em;
  margin-bottom: 16px; color: #b8d8f0;
}
.service p {
  font-family: var(--head); font-size: 13px; line-height: 1.75;
  color: rgba(242,237,230,0.45); font-weight: 300;
}

.cta {
  padding: 0 40px 0; position: relative; overflow: hidden;
  border-top: 1px solid rgba(242,237,230,0.05);
}
.cta .bg { position: absolute; inset: 0; z-index: 0; }
.cta .bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  filter: brightness(0.4) contrast(1.2) saturate(0.7);
}
.cta .bg .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.82); }
.cta-inner { position: relative; z-index: 1; padding: 120px 0; }
.cta p {
  font-family: var(--head); font-size: 15px; line-height: 1.8;
  color: rgba(242,237,230,0.45); font-weight: 300; max-width: 340px;
}
.cta .meta { margin-top: 48px; display: flex; flex-direction: column; gap: 8px; }
.cta .label {
  font-family: var(--head); font-size: 10px; color: rgba(242,237,230,0.3); letter-spacing: 0.15em;
}
.cta .phone {
  font-family: var(--head); font-size: 28px; color: var(--teal);
  text-decoration: none; letter-spacing: 0.06em;
}

footer {
  border-top: 1px solid rgba(242,237,230,0.06);
  padding: 32px 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
footer .copy, footer a {
  font-family: var(--head); font-size: 10px; color: rgba(242,237,230,0.25);
  text-decoration: none; letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
  .cards, .service-grid { grid-template-columns: repeat(2,1fr); }
  .about-grid, .ind-grid { grid-template-columns: 1fr; }
  .products .bg-side, .industries .left-bg { display: none; }
}

@media (max-width: 700px) {
  nav {
    padding: 10px 16px;
    height: 60px;
    align-items: center;
    gap: 0;
    flex-direction: row;
  }

  .burger { display: inline-flex; }

  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    width: min(320px, 100%);
    height: calc(100vh - 60px);
    padding: 24px 20px 28px;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: nowrap;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    border-left: 1px solid rgba(96,200,255,0.08);
  }

  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 12px; }
  .nav-links a.phone { margin-top: 6px; }

  .hero-content, .section, .cta, footer { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 84px; padding-bottom: 84px; }
  .hero { padding-bottom: 48px; }
  .hero-content { margin-top: auto; }
  .hero h1 { margin-bottom: 20px; }
  .hero p { line-height: 1.7; }

  .cards, .service-grid { grid-template-columns: 1fr; }
  .about-grid, .ind-grid { gap: 28px; }

  .ind-grid { gap: 24px; }
  .diagram-top { padding: 12px 16px; }
  .arr { font-size: 15px; padding: 1px 0; }
  .arr-row { margin: 1px 0; }
  .nodes-3 { gap: 6px; }
  .nodes-2 { gap: 6px; width: 100%; }
  .node { padding: 10px 10px; font-size: 11px; }
  .node.l3 { padding: 14px 16px; font-size: 13px; }
  .diagram-down-arrow { padding-left: 16%; }

  /* Сохраняем схему как на десктопе */
  .nodes-3-right {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    min-width: 0;
    flex: 1;
    gap: 4px;
  }
  .nodes-3-right .arr-h { padding: 0; }
  .nodes-3-right .node.tsd { min-width: 0; }

  .service { padding: 28px 20px; }
  .service .n { font-size: 36px; margin-bottom: 14px; }

  .cta-inner { padding: 84px 0; }
  .cta .meta { margin-top: 28px; }
  .cta .phone { font-size: 22px; }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
    gap: 12px;
  }
}
