/* AK labs — лендинг. Структура и токены повторяют референс (Pixelmatters, сняты dembrandt):
   чёрный фон, лёгкие заголовки, 1px-линии rgba(255,255,255,.2), радиусы 8/16/32, кнопки-пилюли.
   Акцент, логотип, тексты и графика свои. */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #000;
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, 0.64);
  --fg-3: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.2);
  --line-s: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.14);
  --accent: #27c7f5;
  --accent-ink: #00141b;

  --ease: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-io: cubic-bezier(0.645, 0.045, 0.355, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(20px, 3.34vw, 48px);
  --sec: clamp(44px, 5vw, 76px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 18px; line-height: 1.5; font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }
[hidden] { display: none !important; }

/* ---------- иконка-стрелка ---------- */
.ar {
  display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s var(--ease);
}
.ar--l { transform: rotate(180deg); }
.ar--diag { transform: rotate(-45deg); }
.ar--down { transform: rotate(90deg); }
.pill:hover .ar--down { transform: rotate(90deg) translateX(3px); }

/* ---------- кнопки-пилюли ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 17px;
  border-radius: 999px; font-size: 17px; font-weight: 500; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; color: var(--fg);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.pill:hover .ar { transform: translateX(3px); }
.pill--glass { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pill--glass:hover { background: rgba(255, 255, 255, 0.26); }
.pill:active { transform: scale(0.98); }
.pill { position: relative; isolation: isolate; }
.pill::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: transparent; transition: background 0.2s var(--ease); }
.pill--out { border-color: var(--line); backdrop-filter: blur(32px); -webkit-backdrop-filter: blur(32px); transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
@media (hover: hover) { .pill--out:hover { border-color: rgba(255,255,255,0.32); } .pill--out:hover::after { background: rgba(97,97,97,0.62); } }
.pill--out:active::after { background: transparent; }
.pill--light, .pill--white { background: #fff; color: #000; height: 48px; padding: 0 20px; }
.pill--light:hover, .pill--white:hover { background: #d9d9d9; color: #000; }
.pill.sm { height: 36px; font-size: 15px; padding: 0 15px; }
.pill--lg { height: 48px; padding: 0 20px; }

.circ { width: 40px; height: 40px; border-radius: 50%; background: var(--glass); display: grid; place-items: center; transition: background 0.3s; }
.circ:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- шапка ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background 0.3s var(--ease), backdrop-filter 0.3s; }
.header.scrolled, .header.menu-open { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header__in { height: 80px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--pad); }
.logo img { height: 36px; width: auto; }
.nav { display: flex; gap: 40px; }
.nav a, .nav__btn { font-size: 18px; color: #fff; opacity: 0.92; transition: opacity 0.2s; }
.nav a:hover, .nav__btn:hover, .nav__btn[aria-expanded="true"] { opacity: 0.55; }
.header .pill { justify-self: end; }
.burger { display: none; justify-self: end; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 80px 0 0 0; z-index: 55; background: #000; padding: 24px var(--pad); display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a { font-size: 32px; font-weight: 300; padding: 10px 0; border-bottom: 1px solid var(--line-s); letter-spacing: -0.02em; }
.mobile-menu .pill { margin-top: 24px; align-self: flex-start; }

/* ---------- общие блоки ---------- */
.wrap { width: 100%; max-width: 1920px; margin-inline: auto; padding-inline: var(--pad); }
.sec { position: relative; padding-block: var(--sec); }
.sec--tight { padding-bottom: 0; }
.h { font-weight: 300; font-size: clamp(36px, 4.45vw, 64px); line-height: 1.1; letter-spacing: -0.02em; word-spacing: 0.04em; }
.sec__head { margin-bottom: clamp(28px, 3.6vw, 52px); }
.sec__head--row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.sec__head--center { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.hair { border-top: 1px solid var(--line); }

/* ---------- услуги: стеклянные карточки на чёрном с диагональным светом (как у референса) ---------- */
.sec--glow { overflow: hidden; background: #000; padding-block: clamp(40px, 4.4vw, 64px) clamp(48px, 5.4vw, 80px); }
.streaks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.streaks i { position: absolute; border-radius: 999px; filter: blur(34px); transform: rotate(-42deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.34) 28%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.30) 74%, rgba(255,255,255,0) 100%);
  animation: streak 16s ease-in-out infinite alternate; }
.streaks i:nth-child(1) { width: 1100px; height: 120px; left: 22%; top: 44%; opacity: 0.50; }
.streaks i:nth-child(2) { width: 820px; height: 150px; right: -16%; top: 10%; opacity: 0.55; animation-delay: -6s; animation-duration: 22s; }
.streaks i:nth-child(3) { width: 620px; height: 90px; left: -14%; top: 52%; opacity: 0.22; animation-delay: -11s; animation-duration: 26s; }
@keyframes streak { to { transform: translate(70px, -46px) rotate(-38deg); } }
.glass-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.glass {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 250px; padding: 28px;
  border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 40%), rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.glass { overflow: hidden; }
.glass > * { position: relative; z-index: 2; }
.glass::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; opacity: 0; filter: blur(4px); transition: opacity 0.2s ease;
  background:
    radial-gradient(46% 34% at 66% -6%, rgba(245,137,74,0.50), transparent 72%),
    radial-gradient(26% 38% at 102% -2%, rgba(120,170,210,0.85), transparent 70%),
    radial-gradient(14% 56% at 102% 22%, rgba(120,170,210,0.50), transparent 80%),
    linear-gradient(180deg, rgba(86,98,112,0.16) 0%, rgba(120,136,152,0.30) 100%); }
@media (hover: hover) { .glass:hover::after { opacity: 1; } }
.glass:hover { border-color: rgba(255, 255, 255, 0.30); box-shadow: inset 0 1px 0 rgba(255,255,255,0.30); }
.glass h3 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 300; line-height: 1.12; letter-spacing: -0.015em; }
.glass p { color: rgba(255,255,255,0.72); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; }
.glass__body { display: grid; gap: 18px; }
/* ---------- диалог заявки: имя + контакт ---------- */
html:has(.dlg[open]) { overflow: hidden; }
.dlg {
  padding: 0; border: 0; margin: auto; width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  border-radius: 28px; color: #fff; background: #06080d; isolation: isolate; overscroll-behavior: contain;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.22), 0 50px 140px -30px #000;
}
.dlg::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1); }
.dlg[open] { animation: dlg-in .5s var(--ease) both; }
.dlg[open]::backdrop { animation: fadein .4s var(--ease) both; }
.dlg.is-closing { animation: dlg-out .22s var(--ease) both; }
.dlg.is-closing::backdrop { animation: fadeout .22s var(--ease) both; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(26px) scale(.965); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
/* цветные пятна и зерно: тот же язык, что у лент на сайте */
.dlg__glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.dlg__glow i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .4; }
.dlg__glow i:nth-child(1) { width: 300px; height: 300px; right: -90px; top: -110px; background: rgba(var(--m-teal-rgb), .55); animation: dlg-drift 14s ease-in-out infinite alternate; }
.dlg__glow i:nth-child(2) { width: 280px; height: 280px; left: -110px; bottom: -120px; background: rgba(var(--m-copper-rgb), .5); animation: dlg-drift 17s ease-in-out infinite alternate-reverse; }
.dlg__glow i:nth-child(3) { display: none; }
.dlg__glow::after { content: ""; position: absolute; inset: 0; background: var(--grain) 0 0 / var(--grain-size) var(--grain-size); opacity: .07; mix-blend-mode: screen; }
@keyframes dlg-drift { to { transform: translate(38px, -26px) scale(1.12); } }

.form { position: relative; display: grid; gap: 14px; padding: clamp(26px, 6vw, 40px); }
.form h2 { font-weight: 300; font-size: clamp(32px, 7vw, 40px); letter-spacing: -0.03em; line-height: 1.08; padding-right: 44px; margin-bottom: 10px; }
.dlg__x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); transition: background .25s var(--ease), transform .35s var(--ease); z-index: 2; }
.dlg__x:hover { background: rgba(255,255,255,.22); transform: rotate(90deg); }
.dlg__x::before, .dlg__x::after { content: ""; position: absolute; left: 12px; right: 12px; top: 18px; height: 1.5px; background: #fff; transform: rotate(45deg); }
.dlg__x::after { transform: rotate(-45deg); }

.field { position: relative; display: grid; }
.field input {
  width: 100%; height: 62px; padding: 25px 18px 8px; border-radius: 16px; font-size: 18px; line-height: 1.2;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); caret-color: #fff;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field label { position: absolute; left: 19px; top: 20px; font-size: 17px; line-height: 22px; color: var(--fg-3); pointer-events: none; transform-origin: 0 0; transition: transform .22s var(--ease), color .22s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-12px) scale(.74); }
.field input:hover { border-color: rgba(255,255,255,.28); }
.field input:focus { outline: none; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.09); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.field input:focus + label { color: var(--fg-2); }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 100px #0d1626 inset; transition: background-color 9999s; }
.field__err { font-size: 14px; color: #ff9a9a; line-height: 1.3; max-height: 0; opacity: 0; overflow: hidden; padding-left: 4px; transition: max-height .25s var(--ease), opacity .25s var(--ease), margin .25s var(--ease); }
.field.is-bad input { border-color: #ff7a7a; box-shadow: 0 0 0 4px rgba(255,122,122,.14); animation: shake .38s var(--ease); }
.field.is-bad input + label { color: #ff9a9a; }
.field.is-bad .field__err { max-height: 40px; opacity: 1; margin-top: 7px; }
@keyframes shake { 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }

.form .pill { width: 100%; justify-content: center; height: 58px; margin-top: 6px; font-size: 18px; }
.form .pill .spin { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(0,0,0,.2); border-top-color: #000; animation: spin .7s linear infinite; }
.form .pill.is-loading { pointer-events: none; opacity: .92; }
.form .pill.is-loading .ar { display: none; }
.form .pill.is-loading .spin { display: block; }
.status { min-height: 0; font-size: 15px; line-height: 1.4; color: #ff9a9a; text-align: center; }
.status:empty { display: none; }
.status a { text-decoration: underline; text-underline-offset: 3px; }
.consent { font-size: 13px; color: var(--fg-3); line-height: 1.45; text-align: center; }
.consent a { border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.consent a:hover { color: #fff; border-color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* состояние «отправлено» */
.done { display: grid; justify-items: center; gap: 12px; text-align: center; padding: clamp(40px, 8vw, 56px) clamp(26px, 6vw, 40px) clamp(30px, 6vw, 40px); }
.done[hidden] { display: none; }
.done__mark { position: relative; width: 84px; height: 84px; margin-bottom: 10px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); animation: pop .6s var(--ease) both; }
.done__mark::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); animation: ping 1.6s var(--ease) .5s 2 both; }
.done__mark svg { width: 40px; height: 40px; }
.done__mark path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw .5s var(--ease) .3s forwards; }
.done h2 { font-weight: 300; font-size: clamp(30px, 6.5vw, 38px); letter-spacing: -0.03em; line-height: 1.1; }
.done h2:focus { outline: none; }
.done p { color: var(--fg-2); font-size: 17px; line-height: 1.45; max-width: 30ch; }
.done .pill { margin-top: 14px; width: auto; min-width: 160px; justify-content: center; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .dlg[open], .dlg[open]::backdrop, .dlg.is-closing, .dlg.is-closing::backdrop, .dlg__glow i, .done__mark, .done__mark::after, .field.is-bad input { animation: none; }
  .done__mark path { animation: none; stroke-dashoffset: 0; }
}

/* ---------- появление ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: 104px var(--pad) 56px; }
.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.ribbons.no-gl { background: radial-gradient(ellipse 60% 70% at 75% 40%, rgba(120, 160, 190, 0.35), transparent 70%); }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.62) 38%, rgba(0,0,0,0.12) 66%, transparent 78%), linear-gradient(180deg, rgba(0,0,0,0.5), transparent 20%), linear-gradient(0deg, #000, transparent 18%); }
.hero__in { position: relative; z-index: 2; max-width: 1200px; }
.hero h1 { font-weight: 300; font-size: clamp(42px, 6.3vw, 100px); line-height: 1.06; letter-spacing: -0.025em; word-spacing: 0.08em; max-width: 9.6em; }
.hero__lead { margin-top: 28px; max-width: 34em; color: var(--fg-2); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- проекты ---------- */
.proj { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(24px, 2.8vw, 44px); border-top: 1px solid var(--line); }
.proj:last-child { border-bottom: 1px solid var(--line); }
.proj--rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.proj--rev .proj__vis { order: -1; }
#projects .wrap { max-width: 1440px; }
.proj__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.proj__name { font-weight: 300; font-size: clamp(40px, 4.8vw, 72px); line-height: 1.02; letter-spacing: -0.025em; }
.proj__lead { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.3; font-weight: 500; max-width: 24em; }
.proj__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.proj__desc { color: var(--fg-2); max-width: 32em; }
.tags li:hover { border-color: rgba(255,255,255,0.4); color: #fff; background: rgba(255,255,255,0.06); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease); font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--fg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.more { display: grid; grid-template-rows: 0fr; width: 100%; transition: grid-template-rows 0.45s var(--ease); }
.more > div { overflow: hidden; }
.more.is-open { grid-template-rows: 1fr; }
.js-more[aria-expanded="true"] .ar--down { transform: rotate(-90deg); }
.facts { margin-top: 8px; }
.facts li { display: grid; grid-template-columns: clamp(110px, 11vw, 160px) 1fr; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line-s); }
.facts b { font-weight: 200; font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.025em; }
.facts span { color: var(--fg-2); font-size: 18px; }

/* ---------- сложные системы (как у референса: заголовок и кольцо закреплены, строки едут) ---------- */
#expertise.sec { padding-block: clamp(56px, 6.9vw, 100px); }
.spec-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 42px; align-items: stretch; }
.spec__sticky { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.spec__h { max-width: none; font-size: 36px; line-height: 1.2; }
.spec__main { position: relative; padding-left: 47px; }
.spec__rail { position: absolute; left: 0; top: 0; bottom: 0; width: 34px; }
.ring { position: sticky; top: 100px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; z-index: 2; isolation: isolate; margin-top: 0; transition: box-shadow 0.3s var(--ease);
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.25) 0 58%, rgba(255,255,255,0.06) 80%, rgba(255,255,255,0.20) 100%);
  -webkit-backdrop-filter: blur(3px) brightness(1.15) saturate(1.5); backdrop-filter: blur(3px) brightness(1.15) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), inset 0 0 18px 2px rgba(255,255,255,0.22), inset 0 8px 14px -6px rgba(255,255,255,0.5), 0 14px 34px rgba(0,0,0,0.55), 0 0 40px rgba(120,160,255,0.10); }
/* кромка: тонкое стекло с цветной дисперсией, медленно переливается */
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 3px; z-index: 1; pointer-events: none; filter: blur(0.4px);
  background: conic-gradient(from 0deg, rgba(255,255,255,0.95) 0 6%, rgba(255,255,255,0.18) 15%, rgba(255,138,56,0.95) 27%, rgba(255,255,255,0.12) 38%, rgba(255,255,255,0.92) 50%, rgba(255,255,255,0.14) 58%, rgba(64,112,255,0.98) 69%, rgba(255,255,255,0.2) 80%, rgba(255,255,255,0.95) 92%, rgba(255,255,255,0.95) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 16s linear infinite; }
/* внутренняя преломлённая «жидкость» */
.ring::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; z-index: 0; pointer-events: none; mix-blend-mode: screen; filter: blur(3px); opacity: 0.9;
  background: radial-gradient(closest-side, transparent 66%, rgba(255,255,255,0.0) 70%), radial-gradient(circle at 26% 18%, rgba(255,255,255,0.65), transparent 22%), radial-gradient(circle at 84% 80%, rgba(70,120,255,0.75), transparent 24%), radial-gradient(circle at 8% 66%, rgba(255,150,70,0.7), transparent 22%);
  -webkit-mask: radial-gradient(closest-side, transparent 62%, #000 86%); mask: radial-gradient(closest-side, transparent 62%, #000 86%); animation: sheen2 9s ease-in-out infinite alternate; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen2 { to { transform: rotate(40deg) scale(1.04); } }
.ring .ar { position: relative; z-index: 2; width: 12px; height: 12px; filter: drop-shadow(0 0 6px rgba(255,255,255,0.45)); }
.ring:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75), inset 0 0 24px 3px rgba(255,255,255,0.3), inset 0 8px 14px -6px rgba(255,255,255,0.65), 0 14px 38px rgba(0,0,0,0.55), 0 0 56px rgba(120,160,255,0.28); }
.ring:hover .ar { transform: translateX(4px); }
.rows { display: flex; flex-direction: column; }
.row { position: relative; padding: 17px 16px 15px; border-top: 1px solid var(--line); cursor: default; }
.row:hover h3 { color: #fff; }
.row:hover p { color: rgba(255,255,255,.8); }
.row:first-child { border-top: 0; padding-top: 0; }
.row h3 { font-size: 17px; font-weight: 500; line-height: 1.5; letter-spacing: -0.1px; color: rgba(255,255,255,.64); transition: color 0.3s var(--ease); }
.row p { margin-top: 5px; max-width: 46em; font-size: 16px; line-height: 1.5; letter-spacing: -0.1px; color: rgba(255,255,255,.64); transition: color 0.3s var(--ease); }
.row.is-active h3 { color: #fff; }
.row.is-active p { color: rgba(255,255,255,.8); }

/* «Сложные системы»: брейкпоинты референса */
@media (min-width: 640px) {
  .spec__h { font-size: 42px; }
  .spec__main { padding-left: 67px; }
  .row { padding: 22px 24px 20px; }
}
@media (min-width: 768px) { .spec__h { font-size: 48px; } }
@media (min-width: 1024px) {
  .spec__h { font-size: 60px; }
  .spec__main { padding-left: 74px; }
  .spec__rail { width: 56px; }
  .ring { width: 56px; height: 56px; top: 120px; }
  .ring .ar { width: 18px; height: 18px; }
  .ring::before { padding: 2.5px; }
  .row { padding: 28px 35px 29px; }
  .row h3 { font-size: 20px; }
  .row p { font-size: 18px; letter-spacing: -0.06px; }
}
@media (min-width: 1280px) {
  .spec-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 4vw, 64px); }
  .spec__sticky { position: sticky; top: 120px; align-self: start; }
  .spec__h { font-size: clamp(40px, 3.4vw, 56px); }
  .spec__main { padding-left: 89px; }
  .ring { transform: translateY(8px); }
  .row { display: grid; grid-template-columns: minmax(150px, 2fr) minmax(0, 5fr); column-gap: 28px; align-items: start; padding-left: 0; padding-right: 0; }
  .row h3 { grid-column: 1; }
  .row p { grid-column: 2; margin-top: 0; }
}

/* ---------- визуалы проектов (реальные снимки интерфейсов) ---------- */
.proj__vis { position: relative; aspect-ratio: 774 / 590; border-radius: 32px; overflow: hidden; isolation: isolate; perspective: 1500px; background: #0d1015; border: 1px solid var(--line-s); }
.proj__vis::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glow); }
.proj__vis::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px;
  -webkit-mask: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent); mask: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent); }
.vis--gul { --glow: radial-gradient(60% 55% at 22% 12%, rgba(255,196,64,.30), transparent 70%), radial-gradient(55% 55% at 100% 100%, rgba(255,110,40,.26), transparent 70%); --wglow: rgba(255,190,60,.16); }
.vis--aivis { --glow: radial-gradient(60% 60% at 70% 20%, rgba(70,70,255,.34), transparent 70%), radial-gradient(55% 55% at 0% 100%, rgba(39,199,245,.22), transparent 70%); --wglow: rgba(80,90,255,.25); }

.cv { position: absolute; z-index: 2; transform-style: preserve-3d; will-change: transform;
  transform: translate3d(calc(var(--mx, 0) * var(--dx, 0) * 1px), calc(var(--my, 0) * var(--dy, 0) * 1px), 0) rotateX(calc(var(--rx, 0deg) + var(--my, 0) * -2deg)) rotateY(calc(var(--ry, 0deg) + var(--mx, 0) * 3deg));
  transition: transform 0.35s var(--ease); }

/* Aivis */
.av-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: blur(3px) brightness(0.42) saturate(1.3); transform: scale(1.08); }
.det { position: absolute; border: 2px solid var(--accent); border-radius: 8px; box-shadow: 0 0 24px rgba(39,199,245,.45), inset 0 0 18px rgba(39,199,245,.12); animation: det 2.8s ease-in-out infinite; }
.det b { position: absolute; left: -2px; top: -26px; background: var(--accent); color: var(--accent-ink); font: 500 11px var(--mono); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
@keyframes det { 50% { border-color: rgba(39,199,245,.45); box-shadow: 0 0 10px rgba(39,199,245,.2); } }
.cv--glasses img { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)) drop-shadow(0 0 30px rgba(80,120,255,.45)); }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-0.6deg); } }

/* Aivis: экраны приложения помощника (из репозитория) */
.phone--lg img { border-radius: 29px; }
.det--cross { left: 6%; top: 52%; width: 88%; height: 18%; border-radius: 6px; }
.det--cross b { top: -22px; font-size: 9px; padding: 3px 6px; }

/* Kvity */
.vis--kvity { --glow: radial-gradient(60% 55% at 20% 0%, rgba(39,214,150,.34), transparent 70%), radial-gradient(55% 55% at 100% 100%, rgba(16,120,86,.34), transparent 70%); --wglow: rgba(39,214,150,.20); }
.kphone { border-radius: 30px 30px 0 0; overflow: hidden; background: #0b0b10; padding: 6px 6px 0; box-shadow: 0 40px 90px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.2), 0 0 60px rgba(39,214,150,.32); }
.kphone img { display: block; width: 100%; height: auto; border-radius: 24px 24px 0 0; }

/* ---------- Aivis: чистая панель как у кейсов Pixelmatters: один фон, один слайд за раз, стрелки ---------- */
.vis--aivis { aspect-ratio: 774 / 700; perspective: none; --g2: 74,60,200; --ta: .42; background: #07060d; }
.vis--aivis::before, .vis--aivis::after { display: none; }
.avbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: blur(14px) saturate(1.1) brightness(.62); transform: scale(1.12); }
.avtint { position: absolute; inset: 0; z-index: 1; background: rgba(var(--g2), var(--ta)); mix-blend-mode: color; transition: background 1.2s var(--ease); }
.vis--aivis[data-phase="listen"] { --g2: 90,70,230; --ta: .5; }
.vis--aivis[data-phase="think"]  { --g2: 120,90,240; --ta: .46; }
.vis--aivis[data-phase="speak"]  { --g2: 220,80,190; --ta: .55; }
.vis--aivis[data-phase="look"]   { --g2: 40,120,200; --ta: .3; }
.avslide { position: absolute; inset: 0; z-index: 2; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease-io), visibility 0s .7s; }
.avslide.is-on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease-io); }
.avslide > video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0f0b28; }
.avslide .iph { position: absolute; left: 31%; top: 4.5%; width: 38%; }
/* ---------- общая чистая панель кейса (одна рамка устройства на фоне) и ноутбук ---------- */
.vpanel { aspect-ratio: 774 / 700; perspective: none; --g2: 74,60,200; --ta: .42; background: #07060d; }
.vpanel::before, .vpanel::after { display: none; }
.vpanel .avbg { filter: blur(18px) saturate(1.1) brightness(.6); }
.vpanel--kvity { --g2: 20,150,100; --ta: .42; }
.vfill { aspect-ratio: 16 / 10; background: #0a0a0a; }
.lap--wide { left: 2%; width: 96%; }
.vpanel--kvity .avbg { filter: blur(18px) saturate(1.2) brightness(.55); }
.vfill video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vpanel--gul { --g2: 210,140,60; --ta: .4; }
.lap { position: absolute; left: 4%; width: 92%; top: 50%; transform: translateY(-50%); container-type: inline-size; filter: drop-shadow(0 34px 50px rgba(0,0,0,.6)); }
.lap__lid { position: relative; padding: 1.7cqw 1.7cqw 1.9cqw; border-radius: 2.4cqw 2.4cqw .6cqw .6cqw; background: #050507;
  box-shadow: 0 0 0 .35cqw #6a6d74, 0 0 0 .55cqw #2b2c30, inset 0 0 0 1px rgba(255,255,255,.08); }
.lap__lid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .7cqw; background: #0c0c10; }
.lap__cam { position: absolute; left: 50%; top: .55cqw; width: .7cqw; height: .7cqw; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3355, #07080f 70%); }
.lap__glare { position: absolute; inset: 1.7cqw 1.7cqw 1.9cqw; border-radius: .7cqw; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 26%, transparent 44%); }
.lap__base { position: relative; height: 1.7cqw; margin: .55cqw -3.2cqw 0; border-radius: .3cqw .3cqw 2.2cqw 2.2cqw; background: linear-gradient(180deg, #9c9fa6 0%, #5d6066 45%, #2c2d31 100%); box-shadow: 0 .5cqw 0 rgba(0,0,0,.35); }
.lap__base::after { content: ""; position: absolute; left: 50%; top: 0; width: 13cqw; height: .7cqw; transform: translateX(-50%); border-radius: 0 0 1cqw 1cqw; background: linear-gradient(180deg, #1d1e22, #484a50); }

.iph { position: relative; width: 100%; aspect-ratio: 402 / 874; container-type: inline-size; filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
.iph__body { position: absolute; inset: 0; border-radius: 15.6% / 7.2%; padding: .7%;
  background: linear-gradient(135deg, #cfd3da 0%, #5b5e66 14%, #2d2e33 34%, #8e9198 52%, #34353a 70%, #6d7078 86%, #c2c6cd 100%); }
.iph__body::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 .7cqw rgba(0,0,0,.55), inset 0 1px 1px rgba(255,255,255,.55); pointer-events: none; }
.iph__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 14.6% / 6.7%; background: #000; padding: 1.6%; }
.iph__screen video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 13.2% / 6.1%; background: #120d24; }
.iph__island { position: absolute; z-index: 4; left: 50%; top: 2.4%; width: 31.5%; height: 4.3%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.iph__island u { position: absolute; right: 8%; top: 50%; width: 15%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a78 0, #11162b 45%, #05060c 75%); box-shadow: 0 0 0 .5cqw #0b0b10; }
.iph__status { position: absolute; z-index: 3; left: 9%; right: 9%; top: 3.1%; display: flex; justify-content: space-between; align-items: center; color: #fff; pointer-events: none; }
.iph__status b { font: 600 4.9cqw/1 var(--font); letter-spacing: -.02em; padding-left: 3%; }
.iph__status--dark { color: #1a1530; }
.iph__sys { display: flex; align-items: center; gap: 1.6cqw; padding-right: 1%; }
.iph__sys svg { height: 3.2cqw; width: auto; fill: currentColor; }
.iph__sys svg:last-child { height: 3.4cqw; }
.iph__home { position: absolute; z-index: 4; left: 50%; bottom: 2.1%; width: 34%; height: .75cqw; min-height: 3px; transform: translateX(-50%); border-radius: 99px; background: rgba(255,255,255,.9); }
.iph__glare { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; background: linear-gradient(118deg, rgba(255,255,255,.11) 0%, rgba(255,255,255,.03) 24%, transparent 42%); }
.iph__btn { position: absolute; z-index: 0; width: 1.3%; border-radius: 3px; background: linear-gradient(90deg, #4a4c52, #9a9da4 50%, #3c3d42); }
.iph__btn--a  { left: -1%; top: 14.6%; height: 3.6%; }
.iph__btn--v1 { left: -1%; top: 21%; height: 6.4%; }
.iph__btn--v2 { left: -1%; top: 28.6%; height: 6.4%; }
.iph__btn--p  { right: -1%; top: 24%; height: 10.5%; background: linear-gradient(90deg, #3c3d42, #9a9da4 50%, #4a4c52); }

/* ---------- подход ---------- */

/* ---------- контакты ---------- */
.band { position: relative; border-block: 1px solid var(--line); overflow: hidden; isolation: isolate; margin-top: var(--sec); }
.band__bg { position: absolute; inset: 0; z-index: -1; background: #050607; }
.band__bg i { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 14s ease-in-out infinite alternate; }
.band__bg i:nth-child(1) { width: 38%; height: 170%; left: -6%; top: -30%; background: rgba(170, 190, 210, 0.36); transform: rotate(20deg); }
.band__bg i:nth-child(2) { width: 34%; height: 190%; right: 6%; top: -40%; background: rgba(255, 168, 120, 0.42); animation-delay: -5s; }
.band__bg i:nth-child(3) { width: 26%; height: 150%; right: -6%; top: -20%; background: rgba(39, 199, 245, 0.32); animation-delay: -9s; }
.band__in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(72px, 10vw, 150px) var(--pad); }
.band__h { font-weight: 300; font-size: clamp(40px, 6vw, 96px); line-height: 1.05; letter-spacing: -0.025em; word-spacing: 0.06em; margin-bottom: 24px; }
.band__lead { max-width: 36em; margin-bottom: 40px; color: var(--fg-2); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; }
@keyframes drift { to { transform: translate(60px, -40px) rotate(-30deg); } }

/* ---------- подвал ---------- */
.foot { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 7vw, 96px) var(--pad) 0; min-height: 440px; display: flex; flex-direction: column; }
.foot .ribbons { z-index: -2; }
.foot__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent 30%, rgba(0,0,0,0.72) 60%), linear-gradient(180deg, #000, transparent 25%); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; flex: 1; align-items: start; }
.foot__brand { position: relative; display: grid; gap: 20px; }
.foot__brand::before { content: ""; position: absolute; inset: -40px -70px -40px -48px; z-index: -1; background: radial-gradient(closest-side, rgba(0,0,0,0.72), transparent); }
.foot__brand img { height: 50px; width: auto; }
.foot__brand p { color: var(--fg-2); font-size: clamp(18px, 1.5vw, 22px); max-width: 16em; line-height: 1.35; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot__cols h3 { font-size: 18px; font-weight: 500; margin-bottom: 18px; }
.foot__cols a { display: block; color: var(--fg-2); line-height: 32px; transition: color 0.2s; }
.foot__cols a:hover { color: #fff; }
.foot__bot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px 0 32px; margin-top: 56px; color: var(--fg-2); font-size: 16px; }
.foot__link:hover { color: #fff; }
.foot__bot { position: relative; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); background: linear-gradient(0deg, rgba(0,0,0,.92) 40%, rgba(0,0,0,0)); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
    .glass-grid { gap: 16px; }
  .glass { padding: 24px; min-height: 240px; gap: 28px; }
}
@media (max-width: 900px) {
  .proj { grid-template-columns: 1fr; gap: 28px; }
  .proj--rev .proj__vis { order: 0; }
  .glass-grid { grid-template-columns: 1fr; }
  .glass { min-height: 0; gap: 24px; }
  .nav, .header .pill { display: none; }
  .burger { display: block; }
  .header__in { grid-template-columns: 1fr auto; }
  .hero { min-height: 100vh; min-height: 100svh; align-items: flex-end; padding-bottom: 48px; }
  .hero__shade { background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.15) 100%); }
  .foot__top { grid-template-columns: 1fr; }
  .foot__shade { background: linear-gradient(180deg, #000, rgba(0,0,0,.2) 25%, rgba(0,0,0,.8) 80%); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .ring::before { padding: 2px; }
  .hero__cta .pill { width: 100%; justify-content: space-between; }
  .facts li { grid-template-columns: 84px 1fr; }
  .foot__bot { flex-direction: column; align-items: flex-start; }
}
/* ---------- адаптив проектов: планшет и телефон ---------- */
@media (max-width: 900px) {
  .proj, .proj--rev { gap: 24px; padding-block: 28px; }
  .proj .proj__vis, .proj--rev .proj__vis { order: -1; }
  .proj__name { font-size: clamp(36px, 8.5vw, 52px); }
  .proj__desc { max-width: none; }
  .proj__vis { width: 100%; max-width: 640px; margin-inline: auto; }
  .proj__txt { width: 100%; max-width: 640px; margin-inline: auto; }
}
@media (min-width: 600px) and (max-width: 900px) { .glass-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .proj, .proj--rev { gap: 20px; padding-block: 24px; }
  .proj__txt { gap: 14px; }
  .proj__lead { font-size: 18px; }
  .proj__desc { font-size: 16px; line-height: 1.5; }
  .tags { gap: 6px; }
  .tags li { font-size: 12px; padding: 5px 10px; }
  .proj__vis { border-radius: 24px; }
  .vpanel--gul { aspect-ratio: 4 / 3; }
  .vfill { aspect-ratio: 16 / 10; }
  .vis--aivis { aspect-ratio: 1 / 1.06; }
  .avslide .iph { left: 27%; top: 3.5%; width: 46%; }
  .lap { left: 3%; width: 94%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  }

/* ---------- служебная страница (политика, источники) ---------- */
.doc { max-width: 860px; margin: 0 auto; padding: clamp(120px, 14vw, 180px) var(--pad) clamp(56px, 7vw, 96px); min-height: 70svh; }
.doc h1 { font-weight: 300; font-size: clamp(36px, 4.45vw, 64px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: clamp(32px, 4vw, 56px); }
.doc__sec { padding-block: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.doc__sec h2 { font-weight: 500; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.3; }
.doc__sec p { color: var(--fg-2); font-size: 17px; line-height: 1.6; }
.doc__sec a { color: #fff; border-bottom: 1px solid var(--line); }
.doc__sec a:hover { border-color: #fff; }
.doc__meta { margin: -28px 0 clamp(24px, 3vw, 40px); color: var(--fg-3); font-size: 15px; }
.doc__sec p + p, .doc__sec p + ul, .doc__sec ul + p { margin-top: 2px; }
.doc__sec ul { display: grid; gap: 6px; padding-left: 20px; list-style: disc; color: var(--fg-2); font-size: 17px; line-height: 1.55; }
.doc__sec ul li::marker { color: var(--fg-3); }
.doc__fill { background: rgba(245,137,74,.22); color: #ffd9c2; border-radius: 4px; padding: 0 5px; }
.doc__todo { font-style: italic; color: var(--fg-3) !important; }
.doc__foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 28px var(--pad) 32px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 16px; }
.doc__foot a:hover { color: #fff; }

/* теги проектов скрыты на время (разметка сохранена в index.html: чтобы вернуть, удалить это правило) */
.tags { display: none; }
