:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-soft: #0a111c;
  --panel: #0e1724;
  --panel-strong: #121e2d;
  --line: rgba(177, 226, 255, 0.18);
  --line-strong: rgba(52, 230, 203, 0.45);
  --text: #f3f8ff;
  --muted: #a7b6c9;
  --muted-strong: #cfdae7;
  --blue: #1477ff;
  --cyan: #2de6ca;
  --green: #27d17f;
  --amber: #e4c86b;
  --danger: #ff6f87;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-strong: 0 34px 100px rgba(0, 0, 0, 0.46);
  --body-wash: linear-gradient(180deg, rgba(5, 7, 11, 0.88), rgba(5, 7, 11, 1) 42%);
  --body-grid: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 96px);
  --header-bg: rgba(5, 7, 11, 0.84);
  --hover-bg: rgba(255, 255, 255, 0.04);
  --logo-shell: #05070b;
  --input-bg: rgba(255, 255, 255, 0.055);
  --hero-bg:
    linear-gradient(105deg, rgba(5, 7, 11, 0.95) 0%, rgba(9, 18, 31, 0.8) 58%, rgba(5, 7, 11, 0.96) 100%),
    radial-gradient(circle at 74% 40%, rgba(20, 119, 255, 0.18), transparent 28%),
    var(--bg);
  --page-hero-bg:
    linear-gradient(100deg, rgba(5, 7, 11, 0.98), rgba(13, 27, 44, 0.76)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 112px);
  --footer-bg: #030509;
  --radius: 8px;
  --radius-small: 6px;
  --max: 1180px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fb;
  --bg-soft: #eaf1f7;
  --panel: #ffffff;
  --panel-strong: #f7fbfe;
  --line: rgba(13, 43, 73, 0.14);
  --line-strong: rgba(0, 154, 176, 0.38);
  --text: #081522;
  --muted: #617184;
  --muted-strong: #27394d;
  --blue: #0b67df;
  --cyan: #008fa6;
  --green: #128653;
  --amber: #a97812;
  --danger: #c83d58;
  --shadow: 0 22px 70px rgba(8, 28, 50, 0.13);
  --shadow-strong: 0 30px 90px rgba(8, 28, 50, 0.18);
  --body-wash: linear-gradient(180deg, rgba(245, 248, 251, 0.94), rgba(255, 255, 255, 1) 46%);
  --body-grid: repeating-linear-gradient(90deg, rgba(12, 43, 73, 0.055) 0 1px, transparent 1px 96px);
  --header-bg: rgba(255, 255, 255, 0.86);
  --hover-bg: rgba(0, 143, 166, 0.08);
  --logo-shell: rgba(255, 255, 255, 0.78);
  --input-bg: #ffffff;
  --hero-bg:
    linear-gradient(105deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 244, 249, 0.88) 58%, rgba(255, 255, 255, 0.96) 100%),
    radial-gradient(circle at 78% 38%, rgba(0, 143, 166, 0.15), transparent 30%),
    var(--bg);
  --page-hero-bg:
    linear-gradient(100deg, rgba(255, 255, 255, 0.98), rgba(235, 244, 249, 0.9)),
    repeating-linear-gradient(90deg, rgba(12, 43, 73, 0.055) 0 1px, transparent 1px 112px);
  --footer-bg: #07101a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    var(--body-wash),
    var(--body-grid),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.5;
  transition: background-color 220ms ease, color 220ms ease;
}

body.is-locked {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 76px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 46px rgba(0, 0, 0, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 170px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--logo-shell);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
}

.brand img {
  width: 196px;
  height: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--hover-bg);
  color: var(--text);
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  outline: none;
}

.theme-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.theme-toggle-icon::after {
  content: "";
  position: absolute;
  inset: -2px -2px -2px 8px;
  border-radius: 50%;
  background: var(--panel);
}

html[data-theme="light"] .theme-toggle-icon::after {
  inset: 4px;
  background: currentColor;
}

html[data-theme="light"] .brand img,
html[data-theme="light"] .hero-logo {
  content: url("../logos/kk-light.png");
}

html[data-theme="light"] .brand,
html[data-theme="light"] .hero-logo {
  border-color: rgba(13, 43, 73, 0.12);
  box-shadow: 0 14px 42px rgba(8, 28, 50, 0.11);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  color: var(--muted-strong);
  font-size: 0.95rem;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line);
  background: var(--hover-bg);
  color: var(--text);
  outline: none;
}

.site-nav .nav-login {
  margin-left: 8px;
  border-color: rgba(45, 230, 202, 0.42);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--hover-bg);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 86svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--hero-bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 58%, rgba(45, 230, 202, 0.1) 58% 58.2%, transparent 58.2%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.05) 39px 40px);
  mask-image: linear-gradient(90deg, transparent 0%, #000 35%, #000 82%, transparent 100%);
  opacity: 0.54;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 72px;
}

.hero-logo {
  width: min(520px, 72vw);
  margin-bottom: 42px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--logo-shell);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 4.15rem;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.55rem;
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.5rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-lead {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-text {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--muted-strong);
  font-size: 1.08rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #021014;
  box-shadow: 0 18px 42px rgba(45, 230, 202, 0.22);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(45, 230, 202, 0.07);
  color: var(--text);
}

.hero-next {
  position: absolute;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 24px;
  z-index: 3;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-next::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: var(--cyan);
}

.hero-grid {
  position: absolute;
  inset: 18% 4% auto auto;
  z-index: 1;
  width: min(470px, 42vw);
  height: 430px;
  opacity: 0.82;
}

.hero-grid::before,
.hero-grid::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(45, 230, 202, 0.24);
}

.hero-grid::after {
  inset: 88px 24px 88px 132px;
  border-color: rgba(20, 119, 255, 0.26);
}

.grid-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 118px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-small);
  background: rgba(7, 14, 24, 0.82);
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.node-a {
  top: 36px;
  right: 24px;
}

.node-b {
  top: 132px;
  left: 0;
}

.node-c {
  right: 0;
  bottom: 120px;
}

.node-d {
  left: 84px;
  bottom: 28px;
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section-about {
  background: rgba(255, 255, 255, 0.015);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.section-copy {
  color: var(--muted-strong);
  font-size: 1.05rem;
}

.section-copy p:last-child,
.section-heading p:last-child,
.partners-band p:last-child {
  margin-bottom: 0;
}

.value-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 56px;
  border: 1px solid var(--line);
  background: var(--line);
}

.value-item {
  min-height: 190px;
  padding: 28px;
  background: rgba(8, 15, 25, 0.94);
}

.value-item span {
  display: block;
  margin-bottom: 28px;
  color: var(--cyan);
  font-weight: 800;
}

.value-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.14rem;
}

.value-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-heading p {
  color: var(--muted-strong);
  font-size: 1.04rem;
}

.ecosystem-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ecosystem-node {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--panel);
  transition: transform 180ms ease, border-color 180ms ease;
}

.ecosystem-node::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.ecosystem-node:hover,
.ecosystem-node:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  outline: none;
}

.ecosystem-node span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 54px;
  border: 1px solid rgba(45, 230, 202, 0.38);
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 800;
}

.ecosystem-node strong {
  display: block;
  max-width: 180px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--cyan);
  opacity: 0.9;
  pointer-events: none;
}

.project-card::after {
  position: absolute;
  right: 24px;
  top: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255, 255, 255, 0.08) 8px 9px),
    rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card-lms::after {
  content: "LMS";
}

.project-card-physio::after {
  content: "LAB";
}

.project-card-shmel::after {
  content: "FPV";
}

.project-card-ai::after {
  content: "AI";
}

.project-card-lms::before {
  border-color: var(--blue);
}

.project-card-physio::before {
  border-color: var(--cyan);
}

.project-card-shmel::before {
  border-color: var(--amber);
}

.project-card-ai::before {
  border-color: var(--green);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  margin-bottom: 54px;
  color: var(--muted);
  font-size: 0.84rem;
}

.project-card h3 {
  min-height: 58px;
  padding-right: 72px;
}

.project-card p {
  min-height: 130px;
  color: var(--muted-strong);
}

.project-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.project-card li {
  position: relative;
  padding-left: 18px;
}

.project-card li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.project-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.project-link::after {
  content: ">";
  color: var(--cyan);
}

.section-access {
  background: linear-gradient(180deg, rgba(20, 119, 255, 0.08), rgba(45, 230, 202, 0.035));
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.access-layout p {
  max-width: 610px;
  color: var(--muted-strong);
}

.access-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.access-flow div {
  min-height: 190px;
  padding: 24px;
  background: rgba(8, 15, 25, 0.96);
}

.access-flow span {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--cyan);
  font-weight: 800;
}

.access-flow strong {
  display: block;
  line-height: 1.25;
}

.partners-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.partners-band p {
  color: var(--muted-strong);
}

.section-contacts {
  background: rgba(255, 255, 255, 0.02);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.62fr);
  gap: 56px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  color: var(--text);
}

.contact-list a {
  color: var(--cyan);
}

.muted-inline {
  color: var(--muted-strong);
}

.lead-form,
.auth-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 23, 36, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lead-form::before,
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--cyan);
  pointer-events: none;
}

.auth-card::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 132px;
  height: 92px;
  border-top: 1px solid rgba(45, 230, 202, 0.25);
  border-right: 1px solid rgba(45, 230, 202, 0.25);
  border-radius: var(--radius-small);
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(45, 230, 202, 0.11) 14px 15px),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(20, 119, 255, 0.1) 14px 15px);
  pointer-events: none;
  opacity: 0.72;
}

.lead-form > *,
.auth-card > * {
  position: relative;
  z-index: 1;
}

.lead-form h3,
.auth-card h2 {
  margin-bottom: 6px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-small);
  background: var(--input-bg);
  color: var(--text);
  min-height: 50px;
  padding: 12px 13px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

textarea {
  resize: vertical;
}

select option {
  color: #07101a;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow:
    0 0 0 3px rgba(45, 230, 202, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--cyan);
  font-size: 0.92rem;
}

.site-footer {
  padding: 36px 0;
  background: var(--footer-bg);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo img {
  width: 172px;
}

.site-footer p {
  margin-bottom: 8px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.page-hero {
  padding: 92px 0 70px;
  border-bottom: 1px solid var(--line);
  background: var(--page-hero-bg);
}

.page-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 64px;
  align-items: center;
}

.page-hero h1 {
  font-size: 3.1rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--cyan);
}

.status-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 22px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 700;
}

.project-visual {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(45, 230, 202, 0.28);
}

.project-visual::after {
  inset: 94px 52px 52px 112px;
  border-color: rgba(20, 119, 255, 0.32);
}

.project-visual span {
  position: absolute;
  left: 30px;
  bottom: 28px;
  color: var(--text);
  font-size: 2.8rem;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.42fr);
  gap: 46px;
}

.content-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.content-panel ul,
.plain-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted-strong);
}

.content-panel p {
  color: var(--muted-strong);
}

.side-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.fact-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.fact-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  color: var(--muted);
}

.fact-list dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 700;
}

.auth-page {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 19%, rgba(45, 230, 202, 0.12) 19% 19.12%, transparent 19.12%),
    linear-gradient(90deg, transparent 0 73%, rgba(20, 119, 255, 0.14) 73% 73.1%, transparent 73.1%),
    repeating-linear-gradient(0deg, transparent 0 48px, rgba(255, 255, 255, 0.035) 49px 50px);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 84%, transparent 100%);
  opacity: 0.7;
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.56fr);
  gap: 56px;
  align-items: center;
}

.auth-note {
  color: var(--muted-strong);
  max-width: 640px;
  font-size: 1.13rem;
}

.auth-list {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.auth-list li {
  position: relative;
  min-height: 62px;
  padding: 16px 18px 16px 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(45, 230, 202, 0.085), transparent 42%),
    rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
}

.auth-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translateY(-50%);
  background:
    linear-gradient(135deg, transparent 0 42%, var(--cyan) 43% 50%, transparent 51%),
    rgba(45, 230, 202, 0.08);
}

.auth-signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.auth-signal-strip span {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.auth-signal-strip b {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
}

.doc-section {
  max-width: 840px;
}

.doc-section p,
.doc-section li {
  color: var(--muted-strong);
}

@media (max-width: 1080px) {
  .project-grid,
  .ecosystem-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card p {
    min-height: auto;
  }

  .partners-band,
  .access-layout,
  .contact-layout,
  .page-hero-layout,
  .content-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .page-hero-layout {
    gap: 36px;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 68px;
    gap: 10px;
    padding: 12px 14px;
  }

  .brand {
    min-width: auto;
    padding: 7px 8px;
  }

  .brand img {
    width: 132px;
  }

  .theme-toggle {
    min-width: 42px;
    padding: 0 11px;
  }

  .theme-toggle-text {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 7, 11, 0.98);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    justify-content: flex-start;
    min-height: 48px;
  }

  .site-nav .nav-login {
    margin-left: 0;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-content {
    padding-top: 54px;
    padding-bottom: 66px;
  }

  .hero-logo {
    width: min(390px, 86vw);
    margin-bottom: 30px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.35rem;
    line-height: 1.08;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero-grid {
    width: 78vw;
    height: 360px;
    inset: auto -18vw 4% auto;
    opacity: 0.36;
  }

  .section {
    padding: 72px 0;
  }

  .section-grid,
  .value-row,
  .access-flow {
    grid-template-columns: 1fr;
  }

  .value-item,
  .access-flow div {
    min-height: 150px;
  }

  .access-flow span {
    margin-bottom: 28px;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero-actions,
  .partners-band {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .project-grid,
  .ecosystem-map {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .project-card h3 {
    min-height: auto;
  }

  .project-meta {
    margin-bottom: 34px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 62px 0 52px;
  }

  .project-visual {
    min-height: 260px;
  }

  .project-visual span {
    font-size: 2.1rem;
  }

  .lead-form,
  .auth-card,
  .content-panel {
    padding: 22px;
  }

  .auth-signal-strip {
    grid-template-columns: 1fr;
  }

  .auth-signal-strip span {
    min-height: 58px;
  }

  .project-card h3 {
    padding-right: 58px;
  }

  .project-card::after {
    width: 52px;
    height: 52px;
    right: 18px;
  }
}

.auth-layout-wide {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
}

.service-login-panel {
  display: grid;
  gap: 20px;
}

.service-login-panel h2 {
  margin-bottom: 0;
}

.service-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-login-card {
  position: relative;
  display: grid;
  min-height: 190px;
  align-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--cyan);
}

.service-login-card:hover,
.service-login-card:focus-visible {
  border-color: var(--line-strong);
  background: var(--panel-strong);
  transform: translateY(-2px);
  outline: none;
}

.service-login-card span,
.auth-card-header span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(45, 230, 202, 0.42);
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 800;
  overflow: hidden;
  box-shadow: inset 0 0 22px rgba(45, 230, 202, 0.12);
}

.auth-card-header span::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: currentColor;
  opacity: 0.5;
}

.service-login-card strong {
  display: block;
  margin-top: 30px;
  font-size: 1.22rem;
}

.service-login-card em {
  color: var(--muted);
  font-style: normal;
}

.service-login-lms::before {
  border-color: var(--blue);
}

.service-login-physio::before {
  border-color: var(--cyan);
}

.service-login-shmel::before {
  border-color: var(--amber);
}

.service-login-ai::before {
  border-color: var(--green);
}

.service-auth-page {
  align-items: start;
}

.service-auth-card {
  align-self: start;
}

.auth-card-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 6px;
}

.auth-card-header h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  line-height: 1.22;
}

.button-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted-strong);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.ecosystem-node,
.project-card,
.content-panel,
.lead-form,
.auth-card,
.service-login-card,
.partners-band {
  box-shadow: var(--shadow);
}

.project-card,
.ecosystem-node,
.content-panel,
.service-login-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--panel);
}

.project-card,
.ecosystem-node,
.service-login-card {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-within {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.lead-form,
.auth-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    var(--panel);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: var(--hover-bg);
}

html[data-theme="light"] .hero::before {
  background:
    linear-gradient(90deg, transparent 0 58%, rgba(0, 143, 166, 0.12) 58% 58.2%, transparent 58.2%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(12, 43, 73, 0.07) 39px 40px);
  opacity: 0.56;
}

html[data-theme="light"] .section-about,
html[data-theme="light"] .section-contacts {
  background: rgba(0, 143, 166, 0.035);
}

html[data-theme="light"] .section-access {
  background: linear-gradient(180deg, rgba(0, 143, 166, 0.08), rgba(20, 119, 255, 0.04));
}

html[data-theme="light"] .value-row,
html[data-theme="light"] .access-flow {
  background: rgba(13, 43, 73, 0.12);
}

html[data-theme="light"] .value-item,
html[data-theme="light"] .access-flow div {
  background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .grid-node,
html[data-theme="light"] .project-visual,
html[data-theme="light"] .partners-band {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 251, 254, 0.92)),
    var(--panel);
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  border-color: rgba(13, 43, 73, 0.18);
}

html[data-theme="light"] .auth-page::before {
  background:
    linear-gradient(90deg, transparent 0 19%, rgba(0, 143, 166, 0.11) 19% 19.12%, transparent 19.12%),
    linear-gradient(90deg, transparent 0 73%, rgba(20, 119, 255, 0.1) 73% 73.1%, transparent 73.1%),
    repeating-linear-gradient(0deg, transparent 0 48px, rgba(12, 43, 73, 0.055) 49px 50px);
}

html[data-theme="light"] .auth-list li {
  background:
    linear-gradient(90deg, rgba(0, 143, 166, 0.075), transparent 42%),
    rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .auth-signal-strip span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 251, 254, 0.9)),
    var(--panel);
}

html[data-theme="light"] .button-secondary {
  background: rgba(0, 143, 166, 0.08);
}

html[data-theme="light"] .site-footer,
html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer a {
  color: #e8f4ff;
}

@media (max-width: 1080px) {
  .auth-layout-wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .service-login-grid {
    grid-template-columns: 1fr;
  }

  .service-login-card {
    min-height: 160px;
  }

  .auth-card-header {
    grid-template-columns: 1fr;
  }
}
