/* ============================================================
   AXM — Ars Ex Machina
   Дизайн-система сайта по фирменной айдентике:
   палитра AXM-Colors, типографика Neue Machina,
   графика по шаблонам Identity (стр. 8, 9, 26)
   ============================================================ */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: 'Neue Machina';
  src: url('../fonts/NeueMachina-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Machina';
  src: url('../fonts/NeueMachina-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Machina';
  src: url('../fonts/NeueMachina-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Machina';
  src: url('../fonts/NeueMachina-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Machina';
  src: url('../fonts/NeueMachina-Ultrabold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  /* палитра AXM */
  --bg:      #23272A;
  --bg-2:    #2A2F33;
  --bg-3:    #53565A;
  --line:    rgba(255, 255, 255, 0.14);
  --line-strong: #53565A;
  --ink:     #F2F3F1;
  --muted:   #B0B3B1;
  --dim:     #717477;

  /* акценты саббрендов */
  --mint:  #9DFFC4;  /* Robotics */
  --lime:  #BCF770;  /* Agro */
  --cyan:  #99FFFF;  /* Automatic */
  --lav:   #CCC2F1;  /* MedTech (резерв) */
  --blue:  #0574D2;

  --accent: var(--ink); /* переопределяется на страницах направлений */

  --font: 'Neue Machina', 'Arial', sans-serif;

  --pad: clamp(20px, 4vw, 64px);
  --header-h: 76px;
}

/* страничные акценты */
body[data-accent="robotics"]  { --accent: var(--mint); }
body[data-accent="agro"]      { --accent: var(--lime); }
body[data-accent="automatic"] { --accent: var(--cyan); }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

::selection { background: var(--accent); color: var(--bg); }

/* тонкая типографика-подпись (как спецификации на стр. 26) */
.spec-text,
.tag {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* дисплейные заголовки (как AGRO BOT на стр. 8) */
.display {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
}

/* ---------- Фирменный паттерн из треугольников (стр. 10) ---------- */
.tri-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='224' height='224' viewBox='0 0 224 224'%3E%3Cg fill='%23FFFFFF' fill-opacity='0.05'%3E%3Cpath d='M28 24l8 6-9 4z'/%3E%3Cpath d='M140 26l-8 5 9 4z'/%3E%3Cpath d='M84 80l9-4-1 10z'/%3E%3Cpath d='M196 84l-9-4 1 10z'/%3E%3Cpath d='M32 136l8 5-8 5z'/%3E%3Cpath d='M144 132l-9 5 9 5z'/%3E%3Cpath d='M88 192l8-5 1 10z'/%3E%3Cpath d='M200 188l-8-4-1 10z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  width: 96px;
  height: 24px;
  background: currentColor;
  -webkit-mask: url('../img/axm-mark.svg') no-repeat center / contain;
  mask: url('../img/axm-mark.svg') no-repeat center / contain;
  color: var(--ink);
  flex: none;
}

.brand-descriptor {
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }

.site-nav a {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--accent);
}

/* бургер */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  position: relative;
  z-index: 120;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}
.nav-toggle::before { top: 13px; }
.nav-toggle span    { top: 19px; }
.nav-toggle::after  { top: 25px; }
body.nav-open .nav-toggle::before { top: 19px; transform: rotate(45deg); }
body.nav-open .nav-toggle span    { opacity: 0; }
body.nav-open .nav-toggle::after  { top: 19px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .brand-descriptor { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  body.nav-open .site-nav { opacity: 1; pointer-events: auto; }
  .site-nav a { font-size: 16px; padding: 12px 20px; }   /* тап-зона ≥44px */
}

/* ---------- Общая сетка ---------- */
.section {
  padding: clamp(64px, 9vw, 128px) var(--pad);
  position: relative;
}
.section--tight { padding-top: clamp(40px, 6vw, 80px); }

.container { max-width: 1440px; margin: 0 auto; }

/* заголовок секции с фирменной вертикальной чертой (стр. 9) */
.section-head { margin-bottom: clamp(32px, 5vw, 64px); position: relative; }

.vline {
  display: block;
  width: 2px;
  height: 56px;
  background: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.02;
}

.section-sub {
  margin-top: 18px;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
}

/* ---------- Саббренд-лейбл: AXM | Robotics (стр. 9) ---------- */
.subbrand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.subbrand .brand-mark { width: 72px; height: 18px; }
.subbrand-name {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--accent);
}

/* ---------- Рамка с угловыми метками (стр. 26) ---------- */
.frame {
  position: relative;
  border: 1px solid var(--line);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

.frame .fm {
  position: absolute;
  width: 9px; height: 9px;
  background: var(--dim);
  z-index: 2;
}
/* треугольники по углам, направлены внутрь кадра */
.fm-tl { top: 7px;  left: 7px;   clip-path: polygon(0 0, 100% 35%, 35% 100%); }
.fm-tr { top: 7px;  right: 7px;  clip-path: polygon(100% 0, 65% 100%, 0 35%); }
.fm-bl { bottom: 7px; left: 7px; clip-path: polygon(0 100%, 35% 0, 100% 65%); }
.fm-br { bottom: 7px; right: 7px;clip-path: polygon(100% 100%, 0 65%, 65% 0); }

/* ---------- Продуктовая панель (шаблон стр. 26) ---------- */
.panel {
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}

.panel-title-wrap {
  padding: clamp(20px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  border-left: 2px solid var(--accent);
}

.panel-title {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1;
}

.panel-specs {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
}
.panel-specs .spec-col {
  padding: clamp(20px, 2.6vw, 34px);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 150px;
}
.spec-col .spec-text { color: var(--muted); white-space: nowrap; }

.panel-body {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
}

.panel-side {
  padding: clamp(20px, 3vw, 36px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.panel-side .side-label {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-side .side-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.panel-media { position: relative; min-height: 320px; }
.panel-media .frame { border: 0; height: 100%; }

@media (max-width: 1000px) {
  .panel-head { grid-template-columns: 1fr; }
  .panel-specs { border-top: 1px solid var(--line); grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }
  .panel-specs .spec-col:first-child { border-left: 0; }
  .panel-body { grid-template-columns: 1fr; }
  .panel-side { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .panel-specs { grid-template-columns: repeat(2, 1fr); }
  .panel-specs .spec-col { border-top: 1px solid var(--line); border-left: 0; min-width: 0; }
  .spec-col .spec-text { white-space: normal; }
}

/* ---------- Hero главной ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--pad) clamp(28px, 4vw, 56px);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
/* сюда в будущем встанет фоновое интро-видео (<video autoplay muted loop>) */
.hero-media img,
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(35,39,42,0.55) 0%, rgba(35,39,42,0.18) 40%, rgba(35,39,42,0.92) 100%);
}

.hero h1 {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 6.4vw, 104px);
  line-height: 0.98;
  max-width: 18ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 22px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
}

.hero-bottom { margin-top: clamp(36px, 5vw, 72px); }

/* ---------- Плитки направлений ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tile {
  --tile-accent: var(--ink);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  padding: clamp(22px, 2.6vw, 40px);
  min-height: 218px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
}
.tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--tile-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1);
}
.tile:hover::before { transform: scaleX(1); }
.tile:hover { background: color-mix(in srgb, var(--bg-2) 94%, transparent); }

.tile--robotics  { --tile-accent: var(--mint); }
.tile--agro      { --tile-accent: var(--lime); }
.tile--automatic { --tile-accent: var(--cyan); }

.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.tile-name {
  font-weight: 500;
  font-size: clamp(19px, 1.8vw, 26px);
}
.tile-name .ax { color: var(--dim); font-weight: 700; }
.tile-name .dir { color: var(--tile-accent); }

.tile-arrow {
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: 0.3s;
  flex: none;
}
.tile:hover .tile-arrow {
  background: var(--tile-accent);
  border-color: var(--tile-accent);
  color: var(--bg);
  transform: translate(2px, -2px);
}

.tile-caption { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; gap: 18px; }
}

/* ---------- Карточки (технологии, услуги) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* ровная сетка 3×2 для секций с шестью карточками */
@media (min-width: 901px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg);
  padding: clamp(20px, 2.4vw, 34px);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  transition: background 0.3s;
}
.card:hover { background: var(--bg-2); }

.card-num {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.card h3 {
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: var(--ink);
}
.card h3 .acc { color: var(--accent); }

.card p { color: var(--muted); font-size: 14px; }

/* ---------- Цитата / проблема ---------- */
.statement {
  max-width: 900px;
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.35;
}
.statement strong { font-weight: 700; color: var(--accent); }

.statement + .statement { margin-top: 1.2em; }

/* ---------- Сплит: текст + изображение ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.split.split--rev { grid-template-columns: 7fr minmax(300px, 5fr); }
.split-text p { color: var(--muted); margin-top: 16px; max-width: 52ch; }
.split-text p.lead { color: var(--ink); font-size: clamp(17px, 1.5vw, 21px); }
@media (max-width: 900px) {
  .split, .split.split--rev { grid-template-columns: 1fr; }
  .split--rev .split-text { order: -1; }
}

/* ---------- Полноэкранный баннер-полигон ---------- */
.banner {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(48px, 7vw, 96px) var(--pad);
  overflow: hidden;
}
.banner-media { position: absolute; inset: 0; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; }
.banner-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,39,42,0.28) 0%, rgba(35,39,42,0.86) 100%);
}
.banner-inner { position: relative; max-width: 760px; }
.banner-inner h2 {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(26px, 3.8vw, 54px);
  line-height: 1.02;
  margin-bottom: 18px;
}
.banner-inner p { color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--line-strong);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font);
}
.btn .arr { transition: transform 0.3s; }
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn:hover .arr { transform: translateX(4px); }

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn--solid:hover { filter: brightness(1.08); }

/* ---------- CTA-секция ---------- */
.cta {
  border-top: 1px solid var(--line);
  text-align: left;
}
.cta .display { font-size: clamp(30px, 5vw, 72px); margin-bottom: 28px; max-width: 20ch; }

/* ---------- Шаги (Как мы работаем) ---------- */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step {
  background: var(--bg);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: clamp(22px, 3vw, 40px);
}
.step-num {
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 48px);
  color: var(--accent);
  line-height: 1;
}
.step h3 { font-weight: 700; text-transform: uppercase; font-size: 17px; letter-spacing: 0.03em; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 60ch; }
@media (max-width: 620px) {
  .step { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Форма контактов ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 26px; }
.field label {
  display: block;
  margin-bottom: 10px;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-size: 16px;   /* iOS не зумит поля при >=16px */
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 2px;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 17px;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 0;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }

.form-note { margin-top: 18px; font-size: 13px; color: var(--dim); }
.form-status { margin-top: 18px; font-size: 14px; color: var(--accent); min-height: 20px; }

.contact-list { display: grid; gap: 28px; }
.contact-list .item { border-top: 1px solid var(--line); padding-top: 18px; }
.contact-list .item a {
  font-weight: 500;
  font-size: clamp(19px, 1.8vw, 26px);
  transition: color 0.25s;
}
.contact-list .item a:hover { color: var(--accent); }

/* ---------- Футер ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) var(--pad) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.footer-nav { display: grid; gap: 12px; justify-items: end; }
.footer-nav a {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--ink); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-items: start; }
}

/* ---------- Появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.3, 0, 0.2, 1), transform 0.7s cubic-bezier(0.3, 0, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Подстраничный hero (текстовый, стр. 8) ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 110px)) var(--pad) clamp(40px, 6vw, 80px);
  position: relative;
}
.page-hero .subbrand { margin-bottom: 26px; }
.page-hero h1 {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 96px);
  line-height: 0.98;
  max-width: 16ch;
}
.page-hero .lead {
  margin-top: 24px;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 19px);
}

/* ---------- 3D-концепты ---------- */
.concept3d{position:relative;height:clamp(360px,58vh,580px);border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--bg-2);cursor:grab}
.concept3d:active{cursor:grabbing}
.concept3d canvas{display:block}
.concept3d-hint{position:absolute;left:16px;bottom:12px;z-index:4;color:var(--dim);font-size:12px;letter-spacing:.04em;pointer-events:none}
.concept3d-label{position:absolute;z-index:3;transform:translate(-50%,-130%);pointer-events:none;background:rgba(35,39,42,.9);border:1px solid var(--line);color:var(--ink);font-size:11px;padding:3px 9px;border-radius:6px;white-space:nowrap}
.concept3d-note{position:absolute;right:16px;bottom:12px;z-index:4;color:var(--dim);font-size:11px;pointer-events:none}

/* ---------- ссылка на кабинет ---------- */
.site-nav .nav-lk { color: var(--mint); border: 1px solid rgba(157,255,196,.4); border-radius: 8px; padding: 6px 12px; }
.site-nav .nav-lk:hover { background: rgba(157,255,196,.12); }

/* ---------- мобильные доводки ---------- */
html { -webkit-text-size-adjust: 100%; }
@media (hover: none) and (pointer: coarse) {
  .concept3d-hint { font-size: 0; }
  .concept3d-hint::after { content: "вращение — двумя пальцами"; font-size: 12px; }
  .concept3d { height: clamp(300px, 48vh, 460px); }
}