@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700&family=Onest:wght@400;500;600&display=swap');

/* Intelligent Lab — вариант A «Night Network» */

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

:root {
  --bg: #04090b;
  --surface: #0a1418;
  --line: rgba(5, 191, 221, 0.14);
  --line-strong: rgba(5, 191, 221, 0.3);
  --cyan: #05bfdd;
  --cyan-light: #0dcfe8;
  --teal: #016a7a;
  --teal-deep: #012a32;
  --ink: #e8f4f6;
  --muted: #9fb7bc;
  --dim: #6f8a90;
  --on-cyan: #021417;
  --radius: 24px;
  --gutter: 64px;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--cyan-light); text-decoration: none; transition: color .2s; }
a:hover { color: #7fe6f5; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 128px; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; color: #fff; }
.eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-light); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.icon { width: 36px; height: 36px; stroke: var(--cyan); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 30px; border-radius: 999px; font-size: 17px; font-weight: 600; cursor: pointer; border: none; transition: transform .2s, background .2s, opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: var(--on-cyan); }
.btn-primary:hover { background: var(--cyan-light); color: var(--on-cyan); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(232, 244, 246, 0.25); font-weight: 500; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--ink); }
.btn-white { background: #fff; color: var(--teal-deep); height: 60px; padding: 0 36px; font-size: 18px; }
.btn-white:hover { color: var(--teal-deep); opacity: .9; }
.btn-sm { height: 44px; padding: 0 22px; font-size: 15px; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(4, 9, 11, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .container { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone { color: var(--ink); font-size: 15px; font-weight: 500; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600; }
.lang a, .lang span { padding: 6px 11px; color: var(--muted); }
.lang span { background: rgba(5, 191, 221, 0.15); color: var(--cyan); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 88px 0 0 0; z-index: 99; background: var(--bg); padding: 32px 24px; display: none; flex-direction: column; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--ink); font-size: 22px; font-family: var(--display); font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; font-family: var(--body); border-bottom: none; }

/* HERO */
.hero { padding-top: 176px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; min-height: 620px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--cyan-light); letter-spacing: 0.04em; text-transform: uppercase; }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.02em; color: #fff; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 580px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero-visual { position: relative; aspect-ratio: 640 / 620; width: 100%; max-width: 640px; justify-self: end; }
.hero-visual svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-visual .orb { transform-origin: 370px 160px; animation: orbPulse 6s ease-in-out infinite; }
.hero-visual .node { animation: nodeFloat 5s ease-in-out infinite; }
.hero-visual .node:nth-of-type(2) { animation-delay: -1.5s; }
.hero-visual .node:nth-of-type(3) { animation-delay: -3s; }
.chip { position: absolute; padding: 10px 16px; background: rgba(10, 20, 24, 0.9); border: 1px solid var(--line-strong); border-radius: 12px; font-size: 14px; font-weight: 500; white-space: nowrap; }
@keyframes orbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes nodeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* STATS */
.stats { margin-top: 24px; padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-num { font-family: var(--display); font-size: clamp(30px, 3vw, 40px); font-weight: 600; color: var(--cyan); line-height: 1.2; }
.stat-label { font-size: 15px; color: var(--muted); margin-top: 6px; }

/* WHY (bento) */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.section-head p { max-width: 420px; font-size: 17px; color: var(--muted); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { min-height: 240px; padding: 36px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.tile h3 { font-family: var(--display); font-size: 22px; font-weight: 600; color: #fff; line-height: 1.25; }
.tile p { font-size: 16px; color: var(--muted); margin-top: 8px; }
.tile--wide { grid-column: span 2; min-height: 260px; background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%); }
.tile--wide h3 { font-size: 26px; }
.tile--wide p { color: rgba(255, 255, 255, 0.82); font-size: 17px; max-width: 580px; }
.tile--wide .icon { stroke: #fff; }
.tile--accent { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; background: var(--cyan); color: var(--on-cyan); }
.tile--accent > div { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.tile--accent p { margin-top: 0; }
.tile--accent h3 { color: var(--on-cyan); }
.tile--accent p { color: rgba(2, 20, 23, 0.8); }
.tile--accent .icon { stroke: var(--on-cyan); }

/* EXPERTISE */
.split { display: grid; grid-template-columns: 5fr 1fr 6fr; gap: 0; }
.split > :last-child { grid-column: 3; }
.budget { margin-top: 40px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.step-row { display: flex; gap: 14px; align-items: center; font-size: 17px; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--cyan); color: var(--cyan); font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cases { list-style: none; }
.cases li { padding: 28px 0; border-top: 1px solid var(--line); display: flex; gap: 28px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.cases li:last-child { border-bottom: 1px solid var(--line); }
.cases .num { font-family: var(--display); font-size: 15px; color: var(--cyan); padding-top: 4px; flex-shrink: 0; }

/* WHO */
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.who-card { padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.who-card .icon { width: 32px; height: 32px; }
.who-card h3 { font-family: var(--display); font-size: 19px; font-weight: 600; color: #fff; line-height: 1.3; }
.who-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); }
.who-card li { padding-left: 16px; position: relative; }
.who-card li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 1px var(--cyan); }

/* CERTS */
.certs-layout { display: grid; grid-template-columns: 7fr 1fr 4fr; }
.certs-layout > :last-child { grid-column: 3; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.cert { padding: 10px 16px; border-radius: 999px; background: rgba(5, 191, 221, 0.1); border: 1px solid rgba(5, 191, 221, 0.25); font-size: 14px; line-height: 1.35; }
.cert--hl { background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); font-weight: 600; }
.courses { margin-top: 28px; }
.courses summary { cursor: pointer; font-weight: 500; color: var(--cyan-light); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.courses summary::-webkit-details-marker { display: none; }
.courses summary::after { content: '→'; transition: transform .2s; }
.courses[open] summary::after { transform: rotate(90deg); }
.courses-body { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.courses-body .card { padding: 24px; font-size: 14px; color: var(--muted); }
.courses-body h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-light); margin-bottom: 12px; font-weight: 500; }
.courses-body li { margin-bottom: 8px; list-style: none; }
.edu { padding: 36px; display: flex; flex-direction: column; gap: 24px; align-self: start; }
.edu-item h3 { font-family: var(--display); font-size: 18px; font-weight: 600; color: #fff; }
.edu-item p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.edu hr { border: none; height: 1px; background: var(--line); }

/* PROCESS */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 56px; list-style: none; }
.timeline::before { content: ''; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--teal)); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 16px; }
.t-num { width: 48px; height: 48px; border-radius: 50%; background: var(--cyan); color: var(--on-cyan); font-family: var(--display); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.timeline li:last-child .t-num { background: var(--teal); color: #fff; }
.t-text { font-size: 17px; line-height: 1.5; }
.t-time { font-size: 14px; color: var(--cyan-light); }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: 72px; background: radial-gradient(circle at 85% 30%, var(--cyan-light) 0%, var(--teal) 35%, var(--teal-deep) 70%, var(--bg) 100%); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -0.02em; color: #fff; line-height: 1.1; }
.cta p { font-size: 19px; color: rgba(255, 255, 255, 0.82); margin-top: 16px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; flex-shrink: 0; }
.cta-actions a.phone { color: #fff; font-size: 18px; font-weight: 500; }

/* FOOTER */
.footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 14px; color: var(--dim); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 40px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.footer p { line-height: 1.7; }
.footer-req-name { color: var(--muted); font-weight: 500; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links a, .footer-links button { color: var(--muted); font-size: 15px; background: none; border: none; cursor: pointer; padding: 0; }
.footer-links a:hover, .footer-links button:hover { color: var(--cyan); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 40px; transform: translateY(16px); transition: transform .3s; }
.modal-overlay.active .modal-container { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.06); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: rgba(255, 255, 255, 0.12); }
.modal-title { font-family: var(--display); font-weight: 600; font-size: 28px; color: #fff; margin-bottom: 28px; }
.modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full, .form-consent, .form-submit, .form-status { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--muted); }
.req { color: var(--cyan); }
.form-group input, .form-group textarea { width: 100%; background: var(--bg); border: 1px solid rgba(232, 244, 246, 0.15); border-radius: 12px; padding: 13px 16px; color: var(--ink); font-family: inherit; font-size: 15px; transition: border-color .2s; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--dim); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--cyan); }
.form-consent label { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.form-consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--cyan); flex-shrink: 0; }
.form-submit { height: 56px; border: none; border-radius: 999px; background: var(--cyan); color: var(--on-cyan); font-size: 17px; font-weight: 600; cursor: pointer; margin-top: 4px; }
.form-submit:hover { background: var(--cyan-light); }
.form-submit:disabled { opacity: .6; cursor: default; }
.form-status { font-size: 14px; min-height: 20px; }
.form-status.success { color: #5fe0a0; }
.form-status.error { color: #ff8a80; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.22, 1, .36, 1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual .orb, .hero-visual .node { animation: none; }
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .nav-links { gap: 24px; }
  .nav-phone { display: none; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .nav-links, .nav-right .btn { display: none; }
  .burger { display: flex; }
  .hero { padding-top: 136px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { justify-self: center; max-width: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .split, .certs-layout { grid-template-columns: 1fr; gap: 40px; }
  .split > :last-child, .certs-layout > :last-child { grid-column: auto; }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; background: linear-gradient(180deg, var(--cyan), var(--teal)); }
  .timeline li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 20px; row-gap: 4px; }
  .timeline .t-text { flex: 1; min-width: 200px; }
  .timeline .t-time { width: 100%; padding-left: 68px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 48px; }
  .cta-actions { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --gutter: 20px; --radius: 20px; }
  .section { padding-top: 88px; }
  .nav .container { height: 72px; }
  .mobile-menu { inset: 72px 0 0 0; }
  .nav-logo img { height: 40px; }
  .hero { padding-top: 112px; }
  .hero h1 { font-size: 33px; }
  .hero-actions .btn { width: 100%; }
  .cert { border-radius: 14px; }
  .tile { gap: 20px; }
  .chip { font-size: 12px; padding: 7px 11px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile { min-height: 0; padding: 28px; }
  .who-grid { grid-template-columns: 1fr; }
  .cases li { gap: 18px; padding: 22px 0; }
  .courses-body { grid-template-columns: 1fr; }
  .cta { padding: 36px 24px; border-radius: 24px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-container { padding: 32px 20px; }
  .modal-form { grid-template-columns: 1fr; }
}