:root {
  --bg: #07100f;
  --panel: rgba(13, 29, 25, .76);
  --text: #e8f4ef;
  --muted: #94aaa1;
  --line: rgba(170, 228, 205, .15);
  --accent: #66f2b2;
  --max: 1210px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(59, 204, 147, .11), transparent 28rem),
    radial-gradient(circle at 92% 20%, rgba(62, 146, 225, .07), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #052018; }

.noise {
  position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 0 max(20px, calc((100vw - var(--max))/2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 15, .82); backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; letter-spacing: .08em; text-decoration: none; font-size: 14px; white-space: nowrap; } /* п.29б: путь на сайт — цель не ниже 44 */
.brand span { color: var(--accent); }
.topbar nav { display: flex; gap: 20px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.topbar nav a:hover { color: var(--text); }

.section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 36px 0; }
.compact-section + .compact-section { border-top: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(44px, 5.6vw, 72px); line-height: .94; letter-spacing: -.055em; margin-bottom: 16px; max-width: 10.5ch; }
h1 span { display: block; margin-top: 8px; color: var(--muted); font-size: .32em; letter-spacing: -.015em; line-height: 1.05; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -.04em; margin-bottom: 14px; max-width: 18ch; }
h3 { font-size: 20px; line-height: 1.13; letter-spacing: -.02em; }
.lead-small { color: #c4d6cf; font-size: 17px; max-width: 56ch; }

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  grid-template-areas: "copy visual" "facts patent";
  align-items: center;
  gap: 18px 34px;
  padding-top: 34px;
  padding-bottom: 30px;
}
.hero-copy { grid-area: copy; }
.lede { font-size: clamp(18px, 1.8vw, 23px); max-width: 42ch; color: #cde1d9; line-height: 1.34; }
.lede strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); font-weight: 750; font-size: 13px; }
.btn.primary { background: var(--accent); color: #062017; border-color: transparent; }
.btn.ghost:hover { border-color: rgba(102, 242, 178, .45); }
.hero-note { color: var(--muted); max-width: 67ch; font-size: 12.5px; margin-bottom: 0; }

.hero-visual, .case-media { position: relative; border: 1px solid var(--line); padding: 0; overflow: hidden; background: #030706; color: var(--text); cursor: pointer; text-align: left; text-decoration: none; }
.hero-visual { grid-area: visual; border-radius: 22px; box-shadow: 0 20px 70px rgba(0,0,0,.28); }
.hero-visual img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .88; }
.play { position: absolute; left: 18px; bottom: 18px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #051b13; font-size: 17px; }
.visual-caption { position: absolute; inset: auto 0 0; padding: 40px 16px 13px; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.visual-caption b, .visual-caption small { display: block; }
.visual-caption small { color: #c5d3cd; margin-top: 2px; font-size: 11px; }
.hero-visual .visual-caption { left: 58px; }

.facts { grid-area: facts; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts > div { min-width: 0; padding: 14px 13px; border-right: 1px solid var(--line); }
.facts > :last-child { border-right: 0; }
.facts strong { display: block; font-size: clamp(22px, 2.5vw, 32px); letter-spacing: -.04em; line-height: 1; }
.facts span { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .07em; }

.patent-card { grid-area: patent; display: grid; gap: 4px; align-self: stretch; padding: 15px 17px; border: 1px solid rgba(102,242,178,.26); border-radius: 15px; background: linear-gradient(135deg, rgba(102,242,178,.08), rgba(102,242,178,.025)); text-decoration: none; }
.patent-card:hover { border-color: rgba(102,242,178,.55); }
.patent-label { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.patent-card strong { font-size: 15px; }
.patent-card > span:last-child { color: var(--muted); font-size: 12px; }

.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.role-grid > div { min-height: 90px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(11, 26, 22, .54); }
.role-grid b, .role-grid span { display: block; }
.role-grid b { color: var(--text); font-size: 13px; margin-bottom: 5px; }
.role-grid span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.knowledge-loop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 17px; color: #bed1c9; font-size: 12px; font-weight: 700; }
.knowledge-loop span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; }
.knowledge-loop i { color: var(--accent); font-style: normal; }

.overview-media { display: grid; grid-template-columns: 1fr 180px; gap: 10px; min-height: 390px; }
.dashboard { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #020504; }
.dashboard img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.overview-video { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); color: var(--text); padding: 0; text-align: left; cursor: pointer; text-decoration: none; }
.overview-video img { width: 100%; height: 245px; object-fit: cover; }
.overview-video > span { display: block; padding: 12px; }
.overview-video b, .overview-video small { display: block; }
.overview-video b { font-size: 13px; }
.overview-video small { color: var(--muted); font-size: 11px; margin-top: 3px; }

.section-head.tight { margin-bottom: 12px; }
.section-head.tight h2 { margin-bottom: 0; }
.case-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; padding: 14px 0; }
.case-row + .case-row { margin-top: 4px; }
.case-row.reverse .case-copy { order: 2; }
.case-row.reverse .case-media { order: 1; }
.case-copy { padding: 10px 0; align-self: center; }
.case-copy h3 { font-size: clamp(25px, 2.5vw, 34px); margin-bottom: 11px; max-width: 20ch; }
.case-copy > p:not(.tag), .example-list p { color: var(--muted); font-size: 14px; }
.example-list { margin-top: 12px; }
.example-list p { margin-bottom: 7px; }
.example-list b { color: #cfe1da; }
.tag { color: var(--accent) !important; font-size: 9px !important; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 7px; }
.case-media { border-radius: var(--radius); min-height: 300px; }
.case-media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; opacity: .88; }
.balance-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0; }
.balance-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #b9cec6; font-size: 10px; }

.mobile-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 26px; align-items: start; }
.mobile-intro p:not(.eyebrow) { color: var(--muted); font-size: 14px; max-width: 46ch; }
.compact-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-card { display: grid; grid-template-columns: 102px 1fr; min-height: 108px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: rgba(10, 24, 20, .68); }
.mobile-card > img { width: 102px; height: 100%; object-fit: cover; background: #0d1916; }
.mobile-card > div { padding: 11px 12px; }
.mobile-card h3 { margin-bottom: 4px; font-size: 16px; }
.mobile-card p { color: var(--muted); margin-bottom: 6px; font-size: 11.5px; line-height: 1.35; }
.mobile-card .tag { margin-bottom: 4px; }
.mobile-card a { color: var(--accent); text-decoration: none; font-size: 10px; font-weight: 800; }
.mobile-card a:hover { text-decoration: underline; }

footer { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 24px; font-size: 11px; }
.footer-main { display: grid; gap: 5px; max-width: 700px; }
.footer-main > span:first-child { color: var(--text); font-weight: 750; }
.footer-note { color: #718a80; }
.footer-links { display: flex; flex-wrap: wrap; gap: 13px; justify-content: flex-end; align-content: start; }
.footer-links a { text-decoration: none; color: var(--accent); font-weight: 750; }

.modal { width: min(1100px, calc(100% - 30px)); max-height: calc(100vh - 30px); border: 1px solid var(--line); padding: 0; border-radius: 18px; overflow: hidden; background: #020504; color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.7); }
.modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.modal-close { position: absolute; right: 10px; top: 10px; z-index: 3; width: 42px; height: 42px; border: 0; border-radius: 50%; color: white; background: rgba(0,0,0,.65); cursor: pointer; font-size: 28px; line-height: 1; }
.video-frame { width: 100%; aspect-ratio: 16/9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "visual" "facts" "patent"; }
  .overview-grid, .case-row, .mobile-section { grid-template-columns: 1fr; }
  .case-row.reverse .case-copy, .case-row.reverse .case-media { order: initial; }
  .overview-media { grid-template-columns: 1fr 160px; }
  .compact-mobile { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { width: min(100% - 28px, var(--max)); padding: 30px 0; }
  h1 { font-size: clamp(44px, 15vw, 64px); }
  h2 { font-size: 34px; }
  .facts strong { font-size: 22px; }
  .facts > div { padding: 12px 9px; }
  .role-grid { grid-template-columns: 1fr; }
  .overview-media { grid-template-columns: 1fr; min-height: auto; }
  .dashboard img { min-height: 280px; }
  .overview-video { display: grid; grid-template-columns: 150px 1fr; }
  .overview-video img { height: 100%; min-height: 100px; }
  .case-media, .case-media img { min-height: 230px; }
  .compact-mobile { grid-template-columns: 1fr; }
  footer { width: calc(100% - 28px); flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
