
/* site.css */
/* Tirek — единый визуальный слой. Одна тёмная тема со стеклом; все цвета и размеры — в токенах ниже. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("./assets/fonts/onest-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("./assets/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("./assets/fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("./assets/fonts/onest-tenge.woff2") format("woff2"); unicode-range: U+20B8; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("./assets/fonts/onest-arrows.woff2") format("woff2"); unicode-range: U+2190-2199; }

:root {
  color-scheme: dark;
  --bg: #060913;
  --bg-2: #0a0f1e;
  --bg-3: #0d1426;
  --text: #eef1f8;
  --muted: #a4aec3;
  --faint: #6e7a92;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .15);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .022));
  --glass-solid: rgba(17, 24, 43, .72);
  --accent: #aebcff;
  --accent-2: #8c9dff;
  --accent-3: #6072f0;
  --accent-soft: rgba(140, 157, 255, .14);
  --mint: #6fe0b1;
  --grad: linear-gradient(115deg, #d3daff 0%, #a9b6ff 45%, #8193ff 100%);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .75);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .07);
  --radius: 28px;
  --radius-sm: 18px;
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(96, 114, 240, .16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(80, 120, 220, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(140, 157, 255, .35); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: #fff; color: #0b1020; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 16px; }
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ——— Общие элементы ——— */
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.section-head h2 em, .contact-panel h2 em { display: block; }
.live-dot { position: relative; display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(111, 224, 177, .16); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--mint); animation: live-ping 2.4s ease-out infinite; }
@keyframes live-ping { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2.8); } }

.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.tag { display: inline-block; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); box-shadow: var(--highlight), var(--shadow); }
.icon-badge { position: relative; display: grid; flex: none; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(190, 202, 255, .35); border-radius: 16px; background: radial-gradient(circle at 30% 20%, #c9d2ff, #8c9dff 55%, #5f71e6); color: #0d1330; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 12px 26px -8px rgba(110, 128, 255, .6); }
.icon-badge::after { content: ""; position: absolute; inset: 7px -7px -7px 7px; z-index: -1; border: 1px solid rgba(174, 188, 255, .18); border-radius: 16px; background: rgba(140, 157, 255, .08); }
.icon-badge svg { width: 24px; height: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn-accent { background: var(--grad); color: #0b1030; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 16px 34px -12px rgba(120, 140, 255, .75); }
.btn-accent:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 20px 40px -12px rgba(120, 140, 255, .9); }
.btn-light { background: var(--text); color: #0b1020; }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 14px; }
.text-link:hover { color: var(--accent); }

/* ——— Шапка: плавающая стеклянная «пилюля» ——— */
.site-header { position: fixed; inset: 12px 0 auto; z-index: 60; pointer-events: none; }
.header-inner { display: flex; align-items: center; gap: 10px; width: min(var(--container), 100% - 24px); height: var(--header-h); margin-inline: auto; padding: 0 10px 0 20px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 15, 30, .62); box-shadow: var(--highlight), 0 18px 40px -20px rgba(0, 0, 0, .8); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); pointer-events: auto; transition: background .25s ease, border-color .25s ease; }
.site-header.is-scrolled .header-inner { background: rgba(8, 12, 24, .82); border-color: var(--line-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: 22px; font-weight: 700; letter-spacing: -.05em; }
.brand-mark { display: flex; gap: 3px; transform: skewX(-18deg); }
.brand-mark i { display: block; width: 8px; height: 20px; border-radius: 5px; background: linear-gradient(180deg, #e7ebff, #8c9dff); box-shadow: 0 0 14px rgba(140, 157, 255, .45); }
.brand-mark i + i { height: 14px; margin-top: 6px; opacity: .75; }
.brand-period { color: var(--accent-2); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.main-nav > a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.main-nav > a.is-active { color: var(--text); background: rgba(140, 157, 255, .14); }
.nav-foot { display: none; }
.language-switch { display: flex; flex: none; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.language-switch a { min-width: 38px; padding: 6px 10px; border-radius: 999px; color: var(--faint); font-size: 12px; font-weight: 650; letter-spacing: .04em; text-align: center; transition: color .2s, background .2s; }
.language-switch a:hover { color: var(--text); }
.language-switch a[aria-current="page"] { background: var(--grad); color: #0b1030; }
.header-cta { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--text); color: #0b1020; font-size: 14px; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(255, 255, 255, .5); }
.menu-toggle { display: none; }

/* ——— Первый экран ——— */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 150px 0 40px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero-bg i:nth-child(1) { right: -8%; top: -10%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(96, 114, 240, .55), transparent 65%); animation: glow-drift 16s ease-in-out infinite alternate; }
.hero-bg i:nth-child(2) { right: 22%; top: 38%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(111, 224, 177, .16), transparent 65%); animation: glow-drift 20s ease-in-out infinite alternate-reverse; }
.hero-bg i:nth-child(3) { left: -12%; top: 10%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(140, 157, 255, .2), transparent 65%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%); }
@keyframes glow-drift { to { transform: translate(-40px, 30px) scale(1.08); } }

.hero-layout { display: block; }
.hero-copy { max-width: 920px; margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.hero h1 { max-width: 17ch; margin: 24px auto 20px; font-size: clamp(40px, 5.6vw, 72px); line-height: 1; letter-spacing: -.045em; }
.hero-lead { max-width: 54ch; margin-inline: auto; color: var(--muted); font-size: 18px; line-height: 1.6; }

.hero-ai-entry { position: relative; isolation: isolate; margin: 32px auto 0; max-width: 700px; }
.hero-ai-entry::before { content: ""; position: absolute; z-index: -1; inset: -18px -24px; border-radius: 36px; background: radial-gradient(ellipse at 24% 50%, rgba(140, 157, 255, .23), transparent 52%), radial-gradient(ellipse at 82% 52%, rgba(111, 224, 177, .16), transparent 48%); filter: blur(17px); opacity: .62; pointer-events: none; animation: hero-ai-aura 8s ease-in-out infinite alternate; }
.hero-ai-overline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 10px; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.hero-ai-overline strong { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.hero-ai-form { margin: 0; }
.hero-ai-field { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border: 1px solid transparent; border-radius: 24px; background: linear-gradient(rgba(14, 20, 38, .94), rgba(14, 20, 38, .94)) padding-box, linear-gradient(120deg, rgba(174, 188, 255, .62), rgba(255, 255, 255, .12) 40%, rgba(111, 224, 177, .38)) border-box; background-size: auto, 220% 220%; background-position: 0 0, 12% 50%; box-shadow: 0 18px 48px -28px rgba(96, 114, 240, .5), 0 0 22px -14px rgba(111, 224, 177, .32); cursor: text; animation: hero-ai-border-flow 12s ease-in-out infinite, hero-ai-field-breathe 8s ease-in-out infinite; transition: box-shadow .25s, transform .25s; }
.hero-ai-field:hover { box-shadow: 0 20px 52px -27px rgba(96, 114, 240, .58), 0 0 26px -13px rgba(111, 224, 177, .36); transform: translateY(-1px); }
.hero-ai-field > * { position: relative; z-index: 1; }
.hero-ai-field::before { content: ""; position: absolute; z-index: 0; inset: 1px; border-radius: inherit; background: radial-gradient(ellipse at 9% 0%, rgba(140, 157, 255, .09), transparent 34%), radial-gradient(ellipse at 90% 100%, rgba(111, 224, 177, .055), transparent 38%); pointer-events: none; }
@keyframes hero-ai-border-flow { 0%, 100% { background-position: 0 0, 12% 50%; } 50% { background-position: 0 0, 88% 50%; } }
@keyframes hero-ai-field-breathe { 0%, 100% { box-shadow: 0 18px 48px -28px rgba(96, 114, 240, .42), 0 0 20px -14px rgba(111, 224, 177, .25); } 50% { box-shadow: 0 20px 50px -27px rgba(96, 114, 240, .54), 0 0 24px -12px rgba(111, 224, 177, .32); } }
@keyframes hero-ai-aura { from { opacity: .38; transform: translate3d(-4px, 1px, 0) scale(.97); } to { opacity: .62; transform: translate3d(5px, -2px, 0) scale(1.02); } }
.hero-ai-symbol { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: radial-gradient(circle at 30% 20%, #d2daff, #8c9dff 55%, #5f71e6); color: #0d1330; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.hero-ai-symbol svg { width: 26px; height: 26px; animation: spark 5s ease-in-out infinite; }
@keyframes spark { 50% { transform: rotate(45deg) scale(.88); } }
.hero-ai-field textarea { flex: 1; min-width: 0; height: 48px; padding: 13px 0 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; line-height: 1.4; resize: none; overflow: hidden; cursor: pointer; }
.hero-ai-field textarea::placeholder { color: #c4cbe0; opacity: 1; }
.hero-ai-enter { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 16px; background: var(--text); color: #0b1020; transition: transform .2s; }
.hero-ai-enter svg { width: 20px; height: 20px; }
.hero-ai-field:hover .hero-ai-enter { transform: translateX(2px); }
.hero-ai-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 12px 4px 0; }
.hero-ai-meta small { color: var(--faint); font-size: 13px; }
.hero-ai-continue { padding: 8px 14px; border: 1px solid rgba(174, 188, 255, .35); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.hero-ai-continue:hover { background: rgba(140, 157, 255, .22); }

.hero-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 30px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--accent); }

@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.hero-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 26px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* ——— Бегущая строка ——— */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .015); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 42s linear infinite; }
.marquee-track span { color: var(--muted); font-size: 20px; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.marquee-track i { color: var(--accent-2); font-size: 14px; font-style: normal; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ——— Секции ——— */
.section { position: relative; padding: 104px 0; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 58px); }
.section-head p { max-width: 58ch; color: var(--muted); font-size: 17px; line-height: 1.6; }
.section-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 36px; }
.section-cta small { color: var(--faint); font-size: 13px; }

/* Tirek AI */
.ai-section::before { content: ""; position: absolute; left: 50%; top: 18%; z-index: -1; width: min(900px, 100%); height: 600px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(96, 114, 240, .12), transparent 65%); pointer-events: none; }
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ai-card { display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: 30px; overflow: hidden; }
.ai-card-wide { grid-column: span 2; }
.ai-card h3 { margin-top: 10px; font-size: 24px; }
.ai-card p { max-width: 46ch; color: var(--muted); font-size: 15.5px; }
.ai-format-picker { margin-top: auto; padding-top: 10px; }
.ai-format-picker > small { display: block; margin-bottom: 10px; color: var(--faint); font-size: 12px; line-height: 1.45; }
.ai-formats { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-formats button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .03); color: #d4d9ea; font-size: 13px; transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease; }
.ai-formats button:hover { transform: translateY(-2px); border-color: rgba(174, 188, 255, .55); background: var(--accent-soft); color: var(--text); }
.ai-formats button:active { transform: scale(.97); }
.ai-formats button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ai-mini-quote { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding: 14px 16px; border: 1px solid rgba(174, 188, 255, .25); border-radius: 16px; background: var(--accent-soft); }
.ai-mini-quote span { color: #d4d9ea; font-size: 13.5px; }
.ai-mini-quote b { font-size: 18px; letter-spacing: -.02em; }
.ai-langs { display: flex; gap: 8px; margin-top: auto; }
.ai-langs span { display: grid; place-items: center; min-width: 58px; height: 40px; border: 1px solid var(--line-2); border-radius: 12px; font-weight: 650; font-size: 14px; }
.ai-langs span:last-child { border-color: rgba(174, 188, 255, .45); background: var(--accent-soft); color: var(--accent); }
.ai-brief { display: flex; flex-direction: column; gap: 8px; max-width: 420px; margin-top: auto; padding: 14px 16px; border-radius: 16px 16px 16px 6px; background: rgba(111, 224, 177, .08); border: 1px solid rgba(111, 224, 177, .22); color: #d3efe2; font-size: 13.5px; line-height: 1.5; }
.ai-brief-head { display: inline-flex; align-items: center; gap: 8px; color: var(--mint); font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.ai-brief-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.ai-brief-est { color: #fff; font-weight: 600; }

/* Работы */
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.work-card { display: flex; flex-direction: column; padding: 14px; transition: transform .3s ease, border-color .3s ease; }
.work-card:hover { transform: translateY(-4px); border-color: rgba(174, 188, 255, .3); }
.browser { position: relative; display: block; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: #0b1020; }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #11172b; }
.browser-url { flex: 1; overflow: hidden; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--faint); font-size: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.work-card:hover .browser img { transform: scale(1.035); }
.play-badge { position: absolute; left: 50%; top: 58%; display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%; background: rgba(10, 14, 28, .55); color: #fff; transform: translate(-50%, -50%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform .3s; }
.play-badge svg { width: 26px; height: 26px; margin-left: 3px; }
.work-card:hover .play-badge { transform: translate(-50%, -50%) scale(1.08); }
.work-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 22px 12px 10px; }
.work-body h3 { font-size: 25px; }
.work-body p { color: var(--muted); font-size: 15.5px; }
.work-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.work-links a { padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s; }
.work-links a:first-child { border-color: transparent; background: var(--text); color: #0b1020; }
.work-links a:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07); }
.work-links a:first-child:hover { background: #fff; }
.demo-strip { display: flex; align-items: center; gap: 18px; margin-top: 22px; padding: 20px 24px; border-radius: 22px; transition: border-color .2s, transform .2s; }
.demo-strip:hover { transform: translateY(-2px); border-color: rgba(174, 188, 255, .3); }
.demo-strip-copy { display: grid; gap: 4px; }
.demo-strip-copy small { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.demo-strip-copy strong { font-size: 17px; font-weight: 600; }
.demo-strip-go { margin-left: auto; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Услуги */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px 24px; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(174, 188, 255, .32); background: linear-gradient(180deg, rgba(140, 157, 255, .1), rgba(255, 255, 255, .02)); }
.service-card h3 { margin-top: 18px; font-size: 21px; }
.service-card p { color: var(--muted); font-size: 15px; }
.service-card small { padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.card-go { margin-top: auto; padding-top: 6px; color: var(--accent); font-size: 14px; font-weight: 600; }

/* Цены */
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.price-card { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px; }
.price-card h3 { margin-top: 14px; font-size: 22px; }
.price-card p { color: var(--muted); font-size: 14.5px; }
.price { display: grid; gap: 4px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.price strong { font-size: 30px; font-weight: 700; letter-spacing: -.035em; }
.price small { color: var(--faint); font-size: 13px; }
.pricing-ai { display: flex; align-items: center; gap: 20px; margin-top: 22px; padding: 22px 24px; border-color: var(--line-2); background: var(--glass); }
.pricing-ai strong { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 600; }
.pricing-ai p { color: var(--muted); font-size: 14.5px; }
.pricing-ai .btn { margin-left: auto; }
.pricing-note-mark { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--accent); font-size: 25px; font-weight: 400; }

/* Процесс — таймлайн */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.timeline::before { content: ""; position: absolute; left: 32px; right: 32px; top: 31px; height: 1px; background: linear-gradient(90deg, rgba(174, 188, 255, .6), rgba(174, 188, 255, .12)); }
.step { position: relative; }
.step-node { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid rgba(174, 188, 255, .35); border-radius: 50%; background: radial-gradient(circle at 30% 25%, #1c2546, #0c1224); color: var(--accent); box-shadow: 0 0 0 8px var(--bg), 0 0 30px -6px rgba(140, 157, 255, .5); }
.step:first-child .step-node { border-color: transparent; background: radial-gradient(circle at 30% 20%, #d2daff, #8c9dff 55%, #5f71e6); color: #0d1330; }
.step-node svg { width: 24px; height: 24px; }
.step-body { padding-top: 26px; }
.step-body small { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.step-body h3 { margin: 8px 0 10px; font-size: 21px; }
.step-body p { color: var(--muted); font-size: 15px; }
.process-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; margin-top: 52px; padding: 20px 24px; border: 1px dashed var(--line-2); border-radius: 20px; font-size: 15px; }
.process-note span { color: var(--muted); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.faq-layout .section-head { position: sticky; top: 120px; margin: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 20px; background: var(--glass); transition: border-color .2s, background .2s; }
.faq-list details[open] { border-color: rgba(174, 188, 255, .28); background: linear-gradient(180deg, rgba(140, 157, 255, .08), rgba(255, 255, 255, .02)); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; font-size: 17px; font-weight: 600; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform .3s, background .2s; }
.faq-list summary i::before, .faq-list summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; border-radius: 2px; background: var(--text); transform: translate(-50%, -50%); }
.faq-list summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq-list details[open] summary i { background: var(--accent-soft); border-color: rgba(174, 188, 255, .4); }
.faq-list details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-list details p { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* Финальный призыв */
.contact-section { padding-top: 40px; }
.contact-panel { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 20px; padding: 80px 32px; border: 1px solid rgba(174, 188, 255, .22); border-radius: 36px; background: linear-gradient(180deg, rgba(140, 157, 255, .12), rgba(255, 255, 255, .02)); box-shadow: var(--highlight), var(--shadow); text-align: center; isolation: isolate; }
.contact-glow { position: absolute; left: 50%; top: -60%; z-index: -1; width: 900px; height: 700px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(96, 114, 240, .45), transparent 60%); pointer-events: none; }
.contact-panel .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.contact-panel h2 { max-width: 18ch; font-size: clamp(36px, 5vw, 64px); }
.contact-panel p { max-width: 46ch; color: var(--muted); font-size: 17px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.contact-panel > small { color: var(--faint); font-size: 13px; }

/* Подвал */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: start; gap: 32px; }
.footer-brand p { max-width: 34ch; margin-top: 14px; color: var(--faint); font-size: 14px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 6px; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--text); }
.footer-meta { display: grid; justify-items: end; gap: 8px; padding-top: 6px; color: var(--faint); font-size: 13px; }
.footer-meta a:hover { color: var(--text); }

/* Появление при прокрутке (включается только если JS и IntersectionObserver доступны) */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ——— Чат Tirek AI ——— */
body.advisor-open { overflow: hidden; }
.advisor-dialog { position: fixed; inset: 0; top: var(--chat-visible-top, 0px); bottom: auto; width: 100vw; height: 100vh; height: var(--chat-visible-height, 100dvh); max-width: none; max-height: none; margin: 0; padding: 20px; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.advisor-dialog[open] { display: flex; align-items: center; justify-content: center; animation: chat-enter .32s cubic-bezier(.2, .8, .2, 1) both; }
.advisor-dialog.is-closing { animation: chat-exit .19s ease-in both; }
.advisor-dialog::backdrop { background: rgba(3, 5, 12, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: backdrop-in .28s ease-out both; }
.advisor-dialog.is-closing::backdrop { animation: backdrop-out .19s ease-in both; }
@keyframes chat-enter { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes chat-exit { to { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }
.advisor-dialog-shell { position: relative; isolation: isolate; display: flex; flex-direction: column; width: min(100%, 780px); height: min(100%, 860px); min-height: 0; overflow: hidden; border: 1px solid var(--line-2); border-radius: 30px; background: radial-gradient(700px 400px at 90% -10%, rgba(96, 114, 240, .17), transparent 60%), linear-gradient(180deg, #0f1528, #0a0e1c); box-shadow: var(--highlight), 0 60px 120px -40px rgba(0, 0, 0, .95); }
.advisor-dialog-shell::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse 18% 62% at 0% 56%, rgba(140, 157, 255, .2), transparent 100%), radial-gradient(ellipse 17% 58% at 100% 62%, rgba(111, 224, 177, .12), transparent 100%), radial-gradient(ellipse 10% 30% at 12% 24%, rgba(174, 188, 255, .09), transparent 100%); opacity: 0; pointer-events: none; transition: opacity 1.1s ease; }
.advisor-dialog:not(.has-user-input) .advisor-dialog-shell::before { opacity: 1; animation: advisor-ambient-drift 12s ease-in-out infinite alternate; }
@keyframes advisor-ambient-drift { from { transform: translate3d(-1%, 0, 0) scale(1); } to { transform: translate3d(1%, -1%, 0) scale(1.035); } }
.advisor-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 16px 20px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.advisor-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.advisor-mark { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: radial-gradient(circle at 30% 20%, #d2daff, #8c9dff 55%, #5f71e6); color: #0d1330; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.advisor-mark svg { width: 24px; height: 24px; }
.advisor-identity div { display: grid; gap: 1px; min-width: 0; }
.advisor-identity strong { font-size: 16px; font-weight: 650; }
.advisor-identity small { overflow: hidden; color: var(--muted); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.advisor-head-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.advisor-new-project { min-height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--text); font-size: 13px; font-weight: 600; }
.advisor-new-project:hover { background: rgba(255, 255, 255, .08); }
.advisor-close { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 255, 255, .04); color: var(--text); }
.advisor-close svg { width: 18px; height: 18px; }
.advisor-close:hover { background: rgba(255, 255, 255, .1); }
.advisor-messages { position: relative; display: flex; flex: 1; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 26px 24px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.advisor-empty { display: grid; justify-items: center; gap: 10px; width: min(100%, 440px); margin: auto; padding: 20px 0; text-align: center; }
.advisor-empty-mark { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 10px; border-radius: 22px; background: radial-gradient(circle at 30% 20%, #d2daff, #8c9dff 55%, #5f71e6); color: #0d1330; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 20px 50px -12px rgba(110, 128, 255, .7); }
.advisor-empty-mark svg { width: 36px; height: 36px; animation: spark 5s ease-in-out infinite; }
.advisor-empty h3 { font-size: clamp(26px, 3.4vw, 34px); }
.advisor-empty p { color: var(--muted); font-size: 15.5px; }
.advisor-message { max-width: min(84%, 580px); padding: 13px 17px; border-radius: 20px; font-size: 15.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; animation: msg-in .35s cubic-bezier(.2, .8, .2, 1) both; }
.advisor-message-user { align-self: flex-end; border-bottom-right-radius: 6px; background: linear-gradient(135deg, #5f71e6, #8c9dff); color: #fff; }
.advisor-message-bot { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 6px; background: rgba(255, 255, 255, .05); color: #e2e6f2; }
.advisor-typing { display: inline-flex; align-items: center; gap: 5px; min-width: 64px; min-height: 44px; padding: 0 18px; }
.advisor-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .4; animation: advisor-typing-pulse 1.1s ease-in-out infinite; }
.advisor-typing i:nth-child(2) { animation-delay: .14s; }
.advisor-typing i:nth-child(3) { animation-delay: .28s; }
@keyframes advisor-typing-pulse { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.advisor-quote { align-self: flex-start; flex: none; width: min(100%, 560px); padding: 18px 20px; border: 1px solid rgba(174, 188, 255, .3); border-radius: 20px; background: linear-gradient(135deg, rgba(140, 157, 255, .16), rgba(140, 157, 255, .04)); animation: msg-in .4s cubic-bezier(.2, .8, .2, 1) both; }
.advisor-quote-title { display: block; margin-bottom: 4px; color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.advisor-quote-option { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.advisor-quote-option strong { align-self: end; font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.advisor-quote-option b { align-self: end; font-size: 20px; font-weight: 700; letter-spacing: -.03em; white-space: nowrap; }
.advisor-quote-option span { grid-column: 1 / -1; color: var(--muted); font-size: 13px; line-height: 1.45; }
.advisor-quote p { margin-top: 12px; color: var(--faint); font-size: 12.5px; line-height: 1.5; }
.advisor-project-divider { display: flex; align-items: center; gap: 12px; align-self: stretch; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.advisor-project-divider::before, .advisor-project-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.advisor-quick { display: flex; flex: none; gap: 8px; padding: 0 24px 12px; overflow-x: auto; scrollbar-width: none; }
.advisor-quick::-webkit-scrollbar { display: none; }
.advisor-quick button { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--text); font-size: 14px; font-weight: 500; transition: background .2s, border-color .2s; }
.advisor-quick button:hover { border-color: rgba(174, 188, 255, .45); background: var(--accent-soft); }
.advisor-handoff { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px 12px; color: var(--faint); font-size: 12.5px; }
.advisor-handoff a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid rgba(111, 224, 177, .35); border-radius: 999px; background: rgba(111, 224, 177, .08); color: var(--mint); font-size: 13px; font-weight: 600; white-space: nowrap; }
.advisor-handoff a:hover { background: rgba(111, 224, 177, .15); }
.advisor-dialog-bottom { flex: none; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.advisor-form { display: flex; align-items: flex-end; gap: 10px; margin: 0; padding: 7px 7px 7px 16px; border: 1px solid var(--line-2); border-radius: 22px; background: rgba(255, 255, 255, .04); transition: border-color .2s, box-shadow .2s; }
.advisor-form:focus-within { border-color: rgba(174, 188, 255, .58); box-shadow: 0 0 0 1px rgba(140, 157, 255, .08); }
.advisor-form textarea { flex: 1; min-width: 0; min-height: 44px; max-height: min(45dvh, 220px); padding: 11px 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; line-height: 1.45; resize: none; overflow-y: hidden; }
.advisor-form textarea::placeholder { color: var(--faint); opacity: 1; }
.advisor-form button { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 15px; background: var(--grad); color: #0b1030; transition: transform .2s, opacity .2s; }
.advisor-form button:hover { transform: translateY(-1px); }
.advisor-form button:disabled { opacity: .45; cursor: default; transform: none; }
.advisor-form button svg { width: 20px; height: 20px; }
.advisor-dialog.keyboard-open .advisor-handoff, .advisor-dialog.keyboard-open .advisor-quick { display: none; }
.advisor-dialog.keyboard-open .advisor-empty { padding: 4px 0 10px; }
.advisor-dialog.keyboard-open .advisor-empty-mark { width: 48px; height: 48px; margin-bottom: 4px; border-radius: 16px; }
.advisor-dialog.keyboard-open .advisor-empty-mark svg { width: 26px; height: 26px; }
.advisor-dialog.keyboard-open .advisor-empty h3 { font-size: 24px; }
.advisor-dialog.keyboard-open .advisor-empty p { display: none; }
.advisor-dialog.keyboard-open .advisor-dialog-bottom { padding-bottom: 8px; }

/* ——— Адаптив ——— */
@media (max-width: 1100px) {
  .main-nav > a { padding: 9px 10px; }
  .header-cta { padding: 0 14px; }
  .hero-layout { gap: 36px; }
  .services-grid, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  :root { --header-h: 60px; }
  .site-header { inset: 10px 0 auto; }
  .header-inner { width: calc(100% - 20px); padding: 0 8px 0 16px; }
  .header-cta { display: none; }
  .language-switch { margin-left: auto; }
  .menu-toggle { position: relative; display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(255, 255, 255, .05); }
  .menu-toggle span { position: absolute; left: 50%; top: 50%; width: 18px; height: 1.6px; margin-left: -9px; border-radius: 2px; background: var(--text); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
  .menu-toggle span:first-child { transform: translateY(-4px); }
  .menu-toggle span:last-child { transform: translateY(4px); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  body.menu-open { overflow: hidden; }
  body.menu-open::before { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(3, 5, 12, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: backdrop-in .25s ease-out; }
  body > .main-nav { position: fixed; top: calc(10px + var(--header-h) + 10px); left: 10px; right: 10px; z-index: 58; display: none; flex-direction: column; align-items: stretch; gap: 2px; max-height: calc(100dvh - var(--header-h) - 40px); margin: 0; padding: 12px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 28px; background: rgba(12, 17, 33, .96); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
  body > .main-nav.open { display: flex; animation: sheet-in .3s cubic-bezier(.2, .8, .2, 1); }
  body > .main-nav > a { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 16px; border-radius: 18px; color: var(--text); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
  body > .main-nav > a::after { content: "↗"; color: var(--faint); font-size: 16px; font-weight: 500; }
  body > .main-nav > a.is-active { background: rgba(140, 157, 255, .14); color: var(--accent); }
  body > .main-nav > a.is-active::after { color: var(--accent); }
  body > .main-nav .nav-foot { display: grid; gap: 10px; margin-top: 10px; padding: 14px 4px 4px; border-top: 1px solid var(--line); }
  .nav-cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; background: var(--text); color: #0b1020; font-size: 15px; font-weight: 600; }
  .nav-foot small { color: var(--faint); font-size: 13px; text-align: center; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }

  .hero { padding-top: 120px; }
  .hero-copy { max-width: 760px; }
  .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-card-wide { grid-column: span 2; }
  .works-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .timeline::before { display: none; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-layout .section-head { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-meta { justify-items: start; grid-auto-flow: column; justify-content: space-between; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --radius: 24px; }
  html { scroll-padding-top: 84px; }
  .brand { font-size: 21px; }
  .language-switch a { min-width: 34px; padding: 6px 8px; }
  .hero { padding: 104px 0 28px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .1em; }
  .hero h1 { margin: 18px 0 14px; font-size: clamp(34px, 10.4vw, 44px); line-height: 1.02; }
  .hero-lead { font-size: 16px; }
  .hero-ai-entry { margin-top: 24px; }
  .hero-ai-overline span { display: none; }
  .hero-ai-field { gap: 10px; padding: 6px; border-radius: 22px; }
  .hero-ai-symbol, .hero-ai-enter { width: 44px; height: 44px; border-radius: 15px; }
  .hero-ai-field textarea { height: 44px; padding-top: 3px; font-size: 15px; line-height: 1.35; }
  .hero-ai-meta small { font-size: 12.5px; }
  .hero-trust { gap: 8px 16px; margin-top: 22px; }
  .hero-trust li { font-size: 13px; }
  .hero-ai-entry::before { inset: -12px -12px; filter: blur(13px); opacity: .5; }
  .hero-foot { flex-direction: column; align-items: center; margin-top: 26px; text-align: center; }
  .marquee { padding: 16px 0; }
  .marquee-track span { font-size: 16px; }
  .section { padding: 68px 0; }
  .section-head { gap: 14px; margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .section-head p { font-size: 15.5px; }
  .ai-grid, .services-grid, .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
  .ai-card-wide { grid-column: auto; }
  .ai-card { min-height: 0; padding: 24px 22px; }
  .ai-card h3 { font-size: 21px; }
  .section-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .work-card { padding: 10px; }
  .work-body { padding: 18px 8px 8px; }
  .work-body h3 { font-size: 22px; }
  .demo-strip { flex-wrap: wrap; padding: 18px; }
  .demo-strip-go { margin-left: 0; }
  .service-card { padding: 24px 22px 22px; }
  .service-card h3 { margin-top: 12px; }
  .price-card { padding: 22px; }
  .price strong { font-size: 27px; }
  .pricing-ai { flex-direction: column; align-items: flex-start; padding: 22px; }
  .pricing-ai .btn { width: 100%; margin-left: 0; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; }
  .timeline::before { display: block; left: 27px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; background: linear-gradient(180deg, rgba(174, 188, 255, .6), rgba(174, 188, 255, .1)); }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding-bottom: 30px; }
  .step:last-child { padding-bottom: 0; }
  .step-node { width: 56px; height: 56px; box-shadow: 0 0 0 6px var(--bg), 0 0 24px -6px rgba(140, 157, 255, .5); }
  .step-body { padding-top: 4px; }
  .step-body h3 { margin: 4px 0 8px; font-size: 19px; }
  .process-note { margin-top: 36px; padding: 18px; font-size: 14px; }
  .faq-list summary { padding: 18px 18px; font-size: 15.5px; }
  .faq-list details p { padding: 0 18px 18px; font-size: 15px; }
  .contact-section { padding-top: 20px; }
  .contact-panel { padding: 56px 22px; border-radius: 28px; }
  .contact-panel h2 { font-size: clamp(30px, 9vw, 40px); }
  .contact-panel p { font-size: 15.5px; }
  .contact-actions { flex-direction: column; width: 100%; }
  .contact-actions .btn { width: 100%; }
  .site-footer { padding: 48px 0 32px; }

  .advisor-dialog { padding: 0; }
  .advisor-dialog-shell { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .advisor-head { padding: calc(12px + env(safe-area-inset-top)) 14px 12px 16px; }
  .advisor-messages { padding: 20px 16px; gap: 12px; }
  .advisor-message { max-width: 92%; font-size: 15.5px; }
  .advisor-quick { padding: 0 16px 10px; }
  .advisor-handoff { justify-content: flex-end; padding: 0 16px 10px; }
  .advisor-handoff span { display: none; }
  .advisor-dialog-bottom { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
  .advisor-quote { padding: 16px; }
  .advisor-quote-option { grid-template-columns: 1fr; }
}

@media (hover: none) {
  .work-card:hover, .service-card:hover, .btn:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .hero-ai-entry::before, .advisor-dialog:not(.has-user-input) .advisor-dialog-shell::before { animation: none; }
}

/* Казахские фразы длиннее — чуть уменьшаем крупные заголовки, чтобы первый экран не растягивался. */
:root:lang(kk) .hero h1 { font-size: clamp(34px, 4.6vw, 60px); }
:root:lang(kk) .section-head h2 { font-size: clamp(30px, 3.9vw, 52px); }
