/* =========================================================
   IGP — дизайн-система
   Строгая монохромная премиальная эстетика.
   ========================================================= */

:root {
  /* палитра */
  --bg:        #0a0a0b;
  --bg-alt:    #0f0f11;
  --surface:   #121215;
  --line:      #1f1f24;
  --line-2:    #2a2a31;
  --text:      #ececee;
  --text-dim:  #9a9aa3;
  --text-mute: #6c6c75;
  --accent:    #ffffff;

  /* типографика */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* шкала */
  --container:    1200px;
  --container-px: clamp(16px, 3.2vw, 32px);
  --radius:       4px;
  --radius-lg:    10px;
  --ease:         cubic-bezier(0.2, 0.7, 0.2, 1);

  /* отступы секций */
  --section-y: clamp(64px, 9vw, 140px);

  /* высота шапки (используется в sticky-offset и mobile-nav) */
  --header-h: 72px;
}

/* =============== RESET =============== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* учёт «чёлки»/safe-area на iOS */
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; overflow-wrap: break-word; }
address { font-style: normal; }

/* длинные слова/адреса/ссылки не ломают макет на узких экранах */
h1, h2, h3, h4 { word-break: break-word; hyphens: auto; }

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

/* =============== LAYOUT =============== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left:  max(var(--container-px), env(safe-area-inset-left));
  padding-right: max(var(--container-px), env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* =============== TYPO =============== */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
}

.accent { color: var(--text); position: relative; white-space: nowrap; }
.accent::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  margin-left: 6px;
  transform: translateY(-4px);
  border-radius: 1px;
  vertical-align: baseline;
}

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  border: 1px solid transparent;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }

@media (hover: hover) and (pointer: fine) {
  .btn-solid:hover { background: #fff; transform: translateY(-1px); }
  .btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.03); }
}

/* =============== HEADER / NAV =============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: rgba(10, 10, 11, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 14px;
}
.brand-mark {
  width: 14px; height: 14px;
  background: var(--text);
  display: inline-block;
  position: relative;
}
.brand-mark::before {
  content: "";
  position: absolute; inset: 3px;
  background: var(--bg);
}
.brand-name { font-family: var(--font-sans); }

.nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav a { position: relative; transition: color 0.2s var(--ease); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { transform: scaleX(1); }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--text); }
  .nav a:hover::after { transform: scaleX(1); }
}

.nav-cta { padding: 10px 16px; min-height: 40px; font-size: 13px; }

/* --- переключатель языка RU / EN --- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.lang-switch-current { color: var(--text); }
.lang-switch-sep { color: var(--line-2); }
.lang-switch-other { color: var(--text-mute); }
@media (hover: hover) and (pointer: fine) {
  .lang-switch:hover { border-color: var(--line-2); }
  .lang-switch:hover .lang-switch-other { color: var(--text); }
}
.mobile-nav .lang-switch {
  align-self: flex-start;
  margin-top: 16px;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px max(20px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: var(--bg);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 16px;
}
.mobile-nav a:last-child { border-bottom: 0; margin-top: 12px; }
.mobile-nav.is-open { display: flex; }

/* =============== HERO =============== */
.hero {
  padding: clamp(80px, 14vw, 180px) 0 clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 500px at 20% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015));
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero-title {
  margin-top: 20px;
  font-size: clamp(44px, 8vw, 112px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 14ch;
}
.hero-lead {
  margin-top: 28px;
  max-width: 58ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  line-height: 1.6;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-metrics {
  margin: clamp(60px, 10vw, 110px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.hero-metrics > div {
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
}
.hero-metrics > div:last-child { border-right: 0; }
.hero-metrics dt {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero-metrics dd {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.legal-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.legal-info > div {
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
}
.legal-info > div:last-child { border-right: 0; }
.legal-info dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.legal-info dd {
  margin: 8px 0 0;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text);
}

/* =============== SECTIONS =============== */
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--bg-alt); }
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 { margin-bottom: 18px; }
.section-head p { color: var(--text-dim); font-size: 17px; }
/* =============== GRID =============== */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* =============== SERVICES =============== */
.services .card {
  background: var(--bg);
  padding: 40px 32px 44px;
  position: relative;
  transition: background 0.3s var(--ease);
}
.services .card:hover { background: var(--surface); }
.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}
.card h3 { margin: 22px 0 10px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* =============== TIMELINE =============== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.timeline-item {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.timeline-item:last-child { border-right: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 40px; height: 2px;
  background: var(--text);
}
.timeline-step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}
.timeline-item h3 { margin: 18px 0 10px; }
.timeline-item p { color: var(--text-dim); font-size: 15px; }

/* =============== CASES =============== */
.cases .case {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  transition: background 0.3s var(--ease);
}
.cases .case:hover { background: var(--surface); }
.case-media {
  flex: 1;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 16px);
  border-bottom: 1px solid var(--line);
  position: relative;
  min-height: 220px;
}
.case-badge {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--line-2);
  padding: 4px 8px;
  border-radius: 2px;
}
.case-body { padding: 28px 32px 36px; }
.case-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.case-body h3 { margin: 12px 0 10px; }
.case-body p { color: var(--text-dim); font-size: 15px; }

/* =============== CONTACT =============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-lead { color: var(--text-dim); margin: 16px 0 36px; max-width: 48ch; }
.contact-list { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.contact-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact-list a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color 0.2s var(--ease); }
.contact-list a:hover { border-color: var(--text); }

/* =============== FORM =============== */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input,
.field textarea {
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  /* 16px — минимум, чтобы Safari не зумил страницу при фокусе */
  font-size: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 120px; }
.field input:focus,
.field textarea:focus { outline: 0; border-color: var(--text); background: rgba(255, 255, 255, 0.02); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: #e86f6f; }
.form-submit { justify-self: start; margin-top: 6px; }
.form-status { font-size: 13px; color: var(--text-dim); min-height: 1.4em; margin: 0; }
.form-status.is-ok { color: #7dd3a2; }
.form-status.is-err { color: #e86f6f; }


/* =============== FOOTER =============== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 88px) 0 calc(32px + env(safe-area-inset-bottom));
  margin-top: clamp(80px, 10vw, 140px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 400;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 14px; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 14px;
  margin-bottom: 18px;
}
.footer-tagline { color: var(--text-dim); font-size: 14px; max-width: 30ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-mute);
}
.footer-legal { display: flex; gap: 10px; align-items: center; margin: 0; }
.footer-legal a { color: var(--text-mute); transition: color 0.2s var(--ease); }
.footer-legal a:hover { color: var(--text); }

/* =============== REVEAL =============== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =============== RESPONSIVE =============== */
/* --- большие планшеты / узкие ноуты --- */
@media (max-width: 1120px) {
  .nav { gap: 22px; }
  .nav-cta { padding: 10px 14px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-item:nth-child(2) { border-right: 0; }
  .timeline-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-metrics > div:nth-child(2) { border-right: 0; }
  .hero-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
  .hero-metrics > div:nth-child(n+3) { padding-top: 28px; }
  .legal-info { grid-template-columns: 1fr; }
  .legal-info > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .legal-info > div:last-child { border-bottom: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* --- планшеты: прячем десктоп-меню, показываем бургер --- */
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .header-inner > .lang-switch { display: none; }
  .nav-toggle { display: block; }
}

/* --- мобильные --- */
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline-item:last-child { border-bottom: 0; }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-metrics > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }
  .hero-metrics > div:last-child { border-bottom: 0; }
  .contact-list li { grid-template-columns: 100px 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* --- очень узкие экраны (iPhone SE, старые Android) --- */
@media (max-width: 380px) {
  :root { --container-px: 14px; }
  .hero-title { letter-spacing: -0.025em; }
  .brand { font-size: 13px; letter-spacing: 0.14em; }
  .services .card { padding: 32px 22px 36px; }
  .subhero h1 { letter-spacing: -0.02em; }
}

/* --- ландшафт на мобильных: уменьшаем вертикальные отступы hero --- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { padding: clamp(48px, 10vw, 80px) 0 clamp(40px, 6vw, 64px); }
  .subhero { padding: clamp(64px, 9vw, 100px) 0 clamp(40px, 5vw, 72px); }
  .hero-metrics { margin-top: clamp(32px, 6vw, 56px); }
}

/* --- очень большие экраны / 4K --- */
@media (min-width: 1680px) {
  :root { --container: 1360px; }
}
@media (min-width: 2200px) {
  :root { --container: 1520px; }
  html { font-size: 17px; }
}

/* =========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   ========================================================= */

/* ---------- Subhero ---------- */
.subhero {
  padding: clamp(100px, 12vw, 160px) 0 clamp(60px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.subhero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 85% -20%, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
}
.subhero > .container { position: relative; }
.subhero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 18ch;
}
.subhero-lead {
  margin-top: 24px;
  max-width: 60ch;
  color: var(--text-dim);
  font-size: clamp(16px, 1.3vw, 18px);
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.crumbs a { color: var(--text-mute); transition: color 0.2s var(--ease); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- Two-column info ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.two-col .col-aside {
  position: sticky;
  top: 100px;
}
.two-col h2 { font-size: clamp(28px, 3.2vw, 40px); }
.two-col p { color: var(--text-dim); margin-top: 14px; }

/* ---------- Feature list (с номерами и границами) ---------- */
.feature-list { display: grid; border-top: 1px solid var(--line); }
.feature-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list .fl-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  padding-top: 4px;
}
.feature-list h3 { margin-bottom: 6px; }
.feature-list p { color: var(--text-dim); font-size: 15px; }

/* ---------- Tech stack pills ---------- */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.stack li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
  border: 1px solid var(--line-2);
  padding: 6px 10px;
  border-radius: 2px;
  background: rgba(255,255,255,0.02);
}

/* ---------- Large CTA ---------- */
.cta-block {
  border: 1px solid var(--line);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-block h2 { font-size: clamp(28px, 3.2vw, 44px); max-width: 16ch; }
.cta-block p { color: var(--text-dim); max-width: 56ch; }
.cta-block .btn { justify-self: end; }

/* ---------- List of cases (portfolio grid: full-width rows) ---------- */
.cases-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.cases-list .case-row {
  display: grid;
  grid-template-columns: 120px 1.4fr 1fr 120px;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.cases-list .case-row:hover { background: rgba(255,255,255,0.02); padding-left: 12px; }
.case-row-year { font-family: var(--font-mono); font-size: 13px; color: var(--text-mute); }
.case-row-title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.case-row-meta { color: var(--text-dim); font-size: 14px; }
.case-row-arrow { justify-self: end; color: var(--text-mute); font-family: var(--font-mono); font-size: 14px; }
.cases-list .case-row:hover .case-row-arrow { color: var(--text); }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.filters button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--line-2);
  padding: 8px 14px;
  border-radius: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }


/* ---------- Careers / Jobs list ---------- */
.jobs { display: grid; border-top: 1px solid var(--line); }
.jobs a {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
  color: var(--text);
}
.jobs a:hover { background: rgba(255,255,255,0.02); padding-left: 12px; }
.job-title { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.job-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-mute); text-transform: uppercase; }

/* ---------- Values / principles grid ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values li { background: var(--bg); padding: 32px 28px; }
.values .val-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--text-mute); }
.values h3 { margin: 16px 0 8px; }
.values p { color: var(--text-dim); font-size: 15px; }

/* ---------- Case detail ---------- */
.case-hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 6vw, 80px);
}
.case-hero-meta > div { padding: 24px 20px 0 0; border-right: 1px solid var(--line); }
.case-hero-meta > div:last-child { border-right: 0; }
.case-hero-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.case-hero-meta dd { margin: 8px 0 0; font-size: 16px; color: var(--text); }

.case-visual {
  margin: clamp(40px, 5vw, 80px) 0;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 16px);
  border: 1px solid var(--line);
}

.prose { max-width: 70ch; }
.prose h2 { margin-top: 48px; margin-bottom: 16px; font-size: clamp(24px, 2.6vw, 32px); }
.prose p { color: var(--text-dim); margin-top: 14px; line-height: 1.75; font-size: 16px; }
.prose ul { display: grid; gap: 8px; margin-top: 14px; }
.prose ul li {
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
  font-size: 16px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 10px; height: 1px;
  background: var(--text-mute);
}

.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  margin-top: 24px;
}
.results > div { padding: 28px 24px; border-right: 1px solid var(--line); }
.results > div:last-child { border-right: 0; }
.results dt { font-size: clamp(28px, 3vw, 40px); font-weight: 400; letter-spacing: -0.02em; color: var(--text); }
.results dd { margin: 10px 0 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }

/* ---------- Industries row ---------- */
.industries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.industries li { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text-dim); font-size: 14px; }
.industries li:nth-child(4n) { border-right: 0; }
.industries li:nth-last-child(-n+4) { border-bottom: 0; }

/* ---------- Responsive (inner) ---------- */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col .col-aside { position: static; }
  .cta-block { grid-template-columns: 1fr; }
  .cta-block .btn { justify-self: start; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-hero-meta > div:nth-child(2) { border-right: 0; }
  .case-hero-meta > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .case-hero-meta > div:nth-child(n+3) { padding-top: 24px; }
  .results { grid-template-columns: 1fr; }
  .results > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .results > div:last-child { border-bottom: 0; }
  .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries li:nth-child(4n) { border-right: 1px solid var(--line); }
  .industries li:nth-child(2n) { border-right: 0; }
}
@media (max-width: 720px) {
  .cases-list .case-row { grid-template-columns: 1fr; gap: 6px; }
  .cases-list .case-row:hover { padding-left: 0; }
  .case-row-arrow { display: none; }
  .jobs a { grid-template-columns: 1fr; gap: 6px; }
  .jobs a:hover { padding-left: 0; }
  .values { grid-template-columns: 1fr; }
  .feature-list li { grid-template-columns: 1fr; gap: 8px; }
  .feature-list .fl-num { padding-top: 0; }
  .industries { grid-template-columns: 1fr; }
  .industries li { border-right: 0; }
  .case-hero-meta { grid-template-columns: 1fr; }
  .case-hero-meta > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }
  .case-hero-meta > div:last-child { border-bottom: 0; }
  .cta-block { padding: 28px 22px; }
  .subhero { padding-top: clamp(72px, 14vw, 120px); }
}

/* --- фильтры: скроллируем горизонтально, чтобы не ломались --- */
@media (max-width: 560px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(var(--container-px) * -1);
    margin-right: calc(var(--container-px) * -1);
    padding: 0 var(--container-px) 4px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: 0 0 auto; }
  .stack { gap: 6px; }
  .stack li { font-size: 11px; padding: 5px 8px; }
}

/* --- отключаем hover‑смещения на touch‑устройствах --- */
@media (hover: none) {
  .services .card:hover,
  .cases .case:hover { background: var(--bg); }
  .cases-list .case-row:hover { background: transparent; padding-left: 0; }
  .jobs a:hover { background: transparent; padding-left: 0; }
}


/* =========================================================
   REFINEMENT — мягкая огранка монохрома: тёплая ivory‑подсветка,
   плёночное зерно, дыхание hero, куртуазный spotlight от курсора.
   Всё гасится при prefers-reduced-motion.
   ========================================================= */

:root {
  --radius:    6px;
  --radius-lg: 14px;
  --mx: 50%;
  --my: 0%;
}

/* Мягкий ivory‑оттенок основного текста — уходит от клинической белизны */
body { color: #efeeea; }
::selection { background: #efeeea; color: var(--bg); }

/* Плёночное зерно поверх всей страницы — едва уловимая фактура */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* Живое сияние hero и subhero — медленное дыхание */
.hero::before,
.subhero::before {
  animation: heroBreath 16s ease-in-out infinite;
}
@keyframes heroBreath {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.72; }
}

/* Курсор‑spotlight поверх hero/subhero (активируется из JS) */
.hero, .subhero { --sp-opacity: 0; }
.hero::after,
.subhero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(360px 360px at var(--mx) var(--my),
              rgba(255,255,255,0.055), transparent 62%);
  opacity: var(--sp-opacity);
  transition: opacity 0.55s var(--ease);
  z-index: 0;
}
.hero > .container,
.subhero > .container { z-index: 1; }

/* Нежный reveal — с лёгким блюр‑вхождением и чуть длиннее */
.reveal {
  transform: translateY(22px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal.is-visible { filter: blur(0); }

/* Мягкий лифт карточек услуг и кейсов на hover */
@media (hover: hover) and (pointer: fine) {
  .services .card,
  .cases .case {
    transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }
  .services .card:hover,
  .cases .case:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 52px -30px rgba(255,255,255,0.10);
  }
}

/* Оживлённый знак в лого — еле заметное дыхание */
.brand-mark { animation: brandPulse 5.5s ease-in-out infinite; }
@keyframes brandPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.78; transform: scale(0.96); }
}

/* Мягкий focus‑glow вместо жёсткого outline */
.btn:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.lang-switch:focus-visible,
.nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(239,238,234,0.28);
}

/* Тёплый hover‑фон у карточек — на тон светлее surface */
.services .card:hover,
.cases .case:hover { background: #15151a; }

/* Нежный вход страницы — лёгкий fade при первой отрисовке */
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
main { animation: pageIn 0.6s var(--ease) both; }

/* Тонкая полоска прогресса чтения сверху */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 9998;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(239,238,234,0.85) 40%, #efeeea 70%, rgba(239,238,234,0.85) 100%);
  box-shadow: 0 0 12px rgba(239,238,234,0.25);
  transition: width 0.08s linear;
}

/* Stagger-reveal — задержка берётся из JS через --rd */
.reveal { transition-delay: var(--rd, 0ms); }

/* Магнитная механика для CTA — движение через --mag-x/--mag-y */
.hero-actions .btn,
.nav-cta {
  --mag-x: 0px;
  --mag-y: 0px;
  transform: translate(var(--mag-x), var(--mag-y));
}
/* переопределяем старый hover translateY — теперь он через magnetic */
.hero-actions .btn-solid:hover { transform: translate(var(--mag-x), var(--mag-y)); }

/* Уважение к reduced-motion: гасим всю декоративную анимацию */
@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
  .hero::before, .subhero::before,
  .hero::after, .subhero::after,
  .brand-mark { animation: none; }
  .hero::after, .subhero::after { display: none; }
  main { animation: none; }
  .reveal { filter: none; }
}

/* Временно скрытые контакты — структура видна, данные заблюрены до публикации */
.blur-stub {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  opacity: 0.72;
  letter-spacing: 0.02em;
}
.blur-stub::selection { background: transparent; }
