/* ==========================================================================
   Внутренние страницы: NEXUS (/nexus/) и «Что нового» (/whats-new/)
   Тот же язык, что у главной. Подключается после css/landing.css и берёт
   оттуда токены и компоненты: .glass, .tile, .chip, .head, .kicker, .window,
   .hero__proof, .final, .bignum, шапку, подвал и лайтбокс.
   ========================================================================== */

/* ── Хлебные крошки ── */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.crumbs a {
  color: var(--body);
  transition: color 0.2s ease;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs .i {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.crumbs [aria-current="page"] {
  color: var(--orange-soft);
}

/* ==========================================================================
   Первый экран внутренней страницы
   ========================================================================== */
.page-hero {
  position: relative;
  padding-top: clamp(16px, 2.4vw, 32px);
  padding-bottom: clamp(48px, 6vw, 88px);
  /* свечение за скриншотом шире колонки — не даём ему раздвинуть страницу на телефоне */
  overflow-x: clip;
}

.page-hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.page-hero__copy {
  min-width: 0;
}

.page-hero .kicker {
  margin-top: 28px;
  animation: fade-up 0.9s var(--ease) 0.05s backwards;
}

.page-hero__title {
  margin-top: 16px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
  animation: fade-up 0.9s var(--ease) 0.15s backwards;
}

.page-hero__sub {
  margin-top: 22px;
  max-width: 540px;
  font-size: clamp(16px, 1.4vw, 18.5px);
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
  animation: fade-up 0.9s var(--ease) 0.35s backwards;
}

.page-hero__sub b {
  color: var(--ink);
  font-weight: 700;
}

.page-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  animation: fade-up 0.9s var(--ease) 0.5s backwards;
}

.page-hero__hint {
  margin-top: 14px;
  max-width: 440px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  animation: fade-up 0.9s var(--ease) 0.6s backwards;
}

.page-hero .hero__proof {
  margin-top: 34px;
}

.page-hero__visual {
  position: relative;
  min-width: 0;
  animation: fade-in 1.2s ease 0.2s backwards;
}

/* тёплое свечение за скриншотом */
.page-hero__visual::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 106, 26, 0.26), transparent 72%);
  pointer-events: none;
}

/* ── Скриншот в окне: открывается целиком в лайтбоксе ── */
.shot {
  position: relative;
  display: block;
  cursor: zoom-in;
}

.page-hero .shot {
  transform: perspective(1800px) rotateY(-8deg) rotateX(3deg);
}

.page-hero .shot:hover {
  transform: perspective(1800px) rotateY(-3deg) rotateX(1deg);
}

.shot__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.shot:hover .shot__zoom {
  opacity: 1;
}

.shot__zoom .i {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   NEXUS — первый экран
   ========================================================================== */

/* вордмарк NEXUS внутри H1 — как на главном экране самого Nexus */
.nx-title__word {
  display: block;
  width: fit-content;
  margin: 0.14em 0 clamp(10px, 1.4vw, 18px);
  font-size: clamp(72px, 9.4vw, 128px);
  letter-spacing: -0.01em;
  transform: scaleY(1.12);
  transform-origin: left bottom;
}

.nx-title__line {
  display: block;
}

/* ==========================================================================
   NEXUS — философия: история + «6 вкладок → одно окно»
   ========================================================================== */
.nx-about {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 14px;
}

.nx-story {
  padding: clamp(26px, 3.2vw, 44px);
  overflow: hidden;
}

.nx-story__lead {
  position: relative;
  max-width: 620px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.nx-story__text {
  position: relative;
  max-width: 580px;
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--body);
  text-wrap: pretty;
}

.nx-story .why-card__rings {
  top: auto;
  bottom: -55%;
  right: -25%;
}

.nx-tabs {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
  overflow: hidden;
}

.nx-tabs__title {
  position: relative;
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.nx-tabs__title b {
  display: block;
  font-size: clamp(64px, 6.4vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

/* вкладки браузера, которые заменил Nexus */
.nx-tabs__was {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.nx-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px 0 12px;
  border-radius: 10px 10px 4px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(10, 6, 4, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.nx-tab::after {
  content: "×";
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
}

.nx-tabs__arrow {
  width: 22px;
  height: 22px;
  margin: 14px 0 12px 10px;
  color: rgba(255, 255, 255, 0.55);
}

.nx-tabs__now {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(10, 6, 4, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

.nx-tabs__word {
  font-size: 32px;
  color: #fff;
  transform: scaleY(1.12);
  transform-origin: left bottom;
}

/* ==========================================================================
   NEXUS — 4 департамента
   ========================================================================== */
.nx-deps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dept {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px 28px 30px;
  overflow: hidden;
}

.dept__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dept .tile {
  --s: 50px;
}

.dept__tag {
  padding: 7px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--orange-soft);
  background: rgba(255, 106, 26, 0.13);
}

.dept h3 {
  position: relative;
  margin-top: 24px;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.dept__list {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.dept__list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--body);
}

/* ромб — как разделитель в бегущей строке */
.dept__list li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 8px 0 0 4px;
  transform: rotate(45deg);
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.dept__list b {
  color: var(--ink);
  font-weight: 700;
}

.dept.glass--accent .dept__tag {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.dept.glass--accent .dept__list li {
  color: rgba(255, 255, 255, 0.8);
}

.dept.glass--accent .dept__list li::before {
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.dept.glass--accent .bignum {
  color: rgba(255, 255, 255, 0.07);
}

/* скриншот светлой темы под департаментами */
.nx-shot {
  margin-top: 14px;
}

.nx-shot .window {
  transform: none;
}

.nx-shot__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.nx-shot__cap .label {
  color: var(--orange-hi);
}

/* ==========================================================================
   NEXUS — культура
   ========================================================================== */
.nx-culture {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nx-perk {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px 28px 30px;
  overflow: hidden;
}

.nx-perk .tile {
  --s: 50px;
}

.nx-perk h3 {
  position: relative;
  margin-top: 24px;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.nx-perk p {
  position: relative;
  margin-top: 12px;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

/* шкала рангов: от Initiate до Legend */
.lvl {
  margin-top: auto;
  padding-top: 30px;
}

.lvl__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--track);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.lvl__track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 64%;
  border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(255, 106, 26, 0.6);
  transform-origin: left;
  transition: transform 1.4s var(--ease) 0.25s;
}

.js .nx-perk:not(.is-in) .lvl__track i {
  transform: scaleX(0.06);
}

.lvl__ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.lvl__ends span:last-child {
  color: var(--orange-soft);
}

/* превью настроек профиля: обои, блюр, тема */
.atmo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 30px;
}

.atmo__item {
  display: grid;
  gap: 8px;
}

.atmo__swatch {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.atmo__swatch--wall {
  background:
    radial-gradient(70% 90% at 80% 10%, rgba(255, 138, 61, 0.85), transparent 60%),
    radial-gradient(60% 80% at 10% 100%, rgba(120, 40, 160, 0.7), transparent 65%),
    #1a1210;
}

.atmo__swatch--blur {
  background:
    radial-gradient(50% 60% at 30% 30%, rgba(255, 106, 26, 0.7), transparent 70%),
    radial-gradient(50% 60% at 75% 70%, rgba(255, 200, 150, 0.35), transparent 70%),
    #221814;
}

.atmo__swatch--blur::after {
  content: "";
  position: absolute;
  inset: 22% 14%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.atmo__swatch--theme {
  background: linear-gradient(135deg, #f4efea 0 50%, #16110e 50% 100%);
}

.atmo__item .label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

/* ==========================================================================
   Финальный призыв без маскота: вордмарк на фоне
   ========================================================================== */
.final--word .final__title {
  max-width: 680px;
}

.final__label {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.final__word {
  position: absolute;
  right: -0.02em;
  bottom: -0.16em;
  z-index: 0;
  font-size: clamp(120px, 17vw, 250px);
  color: rgba(255, 255, 255, 0.055);
  transform: scaleY(1.12);
  transform-origin: right bottom;
  pointer-events: none;
  user-select: none;
}

/* ==========================================================================
   «Что нового» — первый экран статьи
   ========================================================================== */
.wn-hero__copy {
  max-width: 920px;
}

.wn-title__word {
  display: inline-block;
  margin-left: 0.06em;
  font-size: 1.16em;
  transform: scaleY(1.12);
  transform-origin: left bottom;
}

.wn-tagline {
  margin-top: 16px;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--orange-soft);
  animation: fade-up 0.9s var(--ease) 0.3s backwards;
}

.wn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  animation: fade-up 0.9s var(--ease) 0.4s backwards;
}

.wn-meta .chip {
  height: 32px;
  padding: 0 13px;
}

.wn-meta .i {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.wn-lead {
  margin-top: 26px;
  max-width: 760px;
  font-size: clamp(16.5px, 1.45vw, 19px);
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
  animation: fade-up 0.9s var(--ease) 0.5s backwards;
}

.wn-cover {
  margin-top: clamp(32px, 4vw, 52px);
  padding: 8px;
  overflow: hidden;
  animation: fade-in 1.2s ease 0.4s backwards;
}

.wn-cover img {
  width: 100%;
  aspect-ratio: 1600 / 780;
  object-fit: cover;
  border-radius: 21px;
}

/* ==========================================================================
   «Что нового» — семь изменений релиза
   ========================================================================== */
.release {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.rel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 28px 30px;
  overflow: hidden;
}

.rel:nth-child(1),
.rel:nth-child(4),
.rel:nth-child(6) {
  grid-column: span 7;
}

.rel:nth-child(2),
.rel:nth-child(3),
.rel:nth-child(7) {
  grid-column: span 5;
}

.rel:nth-child(5) {
  grid-column: 1 / -1;
}

.rel .tile {
  --s: 50px;
}

.rel h3 {
  position: relative;
  margin-top: 24px;
  max-width: 520px;
  font-size: clamp(21px, 1.9vw, 25px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.rel p {
  position: relative;
  margin-top: 12px;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--body);
  text-wrap: pretty;
}

.rel .bignum {
  font-size: clamp(96px, 10vw, 150px);
}

.rel__chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
}

.rel__chips .i {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

/* 05 — конвейер Creative Ops: из ТЗ в промпт */
.rel--flow {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 28px 56px;
}

.rel--flow .rel__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rel--flow p {
  color: rgba(255, 255, 255, 0.78);
}

.flow {
  position: relative;
  display: grid;
  gap: 8px;
}

.flow li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(10, 6, 4, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.flow li > span {
  flex: none;
  min-width: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffd2b0;
}

.flow li:last-child {
  color: #2a140a;
  background: #fff;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

.flow li:last-child > span {
  color: var(--orange);
}

/* плюс к релизу и «что дальше» */
.wn-extra {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 18px 22px;
}

.wn-extra .tile {
  --s: 40px;
}

.wn-extra p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}

.wn-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px 48px;
  margin-top: 14px;
  padding: clamp(26px, 3.4vw, 44px);
  overflow: hidden;
}

.wn-next__body {
  position: relative;
  min-width: 0;
}

.wn-next h3 {
  margin-top: 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.wn-next p {
  margin-top: 12px;
  max-width: 660px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--body);
}

.wn-next .btn {
  position: relative;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1080px) {
  .page-hero__in {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero__visual {
    max-width: 760px;
  }
}

@media (max-width: 900px) {
  .page-hero .shot,
  .page-hero .shot:hover {
    transform: none;
  }

  .nx-about,
  .nx-deps,
  .nx-culture,
  .rel--flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .rel:nth-child(n) {
    grid-column: 1 / -1;
  }

  .dept,
  .nx-perk {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .wn-next {
    grid-template-columns: minmax(0, 1fr);
  }

  .wn-next .btn {
    width: 100%;
  }

  .final__word {
    font-size: 36vw;
    bottom: -0.1em;
  }
}

@media (max-width: 560px) {
  .page-hero__cta .btn {
    width: 100%;
  }

  .nx-story,
  .nx-tabs,
  .dept,
  .nx-perk,
  .rel {
    padding: 22px;
  }

  .wn-extra {
    align-items: flex-start;
    padding: 16px 18px;
  }
}

/* ==========================================================================
   «Дизайнерам» — первый экран: лента задач в NEXUS (иллюстрация, не данные)
   ========================================================================== */
.queue {
  position: relative;
  padding: 18px;
}

.queue__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 6px 14px;
}

.queue__word {
  font-size: 24px;
  transform: scaleY(1.12);
  transform-origin: left bottom;
}

.queue__list {
  position: relative;
  display: grid;
  gap: 8px;
}

.qtask {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  animation: fade-up 0.8s var(--ease) backwards;
  animation-delay: calc(0.35s + var(--k, 0) * 0.12s);
}

.qtask .tile {
  --s: 38px;
}

.qtask__title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.qtask__meta {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.qtask__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--body);
  background: var(--chip);
}

.qtask__status--new {
  color: var(--orange-soft);
  background: rgba(255, 106, 26, 0.14);
}

.qtask__status--new::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

.qtask__status--done {
  color: #2a140a;
  background: #fff;
}

.queue__float {
  position: absolute;
  left: -22px;
  bottom: -40px;
  z-index: 2;
}

/* ==========================================================================
   «Дизайнерам» — боли фрилансера: проблема → решение
   ========================================================================== */
.pains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pain {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pain__was,
.pain__now {
  position: relative;
  padding: 22px 24px;
}

.pain__now {
  flex: 1;
  padding-bottom: 26px;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 106, 26, 0.1), rgba(255, 106, 26, 0.015) 70%);
}

.pain__label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.pain__now .pain__label {
  color: var(--orange-hi);
}

.pain__label .i {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 7px;
  stroke-width: 2.6;
  background: var(--raised);
}

.pain__now .pain__label .i {
  color: var(--orange-hi);
  background: rgba(255, 106, 26, 0.16);
}

.pain__was p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.pain__now p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

/* ==========================================================================
   «Дизайнерам» — NEXUS как инструмент и условия команды
   ========================================================================== */
.tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  overflow: hidden;
}

.tool .tile {
  --s: 46px;
}

.tool h3 {
  position: relative;
  margin-top: 22px;
  font-size: clamp(19px, 1.6vw, 21px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tool p {
  position: relative;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
}

.crew {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 14px;
}

.crew__perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.crew__perk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
}

.crew__perk .tile {
  --s: 40px;
}

.crew__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 2.6vw, 32px);
  overflow: hidden;
}

.crew__num {
  position: relative;
  font-size: clamp(64px, 6.4vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.crew__num small {
  margin-left: 4px;
  font-size: 0.42em;
  color: #ffd2b0;
}

.crew__text {
  position: relative;
  margin-top: 12px;
  margin-bottom: 26px;
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.crew__card .btn {
  position: relative;
  margin-top: auto;
}

/* ==========================================================================
   «Дизайнерам» — три шага
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 30px;
  overflow: hidden;
}

.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--orange-hi);
}

.step h3 {
  position: relative;
  margin-top: 18px;
  font-size: clamp(20px, 1.8vw, 23px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.step p {
  position: relative;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

/* штрих к следующему шагу */
.step:not(:last-child) .step__num::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--orange), transparent);
}

/* ==========================================================================
   Юридические страницы: оглавление + документ
   ========================================================================== */
.page-hero--doc {
  padding-bottom: clamp(24px, 3vw, 40px);
}

.page-hero--doc .page-hero__copy {
  max-width: 820px;
}

.doc-note {
  margin-top: 18px;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  animation: fade-up 0.9s var(--ease) 0.35s backwards;
}

.legal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(48px, 6vw, 88px);
  counter-reset: legal;
}

.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 2px;
}

.legal__toc .label {
  margin: 0 12px 10px;
}

.legal__toc a {
  display: flex;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--body);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.legal__toc a span {
  padding-top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange-hi);
}

.legal__toc a:hover {
  color: var(--ink);
  background: rgba(38, 32, 25, 0.7);
}

.legal__doc {
  min-width: 0;
  padding: clamp(24px, 4vw, 52px);
}

.legal__doc section + section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(61, 52, 44, 0.55);
}

.legal__doc h2 {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.legal__doc h2::before {
  counter-increment: legal;
  content: counter(legal, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--orange-hi);
}

.legal__doc p,
.legal__doc li {
  position: relative;
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
}

.legal__doc h2 + p,
.legal__doc h2 + ul,
.legal__doc p + p,
.legal__doc ul + p,
.legal__doc p + ul {
  margin-top: 14px;
}

.legal__doc ul {
  display: grid;
  gap: 8px;
}

.legal__doc li {
  padding-left: 22px;
}

.legal__doc li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--orange);
}

.legal__doc strong {
  color: var(--ink);
}

.legal__doc p a {
  color: var(--orange-soft);
  text-decoration: underline;
  text-decoration-color: rgba(255, 176, 120, 0.4);
  text-underline-offset: 3px;
}

.legal__doc p a:hover {
  text-decoration-color: currentColor;
}

.legal__doc code {
  padding: 1px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink);
  background: var(--raised);
}

.legal__related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

/* ==========================================================================
   Адаптив: «Дизайнерам» и юридические страницы
   ========================================================================== */
@media (max-width: 1080px) {
  .pains,
  .tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crew {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step:not(:last-child) .step__num::after {
    display: none;
  }

  .legal {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal__toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .legal__toc .label {
    flex-basis: 100%;
    margin: 0 0 4px;
  }

  .legal__toc a {
    background: rgba(38, 32, 25, 0.6);
  }

  .queue__float {
    left: 10px;
  }
}

@media (max-width: 760px) {
  .pains,
  .tools,
  .crew__perks {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .queue {
    padding: 12px;
  }

  .qtask {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .qtask__status {
    grid-column: 2;
    justify-self: start;
  }

  .tool,
  .step {
    padding: 22px;
  }

  .legal__doc p,
  .legal__doc li {
    font-size: 15.5px;
  }
}
