/* Сайт «Каравелла». Цвета и шрифты — tokens.css (дизайн-система), здесь сетка, типографика и блоки.
   Подход: сайт как отчёт о работающих объектах. Белый лист, текст по левому краю, фото крупно и почти без
   скруглений, подписи к фото как в отчёте о монтаже. Списки и строки отделяются линиями, а не карточками.
   Карточкой оформлены только форма заявки и одна выноска на странице продукта. Тёмный блок один: заявка.
   Орнамент оймо: кайма под каталогом и медальон в заявке. */

:root {
  --band: #0b2850;                         /* блок заявки */
  --band-ink: #ffffff;
  --band-muted: rgba(255, 255, 255, .74);
  --live: #1f9254;                         /* «работает»: точка у подписи к фото */
  --r-img: 4px;
  --r-ctl: 8px;
  --r-panel: 12px;
  --wrap: 1240px;
  --gut: 24px;
  --sec: clamp(52px, 6.2vw, 92px);
  --sec-tight: clamp(28px, 3.6vw, 48px);
  --fs-display: clamp(38px, 5.1vw, 72px);
  --fs-h1: clamp(30px, 3.3vw, 46px);
  --fs-h2: clamp(24px, 2.3vw, 32px);
  --fs-lead: clamp(18px, 1.45vw, 21px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --band: #17386b; --band-muted: rgba(255, 255, 255, .78); --live: #3ccf7a; }
}
:root[data-theme="dark"] { --band: #17386b; --band-muted: rgba(255, 255, 255, .78); --live: #3ccf7a; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; }
/* плавная прокрутка только после загрузки: страница, открытая по якорю, сразу на месте */
@media (prefers-reduced-motion: no-preference) { html.is-ready { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--surface); color: var(--ink-body);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: var(--r-ctl); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip:focus { left: 16px; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}

/* ---------- типографика */
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--accent); }
.display { font-family: var(--font-display); font-size: var(--fs-display); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.08; font-weight: 700; letter-spacing: -.028em; color: var(--ink); text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: 1.15; font-weight: 650; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.h3 { font-family: var(--font-display); font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.lead { margin-top: 24px; max-width: 34em; font-size: var(--fs-lead); line-height: 1.5; text-wrap: pretty; }
.stitle { display: grid; gap: 16px; max-width: 820px; margin-bottom: clamp(32px, 4vw, 56px); }
.stitle .eyebrow { margin-bottom: -4px; }
.stitle-lead { max-width: 40em; font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.stitle .h2 + .stitle-lead { font-size: 17px; }

/* ---------- кнопки и метки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border: 1.5px solid transparent; border-radius: var(--r-ctl); font: inherit; font-size: 16px; line-height: 1.2; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--brand); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-arrow { display: inline-grid; place-items: center; transition: transform .15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 600; }

.tag-new { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--kun); color: var(--ink-on-light); font-family: var(--font-sans); font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .02em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 14px; line-height: 1.35; font-weight: 600; white-space: nowrap; text-decoration: none; }
.chip-sm { padding: 1px 7px; font-size: 12px; color: var(--ink-muted); }
.chip-lg { padding: 7px 14px; font-size: 15px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- шапка */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { position: relative; display: flex; align-items: center; gap: 32px; min-height: 76px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--ink); text-decoration: none; }
.lockup-mark { display: block; width: auto; height: 40px; }
.lockup-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lockup-name { font-family: var(--font-display); font-size: 25px; line-height: 28px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); white-space: nowrap; }
.lockup-tag { font-size: 13px; line-height: 16px; font-weight: 500; color: var(--ink-muted); white-space: nowrap; }
.lockup-lg { gap: 14px; }
.lockup-lg .lockup-mark { height: 58px; }
.lockup-lg .lockup-name { font-size: 30px; line-height: 34px; }
/* знак-парусник нарисован на светлом: в тёмной теме подкладываем светлую плашку (брендбук) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lockup-ship { box-sizing: content-box; padding: 3px 5px; border-radius: 8px; background: #eff7ff; } }
[data-theme="dark"] .lockup-ship { box-sizing: content-box; padding: 3px 5px; border-radius: 8px; background: #eff7ff; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 16px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-menu-cta { display: none; }
.nav-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-links + .nav-end { margin-left: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .i-close { display: none; }
.menu-open .nav-toggle .i-open { display: none; }
.menu-open .nav-toggle .i-close { display: block; }
.nav-toggle span { display: grid; place-items: center; }

/* переключатель языка: неактивные тёмным текстом (видно, что на них можно нажать), текущий с тёмной заливкой */
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); }
.lang a { padding: 6px 10px; border-radius: 5px; color: var(--ink-body); font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: .03em; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.lang a:hover { background: var(--surface-tint); color: var(--ink); }
.lang a[aria-current="page"] { background: var(--ink); color: var(--surface); }
.nav-menu-lang { display: none; }

/* подсказка «Сайт есть на русском языке»: только на кыргызских страницах, её включает скрипт в <head> */
.lang-hint { display: none; border-bottom: 1px solid var(--line); background: var(--surface-tint); color: var(--ink); }
.lang-hint-on .lang-hint { display: block; }
.lang-hint-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.lang-hint p { font-size: 15px; line-height: 20px; font-weight: 600; }
.lang-hint-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.lang-hint-stay { padding: 8px 12px; border: 0; border-radius: var(--r-ctl); background: transparent; color: var(--ink-muted); font: inherit; font-size: 14px; line-height: 20px; cursor: pointer; }
.lang-hint-stay:hover { color: var(--ink); text-decoration: underline; }

/* ---------- первый экран */
.hero-wrap { padding-top: clamp(16px, 3vw, 40px); }
.hero { padding-bottom: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 80px); align-items: center; }
.hero-copy { min-width: 0; }
@media (min-width: 641px) { .hero .display { hyphens: manual; } }
.hero-media { position: relative; margin: 0; min-width: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); background: var(--surface-tint); }
.hero-media-square img { aspect-ratio: 1 / 1; }
.hero-media-contain img { object-fit: contain; padding: 16px; background: #ffffff; border: 1px solid var(--line); }
.media-cap { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--ink-muted); }
.media-cap::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.hero-visual { display: grid; place-items: center; min-height: 360px; border-radius: var(--r-img); background: var(--surface-tint); }
.hero-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); }
.hero-proof li { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 0 0; min-width: 0; }
.hero-proof li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-proof b { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 46px); line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-proof span { max-width: 24ch; font-size: 15px; line-height: 1.45; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(20px, 3vw, 36px); font-size: 14px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); }

/* основатель под кнопками первого экрана */
.hero-founder { display: flex; align-items: center; gap: 14px; max-width: 520px; margin-top: 40px; color: inherit; text-decoration: none; }
.hero-founder img { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.hero-founder > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-founder-q { font-family: var(--font-display); font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--ink); text-wrap: balance; transition: color .15s ease; }
.hero-founder small { font-size: 14px; line-height: 1.4; color: var(--ink-muted); }
.hero-founder:hover .hero-founder-q { color: var(--accent); }

/* ---------- разделы */
.section { padding-block: var(--sec); }
.section-tight { padding-block: var(--sec-tight); }
.section-band { background: var(--surface-tint); }

/* ---------- каталог продуктов (главная) */
.catalog { border-top: 1px solid var(--ink); }
.catalog > li { border-bottom: 1px solid var(--line); }
.cat { display: grid; grid-template-columns: 32px minmax(0, 1.1fr) minmax(0, 1fr) 24px; gap: 10px 32px; align-items: center; margin-inline: -16px; padding: 28px 16px; color: inherit; text-decoration: none; transition: background-color .15s ease; }
.cat:hover { background: var(--surface-tint); }
.cat-ico { align-self: start; padding-top: 4px; color: var(--accent); }
.cat-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cat-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
.cat-short { max-width: 34em; font-size: 16px; line-height: 1.5; }
.cat-text { min-width: 0; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.cat-text .plate { width: min(100%, 200px); margin-top: 14px; }
.cat-go { justify-self: end; color: var(--ink); transition: transform .2s ease; }
.cat:hover .cat-go { transform: translateX(4px); }
.cat:hover .cat-name { color: var(--accent); }

/* госномер КР в строке «Парковки»: SVG по образцу стандарта 520×112 мм */
.plate { display: block; width: min(100%, 340px); height: auto; filter: drop-shadow(0 1px 2px rgba(11, 40, 80, .16)); }

/* «ПО разработано в Кыргызстане»: кайма оймо и строка текста */
.made { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 14px 32px; align-items: baseline; margin-top: clamp(36px, 4vw, 56px); }
.band { grid-column: 1 / -1; height: 24px; background: var(--brand); opacity: .5; -webkit-mask: url(../img/oymo-band.svg) 0 50% / auto 24px repeat-x; mask: url(../img/oymo-band.svg) 0 50% / auto 24px repeat-x; }
.made-title { font-family: var(--font-display); font-size: 20px; line-height: 1.3; font-weight: 650; color: var(--ink); }
.made-text { font-size: 16px; line-height: 1.5; }

/* кейс: одна история крупно, без карточки */
.case { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px clamp(32px, 5vw, 80px); align-items: start; padding-block: clamp(28px, 3.5vw, 44px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.case .eyebrow { grid-column: 1 / -1; margin: 0; }
.case-title { font-family: var(--font-display); font-size: var(--fs-h1); line-height: 1.08; font-weight: 700; letter-spacing: -.028em; color: var(--ink); text-wrap: balance; transition: color .15s ease; }
.case-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 6px; }
.case-text { max-width: 30em; font-size: 18px; line-height: 1.55; }
.case:hover .case-title { color: var(--accent); }

/* ---------- отдельное направление: промышленность и города */
.niche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.niche-card { display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; }
.niche-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-img); background: #ffffff; }
.niche-body { display: flex; flex-direction: column; gap: 6px; }
.niche-for { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--accent); }
.niche-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; color: var(--ink); transition: color .15s ease; }
.niche-title svg { transition: transform .2s ease; }
.niche-text { max-width: 36em; font-size: 16px; line-height: 1.55; }
.niche-card:hover .niche-title { color: var(--accent); }
.niche-card:hover .niche-title svg { transform: translateX(4px); }

/* ---------- шаги на страницах продуктов */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { min-width: 0; padding-top: 18px; border-top: 1px solid var(--ink); }
.steps-img .step { padding-top: 0; border-top: 0; }
.step-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 18px; border-radius: var(--r-img); }
.step-index { display: block; margin-bottom: 10px; font-family: var(--font-display); font-size: 14px; line-height: 1; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--accent); }
.step-head .step-index { margin-bottom: 0; }
.step-title { font-family: var(--font-display); font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.step-text { margin-top: 8px; font-size: 16px; line-height: 1.55; }

/* ---------- цифры и проекты */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.kpi { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 0 0; min-width: 0; }
.kpi + .kpi { padding-left: 24px; border-left: 1px solid var(--line); }
.kpi b { font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 48px); line-height: 1; font-weight: 700; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kpi span { max-width: 26ch; font-size: 15px; line-height: 1.45; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.projects-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project { min-width: 0; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; border-radius: var(--r-img); background: var(--surface-tint); }
.project figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.project b { font-family: var(--font-display); font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.project span { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.projects-more { margin-top: clamp(40px, 5vw, 64px); }
.projects-more .h3 { margin-bottom: 8px; }
.projects-more ul { columns: 2; column-gap: 48px; }
.projects-more li { break-inside: avoid; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.projects-more b { color: var(--ink); font-weight: 600; }
.case-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 40px; margin-top: 32px; }
.case-list:first-child { margin-top: 0; }
.case-list li { display: flex; flex-direction: column; gap: 4px; padding-block: 16px; border-top: 1px solid var(--line); }
.case-list b { font-family: var(--font-display); font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.case-list span { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.cases-more { margin-top: 24px; max-width: 46em; font-size: 16px; line-height: 1.55; color: var(--ink-muted); }

/* ---------- основатель */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-img); background: var(--surface-tint); }
.founder-copy { min-width: 0; }
.founder-name { font-size: clamp(38px, 4.4vw, 60px); }
.founder-role { margin-top: 10px; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--accent); }
.founder-text { margin-top: 18px; max-width: 36em; font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.founder-quote { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.founder-quote p { max-width: 26em; font-family: var(--font-display); font-size: clamp(22px, 2.1vw, 28px); line-height: 1.3; font-weight: 600; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.founder-h { margin-top: 36px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink-muted); }
.principles { margin-top: 10px; border-top: 1px solid var(--line); }
.principles li { padding-block: 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; line-height: 1.45; font-weight: 600; }
.founder-blog { margin-top: 32px; }

/* ---------- опыт: вопрос владельца и ответ */
.lessons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; }
.lesson { position: relative; min-width: 0; padding-top: 20px; border-top: 1px solid var(--ink); }
.lesson-q { padding-right: 48px; font-family: var(--font-display); font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.lesson-a { margin-top: 10px; font-size: 16px; line-height: 1.55; }
.lesson-play { position: absolute; top: 18px; right: 0; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--brand); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.lesson-play:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lessons-foot { display: flex; align-items: center; gap: 12px; margin-top: 44px; color: var(--ink-muted); font-size: 15px; line-height: 1.5; }
.lessons-foot img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.lessons-foot a { font-weight: 600; }
.note-link, .say-by a { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 15px; line-height: 1.4; font-weight: 600; text-decoration: none; }
.note-link:hover, .say-by a:hover { color: var(--accent); }

/* ---------- слова основателя о продукте */
.say { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px 28px; align-items: start; }
.say-avatar { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.say-text p { max-width: 34em; font-family: var(--font-display); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; font-weight: 600; letter-spacing: -.015em; color: var(--ink); text-wrap: pretty; }
.say-by { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.say-by > span { display: flex; flex-direction: column; color: var(--ink-muted); font-size: 14px; line-height: 1.4; }
.say-by b { color: var(--ink); font-size: 16px; line-height: 1.4; }

.checks { display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.checks svg { margin-top: 2px; color: var(--accent); }
.facts-row { flex-direction: row; flex-wrap: wrap; gap: 14px 40px; margin-top: 44px; }
.facts-row li { align-items: center; color: var(--ink); font-size: 15px; }
.facts-row svg { margin-top: 0; }

/* ---------- для кого и как работаем */
.segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.seg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding-block: 22px; border-top: 1px solid var(--line); }
.seg > svg { margin-top: 2px; color: var(--accent); }
.seg h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.seg p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 28px; }
.pstep { min-width: 0; padding-top: 18px; border-top: 1px solid var(--ink); }
.pstep-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: var(--accent); }
.pstep-num { font-family: var(--font-display); font-size: 14px; line-height: 1; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pstep .step-title { font-size: 19px; line-height: 1.3; }
.pstep .step-text { font-size: 15px; }

/* ---------- заявка: единственный тёмный блок */
.section-cta { position: relative; overflow: hidden; background: var(--band); color: var(--band-ink); }
.cta-block { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.cta-block > * { position: relative; }
.cta-copy { min-width: 0; }
.cta-block .h1 { color: inherit; hyphens: manual; }
.cta-block > .orn-medallion { position: absolute; left: -150px; bottom: -220px; width: 460px; height: 460px; color: #ffffff; opacity: .07; pointer-events: none; }
.eyebrow-ondark { color: var(--sea); }
.cta-lead { margin-top: 18px; max-width: 32em; font-size: 18px; line-height: 1.55; color: var(--band-muted); }
.cta-direct { margin: 40px 0 14px; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--band-muted); }
.contact-lines { display: flex; flex-direction: column; gap: 16px; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; }
.contact-lines svg { margin-top: 2px; opacity: .8; }
.contact-lines span { display: flex; flex-direction: column; min-width: 0; }
.contact-lines a { color: inherit; font-size: 17px; line-height: 1.4; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines small { font-size: 13px; line-height: 1.4; color: var(--band-muted); }

.form { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-panel); background: var(--surface); color: var(--ink-body); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.4; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); opacity: .8; }
.form-note { font-size: 13px; line-height: 1.45; color: var(--ink-muted); }

/* заявка в одно касание: выбор, пара слов и WhatsApp */
.btn-wa { background: #25d366; color: #0b2850; }   /* цвет WhatsApp, тёмный текст: контраст 7:1 */
.btn-wa:hover { background: #1ebe5b; }
.ask { display: flex; flex-direction: column; gap: 18px; }
.ask-set { min-width: 0; margin: 0; padding: 0; border: 0; }
.ask-title { margin-bottom: 14px; padding: 0; font-family: var(--font-display); font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-chip { position: relative; }
.ask-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ask-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1.5px solid var(--line); border-radius: var(--r-ctl); color: var(--ink); font-size: 15px; line-height: 20px; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.ask-chip span:hover { border-color: var(--accent); }
.ask-chip .picto { color: var(--accent); }
.ask-chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.ask-chip input:checked + span .picto { color: inherit; }
.ask-chip input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.ask-send { width: 100%; min-height: 56px; font-size: 17px; }
.ask-call { margin-top: -6px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.ask-call a { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* кнопка WhatsApp в углу экрана на всех страницах */
.wa-float { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px 13px 16px; border-radius: 999px; background: #25d366; color: #0b2850; font-size: 16px; line-height: 20px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(11, 40, 80, .28); transition: opacity .2s ease, transform .2s ease; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float.is-hidden, .menu-open .wa-float { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* ---------- блоки страниц продуктов */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-flip .split-media { order: -1; }
.split-copy { min-width: 0; }
.split .stitle { margin-bottom: 24px; }
.split-media { margin: 0; min-width: 0; }
.split-media img { width: 100%; max-height: 560px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); background: var(--surface-tint); }
.split-media-contain img { object-fit: contain; padding: 24px; background: #ffffff; border: 1px solid var(--line); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 40px; }
.item { padding-block: 20px; border-top: 1px solid var(--line); }
.item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--font-display); font-size: 19px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.item p { margin-top: 6px; font-size: 16px; line-height: 1.55; }
.split .items { grid-template-columns: minmax(0, 1fr); }
.split .item { padding-block: 16px; }
.item-simple { display: flex; gap: 10px; align-items: flex-start; padding-block: 12px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; color: var(--ink); }
.item-simple svg { margin-top: 3px; color: var(--accent); }
.items-after { margin-top: 28px; }
.note { padding: clamp(28px, 4vw, 48px); border-radius: var(--r-panel); background: var(--surface-tint); }
.note p { margin-top: 12px; max-width: 46em; font-size: 17px; line-height: 1.6; }
.note-link { margin-top: 18px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 72px); }
.two-col { padding-top: 20px; border-top: 1px solid var(--ink); }
.two-col .h3 { margin-bottom: 16px; }
.fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 72px); }
.fit-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 20px; border-top: 1px solid var(--ink); }
.fit-card .btn { margin-top: 8px; }
.fit-extra { font-size: 16px; font-weight: 600; color: var(--ink); }
.others { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.other { display: grid; grid-template-columns: 26px minmax(0, 1fr) 20px; gap: 14px; align-items: start; padding-block: 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.other > svg:first-child { color: var(--accent); }
.other > svg:last-child { margin-top: 4px; color: var(--ink-muted); transition: transform .2s ease; }
.other b { display: block; font-family: var(--font-display); font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--ink); transition: color .15s ease; }
.other small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
.other:hover b { color: var(--accent); }
.other:hover > svg:last-child { transform: translateX(3px); }

/* ---------- макеты экранов для продуктов без фото */
.vis { display: grid; grid-auto-flow: column; align-items: center; justify-content: center; gap: 20px; width: 100%; height: 100%; padding: 32px; }
.vq-ticket { display: flex; flex-direction: column; gap: 4px; width: 156px; padding: 18px 20px 20px; border: 1px solid #bbd5ef; border-radius: 8px; background: #ffffff; color: #0b2850; }
.vq-ticket span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #536882; }
.vq-ticket b { font-family: var(--font-display); font-size: 42px; line-height: 44px; letter-spacing: -.03em; }
.vq-ticket small { font-size: 13px; color: #536882; }
.vq-board { min-width: 220px; padding: 18px 20px; border-radius: 10px; background: #0b2850; color: #ffffff; }
.vq-board p { margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.vq-head, .vq-board li { display: grid; grid-template-columns: 1fr 28px 40px; align-items: center; }
.vq-head { padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .15); font-size: 11px; opacity: .6; }
.vq-head span:last-child, .vq-board li b:last-child { text-align: right; }
.vq-board li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.vq-board li:last-child { border-bottom: 0; }
.vq-board li b { font-family: var(--font-display); font-size: 26px; line-height: 30px; }
.vq-board li:first-child b { color: #ffc928; }
.vq-board li span { display: grid; place-items: center; opacity: .6; }
.vl-door { position: relative; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; width: 150px; height: 240px; padding: 24px 20px; border: 1px solid var(--line); border-radius: 10px 10px 4px 4px; background: var(--surface-card); }
.vl-door span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.vl-door b { font-family: var(--font-display); font-size: 52px; line-height: 56px; letter-spacing: -.03em; color: var(--ink); }
.vl-handle { position: absolute; right: 18px; top: 50%; width: 14px; height: 60px; border-radius: 7px; background: var(--ink-muted); }
.vl-led { position: absolute; right: 22px; top: calc(50% - 22px); width: 6px; height: 6px; border-radius: 50%; background: var(--sea); }
.vl-code { display: flex; flex-direction: column; gap: 6px; min-width: 200px; padding: 20px; border-radius: 10px; background: #0b2850; color: #ffffff; }
.vl-code span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.vl-code b { font-family: var(--font-display); font-size: 36px; line-height: 40px; letter-spacing: .08em; }
.vl-code small { font-size: 13px; opacity: .8; }
.vl-code em { align-self: flex-start; margin-top: 6px; padding: 3px 9px; border-radius: 4px; background: rgba(255, 255, 255, .12); font-size: 12px; font-style: normal; font-weight: 600; }

/* ---------- подвал */
.site-footer { padding-block: clamp(48px, 6vw, 72px) 28px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot > div { min-width: 0; }
.foot-brand p { margin-top: 18px; max-width: 280px; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.foot-h { margin-bottom: 12px; font-size: 13px; line-height: 1.3; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.foot-h-sub { margin-top: 28px; }
.foot-list li { margin: 8px 0; font-size: 15px; line-height: 1.45; }
.foot-list a { color: var(--ink-body); text-decoration: none; overflow-wrap: anywhere; }
.foot-list a:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.foot-bottom a { color: inherit; }
.foot-bottom a:hover { color: var(--accent); }
.foot-legal { max-width: 860px; margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--ink-muted); }

/* ---------- страница о персональных данных */
.legal { max-width: 760px; }
.legal-sec { padding-block: 20px; border-top: 1px solid var(--line); }
.legal-sec p { margin-top: 8px; font-size: 16px; line-height: 1.6; }
.legal-basis { margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--ink-muted); }
/* политики мобильных приложений: текст как есть, разметка простая (h1–h4, p, ul, strong, a) */
.legal-doc { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.legal-doc h1, .legal-doc h2, .legal-doc h3, .legal-doc h4 { font-family: var(--font-display); color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.legal-doc h1 { font-size: var(--fs-h2); line-height: 1.15; font-weight: 700; margin-bottom: 24px; }
.legal-doc h2 { font-size: 24px; line-height: 1.25; font-weight: 650; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-doc h3 { font-size: 19px; line-height: 1.3; font-weight: 600; margin-top: 28px; }
.legal-doc h4 { font-size: 17px; line-height: 1.35; font-weight: 600; margin-top: 20px; }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin-top: 10px; }
.legal-doc ul { list-style: disc; padding-left: 1.3em; }
.legal-doc ol { list-style: decimal; padding-left: 1.3em; }
.legal-doc li + li { margin-top: 4px; }
/* 404: три языка подряд */
.nf .eyebrow { margin-bottom: 8px; }
.nf-lang + .nf-lang { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.nf-lang p { margin: 12px 0 20px; font-size: 17px; line-height: 1.55; color: var(--ink-muted); }

/* ---------- адаптив */
@media (max-width: 1180px) { /* меню в бургер: с длинной кнопкой «Объектти акысыз текшерүү» шапка не помещается */
  .nav { gap: 16px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 0 20px; border-top: 1px solid var(--line); background: var(--surface); font-size: 18px; box-shadow: 0 18px 24px -18px rgba(11, 40, 80, .35); }
  .menu-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-menu-cta { display: inline-flex; align-self: flex-start; margin-top: 18px; }
  /* в мобильном меню языки крупными кнопками с полными названиями */
  .nav-menu-lang { display: block; margin-top: 16px; }
  .nav-links .lang-full { display: flex; width: 100%; }
  .nav-links .lang-full a { flex: 1; padding: 12px 8px; text-align: center; font-size: 16px; letter-spacing: 0; }
  .nav-end, .nav-links + .nav-end { margin-left: auto; }
  .nav-toggle { display: grid; }
}
@media (max-width: 1024px) {
  .lessons, .segs, .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cat { grid-template-columns: 32px minmax(0, 1fr) 24px; }
  .cat-text { grid-column: 2; }
  .cat-go { grid-column: 3; grid-row: 1 / span 2; }
  .hero-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-proof li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-proof li:nth-child(n+3) { margin-top: 20px; border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero-grid, .founder, .cta-block, .split, .two, .fit, .case, .made { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { min-height: 0; }
  .founder-photo { max-width: 460px; }
  .split-flip .split-media { order: 0; }
  .projects-more ul { columns: 1; }
  .steps, .steps-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col + .two-col, .fit-card + .fit-card { margin-top: 32px; }
  /* пять шагов «Как мы работаем» на узком экране: строками, без пустых мест в сетке */
  .process { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pstep { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.3fr); gap: 4px 24px; align-items: baseline; padding-block: 18px; }
  .pstep-head { justify-content: flex-start; gap: 14px; margin: 0; align-self: center; }
  .pstep .step-text { margin-top: 0; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  html { scroll-padding-top: 80px; }
  .nav { min-height: 64px; gap: 10px; }
  .lockup-mark { height: 34px; }
  .lockup-name { font-size: 21px; line-height: 24px; }
  .nav-cta { display: none; }
  .lang a { padding: 9px 8px; font-size: 13px; } /* палец попадает в РУС с первого раза */
  .lang-hint p { font-size: 14px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-end { gap: 8px; }
  .lead { margin-top: 18px; }
  .actions { margin-top: 28px; }
  .actions .btn { flex: 1 1 auto; }
  .hero-founder { margin-top: 28px; }
  .hero-proof b { font-size: 30px; }
  .hero-proof span { font-size: 14px; }
  .hero-proof li + li { padding-left: 16px; }
  .hero-proof li:nth-child(3) { padding-left: 0; }
  .projects, .projects-2, .steps, .steps-3, .foot, .items, .segs, .case-list, .others, .lessons, .niche, .stats { grid-template-columns: minmax(0, 1fr); }
  .kpi + .kpi { margin-top: 16px; padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .cat { margin-inline: 0; padding: 22px 0; grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 8px 14px; }
  .cat:hover { background: transparent; }
  .cat-name { font-size: 24px; }
  .case-text { font-size: 17px; }
  .lessons { gap: 32px; }
  .pstep { grid-template-columns: minmax(0, 1fr); }
  .pstep-head { margin-bottom: 8px; }
  .say { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .say-avatar { grid-row: auto; width: 52px; height: 52px; }
  .founder-blog { width: 100%; white-space: normal; }
  .ask-chip span { padding: 8px 11px; font-size: 14px; }
  .wa-float { right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 12px 16px 12px 14px; }
  .vis { grid-auto-flow: row; justify-items: center; padding: 24px 16px; }
}
@media (max-width: 420px) {
  .nav { gap: 8px; }
  .nav .lockup { gap: 8px; }
  .nav .lockup-mark { height: 30px; }
  .nav .lockup-name { font-size: 18px; line-height: 22px; }
  .lang a { padding: 9px 6px; letter-spacing: .01em; }
}
@media (max-width: 369px) { /* на 360 px название рядом с переключателем языка уже не помещается */
  .nav .lockup-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
