/* ==========================================================================
   ai-product-manager.ru — Александр Бакалов
   Палитра и типографика по референсам (кремовая рамка, чёрная hero-карта,
   антиква в заголовках, оранжевый и фиолетовый акценты, бордовые блоки)
   ========================================================================== */

:root {
  --cream: #ece4d4;
  --paper: #f5efe3;
  --paper-2: #e3d9c6;
  --ink: #121110;
  --ink-2: #1c1a18;
  --ink-3: #2a2724;
  --muted: #6f675c;
  --muted-dark: #a59d90;
  --line: rgba(18, 17, 16, .12);
  --line-dark: rgba(236, 228, 212, .12);
  --orange: #f25a2a;
  --orange-2: #ff7a4d;
  --violet: #5b3df5;
  --burgundy: #4a0b17;
  --burgundy-2: #5e1323;

  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-xl: 36px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--orange); color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- Рамка страницы (кремовая «карта» на чёрном фоне) ---------- */

.frame {
  max-width: calc(var(--maxw) + 40px);
  margin: clamp(0px, 2vw, 28px) auto;
  background: var(--cream);
  border-radius: clamp(0px, 3vw, var(--r-xl));
  padding: 0 clamp(8px, 1.2vw, 18px) clamp(8px, 1.2vw, 18px);
  overflow: clip;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Шапка ---------- */

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px clamp(12px, 3vw, 64px);
  position: relative; z-index: 20;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; font-family: var(--serif); font-size: 17px; letter-spacing: -.02em;
}
.brand__slash { color: var(--muted); margin-right: 2px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 10px; border-radius: 999px;
  transition: background .2s;
}
.nav a:hover { background: rgba(18, 17, 16, .07); }
.nav__dot { color: var(--muted); }
.nav a[aria-current="page"] { background: rgba(18, 17, 16, .08); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--ink-3); }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 10px 30px -12px rgba(242, 90, 42, .8); }
.btn--orange:hover { background: var(--orange-2); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--ghost-dark { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-dark); }
.btn--ghost-dark:hover { box-shadow: inset 0 0 0 1px rgba(236, 228, 212, .4); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--cream);
  cursor: pointer; place-items: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: grid; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 76px; left: 12px; right: 12px; padding: 12px;
    background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35);
  }
  .nav.is-open a { padding: 14px 16px; font-size: 17px; }
  .nav.is-open .nav__dot { display: none; }
  .nav.is-open .nav__cta { display: flex; margin-top: 8px; background: var(--orange); color: #fff; justify-content: center; }
}
.nav__cta { display: none; }

/* ---------- Hero: первый экран всегда целиком в окне ----------
   Все вертикальные размеры считаются от высоты окна (--u = 1svh,
   с запасным 1vh для старых браузеров), горизонтальные — от ширины. */

:root { --u: 1vh; --frame-top: clamp(0px, 2vw, 28px); --header-h: 92px; }
@supports (height: 1svh) { :root { --u: 1svh; } }
@media (max-width: 960px) { :root { --header-h: 68px; } }

.frame { margin-top: var(--frame-top); }
.site-header { height: var(--header-h); padding-top: 0; padding-bottom: 0; }

.hero {
  position: relative; background: var(--ink); color: var(--cream); border-radius: var(--r-xl);
  min-height: calc(100 * var(--u) - var(--frame-top) - var(--header-h) - 8px);
  padding: clamp(20px, calc(var(--u) * 5), 72px) clamp(20px, 5vw, 88px);
  overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(236, 228, 212, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 228, 212, .045) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 75% 50%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; z-index: -1;
  background: radial-gradient(circle, rgba(91, 61, 245, .28), transparent 65%);
}

.badge-row { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(12px, calc(var(--u) * 3.4), 44px); }
.badge-row__icon {
  width: clamp(40px, calc(var(--u) * 5.4), 48px); height: clamp(40px, calc(var(--u) * 5.4), 48px);
  border-radius: 50%; background: var(--cream); color: var(--ink);
  display: grid; place-items: center; flex: none; position: relative;
}
.badge-row__icon::after {
  content: ""; position: absolute; right: 0; top: 0; width: 11px; height: 11px; border-radius: 50%;
  background: #3ddc84; box-shadow: 0 0 0 3px var(--ink); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.badge-row__icon svg { width: 45%; height: 45%; }
.badge-row__avatar { display: none; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.badge-row strong { display: block; font-size: clamp(15px, calc(var(--u) * 2), 17px); line-height: 1.3; }
.badge-row span { font-size: clamp(13px, calc(var(--u) * 1.7), 15px); line-height: 1.45; color: var(--muted-dark); }
.badge-row a { color: var(--cream); }

.hero h1 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; margin: 0; line-height: .92;
  font-size: clamp(40px, min(8vw, calc(var(--u) * 11.5)), 132px);
}
.hero h1 em { font-style: italic; color: var(--orange); }
.hero h1 .h1-sub {
  display: block; font-family: var(--sans); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4;
  font-size: clamp(11px, min(1.2vw, calc(var(--u) * 1.9)), 17px); color: var(--muted-dark);
  margin-top: clamp(8px, calc(var(--u) * 2.2), 22px);
}

.hero__lead {
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  margin: clamp(12px, calc(var(--u) * 3.2), 44px) 0; padding: clamp(10px, calc(var(--u) * 2.6), 32px) 0;
}
.hero__lead p {
  font-size: clamp(15px, min(1.65vw, calc(var(--u) * 2.4)), 23px); line-height: 1.45; color: #f3ecdf;
  margin: 0 0 clamp(8px, calc(var(--u) * 1.8), 20px); max-width: 34ch;
}
.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: clamp(13px, calc(var(--u) * 1.75), 15px); color: var(--muted-dark); }
.hero__proof b { color: var(--cream); font-weight: 600; }
.hero__proof .sep { opacity: .5; }

.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero__ctas .btn { min-height: clamp(46px, calc(var(--u) * 6.4), 54px); }
.hero__ctas .link-arrow { color: var(--cream); }

/* Правая часть — композиция карточек, масштабируется по высоте окна */
.hero__visual {
  --tile: clamp(52px, calc(var(--u) * 8.6), 92px);
  position: relative; display: grid; grid-template-columns: clamp(72px, calc(var(--u) * 10.5), 96px) minmax(0, 1fr);
  gap: 14px; align-items: start; justify-self: end; width: 100%; max-width: 540px;
}
.tool-stack { display: grid; gap: clamp(6px, calc(var(--u) * 1.1), 12px); }
.tool {
  height: var(--tile); border-radius: 14px; background: var(--ink-3); color: #d8d0c2;
  display: grid; place-items: center; align-content: center; gap: clamp(3px, calc(var(--u) * .6), 7px); text-align: center;
  font-size: clamp(10.5px, calc(var(--u) * 1.4), 12.5px); line-height: 1.15;
  box-shadow: inset 0 0 0 1px var(--line-dark); transition: transform .3s var(--ease), background .3s;
}
.tool:hover { transform: translateX(-4px); background: #34302c; }
.tool svg { width: clamp(18px, calc(var(--u) * 3), 28px); height: clamp(18px, calc(var(--u) * 3), 28px); color: var(--cream); }

.profile-card {
  position: relative; background: var(--cream); color: var(--ink); border-radius: var(--r-lg);
  padding: clamp(12px, calc(var(--u) * 2.4), 22px) 18px clamp(40px, calc(var(--u) * 6), 56px); text-align: center;
}
.profile-card__photo { width: min(100%, calc(var(--u) * 31), 290px); aspect-ratio: 900 / 1009; margin: 0 auto 4px; position: relative; }
.profile-card__photo img { width: 100%; height: 100%; object-fit: contain; }
.spark { position: absolute; width: clamp(14px, calc(var(--u) * 2.4), 22px); height: clamp(14px, calc(var(--u) * 2.4), 22px); }
.spark--orange { color: var(--orange); left: 10%; top: 22%; }
.spark--violet { color: var(--violet); right: 8%; bottom: 18%; }
.profile-card__name { font-weight: 700; font-size: clamp(20px, calc(var(--u) * 3), 28px); letter-spacing: -.02em; margin: 2px 0 clamp(6px, calc(var(--u) * 1.2), 12px); }
.profile-card__role {
  display: inline-block; padding: clamp(5px, calc(var(--u) * .9), 8px) 16px; border: 1.5px solid rgba(18, 17, 16, .25); border-radius: 999px;
  font-size: clamp(11px, calc(var(--u) * 1.5), 14px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

.sparkle-tile {
  position: absolute; right: -18px; top: -20px; width: clamp(54px, calc(var(--u) * 8.5), 80px); height: clamp(54px, calc(var(--u) * 8.5), 80px);
  border-radius: 14px; background: var(--violet); color: #fff; display: grid; place-items: center;
  box-shadow: 6px 6px 0 var(--ink-2); animation: float 6s ease-in-out infinite;
}
.sparkle-tile svg { width: 55%; height: 55%; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(3deg); } }

.outcome-card {
  display: block; position: relative; z-index: 2; text-decoration: none;
  width: min(330px, 78%); margin: calc(-1 * clamp(28px, calc(var(--u) * 4.4), 44px)) -26px 0 auto;
  background: var(--orange); color: #fff; border-radius: 14px; padding: clamp(10px, calc(var(--u) * 1.8), 16px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transition: transform .3s var(--ease);
}
.outcome-card:hover { transform: translateY(-3px); }
.outcome-card__title { font-size: clamp(14px, calc(var(--u) * 2.1), 19px); font-weight: 700; margin: 0 0 clamp(6px, calc(var(--u) * 1.1), 10px); letter-spacing: -.01em; }
.outcome-card__box { background: var(--paper); color: var(--ink); border-radius: 8px; padding: clamp(8px, calc(var(--u) * 1.4), 13px) 14px; display: flex; align-items: center; gap: 12px; }
.outcome-card__num { font-size: clamp(30px, calc(var(--u) * 5), 46px); font-weight: 500; line-height: 1; letter-spacing: -.05em; }
.outcome-card__box p { margin: 0; font-size: clamp(11.5px, calc(var(--u) * 1.55), 13.5px); line-height: 1.3; text-align: left; }

/* Планшеты и телефоны: одна колонка, крупная фотография заменяется аватаром */
@media (max-width: 1100px) {
  .hero {
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(18px, calc(var(--u) * 4), 56px) clamp(18px, 5vw, 64px);
  }
  .hero__visual { display: none; }
  .badge-row__icon { width: clamp(42px, calc(var(--u) * 6.4), 64px); height: clamp(42px, calc(var(--u) * 6.4), 64px); }
  .badge-row__icon svg { display: none; }
  .badge-row__avatar { display: block; }
  .hero h1 { font-size: clamp(34px, min(13.5vw, calc(var(--u) * 9)), 112px); }
  .hero h1 .h1-sub { font-size: clamp(11px, min(3.1vw, calc(var(--u) * 1.9)), 16px); letter-spacing: .1em; }
  .hero__lead p { font-size: clamp(15px, min(4.3vw, calc(var(--u) * 2.5)), 22px); max-width: 40ch; }
}
@media (max-width: 560px) {
  .hero { border-radius: 24px; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__ctas .btn { width: 100%; }
  .hero__ctas .link-arrow { align-self: center; }
  .badge-row { gap: 12px; }
}
/* Низкие экраны (телефоны в альбомной ориентации, маленькие ноутбуки) */
@media (max-height: 640px) and (max-width: 1100px) { .hero__proof { display: none; } .hero__lead p { margin-bottom: 0; } }
@media (max-height: 460px) {
  .hero h1 .h1-sub { display: none; }
  .badge-row span { display: none; }
  .hero__ctas { flex-direction: row; align-items: center; }
  .hero__ctas .btn { width: auto; }
}

/* ---------- Лента компаний ---------- */

.logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 36px;
  padding: clamp(28px, 4vw, 44px) clamp(16px, 5vw, 88px);
}
.logos__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); flex-basis: 100%; }
.logos__item { font-weight: 800; font-size: clamp(17px, 1.8vw, 24px); letter-spacing: -.03em; opacity: .85; white-space: nowrap; }
.logos__item--serif { font-family: var(--serif); font-weight: 600; font-style: italic; letter-spacing: -.01em; }
.logos__item--mono { font-family: var(--mono); font-weight: 600; letter-spacing: -.04em; font-size: clamp(15px, 1.5vw, 20px); }

/* ---------- Секции ---------- */

.section { padding: clamp(64px, 9vw, 128px) clamp(16px, 5vw, 88px); }
.section--paper { background: var(--paper); border-radius: var(--r-xl); }
.section--tight { padding-top: clamp(40px, 5vw, 72px); }

.eyebrow {
  font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.eyebrow--light { color: var(--muted-dark); }

.h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 72px); line-height: 1.02;
  letter-spacing: -.03em; margin: 0; max-width: 18ch;
}
.h2 em { font-style: italic; color: var(--orange); }
.h3 { font-size: clamp(21px, 1.8vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 10px; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: #3b3732; max-width: 60ch; }

.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .lead { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Цифры (бордовый блок) ---------- */

.stats { background: var(--burgundy); color: var(--paper); border-radius: var(--r-xl); overflow: hidden; }
.stats__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding: clamp(40px, 5vw, 72px) clamp(20px, 5vw, 72px); }
.stats__top h2 { font-family: var(--sans); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -.025em; margin: 0; }
.stats__top p { margin: 0; color: rgba(245, 239, 227, .7); align-self: end; font-size: 16px; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(245, 239, 227, .14); }
.stat { padding: 28px clamp(18px, 2vw, 30px) 34px; border-left: 1px solid rgba(245, 239, 227, .14); display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; }
.stat:first-child { border-left: 0; }
.stat__label { font-size: 14px; color: rgba(245, 239, 227, .65); line-height: 1.4; }
.stat__value { font-size: clamp(46px, 5vw, 76px); font-weight: 400; letter-spacing: -.05em; line-height: 1; margin-top: 28px; }
@media (max-width: 1100px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-top: 1px solid rgba(245, 239, 227, .14); min-height: 190px; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:first-child { grid-column: 1 / -1; }
  .stat:first-child + .stat { border-left: 0; }
  .stat:nth-child(3) { border-left: 1px solid rgba(245, 239, 227, .14); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(5) { border-left: 1px solid rgba(245, 239, 227, .14); }
  .stats__top { grid-template-columns: 1fr; }
}

/* ---------- Позиционирование: оператор vs builder ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare__col { border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px); }
.compare__col--muted { background: var(--paper-2); }
.compare__col--accent { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.compare__col--accent::after {
  content: ""; position: absolute; width: 280px; height: 280px; right: -90px; bottom: -110px;
  background: radial-gradient(circle, rgba(242, 90, 42, .45), transparent 65%);
}
.compare__tag { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.compare__title { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.02em; margin: 10px 0 22px; line-height: 1.1; }
.compare__quote { font-size: 17px; line-height: 1.55; margin: 0 0 22px; padding-left: 16px; border-left: 2px solid currentColor; opacity: .9; }
.compare__col--accent .compare__quote { border-color: var(--orange); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 16px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.45; }
.checklist svg { width: 20px; height: 20px; margin-top: 2px; }
.compare__col--muted .checklist svg { color: var(--muted); }
.compare__col--accent .checklist svg { color: var(--orange); }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Компетенции (4 опоры) ---------- */

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.pillar {
  background: var(--paper); border-radius: var(--r-lg); padding: 28px 26px 30px; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .35); }
.pillar__num { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pillar__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin: 22px 0 24px; color: #fff; }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar p { margin: 0; color: #4a453e; font-size: 15.5px; line-height: 1.55; }
.i-orange { background: var(--orange); } .i-violet { background: var(--violet); } .i-ink { background: var(--ink); } .i-burgundy { background: var(--burgundy); }
@media (max-width: 1100px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Текущая роль ---------- */

.now { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.now__card { background: var(--ink); color: var(--cream); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; position: relative; overflow: hidden; }
.now__card::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(236, 228, 212, .08) 1px, transparent 1.4px);
  background-size: 22px 22px; mask-image: linear-gradient(160deg, transparent 30%, #000);
  -webkit-mask-image: linear-gradient(160deg, transparent 30%, #000);
}
.now__card > * { position: relative; }
.live-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(236, 228, 212, .08); font-size: 13px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; animation: pulse 2s infinite; }
.now__company { font-family: var(--serif); font-size: clamp(48px, 6vw, 88px); line-height: .95; letter-spacing: -.035em; margin: 26px 0 12px; font-weight: 500; }
.now__role { font-size: clamp(18px, 1.6vw, 22px); color: #f3ecdf; margin: 0; }
.now__period { font-family: var(--mono); font-size: 14px; color: var(--muted-dark); margin-top: 10px; }
.now__flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.now__flow span { padding: 9px 14px; border-radius: 10px; background: var(--ink-3); font-size: 14px; font-weight: 600; }
.now__flow svg { width: 16px; height: 16px; color: var(--orange); }

.duties { display: grid; gap: 12px; align-content: start; }
.duty { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 24px; background: var(--cream); border-radius: var(--r-md); }
.duty__n { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--orange); font-style: italic; }
.duty h3 { font-size: 18px; margin: 0 0 4px; letter-spacing: -.01em; }
.duty p { margin: 0; font-size: 15.5px; color: #4a453e; line-height: 1.55; }
@media (max-width: 960px) { .now { grid-template-columns: 1fr; } }

/* ---------- Подход: 01/05 ---------- */

.process { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.step { padding: 28px 22px 10px 0; border-right: 1px solid var(--line); padding-left: 22px; }
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; }
.step__num { font-family: var(--sans); font-size: clamp(54px, 5vw, 80px); font-weight: 300; letter-spacing: -.06em; line-height: 1; color: #b9ae9b; }
.step__num small { font-size: 14px; letter-spacing: 0; margin-left: 4px; color: var(--muted); }
.step h3 { font-size: 19px; margin: 22px 0 10px; letter-spacing: -.01em; }
.step p { margin: 0; font-size: 15px; color: #4a453e; line-height: 1.55; }
.step__out { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--burgundy-2); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 1100px) {
  .process { grid-template-columns: 1fr 1fr; border-top: 0; }
  .step, .step:first-child { padding: 26px 20px 26px 0; border-right: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) { .process { grid-template-columns: 1fr; } }

/* ---------- Фото-полоса ---------- */

.photo-band { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.photo--big { grid-row: span 2; min-height: 520px; }
.photo figcaption {
  position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; justify-content: space-between; align-items: end; gap: 12px;
  color: #fff; font-size: 14px; line-height: 1.4;
}
.photo figcaption::before { content: ""; position: absolute; inset: -120px -16px -16px; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); z-index: -1; }
.photo figcaption strong { display: block; font-size: 18px; font-weight: 600; }
.photo__chip { background: var(--paper); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; max-width: 220px; }
.photo__chip b { display: block; color: var(--orange); font-size: 22px; letter-spacing: -.03em; }
@media (max-width: 860px) {
  .photo-band { grid-template-columns: 1fr; }
  .photo--big { grid-row: auto; min-height: 340px; }
  .photo { aspect-ratio: 4 / 3; }
  .photo--big { aspect-ratio: auto; }
}

/* ---------- Опыт (таймлайн) ---------- */

.timeline { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.job__period { font-family: var(--mono); font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.job__period b { display: block; color: var(--ink); font-weight: 600; }
.job__company { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.job__role { margin: 8px 0 0; font-weight: 600; font-size: 15px; color: var(--burgundy-2); }
.job__body { font-size: 15.5px; color: #3e3a34; line-height: 1.6; }
.job__body p { margin: 0 0 10px; }
.job__body ul { margin: 0; padding-left: 18px; }
.job__body li { margin-bottom: 6px; }
.job__body li::marker { color: var(--orange); }
.job--current { background: linear-gradient(90deg, rgba(242, 90, 42, .08), transparent 70%); margin: 0 -20px; padding: 30px 20px; border-radius: var(--r-md); }
.tagline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tagline span { font-family: var(--mono); font-size: 11.5px; padding: 4px 8px; border-radius: 6px; background: var(--paper-2); color: #4a453e; }
@media (max-width: 960px) { .job { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Кейсы: плитки ---------- */

.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-tile {
  display: flex; flex-direction: column; text-decoration: none; background: var(--paper);
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.case-tile:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .45); }
.case-tile__cover { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.case-tile__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case-tile:hover .case-tile__cover img { transform: scale(1.05); }
.case-tile__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-tile__meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.case-tile h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.25; margin: 0; }
.case-tile p { margin: 0; font-size: 15px; color: #4a453e; line-height: 1.5; }
.case-tile__foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.case-tile__result { font-weight: 700; font-size: 15px; }
.case-tile__result b { color: var(--orange); }
.case-tile__arrow { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; transition: background .25s, transform .25s var(--ease); flex: none; }
.case-tile__arrow svg { width: 16px; height: 16px; }
.case-tile:hover .case-tile__arrow { background: var(--orange); transform: rotate(-45deg); }
.case-tile--wide { grid-column: span 2; }
.case-tile--wide { flex-direction: row; }
.case-tile--wide .case-tile__cover { aspect-ratio: auto; min-height: 360px; flex: 0 0 54%; }
.case-tile--wide .case-tile__body { flex: 1; min-width: 0; padding: 32px; }
.case-tile--wide h3 { font-size: 28px; font-family: var(--serif); font-weight: 500; }
.case-tile.is-hidden { display: none; }
@media (max-width: 1100px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .cases-grid { grid-template-columns: 1fr; }
  .case-tile--wide { grid-column: auto; flex-direction: column; }
  .case-tile--wide .case-tile__cover { flex: none; width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
}

/* Обложки без фото — генеративные */
.gen-cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; overflow: hidden; }
.gen-cover::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 44px 44px; opacity: .08; }
.gen-cover__label { position: relative; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.gen-cover__word { position: relative; font-family: var(--serif); font-size: clamp(44px, 5vw, 76px); line-height: .92; letter-spacing: -.04em; font-weight: 500; }
.gen-cover__word em { font-style: italic; }
.gen-cover__orb { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -14%; top: -18%; filter: blur(2px); }
.gc-ink { background: var(--ink); color: var(--cream); } .gc-ink .gen-cover__orb { background: radial-gradient(circle, rgba(91, 61, 245, .75), transparent 65%); }
.gc-burgundy { background: var(--burgundy); color: var(--paper); } .gc-burgundy .gen-cover__orb { background: radial-gradient(circle, rgba(242, 90, 42, .6), transparent 65%); }
.gc-orange { background: var(--orange); color: #fff; } .gc-orange .gen-cover__orb { background: radial-gradient(circle, rgba(255, 220, 190, .55), transparent 65%); }
.gc-violet { background: var(--violet); color: #fff; } .gc-violet .gen-cover__orb { background: radial-gradient(circle, rgba(255, 140, 100, .55), transparent 65%); }
.gc-paper { background: var(--paper-2); color: var(--ink); } .gc-paper .gen-cover__orb { background: radial-gradient(circle, rgba(242, 90, 42, .45), transparent 65%); }

/* Фильтры галереи */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  border: 0; background: var(--paper); color: var(--ink); font: 600 14px/1 var(--sans); padding: 12px 18px; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.filter:hover { background: var(--paper-2); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.filter sup { font-family: var(--mono); font-size: 10px; margin-left: 4px; opacity: .6; }

/* ---------- Стек / навыки ---------- */

.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack__group { background: var(--paper); border-radius: var(--r-lg); padding: 26px; }
.stack__group h3 { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 8px 12px; border-radius: 10px; background: var(--cream); font-size: 14.5px; font-weight: 500; }
.chips span.hot { background: var(--ink); color: var(--cream); }
@media (max-width: 960px) { .stack { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .stack { grid-template-columns: 1fr; } }

.edu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.edu__item { border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; }
.edu__item b { display: block; font-size: 16px; margin-bottom: 4px; }
.edu__item span { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }
@media (max-width: 960px) { .edu { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .edu { grid-template-columns: 1fr; } }

/* ---------- CTA / контакты ---------- */

.cta {
  background: var(--ink); color: var(--cream); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 96px) clamp(20px, 5vw, 88px);
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: end;
}
.cta::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -200px; bottom: -420px; z-index: -1;
  background: radial-gradient(circle, rgba(242, 90, 42, .35), transparent 65%);
}
.cta::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -260px; z-index: -1;
  background: radial-gradient(circle, rgba(91, 61, 245, .35), transparent 65%);
}
.cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 6vw, 92px); line-height: .98; letter-spacing: -.035em; margin: 0 0 24px; }
.cta h2 em { color: var(--orange); }
.cta p { color: #d8d0c2; font-size: 18px; margin: 0; max-width: 46ch; }
.contact-list { display: grid; gap: 10px; }
.contact {
  display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; gap: 16px; text-decoration: none;
  background: rgba(236, 228, 212, .06); border-radius: var(--r-md); padding: 14px 18px 14px 14px;
  box-shadow: inset 0 0 0 1px var(--line-dark); transition: background .25s, transform .25s var(--ease);
}
.contact:hover { background: rgba(236, 228, 212, .12); transform: translateX(4px); }
.contact__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--cream); background: rgba(236, 228, 212, .07); box-shadow: inset 0 0 0 1px rgba(236, 228, 212, .16); transition: background .25s, color .25s, box-shadow .25s; }
.contact:hover .contact__icon { background: var(--orange); color: #fff; box-shadow: none; }
.contact__icon svg { width: 22px; height: 22px; }
.contact b { display: block; font-size: 17px; }
.contact span { font-size: 13.5px; color: var(--muted-dark); }
.contact > svg { width: 16px; height: 16px; color: var(--muted-dark); }
.contact--primary { background: var(--orange); box-shadow: none; }
.contact--primary:hover { background: var(--orange-2); }
.contact--primary span, .contact--primary > svg { color: rgba(255, 255, 255, .85); }
.contact--primary .contact__icon, .contact--primary:hover .contact__icon { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
@media (max-width: 960px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Футер ---------- */

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 28px clamp(12px, 3vw, 64px) 18px; font-size: 14px; color: var(--muted);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Мобильная плавающая кнопка ---------- */

.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; display: none;
  align-items: center; gap: 10px; padding: 0 20px 0 14px; height: 56px; border-radius: 999px;
  background: var(--orange); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  box-shadow: 0 16px 40px -12px rgba(242, 90, 42, .9);
  transform: translateY(120%); transition: transform .4s var(--ease);
}
.fab svg { width: 24px; height: 24px; }
.fab.is-visible { transform: none; }
@media (max-width: 760px) { .fab { display: inline-flex; } }

/* ==========================================================================
   Страница кейса
   ========================================================================== */

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted-dark); margin-bottom: 36px; }
.crumbs a { color: var(--muted-dark); text-decoration: none; }
.crumbs a:hover { color: var(--cream); }

.case-hero { background: var(--ink); color: var(--cream); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 80px) clamp(20px, 5vw, 88px); position: relative; overflow: hidden; isolation: isolate; }
.case-hero::after { content: ""; position: absolute; width: 600px; height: 600px; right: -200px; top: -300px; z-index: -1; background: radial-gradient(circle, rgba(91, 61, 245, .3), transparent 65%); }
.case-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.case-hero__tags span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-dark); color: #d8d0c2; }
.case-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 92px); line-height: .98; letter-spacing: -.035em; margin: 0; max-width: 16ch; }
.case-hero h1 em { color: var(--orange); }
.case-hero__lead { font-size: clamp(18px, 1.7vw, 22px); color: #e9e1d3; max-width: 52ch; margin: 28px 0 0; line-height: 1.5; }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); margin-top: clamp(36px, 5vw, 64px); }
.case-meta div { padding: 20px 20px 0 0; }
.case-meta dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-dark); margin-bottom: 8px; }
.case-meta dd { margin: 0; font-size: 16px; font-weight: 600; }
@media (max-width: 860px) { .case-meta { grid-template-columns: 1fr 1fr; } }

.case-cover { margin: 16px 0 0; border-radius: var(--r-xl); overflow: hidden; position: relative; aspect-ratio: 16 / 8; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-cover .gen-cover { padding: clamp(24px, 4vw, 56px); }
.case-cover .gen-cover__word { font-size: clamp(56px, 10vw, 160px); }
@media (max-width: 720px) { .case-cover { aspect-ratio: 4 / 3; } }

.case-body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); }
.case-toc { position: sticky; top: 24px; align-self: start; display: grid; gap: 4px; font-size: 15px; }
.case-toc a { text-decoration: none; padding: 8px 12px; border-radius: 10px; color: var(--muted); }
.case-toc a:hover { background: var(--paper); color: var(--ink); }
.case-toc b { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 500; padding: 0 12px 10px; }
@media (max-width: 960px) { .case-body { grid-template-columns: 1fr; } .case-toc { display: none; } }

.prose { max-width: 760px; }
.prose section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.025em; line-height: 1.08; margin: 0 0 22px; }
.prose h2 small { display: block; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.prose p, .prose li { font-size: 18px; line-height: 1.7; color: #2f2b27; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--orange); }
.prose a { text-decoration-color: var(--orange); text-underline-offset: 4px; }
.callout { background: var(--paper); border-radius: var(--r-md); padding: 22px 24px; border-left: 3px solid var(--orange); font-size: 16px; }
.callout--draft { border-left-color: var(--violet); }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 8px 0 18px; }
.result { background: var(--burgundy); color: var(--paper); border-radius: var(--r-md); padding: 22px 20px; min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
.result b { font-size: clamp(38px, 4vw, 54px); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.result span { font-size: 14px; color: rgba(245, 239, 227, .75); line-height: 1.4; margin-top: 18px; }
.result--orange { background: var(--orange); color: #fff; } .result--orange span { color: rgba(255, 255, 255, .85); }
.result--ink { background: var(--ink); color: var(--cream); } .result--ink span { color: var(--muted-dark); }

.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-nav a { background: var(--paper); border-radius: var(--r-lg); padding: 26px 28px; text-decoration: none; transition: background .25s; }
.case-nav a:hover { background: var(--paper-2); }
.case-nav span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.case-nav b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; margin-top: 8px; line-height: 1.15; }
.case-nav a:last-child { text-align: right; }
@media (max-width: 720px) { .case-nav { grid-template-columns: 1fr; } .case-nav a:last-child { text-align: left; } }

/* Hero страницы кейсов */
.page-hero { padding: clamp(40px, 6vw, 96px) clamp(16px, 5vw, 88px) clamp(28px, 4vw, 48px); }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 9vw, 150px); line-height: .9; letter-spacing: -.045em; margin: 0; }
.page-hero h1 em { color: var(--orange); }
.page-hero__row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.page-hero p { margin: 0; }
@media (max-width: 860px) { .page-hero__row { grid-template-columns: 1fr; } }

/* ---------- Анимации появления ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

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

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.spacer { height: 16px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; font-family: var(--sans); font-size: 22px; font-weight: 400; transition: transform .3s var(--ease), background .3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--orange); }
.faq__a { padding: 0 0 28px; max-width: 72ch; font-size: 17px; color: #3e3a34; }
.faq__a p { margin: 0; }

/* ==========================================================================
   Главная v2: Резюме → Компетенции → Кейсы
   ========================================================================== */

.block-head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 820px; }
.block-head .lead { margin: 20px 0 0; }
.block-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* Резюме */
.resume { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.resume__aside { position: sticky; top: 24px; display: grid; gap: 14px; }
.resume__photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.resume__photo img { width: 100%; height: 100%; object-fit: cover; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpis div { background: var(--burgundy); color: var(--paper); border-radius: var(--r-md); padding: 16px 16px 14px; }
.kpis div:first-child { background: var(--orange); color: #fff; }
.kpis b { display: block; font-size: 32px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.kpis span { display: block; font-size: 13px; line-height: 1.35; margin-top: 8px; opacity: .8; }
.facts { margin: 0; background: var(--cream); border-radius: var(--r-md); padding: 6px 18px; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 3px; }
.facts dd { margin: 0; font-size: 14.5px; line-height: 1.45; font-weight: 500; }

.xp { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.xp__item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.xp__when { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 8px; }
.xp__main h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.15; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.xp__now { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: var(--orange); color: #fff; padding: 5px 10px; border-radius: 999px; }
.xp__role { margin: 6px 0 10px; font-weight: 700; font-size: 15px; color: var(--burgundy-2); }
.xp__main p:not(.xp__role) { margin: 0; font-size: 16px; line-height: 1.6; color: #3e3a34; max-width: 62ch; }
.xp__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--orange); }
.xp__link svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.xp__link:hover svg { transform: translate(3px, -3px); }
.xp__item--now { background: var(--cream); border-radius: var(--r-md); padding: 28px 22px; margin: 12px 0; border-bottom: 0; }
@media (max-width: 960px) {
  .resume { grid-template-columns: 1fr; }
  .resume__aside { position: static; }
  .xp__item { grid-template-columns: 1fr; }
  .xp__when { padding-top: 0; }
}

/* Компетенции */
.skills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skill { background: var(--paper); border-radius: var(--r-lg); padding: 28px 24px; display: flex; flex-direction: column; }
.skill__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 22px; }
.skill__icon svg { width: 26px; height: 26px; }
.skill h3 { font-size: 21px; letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.25; }
.skill p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.55; color: #4a453e; }
.skill .chips { margin-top: auto; }
.skill .chips span { background: var(--cream); font-size: 13.5px; padding: 7px 10px; }
.skill .chips span.hot { background: var(--ink); color: var(--cream); }
@media (max-width: 1100px) { .skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .skills { grid-template-columns: 1fr; } }
@media (max-width: 1240px) {
  .xp__item { grid-template-columns: 1fr; gap: 6px; }
  .xp__when { padding-top: 0; }
}
.case-tile__cover img, .case-cover img { position: absolute; inset: 0; }

/* ---------- Логотип: маршрут A → B с AI-искрой ---------- */
.brand { gap: 12px; }
.brand__mark { width: 40px; height: 40px; flex: none; display: block; background: none; border-radius: 0; }
.brand__route { animation: route 2.4s linear infinite; }
@keyframes route { to { stroke-dashoffset: -8.6; } }
.brand__spark { transform-origin: 28px 12px; transition: transform .6s var(--ease); }
.brand:hover .brand__spark { transform: rotate(90deg) scale(1.15); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.brand__tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
@media (max-width: 360px) { .brand__name { font-size: 16px; } .brand__tag { font-size: 9.5px; } }

/* ---------- Hero v3: крупный портрет на десктопе, полноценное фото на мобильных ---------- */
.hero__visual { max-width: 620px; }
.profile-card { padding: clamp(14px, calc(var(--u) * 2.2), 22px) 14px clamp(30px, calc(var(--u) * 4.6), 48px); }
.profile-card__photo { width: min(100%, calc(var(--u) * 46), 460px); margin: 0 auto; }
.profile-card__role {
  position: absolute; left: 14px; top: 14px; z-index: 2; background: var(--paper);
  font-size: clamp(10.5px, calc(var(--u) * 1.35), 13px); padding: 7px 12px;
}
.spark--orange { left: 4%; top: 30%; }

.hero__mphoto { display: none; }
.hero__status {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(236, 228, 212, .08); box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: clamp(12.5px, 3.4vw, 15px); font-weight: 600; color: var(--cream); white-space: nowrap;
}
.hero__status i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; flex: none; animation: pulse 2s infinite; }

@media (max-width: 1100px) {
  .badge-row { display: none; }
  .hero__mphoto {
    display: flex; align-items: flex-end; gap: 14px; position: relative;
    margin: calc(-1 * clamp(4px, calc(var(--u) * 1), 16px)) 0 clamp(10px, calc(var(--u) * 2.2), 28px);
  }
  .hero__mphoto img { height: clamp(150px, calc(var(--u) * 31), 440px); width: auto; flex: none; }
  .hero__mphoto .hero__status { margin-bottom: clamp(6px, calc(var(--u) * 1.5), 20px); }
  .hero__proof { display: none; }
  .hero__lead { margin: clamp(10px, calc(var(--u) * 2.2), 32px) 0; padding: clamp(8px, calc(var(--u) * 1.8), 24px) 0; }
  .hero__lead p { margin: 0; }
  .hero h1 { font-size: clamp(32px, min(13vw, calc(var(--u) * 7.6)), 112px); }
}
@media (max-width: 1100px) and (max-height: 600px) { .hero h1 .h1-sub { display: none; } }
@media (max-width: 1100px) and (max-height: 460px) {
  .hero { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 24px; align-items: center; }
  .hero__text { display: contents; }
  .hero__mphoto { grid-row: 1 / span 4; flex-direction: column; align-items: center; margin: 0; }
  .hero__mphoto img { height: calc(var(--u) * 62); }
  .hero__mphoto .hero__status { margin: 0; }
}
@media (max-width: 1100px) {
  .hero__mphoto img { height: clamp(130px, calc(var(--u) * 27), 440px); }
  .hero__ctas { gap: 8px 24px; }
}
@media (max-width: 1100px) and (max-height: 700px) {
  .hero h1 { font-size: clamp(30px, min(12vw, calc(var(--u) * 7)), 112px); }
  .hero__lead p { font-size: clamp(14.5px, min(4.1vw, calc(var(--u) * 2.4)), 20px); line-height: 1.4; }
  .hero__ctas .btn { min-height: 46px; }
}
@media (max-width: 1100px) and (max-height: 460px) {
  .hero { padding-top: 14px; padding-bottom: 14px; }
  .hero__mphoto img { height: calc(var(--u) * 46); }
  .hero__mphoto .hero__status { font-size: 12px; padding: 6px 10px; }
  .hero__lead { margin: 8px 0; padding: 8px 0; }
  .hero__lead p { font-size: 14.5px; }
}
@media (max-width: 1100px) and (max-height: 660px) { .hero__mphoto img { height: calc(var(--u) * 24.5); } }
@media (max-width: 1100px) and (max-height: 460px) {
  .hero__lead { border: 0; padding: 0; margin: 8px 0 12px; }
}

/* ---------- Hero v4 (мобильные): фото по центру, без искажений, заполняет свободную высоту ---------- */
@media (max-width: 1100px) {
  .hero__mphoto {
    flex-direction: column; align-items: center; justify-content: flex-end; gap: 0;
    margin: 0 0 clamp(12px, calc(var(--u) * 2.4), 28px); isolation: isolate;
  }
  .hero__mphoto::before {
    content: ""; position: absolute; z-index: -1; left: 50%; bottom: 10%; width: 80%; aspect-ratio: 1; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(91, 61, 245, .35), transparent 65%);
  }
  .hero__mphoto picture { flex: none; display: block; }
  .hero__mphoto img, .hero__mphoto picture img {
    max-width: none; width: auto; object-fit: contain;
    /* вся высота экрана минус текстовая часть первого экрана */
    height: clamp(120px, calc(var(--u) * 100 - 540px), calc(var(--u) * 44));
  }
  .hero__mphoto .hero__status { margin: calc(-1 * clamp(14px, calc(var(--u) * 2.2), 22px)) 0 0; position: relative; background: var(--ink-3); }
  .hero__text { text-align: left; }
}
@media (min-width: 600px) and (max-width: 1100px) {
  .hero__mphoto img, .hero__mphoto picture img { height: clamp(140px, calc(var(--u) * 100 - 560px), calc(var(--u) * 40)); }
}
@media (max-width: 1100px) and (max-height: 460px) {
  .hero__mphoto { margin: 0; }
  .hero__mphoto img, .hero__mphoto picture img { height: calc(var(--u) * 52); }
  .hero__mphoto .hero__status { margin-top: -10px; }
}
@media (max-width: 599px) {
  .hero__mphoto img, .hero__mphoto picture img { height: clamp(116px, calc(var(--u) * 48 - 174px), 300px); }
}
.case-tile .gen-cover__word { font-size: clamp(38px, 3.5vw, 62px); }
@media (max-width: 720px) { .case-tile .gen-cover__word { font-size: clamp(36px, 11vw, 56px); } }

/* ---------- Подзаголовок первого экрана: крупнее, чтобы не терялся ---------- */
.hero__lead p {
  font-size: clamp(18px, min(2.05vw, calc(var(--u) * 3.1)), 30px);
  font-weight: 500; line-height: 1.32; letter-spacing: -.012em; color: var(--cream); max-width: 30ch;
}
@media (max-width: 1100px) {
  .hero__lead p { font-size: clamp(17px, min(5.2vw, calc(var(--u) * 3)), 28px); max-width: 34ch; }
}
@media (max-width: 1100px) and (max-height: 700px) {
  .hero__lead p { font-size: clamp(16px, min(4.8vw, calc(var(--u) * 2.75)), 22px); line-height: 1.3; }
}
@media (max-width: 1100px) and (max-height: 460px) {
  .hero__lead p { font-size: 16px; }
}
@media (min-width: 1101px) {
  .hero h1 { font-size: clamp(40px, min(7.6vw, calc(var(--u) * 10.6)), 132px); }
  .hero__lead { margin: clamp(10px, calc(var(--u) * 2.6), 40px) 0; padding: clamp(10px, calc(var(--u) * 2.2), 30px) 0; }
  .badge-row { margin-bottom: clamp(10px, calc(var(--u) * 2.8), 40px); }
}
@media (max-width: 599px) {
  .hero__mphoto img, .hero__mphoto picture img { height: clamp(112px, calc(var(--u) * 48 - 186px), 300px); }
}
@media (max-width: 1100px) and (max-height: 460px) {
  .hero__lead { margin: 6px 0 10px; }
}

/* ---------- Логотипы сервисов: одинаковый размер и точная центровка ---------- */
.brand-icon { display: block; flex: none; overflow: visible; }
.contact__icon .brand-icon { width: 22px; height: 22px; }
.tool .brand-icon { width: clamp(20px, calc(var(--u) * 3.1), 28px); height: clamp(20px, calc(var(--u) * 3.1), 28px); color: var(--cream); }
.btn .brand-icon, .fab .brand-icon { width: 18px; height: 18px; }
.fab .brand-icon { width: 22px; height: 22px; }
.contact b { color: var(--cream); }
.contact .contact__icon { color: var(--cream); }
.contact:hover .contact__icon { color: #fff; }
.contact--primary b, .contact--primary .contact__icon { color: #fff; }
.contact > span:not(.contact__icon) > span { color: var(--muted-dark); }
.contact--primary > span:not(.contact__icon) > span { color: rgba(255, 255, 255, .85); }

/* ---------- 04 · Помимо работы ---------- */
.life { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.life__card { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; }
.life__card h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: -.02em; line-height: 1.1; margin: 14px 0 22px; }
.life__tag { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.life__card--city { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; isolation: isolate; }
.life__card--city::after {
  content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -120px; bottom: -160px;
  background: radial-gradient(circle, rgba(91, 61, 245, .4), transparent 65%);
}
.life__card--city .life__tag { color: var(--orange); }
.life__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.life__list li { font-size: 16px; line-height: 1.6; color: #d8d0c2; padding-left: 20px; position: relative; }
.life__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.life__list b { color: var(--cream); }
.life__card--texts { background: var(--paper); }
.life__card--texts .life__tag { color: var(--muted); }
.life__links { list-style: none; margin: 0 0 6px; padding: 0; border-top: 1px solid var(--line); }
.life__links a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15.5px; font-weight: 500; line-height: 1.4;
}
.life__links a svg { width: 14px; height: 14px; flex: none; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.life__links a:hover { color: var(--burgundy-2); }
.life__links a:hover svg { color: var(--orange); transform: translate(3px, -3px); }
@media (max-width: 960px) { .life { grid-template-columns: 1fr; } }
.life__card--library {
  background: var(--burgundy); color: var(--paper); margin-bottom: 16px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 3vw, 48px); align-items: center;
}
.life__card--library .life__tag { color: var(--orange-2); }
.life__card--library h3 { margin: 12px 0 16px; font-size: clamp(32px, 3.2vw, 48px); }
.life__card--library p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: rgba(245, 239, 227, .82); max-width: 54ch; }
.life__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 28px; margin-bottom: 26px; }
.life__facts b { display: block; font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.life__facts span { font-size: 13px; color: rgba(245, 239, 227, .7); line-height: 1.35; display: block; max-width: 16ch; }
.life__card--library .btn--dark { background: var(--paper); color: var(--ink); }
.life__card--library .btn--dark svg { width: 14px; height: 14px; }
.life__shot { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); transform: rotate(1.2deg); transition: transform .5s var(--ease); }
.life__shot:hover { transform: rotate(0) scale(1.01); }
.life__shot img { width: 100%; height: auto; display: block; }
.life__card--philosophy { margin-top: 16px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.life__card--philosophy .life__tag { color: var(--muted); }
.life__card--philosophy blockquote {
  margin: 16px 0 14px; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 38px); line-height: 1.22; letter-spacing: -.02em; max-width: 34ch;
}
.life__card--philosophy blockquote::before { content: "«"; color: var(--orange); }
.life__card--philosophy blockquote::after { content: "»"; color: var(--orange); }
.life__card--philosophy p { margin: 0; font-size: 16px; color: #4a453e; max-width: 70ch; }
@media (max-width: 960px) {
  .life__card--library { grid-template-columns: 1fr; }
  .life__shot { transform: none; order: -1; }
  .life__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
}
@media (max-width: 560px) {
  .life__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
  .life__facts b { font-size: 24px; }
}

/* ---------- Логотип: анимированная смена знаков (маршрут → AI-инструменты → компетенции) ---------- */
.brand__mark {
  position: relative; width: 40px; height: 40px; flex: none; display: block;
  border-radius: 11px; background: var(--ink); color: var(--cream); overflow: hidden;
}
.mark-item {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  animation: markCycle 18s cubic-bezier(.2, .7, .2, 1) infinite;
}
.mark-item svg { width: 20px; height: 20px; display: block; }
.mark-item.mark-route svg { width: 40px; height: 40px; }
.mark-item.mark-accent { color: var(--orange); }
.mark-item:nth-child(1) { opacity: 1; animation-delay: 0s; }
.mark-item:nth-child(2) { animation-delay: 2s; }
.mark-item:nth-child(3) { animation-delay: 4s; }
.mark-item:nth-child(4) { animation-delay: 6s; }
.mark-item:nth-child(5) { animation-delay: 8s; }
.mark-item:nth-child(6) { animation-delay: 10s; }
.mark-item:nth-child(7) { animation-delay: 12s; }
.mark-item:nth-child(8) { animation-delay: 14s; }
.mark-item:nth-child(9) { animation-delay: 16s; }
/* 9 знаков × 2 с: каждый виден ~1,6 с, переход ~0,4 с */
@keyframes markCycle {
  0%      { opacity: 0; transform: translateY(70%) scale(.6); }
  2.2%    { opacity: 1; transform: none; }
  10.6%   { opacity: 1; transform: none; }
  12.8%   { opacity: 0; transform: translateY(-70%) scale(.6); }
  100%    { opacity: 0; transform: translateY(-70%) scale(.6); }
}
/* Первый знак виден сразу при загрузке, затем включается в общий цикл */
.mark-item:nth-child(1) { animation-name: markCycleFirst; }
@keyframes markCycleFirst {
  0%, 10.6% { opacity: 1; transform: none; }
  12.8%     { opacity: 0; transform: translateY(-70%) scale(.6); }
  97.8%     { opacity: 0; transform: translateY(70%) scale(.6); }
  100%      { opacity: 1; transform: none; }
}
.brand:hover .mark-item { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .mark-item { opacity: 0 !important; }
  .mark-item.mark-route { opacity: 1 !important; }
}
/* Три инструмента вместо пяти — плитки крупнее */
.hero__visual { --tile: clamp(70px, calc(var(--u) * 12.5), 124px); }
.tool-stack { gap: clamp(8px, calc(var(--u) * 1.6), 14px); }
.tool { font-size: clamp(11px, calc(var(--u) * 1.5), 13px); gap: clamp(5px, calc(var(--u) * .9), 10px); }
.tool .brand-icon { width: clamp(24px, calc(var(--u) * 3.8), 34px); height: clamp(24px, calc(var(--u) * 3.8), 34px); }
/* Единый тайминг для всех знаков: маршрут стартует уже проявленным */
.mark-item:nth-child(1) { animation-name: markCycle; animation-delay: -.3s; }
/* Все знаки сдвинуты на −0,3 с, чтобы маршрут при загрузке был уже виден, а переходы шли с одинаковым шагом */
.mark-item:nth-child(2) { animation-delay: 1.7s; }
.mark-item:nth-child(3) { animation-delay: 3.7s; }
.mark-item:nth-child(4) { animation-delay: 5.7s; }
.mark-item:nth-child(5) { animation-delay: 7.7s; }
.mark-item:nth-child(6) { animation-delay: 9.7s; }
.mark-item:nth-child(7) { animation-delay: 11.7s; }
.mark-item:nth-child(8) { animation-delay: 13.7s; }
.mark-item:nth-child(9) { animation-delay: 15.7s; }

/* ---------- Знак hh.ru у статуса «Открыт к предложениям» ---------- */
.badge-row__icon { background: none; }
.badge-row__icon .hh-logo { width: 100%; height: 100%; display: block; }
.badge-row__icon::after { right: -1px; top: -1px; }
.hero__status { padding-left: 6px; }
.hero__status-hh { position: relative; width: 26px; height: 26px; flex: none; display: block; }
.hero__status-hh .hh-logo { width: 100%; height: 100%; display: block; }
.hero__status-hh i { position: absolute; right: -2px; top: -2px; width: 9px; height: 9px; box-shadow: 0 0 0 2px var(--ink-3); }

/* ---------- 03 · Инструменты ---------- */
.toolset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.toolset__group { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 34px); }
.toolset__group h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.15; }
.toolset__group > p { margin: 0 0 18px; color: #4a453e; font-size: 15.5px; }
.tl-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tl-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tl-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tl-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; transition: background .25s, transform .25s var(--ease);
}
.tl-list li:hover .tl-icon { background: var(--orange); color: #fff; transform: rotate(-4deg); }
.tl-icon .brand-icon { width: 21px; height: 21px; }
.tl-letters { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: -.02em; line-height: 1; }
.tl-text b { display: block; font-size: 15.5px; line-height: 1.3; }
.tl-text span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 860px) { .toolset { grid-template-columns: 1fr; } }
/* Мировоззрение: фото + цитата */
.life__card--philosophy { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.life__photo { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.4; }
.life__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.life__shot { background: #fff; }
@media (max-width: 760px) { .life__card--philosophy { grid-template-columns: 1fr; } .life__photo { aspect-ratio: 4 / 3; } }
.life { align-items: start; }
.life__card--city { min-height: 0; }

/* ---------- Городские проекты: шесть направлений ---------- */
.life__card--city { margin-bottom: 16px; }
.city__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 28px; }
.city__head h3 { margin-bottom: 0; }
.city__head p { margin: 0; color: #d8d0c2; font-size: 16px; line-height: 1.6; }
.city__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.city__item {
  background: rgba(236, 228, 212, .05); box-shadow: inset 0 0 0 1px var(--line-dark); border-radius: 16px;
  padding: 20px 20px 18px; display: flex; flex-direction: column; transition: background .25s;
}
.city__item:hover { background: rgba(236, 228, 212, .09); }
.city__n { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--orange); line-height: 1; }
.city__item h4 { font-size: 17px; line-height: 1.3; margin: 12px 0 8px; color: var(--cream); letter-spacing: -.01em; }
.city__item p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.55; color: #bdb5a8; }
.city__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.city__links a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--cream);
  background: rgba(236, 228, 212, .08); transition: background .2s, color .2s;
}
.city__links a svg { width: 11px; height: 11px; }
.city__links a:hover { background: var(--orange); color: #fff; }
.life--single { grid-template-columns: 1fr; }
.life--single .life__links { columns: 2; column-gap: 40px; border-top: 0; }
.life--single .life__links li { break-inside: avoid; border-top: 1px solid var(--line); }
.life--single .life__links a { border-bottom: 0; }
@media (max-width: 1100px) { .city__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .city__head { grid-template-columns: 1fr; }
  .city__grid { grid-template-columns: 1fr; }
  .life--single .life__links { columns: 1; }
}

/* ---------- Карточка-кейс на первом экране: шире и сильнее ---------- */
.outcome-card { width: min(470px, 108%); margin-right: -48px; padding: clamp(12px, calc(var(--u) * 2), 20px); }
.outcome-card__kicker { margin: 0 0 4px; font-family: var(--mono); font-size: clamp(10px, calc(var(--u) * 1.3), 12px); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.outcome-card__title { font-size: clamp(16px, calc(var(--u) * 2.5), 23px); line-height: 1.18; font-weight: 700; letter-spacing: -.02em; margin: 0 0 clamp(8px, calc(var(--u) * 1.4), 14px); }
.outcome-card__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper); color: var(--ink); border-radius: 10px; overflow: hidden; }
.outcome-card__stats div { padding: clamp(8px, calc(var(--u) * 1.3), 13px) 12px; text-align: left; }
.outcome-card__stats div + div { border-left: 1px solid var(--line); }
.outcome-card__stats b { display: block; font-size: clamp(22px, calc(var(--u) * 3.7), 36px); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.outcome-card__stats span { display: block; margin-top: 6px; font-size: clamp(10.5px, calc(var(--u) * 1.35), 12.5px); line-height: 1.3; color: #4a453e; }
.outcome-card { text-align: left; margin-top: calc(-1 * clamp(40px, calc(var(--u) * 8), 84px)); }
.profile-card { padding-bottom: clamp(12px, calc(var(--u) * 1.8), 20px); }
.profile-card__photo { width: min(100%, calc(var(--u) * 42), 440px); }
/* Карточка-кейс: одна цифра + одна фраза */
.outcome-card { width: min(400px, 96%); margin-right: -40px; }
.outcome-card__box { padding: clamp(10px, calc(var(--u) * 1.6), 15px) 16px; gap: 14px; }
.outcome-card__box p { font-size: clamp(12px, calc(var(--u) * 1.6), 14px); line-height: 1.35; color: #3e3a34; }
.btn--orange .brand-icon { width: 20px; height: 20px; }

/* «Библиотека мэра»: кратко — что, для кого, зачем */
.life__card--library .life__lead { margin: 0 0 18px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; color: var(--paper); font-weight: 500; max-width: 40ch; }
.life__spec { margin: 0 0 24px; display: grid; gap: 0; border-top: 1px solid rgba(245, 239, 227, .16); }
.life__spec div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(245, 239, 227, .16); }
.life__spec dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-2); padding-top: 3px; }
.life__spec dd { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(245, 239, 227, .86); }
@media (max-width: 560px) { .life__spec div { grid-template-columns: 1fr; gap: 4px; } }

/* Подзаголовок первого экрана: на всю ширину колонки и крупнее */
.hero__lead p { max-width: none; font-size: clamp(18px, min(2.35vw, calc(var(--u) * 3.5)), 36px); line-height: 1.28; }
@media (max-width: 1100px) { .hero__lead p { max-width: none; font-size: clamp(18px, min(5.6vw, calc(var(--u) * 3.1)), 32px); } }
@media (max-width: 1100px) and (max-height: 700px) { .hero__lead p { font-size: clamp(16px, min(5vw, calc(var(--u) * 2.8)), 24px); } }
@media (max-width: 1100px) and (max-height: 460px) { .hero__lead p { font-size: 16px; } }
@media (max-width: 599px) {
  .hero__mphoto img, .hero__mphoto picture img { height: clamp(112px, calc(var(--u) * 48 - 196px), 290px); }
}
/* Заголовок «Библиотеки мэра» длиннее — чуть меньше кегль */
.life__card--library h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.12; max-width: 18ch; }
/* Заголовок карточки-кейса на первом экране — крупнее */
.outcome-card__title { font-size: clamp(18px, calc(var(--u) * 2.9), 27px); line-height: 1.15; }
.life__card--library h3 { max-width: none; }
.outcome-card { width: min(440px, 104%); }

/* ==========================================================================
   04 · AI-продукты — тёмная витрина в стиле первого экрана
   ========================================================================== */
.products {
  background: var(--ink); color: var(--cream); border-radius: var(--r-xl); margin: 16px 0;
  padding: clamp(48px, 7vw, 104px) clamp(20px, 5vw, 88px); position: relative; overflow: hidden; isolation: isolate;
}
.products::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(236, 228, 212, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 228, 212, .04) 1px, transparent 1px);
  background-size: 92px 92px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 80% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 80% 20%, #000 10%, transparent 70%);
}
.products::after {
  content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; top: -220px;
  background: radial-gradient(circle, rgba(91, 61, 245, .32), transparent 65%);
}
.products .lead { color: #d8d0c2; }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.product-card {
  display: flex; flex-direction: column; background: var(--ink-2); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-dark); transition: transform .4s var(--ease), box-shadow .4s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(236, 228, 212, .22), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.product-card__cover { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.product-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1s var(--ease); }
.product-card:hover .product-card__cover img { transform: scale(1.04); }
.product-card__cover .gen-cover__word { font-size: clamp(34px, 3vw, 48px); }
.product-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; margin: 4px 0 0; color: var(--cream); }
.product-card p { margin: 0; font-size: 15px; line-height: 1.55; color: #bdb5a8; }
.product-card .chips { margin-top: 4px; }
.product-card .chips span { background: rgba(236, 228, 212, .08); color: var(--cream); font-size: 13px; padding: 6px 10px; }
.product-card__link {
  margin-top: auto; padding-top: 10px; align-self: flex-start; font-weight: 700; font-size: 15px; color: var(--orange); text-decoration: none;
}
.product-card__link:hover { color: var(--orange-2); }
.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(236, 228, 212, .08); color: var(--cream);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--live { color: #3ddc84; }
.status--mvp { color: var(--orange-2); }
.status--proto { color: #9d8cff; }
.status--soon { color: var(--muted-dark); }
.product-card--soon .product-card__cover { opacity: .85; }
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .products-grid { grid-template-columns: 1fr; } }

/* Меню из шести пунктов: чуть плотнее на средних экранах */
@media (min-width: 961px) and (max-width: 1280px) {
  .nav { gap: 2px; }
  .nav a { font-size: 14px; padding: 8px 7px; }
  .header-actions .btn { padding: 0 16px; }
}
.nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1099px) { .header-actions .btn { display: none; } }

/* ---------- 04 · AI-продукты: горизонтальный слайдер ---------- */
.products .block-head--row { align-items: end; }
.products .block-head--row > div:first-child { max-width: 760px; }
.slider__nav { display: flex; gap: 10px; flex: none; }
.slider__btn {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(236, 228, 212, .06); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(236, 228, 212, .2);
  transition: background .25s, color .25s, box-shadow .25s;
}
.slider__btn:hover { background: var(--orange); color: #fff; box-shadow: none; }
.slider__btn svg { width: 20px; height: 20px; }
.slider { position: relative; }
.slider__track {
  --gap: 16px; --per: 4;
  display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab; outline: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slider__track:focus-visible { box-shadow: 0 0 0 2px var(--orange); border-radius: 22px; }
.product-slide { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; min-width: 0; user-select: none; }
.product-slide__img { margin: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-dark); }
.product-slide__img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.product-slide h3 { margin: 18px 0 6px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; color: var(--cream); }
.product-slide p { margin: 0; font-size: 15px; line-height: 1.5; color: #bdb5a8; }
.slider__progress { margin-top: 28px; height: 2px; background: rgba(236, 228, 212, .14); border-radius: 2px; overflow: hidden; }
.slider__progress span { display: block; height: 100%; width: 25%; background: var(--orange); border-radius: 2px; transition: width .35s var(--ease), margin-left .35s var(--ease); }
@media (max-width: 1279px) { .slider__track { --per: 3; } }
@media (max-width: 960px) { .slider__track { --per: 2; } }
@media (max-width: 600px) {
  .slider__track { --per: 1.18; --gap: 12px; }
  .slider__nav { display: none; }
  .product-slide h3 { font-size: 18px; }
}

/* ---------- Кейсы: галереи фотографий внутри текста ---------- */
.case-gallery { display: grid; gap: 12px; margin: 22px 0 6px; }
.case-gallery--1 { grid-template-columns: 1fr; }
.case-gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-gallery figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.case-gallery picture { display: block; border-radius: 14px; overflow: hidden; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.case-gallery img { width: 100%; height: auto; display: block; }
.case-gallery--2 picture, .case-gallery--3 picture { aspect-ratio: 4 / 3; }
.case-gallery--2 img, .case-gallery--3 img { height: 100%; object-fit: cover; }
.case-gallery figcaption { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.prose ol { padding-left: 22px; }
.prose ol li::marker { color: var(--orange); font-weight: 700; }
.case-cover picture { display: block; width: 100%; height: 100%; }
@media (max-width: 720px) { .case-gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .case-gallery--2, .case-gallery--3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Изображения без обрезки: всегда показываем кадр целиком
   ========================================================================== */
/* Галереи в кейсах: единая рамка, картинка вписана целиком */
.case-gallery picture { display: flex; align-items: center; justify-content: center; background: var(--paper-2); }
.case-gallery--2 picture, .case-gallery--3 picture { aspect-ratio: 4 / 3; }
.case-gallery--2 img, .case-gallery--3 img { width: 100%; height: 100%; object-fit: contain; }
.case-gallery--1 picture { aspect-ratio: auto; padding: 0; }
.case-gallery--1 img { width: auto; max-width: 100%; height: auto; max-height: 560px; margin: 0 auto; object-fit: contain; }

/* Обложка кейса: натуральные пропорции, ограничение по высоте, тёмная подложка */
.case-cover--photo { aspect-ratio: auto; background: var(--ink); display: flex; justify-content: center; align-items: center; }
.case-cover--photo picture { width: auto; height: auto; display: flex; justify-content: center; }
.case-cover--photo img { position: static; width: auto; max-width: 100%; height: auto; max-height: min(78vh, 760px); object-fit: contain; }

/* Плитки кейсов: фото целиком на тёмной подложке */
.case-tile__cover:has(picture) { background: var(--ink); }
.case-tile__cover picture img { object-fit: contain; }
.case-tile:hover .case-tile__cover picture img { transform: none; }

/* Фото в резюме и в блоке «Помимо работы» — натуральные пропорции */
.resume__photo { aspect-ratio: auto; }
.resume__photo img { height: auto; }
.life__photo { aspect-ratio: auto; }
.life__photo img { height: auto; }
@media (max-width: 760px) { .life__photo { aspect-ratio: auto; } }
/* Широкая плитка: рамка по пропорциям фото (3:2), без полос и обрезки */
.case-tile--wide .case-tile__cover:has(picture) { aspect-ratio: 3 / 2; min-height: 0; align-self: center; margin-left: 16px; border-radius: 16px; }
@media (max-width: 720px) { .case-tile--wide .case-tile__cover:has(picture) { margin-left: 0; border-radius: 0; aspect-ratio: 3 / 2; } }
