:root {
  --ink: #0a0f36;          /* фирменный тёмно-синий из логотипа */
  --ink-2: #141b4d;
  --blue: #1b63e8;         /* градиент логотипа: от --blue к --cyan */
  --cyan: #1fa3f2;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --line: #e2e7f0;
  --line-dark: rgba(255, 255, 255, .12);
  --text: #0a0f36;
  --muted: #59627a;
  --muted-dark: #a9b2d0;
  --radius: 14px;
  --wrap: 1180px;
  --font: "IBM Plex Sans", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Noto Sans Armenian", ui-monospace, "Cascadia Mono", monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* сильная ease-out: входы и нажатия */
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
/* переход по пунктам меню — плавный, но не для тех, кто просил меньше движения */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.header a:focus-visible, .section:not(.contact) a:focus-visible, .p-body a:focus-visible { outline-color: var(--blue); }
::selection { background: rgba(31, 163, 242, .28); color: inherit; }
html { scrollbar-color: #b9c3d9 var(--paper); accent-color: var(--blue); caret-color: var(--blue); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
/* знак не сжимается: длинные армянские пункты меню раньше сплющивали логотип */
.brand, .brand img { flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); text-decoration: none; }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.langs button {
  border: 0; background: none; cursor: pointer;
  font: 500 13px/1 var(--font); color: var(--muted);
  min-height: 32px; padding: 7px 11px; border-radius: 999px;
}
@media (pointer: coarse) { .langs button { min-height: 44px; min-width: 44px; } }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

@media (max-width: 900px) {
  .header .wrap { gap: 12px; }
  .menu-btn { display: block; order: 4; margin-left: 0; }
  .langs { margin-left: auto; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .langs { order: 3; }
}
/* армянское меню на ~200px шире русского и английского — бургер включается раньше */
@media (max-width: 1180px) {
  html:lang(hy) .header .wrap { gap: 12px; }
  html:lang(hy) .menu-btn { display: block; order: 4; margin-left: 0; }
  html:lang(hy) .langs { margin-left: auto; order: 3; }
  html:lang(hy) .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line);
  }
  html:lang(hy) .nav.open { display: flex; }
  html:lang(hy) .nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
}
/* мобильное меню выезжает из-под шапки. Переход только у открытого: закрытие мгновенное, иначе при смене языка
   или ширины окна закрытое меню просвечивало, пока гасло */
.nav.open { transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
@starting-style { .nav.open { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 420px) { .brand img { height: 24px; } .langs button { padding: 7px 8px; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 80px 0 72px;
}
/* знак логотипа без надписи — водяной знак за текстом, в тон фона */
.hero::before {
  content: ""; position: absolute; left: max(-60px, calc(50% - 660px)); top: 50%; translate: 0 -50%;
  width: 560px; aspect-ratio: 89 / 103;
  background: linear-gradient(160deg, rgba(31, 163, 242, .2), rgba(31, 163, 242, .06));
  -webkit-mask: url(img/mark.svg) center / contain no-repeat; mask: url(img/mark.svg) center / contain no-repeat;
  pointer-events: none;
}
@media (max-width: 760px) { .hero::before { width: 340px; left: -90px; top: 38%; } }
/* тихая сеть узлов (fx.js): только справа, за панелью клиентов; под заголовком её нет */
.fx-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-net {
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, rgba(0, 0, 0, .5) 60%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 35%, rgba(0, 0, 0, .5) 60%, #000 85%);
}
@media (max-width: 760px) {
  .hero-net { -webkit-mask-image: linear-gradient(180deg, transparent 45%, #000 100%); mask-image: linear-gradient(180deg, transparent 45%, #000 100%); }
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
/* новость о LSBank Web — строка-ссылка под кнопками, не плашка над заголовком */
.news { display: inline-block; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 15px; }
.news::after { content: " →"; color: var(--cyan); }
.news:hover { color: #fff; }
.badge { font: 600 12px/1 var(--font); font-style: normal; display: inline-block; margin-right: 10px; padding: 5px 8px; border-radius: 6px; background: var(--blue); color: #fff; }
.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; border-top: 1px solid var(--line-dark); }
.p-stats div { padding: 22px 20px 0 0; }
.p-stats div + div { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.p-stats b { display: block; font-size: 38px; font-weight: 600; line-height: 1; color: var(--cyan); font-variant-numeric: tabular-nums; }
.p-stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted-dark); }
@media (max-width: 760px) {
  .p-stats { grid-template-columns: 1fr 1fr; }
  .p-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
}
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); margin: 0 0 22px; }
.hero .lead { font-size: 19px; color: var(--muted-dark); max-width: 38em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; min-height: 44px;
  font: 600 15px/1 var(--font); text-decoration: none !important;
  transition: transform .16s var(--ease-out), background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -10px rgba(27, 99, 232, .8); }
.btn-primary:hover { background: #1552c4; }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.panel {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 22px 24px;
}
/* стенд с 30-летия: белая стена и синий щит, обрезанный по краю стены; список клиентов написан на синем щите.
   Отступы — края щита на фото: слева 27.7%, сверху 17.4%.
   Шрифт растёт с шириной фото (cqi); на узком телефоне список остаётся обычной панелью под фото. */
.hero-side { position: relative; container-type: inline-size; }
.hero-stand { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(31, 163, 242, .3)); }
@container (max-width: 359px) { .hero-side .panel { margin-top: 16px; } }
@container (min-width: 360px) {
  .hero-side .panel { position: absolute; left: 27.7%; top: 17.4%; right: 0; bottom: 0; overflow: hidden;
    background: none; border: 0; border-radius: 0; padding: 3% 4%; display: flex; flex-direction: column; justify-content: center; }
  .hero-side .panel-title { color: rgba(255, 255, 255, .75); font-size: min(13px, 2.8cqi); margin-bottom: 1cqi; }
  .hero-side .panel li { padding: min(7px, 1.2cqi) 0; font-size: min(14px, 3cqi); line-height: 1.3; border-color: rgba(255, 255, 255, .2); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
  .hero-side .panel li:lang(hy) { font-size: min(13.5px, 2.8cqi); } /* армянские названия длиннее */
  .hero-side .panel li span:last-child { color: #fff; }
}
.panel-title { font: 600 13px/1.3 var(--font); color: var(--muted-dark); margin-bottom: 8px; }
.panel li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.panel li:last-child { border-bottom: 0; }
.panel li span:last-child { font-family: var(--mono); color: var(--cyan); white-space: nowrap; }

@media (max-width: 900px) {
  .hero { padding: 64px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- stats ---------- */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 34px 28px 34px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 22em; }
@media (max-width: 700px) {
  .stats .wrap { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 22px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); }
.section-head p { color: var(--muted); font-size: 18px; }
.skip-history { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 500; }
@media (max-width: 800px) {
  .section { padding: 64px 0; }
  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
}

/* about */
/* «О компании»: сверху абзац о компании, под ним команда — текст слева, цифры справа */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.about-lead p { max-width: 46em; font-size: 20px; color: var(--ink); }
.about-more { margin-top: 12px; }
.about-more summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--blue); }
.about-more p { max-width: 46em; margin-top: 16px; color: var(--muted); }
.side h3 { font: 600 14px/1.3 var(--font); color: var(--ink); margin-bottom: 12px; }
.side ul + h3 { margin-top: 34px; }
.checks li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 18px; width: 10px; height: 10px; border-radius: 3px;
  background: var(--blue);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 500 13px/1 var(--mono); padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; gap: 40px; } }

/* products */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; color: inherit; text-decoration: none !important;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
/* на касании :hover залипает: карточка оставалась приподнятой */
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: #b9c8ea; transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(10, 15, 54, .35); }
}
.card .tag { order: 9; margin-top: auto; padding-top: 18px; font: 500 12px/1.5 var(--mono); color: var(--muted); }
.card h3 { font-size: 24px; margin: 0 0 6px; }
.card .tagline { font-weight: 500; color: var(--ink); }
.card p { color: var(--muted); font-size: 15px; margin-top: 10px; }
.card .more { order: 10; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--blue); }
.card .more::after { content: " →"; }
.card.feature { grid-column: 1 / -1; background: var(--ink); color: #fff; border-color: var(--ink); }
.card.feature .tagline { color: #fff; }
.card.feature p { color: var(--muted-dark); }
.card.feature .more { color: var(--cyan); }
.card.feature .tag { color: var(--muted-dark); }
.card.feature .promise { color: #fff; margin-top: 12px; }
.cards:empty { display: none; }
.cards + .cards { margin-top: 18px; }
.card.feature .badge { order: -1; align-self: flex-start; justify-self: start; margin: 0 0 14px; }
.card.feature h3 { font-size: 32px; }
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; margin: 56px 0 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.sub-head p { max-width: 36em; }
.sub-head h3 { font-size: 22px; }
.sub-head p { color: var(--muted); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .card.feature { grid-column: auto; }
}

/* clients */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 128px; display: flex; flex-direction: column; }
.client .logo { height: 40px; margin-bottom: 14px; display: flex; align-items: center; }
.client .logo:empty { display: none; }
@media (min-width: 561px) { .client .logo:empty { display: flex; } }
.client .logo img { max-height: 40px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
.client .name { font-weight: 600; font-size: 17px; line-height: 1.35; }
.client .meta { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.client .meta span:first-child { color: var(--blue); }
.client .meta .since { font-family: var(--mono); white-space: nowrap; color: var(--muted); }
@media (min-width: 901px) {
  .clients > .client:last-child:nth-child(3n+1) { grid-column: 1 / -1; min-height: 0; }
  .clients > .client:last-child:nth-child(3n+2) { grid-column: span 2; }
}
.also-clients:not(:empty) { margin-top: 28px; }
.also-clients .chips li { font: 500 14px/1.35 var(--font); padding: 9px 12px; }
.also-clients h3 { font: 600 15px/1.4 var(--font); color: var(--ink); margin-bottom: 12px; }
.former-clients { margin-top: 22px; max-width: 75ch; color: var(--muted); font-size: 15px; }
.former-clients b { color: var(--ink); font-weight: 600; margin-right: 4px; }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  /* на телефоне клиенты — плотный список, а не стопка карточек */
  .clients { grid-template-columns: 1fr; border-left: 0; }
  .client { min-height: 0; padding: 16px 0; border-right: 0; }
  .client .logo { height: 28px; margin-bottom: 8px; }
  .client .logo img { max-height: 28px; max-width: 140px; }
  .client .meta { padding-top: 6px; }
}

/* history */
.timeline { position: relative; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }
.timeline .year { font: 600 22px/1.3 var(--mono); color: var(--blue); font-variant-numeric: tabular-nums; }
.timeline p { color: var(--ink); max-width: 46em; }
@media (max-width: 560px) {
  /* 26 лет истории на телефоне: плотнее строки, мельче год */
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding: 14px 0; }
  .timeline .year { font-size: 18px; }
  .timeline p { font-size: 15px; line-height: 1.5; }
}

/* Тоннель лет (fx.js): полоса на всю ширину прилипает к экрану, прокрутка ведёт камеру сквозь арки */
#history { overflow-x: clip; }
#history:has(.tunnel) { padding-bottom: 0; }
/* на событие ~40% экрана прокрутки — успеть прочитать подпись */
.tunnel { height: calc(var(--n) * 40vh + 100vh); width: 100vw; margin: 0 calc(50% - 50vw); background: var(--ink); }
.timeline.tl-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tn-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 600px; perspective-origin: var(--tx) 42%;
  --tx: 50%; /* центр тоннеля по горизонтали; на широком экране левее, справа подпись */
  --r: 70vmin; /* диаметр арки */
  background: radial-gradient(ellipse at 50% 45%, var(--ink-2), var(--ink) 70%); }
.tn-world { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.tn-ring { position: absolute; left: var(--tx); top: 45%; width: var(--r); height: var(--r); margin: calc(var(--r) / -2) 0 0 calc(var(--r) / -2);
  border-radius: 50%; border: .9vmin solid #fff; box-shadow: 0 0 3vmin var(--cyan), inset 0 0 3vmin var(--cyan);
  clip-path: inset(-4vmin -4vmin 22% -4vmin); } /* арка: низ круга срезан полом; сверху и с боков запас под свечение (иначе оно обрезалось квадратом) */
.tn-ring span { position: absolute; top: calc(var(--r) * .05); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font: 600 calc(var(--r) * .08)/1 var(--mono); color: #fff; text-shadow: 0 0 2vmin var(--cyan); }
.tn-floor { position: absolute; left: var(--tx); top: calc(45% + var(--r) * .28); width: calc(var(--r) * .37); margin-left: calc(var(--r) * -.185);
  transform-origin: top center; transform: rotateX(-90deg); /* дорожка уходит вглубь */
  background: linear-gradient(90deg, transparent, rgba(27, 99, 232, .45) 12% 88%, transparent); }
.tn-end { position: absolute; left: var(--tx); top: 45%; width: 30vmin; height: 30vmin; margin: -15vmin 0 0 -15vmin; border-radius: 50%;
  display: grid; place-items: center; background: radial-gradient(var(--ink-2), var(--ink)); box-shadow: 0 0 6vmin rgba(31, 163, 242, .35); }
.tn-end img { width: 45%; filter: invert(1) sepia(1) saturate(6) hue-rotate(170deg) drop-shadow(0 0 2vmin var(--cyan)); }
.tn-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14vh 16px 6vh; text-align: center; color: #fff;
  background: linear-gradient(transparent, var(--ink) 24%); } /* телефон: подпись на плотной подложке, метки колец сквозь текст не читаются */
.tn-cap b { display: block; font: 600 clamp(34px, 6vw, 64px)/1 var(--mono); text-shadow: 0 0 24px var(--cyan); font-variant-numeric: tabular-nums; }
.tn-cap p { max-width: 46em; min-height: 4.8em; margin: 14px auto 0; color: var(--muted-dark); font-size: clamp(15px, 1.6vw, 19px); line-height: 1.6;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; } /* телефон: длинный год не закрывает арку; полный текст — в списке для читалок */
.tn-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left; transform: scaleX(0); }

  .tn-pics { display: flex; align-items: flex-end; justify-content: center; gap: 12px; margin-top: 16px; }
  .tn-cap img { display: block; width: min(220px, 50vw); height: auto; border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 0 24px rgba(31, 163, 242, .35); }
  /* сертификат года — меньше фото, на белом, как лист бумаги */
  .tn-cap .tn-cert { width: auto; height: 80px; padding: 3px; background: #fff; border-radius: 6px; }
@media (min-width: 900px) {
  .tn-stage { --tx: 34%; --r: min(56vmin, 32vw); } /* арка с запасом не доходит до подписи справа */
  .tn-cap { left: auto; right: 0; top: 0; width: 42%; padding: 0 max(24px, calc(50vw - 590px)) 0 48px; display: flex; flex-direction: column;
    justify-content: center; text-align: left; background: linear-gradient(90deg, transparent, rgba(10, 15, 54, .9) 30%); }
  .tn-cap b { font-size: clamp(34px, 4.4vw, 54px); }
  .tn-cap p { margin: 16px 0 0; min-height: 0; display: block; overflow: visible; font-size: clamp(15px, 1.3vw, 17px); } /* длинные годы (до 600 знаков) не давят на арку */
  .tn-pics { justify-content: flex-start; gap: 16px; margin-top: 24px; }
  .tn-cap img { width: min(300px, 62%); }
  .tn-cap .tn-cert { height: 112px; }
}

/* contact */
.contact { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
/* карта Армении — водяной знак справа, как знак логотипа в hero */
.contact::before {
  content: ""; position: absolute; z-index: -1; right: max(-80px, calc(50% - 700px)); top: 50%; translate: 0 -50%;
  width: 520px; aspect-ratio: 241 / 243;
  background: linear-gradient(160deg, rgba(31, 163, 242, .2), rgba(31, 163, 242, .05));
  -webkit-mask: url(img/armenia.svg) center / contain no-repeat; mask: url(img/armenia.svg) center / contain no-repeat;
  pointer-events: none;
}
@media (max-width: 760px) { .contact::before { width: 320px; right: -110px; top: 30%; } }
.contact .section-head p { color: var(--muted-dark); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.contact-grid div { padding: 24px 24px 0 0; }
.contact-grid div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.contact-grid dt { font: 600 13px/1.3 var(--font); color: var(--muted-dark); margin-bottom: 8px; }
.contact-grid dd { margin: 0; font-size: 17px; }
.contact-grid a { color: #fff; }
.contact-grid small { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted-dark); }
/* что будет после письма — над кнопками, крупнее подписи: это обещание, а не примечание */
.contact-next { margin: 40px 0 0; font-size: 19px; }
.contact .actions { margin-top: 18px; align-items: center; }
.copy { border: 0; background: none; cursor: pointer; min-height: 44px; padding: 0 8px; font: 500 15px/1 var(--font); color: var(--muted-dark);
  text-decoration: underline; text-underline-offset: 4px; transition: color .15s ease; }
.copy:hover { color: #fff; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid div:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid div, .contact-grid div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
}

/* footer */
.footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.footer .f-contacts { display: flex; flex-wrap: wrap; gap: 6px 24px; }
@media (max-width: 900px), (pointer: coarse) {
  .brand, .contact-grid dd a, .footer .f-contacts a, .footer .f-contacts span { display: inline-flex; align-items: center; min-height: 44px; }
}
.footer a { color: #fff; }
.footer img { height: 22px; width: auto; }

/* ---------- product page ---------- */
.p-hero { background: var(--ink); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.p-hero .wrap { position: relative; z-index: 1; }
.back { display: inline-block; color: var(--muted-dark); font-size: 14px; margin-bottom: 32px; }
.back::before { content: "← "; }
.back:hover { color: #fff; }
.p-hero h1 { font-size: clamp(38px, 6vw, 64px); margin: 14px 0 10px; }
.p-hero .tagline { font-size: 22px; color: #fff; }
.p-hero .summary { font-size: 18px; color: var(--muted-dark); max-width: 44em; margin-top: 18px; }
.p-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; padding: 72px 0 96px; }
.p-body h2 { font-size: 26px; margin-bottom: 18px; }
.p-shot { margin: 0 0 48px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #f2f2f2; }
.p-shot img { display: block; width: 100%; height: auto; }
.p-shot figcaption { padding: 10px 16px; font-size: 14px; color: var(--muted); background: var(--surface); border-top: 1px solid var(--line); }
.p-shot + .p-shot { margin-top: -24px; }
.box.shot { padding: 0; overflow: hidden; background: #fff; }
.shot img { display: block; width: 100%; height: auto; }
.p-hero .actions { margin-top: 28px; }
.p-cta { background: var(--ink); color: #fff; padding: 64px 0; }
.p-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.p-cta h2 { font-size: clamp(26px, 3vw, 34px); }
.p-cta p { color: var(--muted-dark); margin-top: 10px; max-width: 40em; }
.p-cta .actions { margin-top: 0; }
.p-hero .badge { margin: 0 0 18px; }
.p-body section + section { margin-top: 48px; }
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.card.feature .badge { background: var(--cyan); color: var(--ink); }
.card.feature { padding: 34px; }
.card.feature p { font-size: 16px; max-width: 40em; }
@media (min-width: 1001px) {
  /* одинокая последняя карточка в ряду (после карточки на всю ширину) — тоже на всю ширину */
  .cards.seg > .card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .cards.seg > .card:only-child { display: grid; grid-template-columns: 1fr 1.4fr; column-gap: 48px; }
  .cards.seg > .card:only-child > * { grid-column: 1; }
  .cards.seg > .card:only-child > p { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .card.feature { display: grid; grid-template-columns: 1.25fr 1fr; column-gap: 56px; }
  .card.feature > * { grid-column: 1; }
  .card.feature .card-stats { grid-column: 2; grid-row: 1 / span 6; align-self: center; grid-template-columns: 1fr 1fr; margin-top: 0; border-top: 0; }
  .card.feature .card-stats div { padding: 18px 16px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .card.feature .card-stats div:nth-child(even) { border-left: 1px solid var(--line-dark); }
}
.card-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px; border-top: 1px solid var(--line-dark); }
.card-stats div { padding: 18px 14px 0 0; }
.card-stats div + div { padding-left: 14px; border-left: 1px solid var(--line-dark); }
.card-stats b { display: block; font-size: 30px; font-weight: 600; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.card-stats span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted-dark); }
@media (max-width: 640px) {
  .card-stats { grid-template-columns: 1fr 1fr; }
  .card-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
}
.modules li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-weight: 500; }
.aside { display: flex; flex-direction: column; gap: 18px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.box h3 { font: 600 14px/1.3 var(--font); color: var(--ink); margin-bottom: 12px; }
.box .list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.box .list li:last-child { border-bottom: 0; }
/* презентации системы: название — ссылка, под ней формат и размер */
.docs li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.docs li:first-child { padding-top: 0; }
.docs li:last-child { border-bottom: 0; padding-bottom: 0; }
.docs a { display: block; font-weight: 500; color: var(--ink); }
.docs a::after { content: " ↗"; color: var(--blue); }
.docs a:hover { color: var(--blue); }
.docs span { display: block; margin-top: 2px; font: 500 12px/1.5 var(--mono); color: var(--muted); }
.box .list a { color: var(--ink); font-weight: 500; }
.box .list a:hover { color: var(--blue); }
@media (max-width: 860px) {
  .p-body { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 64px; }
  .modules { grid-template-columns: 1fr; }
}

/* армянский: без капса и разрядки, меньше заголовок первого экрана */
:lang(hy) .hero h1 { font-size: clamp(30px, 3.6vw, 46px); }
:lang(hy) .p-hero h1 { font-size: clamp(32px, 4.6vw, 52px); }

/* команда */
/* команда — правая колонка блока «О компании»: факты рядом с историей */
.team-side { margin-top: 56px; }
.team-side h3 { font-size: 26px; font-weight: 600; margin-bottom: 14px; }
.team-side p { color: var(--muted); }
.team-photo { margin: 40px 0 0; }
.team-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.team-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.mgmt { margin-top: 48px; }
.mgmt h3 { font-size: 26px; margin-bottom: 18px; }
.mgmt-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mgmt-list li { display: flex; align-items: center; gap: 20px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mgmt-list .avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--blue); }
.mgmt-list b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); }
.mgmt-list li div span { display: block; margin-top: 4px; font-size: 15px; color: var(--muted); }
.sub-title { font-size: 22px; margin: 48px 0 20px; }
.section-head + .sub-title { margin-top: 0; }
.svc-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.svc-groups h4 { font-size: 17px; margin: 0 0 8px; }
.press { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.press-item { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; }
.press-item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.press-item div { padding: 18px 22px 22px; }
.press-src { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.press-item b { font-size: 17px; font-weight: 600; line-height: 1.4; }
.press-item:hover b { color: var(--blue); }
@media (max-width: 700px) { .press { grid-template-columns: 1fr; } }
/* сертификаты и награды: сканы целиком (contain), клик открывает крупный скан */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
/* min-width и перенос: длинное армянское слово («առևտրաարդյունաբերական») вылезало на соседнюю подпись */
.cert { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.cert img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s ease; }
.cert b { color: var(--blue); font-family: var(--mono); font-weight: 600; }
.cert:hover img { border-color: var(--blue); }
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; display: flex; flex-direction: column; }
.review img { max-height: 32px; max-width: 150px; width: auto; height: auto; align-self: flex-start; margin-bottom: 14px; }
.review h4 { font-size: 17px; margin-bottom: 10px; color: var(--ink); }
.review blockquote { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.review figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mgmt-list { grid-template-columns: 1fr; }
  .svc-groups { grid-template-columns: 1fr; gap: 32px; }
}
.team-stats { border-top: 1px solid var(--line); }
.team-stats div { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.team-stats b { display: block; font-size: 34px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.team-stats b { font-size: 28px; }
.team-stats span { font-size: 15px; color: var(--muted); }

/* шаги перехода на странице продукта */
.sec-lead { color: var(--muted); margin: -6px 0 16px; max-width: 40em; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 12px 0 12px 48px; border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 14px/1 var(--mono); color: var(--blue); border: 1px solid #c8d6f3; background: var(--surface);
}

/* 404 (собирается в tools/build.mjs): тёмный экран под шапкой, как у страниц систем; карта Армении — водяной знак */
.nf-page { min-height: 100dvh; display: flex; flex-direction: column; background: var(--ink); }
.nf-page .header .wrap { justify-content: space-between; }
.nf-page .langs a { display: inline-flex; align-items: center; min-height: 32px; padding: 7px 11px; border-radius: 999px; font: 500 13px/1 var(--font); color: var(--muted); }
.nf-page .langs a[aria-current] { background: var(--ink); color: #fff; }
.nf { flex: 1; display: flex; align-items: center; padding: 72px 0 96px; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.nf::before {
  content: ""; position: absolute; z-index: -1; right: max(-80px, calc(50% - 700px)); top: 50%; translate: 0 -50%;
  width: min(520px, 80vw); aspect-ratio: 241 / 243;
  background: linear-gradient(160deg, rgba(31, 163, 242, .2), rgba(31, 163, 242, .05));
  -webkit-mask: url(img/armenia.svg) center / contain no-repeat; mask: url(img/armenia.svg) center / contain no-repeat;
}
.nf-code { display: block; font: 600 clamp(72px, 14vw, 160px)/1 var(--mono); letter-spacing: -.04em; color: var(--cyan); font-variant-numeric: tabular-nums; }
.nf h1 { font-size: clamp(30px, 4vw, 48px); margin: 18px 0 14px; }
.nf .lead { max-width: 36em; font-size: 19px; color: var(--muted-dark); }
.nf-mail { margin-top: 28px; color: var(--muted-dark); }
.nf-mail a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; }
