/* Главная: стили нового дизайна (как на странице диплома).
   Подключается только в index.html, все правила — внутри .home-hero,
   чтобы общий redesign-v2.css и другие страницы не менялись. */

/* ——— Первый экран: текст слева, форма справа на мягком синем свечении ——— */
.home-hero {
  padding: 28px 0 88px;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.home-hero .home-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
  margin: 0;
  text-align: left;
  min-width: 0;
}

/* Плашка-метка со значком */
.home-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 4px 12px 4px 4px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: hero-soft-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.02s both;
}

.home-hero__kicker-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue) 100%);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.home-hero h1 {
  max-width: 15ch;
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.08;
}

.home-hero .hero__lead {
  max-width: 34rem;
  margin: 0 0 20px;
  font-size: 1.12rem;
  color: var(--ink-2);
}

/* Второй абзац под описанием — факты о типе работы; на телефоне скрыт, чтобы первый экран оставался компактным */
.home-hero .hero__lead--sub {
  margin-top: -6px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 639px) {
  .home-hero .hero__lead--sub {
    display: none;
  }
}

/* Ссылки-плашки */
.home-hero .hero__more {
  justify-content: flex-start;
  gap: 6px;
  margin: 0 0 24px;
}

.home-hero .hero__more .btn-link {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.home-hero .hero__more .btn-link:hover {
  border-color: #bfdbfe;
  background: var(--blue-soft);
  color: var(--blue);
}

.home-hero .hero__more-sep {
  margin-inline: 4px;
}

/* Кнопка со стрелкой */
.home-hero .hero__cta {
  justify-content: flex-start;
  margin: 0 0 20px;
}

.home-hero .hero__cta .btn-primary {
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  padding: 0 26px;
  font-size: 15.5px;
}

.home-hero .hero__cta .btn-primary svg {
  transition: transform 0.2s var(--ease);
}

.home-hero .hero__cta .btn-primary:hover svg {
  transform: translateX(3px);
}

/* Полоска условий с синими галочками */
.home-hero .hero-trust {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 8px 22px;
  max-width: none;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.home-hero .hero-trust li {
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.home-hero .hero-trust svg {
  width: 16px;
  height: 16px;
  padding: 3px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  stroke-width: 3;
}

/* ——— Форма в окне ——— */
.home-hero__generator {
  position: relative;
  z-index: 0;
  min-width: 0;
}

.home-hero__generator::before {
  content: "";
  position: absolute;
  inset: -12% -14% -16%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 62% 38%, rgba(59, 130, 246, 0.2), transparent),
    radial-gradient(closest-side at 30% 78%, rgba(147, 197, 253, 0.28), transparent);
  filter: blur(8px);
  pointer-events: none;
}

.home-hero__form-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 4px 14px;
}

.home-hero__form-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue) 100%);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.home-hero__form-titles {
  min-width: 0;
}

.home-hero__form-titles .section-kicker {
  margin: 0 0 1px;
  font-size: 11px;
}

.home-hero__form-titles h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Подсказка «справа видно структуру» — только там, где превью действительно справа */
.home-hero__form-hint {
  display: none;
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.home-hero .home-hero__app {
  max-width: none;
  margin: 0;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 40px 80px -16px rgba(30, 64, 175, 0.2),
    0 10px 24px rgba(15, 23, 42, 0.05);
}

.home-hero .home-hero__app > .ui-app__chrome {
  border-radius: 22px 22px 0 0;
}

/* Лента типов работ не должна распирать окно шире экрана */
.home-hero .home-hero__app,
.home-hero .generator-app__body > * {
  min-width: 0;
}

.home-hero .generator-app__body {
  grid-template-columns: minmax(0, 1fr);
}

.home-hero .generator-app__form {
  gap: 18px;
  border-radius: 0 0 22px 22px;
  background: #fff;
}

.home-hero .gen-chips {
  flex-wrap: wrap;
}

.home-hero .gen-chip {
  min-height: 34px;
  border-radius: 10px;
  background: var(--bg-soft);
}

.home-hero .gen-chip:hover {
  background: #fff;
  border-color: #bfdbfe;
}

.home-hero .gen-chip.is-active {
  border-color: var(--blue);
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.26);
}

.home-hero .generator-app__submit {
  min-height: 52px;
  border-radius: 14px;
  font-size: 15.5px;
}

/* Превью структуры: по умолчанию скрыто, появляется на широких экранах */
.home-hero .generator-preview {
  display: none;
}

/* ——— Планшет и ноутбук: две колонки, форма без превью ——— */
@media (min-width: 960px) {
  .home-hero {
    padding-top: 48px;
    padding-bottom: 104px;
  }

  .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
    gap: 48px;
    align-items: stretch;
  }

  /* Левая колонка тянется на высоту формы: плашка — вровень с шапкой формы, строка преимуществ — с её низом */
  .home-hero .home-hero__copy > h1 {
    margin-top: auto;
  }

  .home-hero .home-hero__copy > .hero-trust {
    margin-top: auto;
  }

  .home-hero__generator {
    align-self: start;
  }

  .home-hero .generator-app__form {
    padding: 24px 24px 22px;
    border-right: 0;
  }

  .home-hero .gen-chip {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13.5px;
  }

  .home-hero .generator-app .field input,
  .home-hero .generator-app .field select:not(.gen-select__native),
  .home-hero .generator-app .gen-select__trigger {
    min-height: 50px;
    border-radius: 12px;
  }

  .home-hero .generator-app__submit {
    min-height: 56px;
    font-size: 16px;
  }

  .home-hero__form-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .home-hero__form-titles h2 {
    font-size: 1.35rem;
  }
}

/* ——— Широкий экран: в окне формы справа живое превью структуры ——— */
@media (min-width: 1280px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 56px;
  }

  .home-hero .generator-app__body {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .home-hero .generator-app__form {
    border-right: 1px solid var(--line-soft);
  }

  .home-hero .generator-preview {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    border-top: 0;
    border-radius: 0 0 22px 0;
  }

  .home-hero .generator-preview__sheet {
    flex: 1;
    min-height: 0;
  }

  .home-hero__form-hint {
    display: block;
  }
}

/* ——— Телефон: всё компактно, ленты со свайпом ——— */
@media (max-width: 639px) {
  .home-hero {
    padding-top: 14px;
    padding-bottom: 64px;
  }

  .home-hero__grid {
    gap: 22px;
  }

  .home-hero__kicker {
    margin-bottom: 12px;
    font-size: 10.5px;
  }

  .home-hero__kicker-icon {
    width: 20px;
    height: 20px;
  }

  .home-hero__kicker-icon svg {
    width: 12px;
    height: 12px;
  }

  .home-hero h1 {
    max-width: none;
    margin-bottom: 10px;
    font-size: clamp(1.7rem, 7.6vw, 2.05rem);
  }

  .home-hero .hero__lead {
    max-width: none;
    margin-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.45;
  }

  /* Ссылки — одной лентой со свайпом */
  .home-hero .hero__more {
    flex-wrap: nowrap;
    align-self: stretch;
    gap: 5px;
    margin: 0 calc(var(--gutter) * -1) 14px;
    padding: 0 var(--gutter) 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-hero .hero__more::-webkit-scrollbar {
    display: none;
  }

  .home-hero .hero__more .btn-link {
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .home-hero .hero__more-sep {
    display: none;
  }

  .home-hero .hero__cta {
    flex-direction: row;
    align-self: stretch;
    width: auto;
    margin: 0 0 12px;
  }

  .home-hero .hero__cta .btn-primary {
    flex: 1 1 auto;
    min-height: 48px;
    font-size: 15px;
  }

  .home-hero .hero-trust {
    align-self: stretch;
    grid-template-columns: 1fr 1fr;
    gap: 7px 10px;
    padding: 9px 11px;
    border-radius: 12px;
  }

  .home-hero .hero-trust li {
    gap: 6px;
    font-size: 12px;
    line-height: 1.25;
  }

  .home-hero .hero-trust svg {
    width: 14px;
    height: 14px;
    padding: 2px;
  }

  .home-hero__generator::before {
    inset: -4% -2% -6%;
  }

  .home-hero__form-head {
    gap: 10px;
    margin: 0 4px 10px;
  }

  .home-hero__form-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .home-hero__form-icon svg {
    width: 16px;
    height: 16px;
  }

  .home-hero__form-titles h2 {
    font-size: 1.05rem;
  }

  /* Форма в белом окне (общий стиль телефона делает её прозрачной на всю ширину) */
  .home-hero .home-hero__app {
    width: 100%;
    margin: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 44px -12px rgba(30, 64, 175, 0.18);
  }

  .home-hero .generator-app__form {
    gap: 12px;
    padding: 14px 12px 12px;
    border-radius: 18px;
    background: #fff;
  }

  .home-hero .field__label,
  .home-hero .generator-app .field label {
    margin-bottom: 6px;
    font-size: 12.5px;
  }

  /* Типы работ — одной лентой со свайпом */
  .home-hero .gen-chips {
    flex-wrap: nowrap;
    gap: 6px;
    margin-inline: -12px;
    padding: 2px 12px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .home-hero .gen-chips::-webkit-scrollbar {
    display: none;
  }

  .home-hero .gen-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    scroll-snap-align: start;
  }

  .home-hero .generator-app__row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .home-hero .generator-app .field input,
  .home-hero .generator-app .field select:not(.gen-select__native),
  .home-hero .generator-app .gen-select__trigger {
    min-height: 46px;
    border-radius: 11px;
    padding-left: 12px;
  }

  .home-hero .generator-app .gen-select__trigger {
    padding-right: 32px;
  }

  .home-hero .generator-app__submit {
    min-height: 50px;
    margin-top: 2px;
    font-size: 15px;
  }

  .home-hero .generator-note {
    padding: 0;
    font-size: 11.5px;
    text-align: center;
  }
}

/* ——— «Как работает»: 4 шага, лист растёт (как на странице диплома) ——— */
.home-how .showcase__intro {
  margin-bottom: 32px;
}

.home-how .vkr-route {
  display: grid;
  gap: 24px;
}

.home-how .vkr-route__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.home-how .vkr-route__step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid transparent;
  opacity: 0.6;
  transition:
    opacity 0.4s var(--ease),
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.home-how .vkr-route__step:hover {
  opacity: 0.85;
}

.home-how .vkr-route__step.is-active {
  opacity: 1;
  background: #fff;
  border-color: var(--line);
  box-shadow:
    0 24px 56px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.03);
}

.home-how .vkr-route__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: inherit;
  cursor: pointer;
}

.home-how .vkr-route__hit:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.home-how .vkr-route__num {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.home-how .vkr-route__step.is-done .vkr-route__num {
  background: var(--blue-soft);
  border-color: #bfdbfe;
  color: var(--blue);
}

.home-how .vkr-route__step.is-active .vkr-route__num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.home-how .vkr-route__copy h3 {
  margin: 2px 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-how .vkr-route__copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.home-how .vkr-route__copy a {
  position: relative;
  z-index: 2;
}

.home-how .vkr-route__copy .btn-link {
  margin-top: 12px;
}

.home-how__points {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.home-how__points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.45;
}

.home-how__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--blue);
}

.home-how__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.home-how .vkr-route__sticky {
  padding: 20px 16px 0;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 55% at 75% 12%, rgba(37, 99, 235, 0.12), transparent 58%),
    linear-gradient(165deg, #f0f5fb 0%, #e6edf7 100%);
  box-shadow:
    0 32px 72px rgba(15, 23, 42, 0.09),
    0 8px 20px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.home-how .vkr-route__bars {
  display: flex;
  gap: 6px;
  max-width: 560px;
  margin: 0 auto 18px;
}

.home-how .vkr-route__bars i {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  overflow: hidden;
}

.home-how .vkr-route__bars i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
}

.home-how .vkr-route__bars i.is-on::after {
  transform: scaleX(1);
}

.home-how .vkr-doc {
  max-width: 560px;
  margin: 0 auto;
}

.home-how .vkr-doc__body {
  display: flex;
  flex-direction: column;
  height: 560px;
  background: #f4f7fb;
  overflow: hidden;
}

.home-how .vkr-doc__ghost {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}

.home-how .vkr-doc__ghost i {
  display: block;
  width: var(--w);
  height: 7px;
  border-radius: 999px;
  background: #f1f5f9;
}

.home-how .vkr-doc__ghost i:nth-child(5n + 1) {
  height: 9px;
  margin-top: 8px;
  background: #e8eef6;
}

.home-how .vkr-doc__part {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition:
    grid-template-rows 0.6s var(--ease),
    opacity 0.45s var(--ease),
    transform 0.55s var(--ease);
}

.home-how .vkr-doc__part.is-shown {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: none;
}

.home-how .vkr-doc__inner {
  min-height: 0;
  overflow: hidden;
}

.home-how .vkr-doc__part--export .ui-export-bar {
  border-bottom: 1px solid var(--line-soft);
}

.home-how .vkr-doc__sheet {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  margin: 14px 14px 0;
  padding: 22px 20px 18px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.04);
}

.home-how .vkr-doc__stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 9px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
  opacity: 0;
  transform: scale(0.6) rotate(-14deg);
  transition:
    opacity 0.35s var(--ease),
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-how .vkr-doc[data-stage="4"] .vkr-doc__stamp {
  opacity: 1;
  transform: rotate(-6deg);
}

.home-how .vkr-doc__part--title .ui-export-sheet__topic {
  margin-bottom: 12px;
}

.home-how .vkr-doc__caret {
  height: 14px;
}

.home-how .vkr-doc:not([data-stage="1"]) .vkr-doc__caret {
  display: none;
}

.home-how .vkr-doc__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.home-how .vkr-doc__chips span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.home-how .vkr-doc[data-stage="1"] .vkr-doc__chips > span {
  animation: home-how-pop 0.5s var(--ease) both;
}

.home-how .vkr-doc[data-stage="1"] .vkr-doc__chips > span:nth-child(2) { animation-delay: 0.08s; }
.home-how .vkr-doc[data-stage="1"] .vkr-doc__chips > span:nth-child(3) { animation-delay: 0.16s; }

.home-how .vkr-doc__part--toc .vkr-doc__inner::before,
.home-how .vkr-doc__part--text .vkr-doc__inner::before {
  content: "";
  display: block;
  height: 0;
  margin: 16px 0;
  border-top: 1px dashed var(--line);
}

.home-how .vkr-doc__label {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted-2);
}

.home-how .vkr-doc__toc {
  gap: 7px;
}

.home-how .vkr-doc__part--toc.is-shown .vkr-doc__toc li {
  animation: home-how-row 0.5s var(--ease) both;
}

.home-how .vkr-doc__part--toc.is-shown .vkr-doc__toc li:nth-child(2) { animation-delay: 0.06s; }
.home-how .vkr-doc__part--toc.is-shown .vkr-doc__toc li:nth-child(3) { animation-delay: 0.12s; }
.home-how .vkr-doc__part--toc.is-shown .vkr-doc__toc li:nth-child(4) { animation-delay: 0.18s; }
.home-how .vkr-doc__part--toc.is-shown .vkr-doc__toc li:nth-child(5) { animation-delay: 0.24s; }

.home-how .vkr-doc__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.home-how .vkr-doc__done {
  display: none;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  color: var(--ok);
}

.home-how .vkr-doc[data-stage="4"] .vkr-doc__live {
  display: none;
}

.home-how .vkr-doc[data-stage="4"] .vkr-doc__done {
  display: inline-flex;
}

.home-how .vkr-doc__lines i {
  display: block;
  width: 0;
  height: 7px;
  margin-top: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbe3ee, #eef2f7);
  transition: width 0.9s var(--ease);
}

.home-how .vkr-doc__part--text.is-shown .vkr-doc__lines i {
  width: var(--w);
}

.home-how .vkr-doc__part--text.is-shown .vkr-doc__lines i:nth-child(2) { transition-delay: 0.15s; }
.home-how .vkr-doc__part--text.is-shown .vkr-doc__lines i:nth-child(3) { transition-delay: 0.3s; }
.home-how .vkr-doc__part--text.is-shown .vkr-doc__lines i:nth-child(4) { transition-delay: 0.45s; }

.home-how .vkr-doc[data-stage="3"] .vkr-doc__lines i {
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.85) 50%, transparent 70%) 0 0 / 220% 100%,
    linear-gradient(90deg, #cfe0fb, #e8effa);
  animation: home-how-shimmer 1.4s linear infinite;
}

/* На главной шаги другие: 1 — оглавление, 2 — текст пишется, 3 — правка абзаца, 4 — файл */
.home-how .vkr-doc[data-stage="1"] .vkr-doc__part--toc,
.home-how .vkr-doc[data-stage="2"] .vkr-doc__part--text {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: none;
}

.home-how .vkr-doc[data-stage="1"] .vkr-doc__toc li {
  animation: home-how-row 0.5s var(--ease) both;
}

.home-how .vkr-doc[data-stage="1"] .vkr-doc__toc li:nth-child(2) { animation-delay: 0.06s; }
.home-how .vkr-doc[data-stage="1"] .vkr-doc__toc li:nth-child(3) { animation-delay: 0.12s; }
.home-how .vkr-doc[data-stage="1"] .vkr-doc__toc li:nth-child(4) { animation-delay: 0.18s; }
.home-how .vkr-doc[data-stage="1"] .vkr-doc__toc li:nth-child(5) { animation-delay: 0.24s; }

.home-how .vkr-doc[data-stage="2"] .vkr-doc__lines i {
  width: var(--w);
  background:
    linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.85) 50%, transparent 70%) 0 0 / 220% 100%,
    linear-gradient(90deg, #cfe0fb, #e8effa);
  animation: home-how-shimmer 1.4s linear infinite;
}

.home-how .vkr-doc[data-stage="3"] .vkr-doc__lines i {
  background: linear-gradient(90deg, #dbe3ee, #eef2f7);
  animation: none;
}

.home-how .vkr-doc[data-stage="3"] .vkr-doc__live {
  display: none;
}

.home-how .vkr-doc[data-stage="3"] .vkr-doc__done {
  display: inline-flex;
}

.home-how .vkr-doc__part--text .ui-doc__p {
  margin: 0 -8px;
  padding: 6px 8px;
  border-radius: 8px;
  transition:
    background-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.home-how .vkr-doc[data-stage="3"] .vkr-doc__part--text .ui-doc__p {
  background: rgba(37, 99, 235, 0.08);
  box-shadow: inset 3px 0 0 var(--blue);
}

@keyframes home-how-row {
  from { opacity: 0; transform: translate3d(-10px, 0, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes home-how-pop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: none; }
}

@keyframes home-how-shimmer {
  from { background-position: 120% 0, 0 0; }
  to { background-position: -120% 0, 0 0; }
}

@media (max-width: 899px) {
  .home-how .vkr-route__stage {
    order: -1;
  }
}

@media (min-width: 900px) {
  .home-how .vkr-route {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: stretch;
  }

  .home-how .vkr-route__steps {
    align-content: start;
    gap: 0;
    padding: 6vh 0 22vh;
  }

  .home-how .vkr-route__step {
    padding: 22px 24px;
  }

  .home-how .vkr-route__step + .vkr-route__step {
    margin-top: 15vh;
  }

  .home-how .vkr-route__stage {
    position: relative;
  }

  .home-how .vkr-route__sticky {
    position: sticky;
    top: calc(var(--header-h, 72px) + 28px);
    padding: 26px 28px 0;
  }
}

/* Телефон: активный шаг с текстом, остальные — одной строкой */
@media (max-width: 639px) {
  .home-how .showcase__intro {
    margin-bottom: 18px;
  }

  .home-how .vkr-route {
    gap: 14px;
  }

  .home-how .vkr-route__steps {
    gap: 4px;
  }

  .home-how .vkr-route__step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .home-how .vkr-route__step.is-active {
    align-items: start;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
  }

  .home-how .vkr-route__num {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 12px;
  }

  .home-how .vkr-route__copy h3 {
    margin: 0;
    font-size: 15px;
  }

  .home-how .vkr-route__step.is-active .vkr-route__copy h3 {
    margin: 4px 0;
  }

  .home-how .vkr-route__copy p {
    display: none;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .home-how .vkr-route__step.is-active .vkr-route__copy p {
    display: block;
  }

  .home-how__points,
  .home-how__links,
  .home-how .vkr-route__copy .btn-link {
    display: none;
  }

  .home-how .vkr-route__sticky {
    padding: 12px 10px 0;
    border-radius: 22px;
  }

  .home-how .vkr-route__sticky .vkr-doc {
    zoom: 0.8;
  }

  .home-how .vkr-doc__body {
    height: 480px;
  }

  .home-how .vkr-doc__sheet {
    margin: 10px 10px 0;
    padding: 18px 14px 14px;
  }

  .home-how .vkr-doc__part--title .ui-export-sheet__type {
    padding: 0 46px;
  }

  .home-how .vkr-doc__part--toc .vkr-doc__inner::before,
  .home-how .vkr-doc__part--text .vkr-doc__inner::before {
    margin: 10px 0;
  }

  .home-how .vkr-doc__toc {
    gap: 4px;
  }

  .home-how .vkr-doc__lines i:nth-child(n + 3) {
    display: none;
  }
}

/* ——— «Примеры»: окно с оглавлением, пункт открывает страницу ——— */
.home-examples .examples-panel {
  border-radius: 28px;
  box-shadow:
    0 32px 72px rgba(15, 23, 42, 0.09),
    0 8px 20px rgba(15, 23, 42, 0.03);
}

.home-examples .examples-panel__type {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 11.5px;
}

.home-examples .examples-panel__meta li {
  background: #fff;
  border-color: var(--line);
}

.home-examples .examples-panel__copy .btn-primary {
  align-self: flex-start;
}

.home-ex__preview {
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, rgba(37, 99, 235, 0.12), transparent 58%),
    linear-gradient(165deg, #f0f5fb 0%, #e6edf7 100%);
  padding: 24px 16px 0;
  min-width: 0;
}

.home-ex {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.home-ex__body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 300px;
}

.home-ex__toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  border-right: 1px solid var(--line-soft);
  background: #fafbfc;
}

.home-ex__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 9px 10px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.home-ex__item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-ex__item em {
  flex-shrink: 0;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.home-ex__item:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--ink);
}

.home-ex__item.is-active {
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.home-ex__item.is-active em {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.home-ex__item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.home-ex__pages {
  display: grid;
  min-width: 0;
  padding: 18px 20px 22px;
}

.home-ex__page {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(14px, 0, 0);
  transition:
    opacity 0.3s var(--ease),
    transform 0.4s var(--ease),
    visibility 0s linear 0.3s;
}

.home-ex__page.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.45s var(--ease) 0.05s,
    transform 0.5s var(--ease) 0.05s,
    visibility 0s linear 0s;
}

.home-ex__h {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.home-ex__page .ui-doc__p {
  margin: 0 0 10px;
}

.home-ex__subs,
.home-ex__lit {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.home-ex__subs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.home-ex__subs b {
  min-width: 28px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  text-align: center;
}

.home-ex__lit {
  counter-reset: lit;
}

.home-ex__lit li {
  position: relative;
  padding: 6px 0 6px 24px;
  border-bottom: 1px dotted var(--line);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
  counter-increment: lit;
}

.home-ex__lit li::before {
  content: counter(lit) ".";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.home-ex__slot {
  padding: 22px 12px;
  border: 1px dashed #bfdbfe;
  border-radius: 12px;
  background: rgba(239, 246, 255, 0.6);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--blue);
}

.home-ex__thesis {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  box-shadow: inset 3px 0 0 var(--blue);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.home-ex__thesis b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--blue);
}

.home-ex__goal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--ok);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.home-ex__goal::before {
  content: "✓";
}

.home-ex__page.is-active :is(.home-ex__subs li, .home-ex__lit li, .ui-doc__p, .home-ex__slot, .home-ex__thesis, .home-ex__goal) {
  animation: home-how-row 0.45s var(--ease) both;
}

.home-ex__page.is-active > :nth-child(3) { animation-delay: 0.08s; }
.home-ex__page.is-active :is(.home-ex__subs, .home-ex__lit) li:nth-child(2) { animation-delay: 0.07s; }
.home-ex__page.is-active :is(.home-ex__subs, .home-ex__lit) li:nth-child(3) { animation-delay: 0.14s; }

@media (min-width: 900px) {
  .home-examples .examples-panel__pane {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  }

  .home-ex__preview {
    padding: 36px 30px 0;
  }

  .home-ex__body {
    min-height: 340px;
  }
}

@media (max-width: 639px) {
  .home-examples .examples-panel {
    border-radius: 22px;
  }

  .home-ex__preview {
    padding: 0 10px;
    background: linear-gradient(180deg, #fff 0%, #eef3fa 100%);
  }

  .home-ex__body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .home-ex__toc {
    flex-direction: row;
    gap: 6px;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .home-ex__toc::-webkit-scrollbar {
    display: none;
  }

  .home-ex__toc .ui-app__side-label {
    display: none;
  }

  .home-ex__item {
    flex: 0 0 auto;
    width: auto;
    padding: 7px 12px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    scroll-snap-align: start;
  }

  .home-ex__item span {
    overflow: visible;
  }

  .home-ex__item em {
    display: none;
  }

  .home-ex__item.is-active {
    border-color: var(--blue);
  }

  .home-ex__pages {
    min-height: 200px;
    padding: 12px 12px 14px;
  }

  .home-ex__h {
    margin-bottom: 10px;
    padding-bottom: 8px;
    font-size: 14px;
  }
}

/* ——— «Под ваш тип работы»: одна белая панель, окно на синем фоне справа ——— */
.home-audiences .audience-stage {
  gap: 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow:
    0 32px 72px rgba(15, 23, 42, 0.09),
    0 8px 20px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.home-audiences .audience-stage__copy {
  padding: 28px 22px;
}

.home-audiences .audience-stage__kicker {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
}

.home-audiences .audience-stage__meta li {
  background: #fff;
  border-color: var(--line);
}

.home-audiences .audience-stage__preview {
  display: flex;
  align-items: flex-end;
  padding: 24px 16px 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, rgba(37, 99, 235, 0.12), transparent 58%),
    linear-gradient(165deg, #f0f5fb 0%, #e6edf7 100%);
}

.home-audiences .audience-app {
  width: 100%;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 -4px 32px rgba(15, 23, 42, 0.08);
}

@media (min-width: 880px) {
  .home-audiences .audience-stage {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0;
  }

  .home-audiences .audience-stage__copy {
    justify-content: center;
    padding: 40px 36px;
  }

  .home-audiences .audience-stage__preview {
    padding: 36px 30px 0;
  }
}

/* ——— «Почему Erudia»: карточки как окна на синем фоне ——— */
.home-benefits .benefit--window {
  border-radius: 24px;
  border-color: var(--line);
  box-shadow:
    0 24px 56px rgba(15, 23, 42, 0.07),
    0 4px 12px rgba(15, 23, 42, 0.02);
}

.home-benefits .benefit--window:hover {
  border-color: #bfdbfe;
  box-shadow:
    0 28px 64px rgba(37, 99, 235, 0.12),
    0 4px 12px rgba(15, 23, 42, 0.03);
}

.home-benefits .benefit__preview {
  padding: 18px 18px 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, rgba(37, 99, 235, 0.12), transparent 58%),
    linear-gradient(165deg, #f0f5fb 0%, #e6edf7 100%);
}

.home-benefits .benefit__copy {
  padding: 18px 20px 22px;
}

.home-benefits .benefit--window h3 {
  font-weight: 800;
}

/* ——— Тарифы: «два ответа — и видно, что выбрать» ——— */
.home-pricing .vkr-pick {
  display: grid;
  max-width: 980px;
  margin: 0 auto 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow:
    0 32px 72px rgba(15, 23, 42, 0.09),
    0 8px 20px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.home-pricing .vkr-pick__questions {
  display: grid;
  gap: 24px;
  align-content: center;
  padding: 24px 20px;
}

.home-pricing .vkr-pick__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.home-pricing .vkr-pick__head-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue) 100%);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.28);
}

.home-pricing .vkr-pick__head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.home-pricing .vkr-pick__head span:not(.vkr-pick__head-icon) {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

.home-pricing .vkr-pick__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.home-pricing .vkr-pick__label span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.home-pricing .vkr-pick__opts {
  display: grid;
  gap: 10px;
}

.home-pricing .vkr-opt {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 1px;
  align-items: center;
  padding: 13px 44px 13px 13px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    opacity 0.25s var(--ease),
    transform 0.2s var(--ease);
}

.home-pricing .vkr-opt__icon {
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.home-pricing .vkr-opt strong {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.home-pricing .vkr-opt > span:last-child {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--muted);
}

.home-pricing .vkr-opt::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  transition:
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease),
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-pricing .vkr-opt:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.home-pricing .vkr-opt:active {
  transform: scale(0.99);
}

.home-pricing .vkr-opt:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.home-pricing .vkr-opt.is-on {
  border-color: var(--blue);
  background: linear-gradient(180deg, var(--blue-soft), #fff 92%);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.home-pricing .vkr-opt.is-on .vkr-opt__icon {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.home-pricing .vkr-opt.is-on::after {
  border-color: var(--blue);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat,
    var(--blue);
  transform: scale(1.06);
}

.home-pricing .vkr-pick__q.is-muted .vkr-opt {
  opacity: 0.4;
  pointer-events: none;
}

.home-pricing .vkr-pick__q.is-muted .vkr-opt.is-on {
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
}

.home-pricing .vkr-pick__q.is-muted .vkr-opt.is-on .vkr-opt__icon {
  background: var(--bg-soft);
  color: var(--muted);
  box-shadow: none;
}

.home-pricing .vkr-pick__q.is-muted .vkr-opt.is-on::after {
  border-color: #cbd5e1;
  background: #fff;
  transform: none;
}

.home-pricing .vkr-pick__skip {
  display: none;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted-2);
}

.home-pricing .vkr-pick__q.is-muted .vkr-pick__skip {
  display: block;
}

.home-pricing .vkr-pick__result {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 85% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(160deg, #3b82f6 0%, var(--blue) 45%, var(--blue-deep) 100%);
  overflow: hidden;
  isolation: isolate;
}

.home-pricing .vkr-pick__result::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  z-index: -1;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 38px solid rgba(255, 255, 255, 0.07);
}

.home-pricing .vkr-pick__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.home-pricing .vkr-pick__swap.is-swap {
  animation: home-how-pop 0.45s var(--ease) both;
}

.home-pricing .vkr-pick__plan {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-pricing .vkr-pick__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin: 6px 0 16px;
}

.home-pricing .vkr-pick__price > span {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.home-pricing .vkr-pick__price small {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.home-pricing .vkr-pick__price em {
  margin-left: 4px;
  font-style: normal;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
}

.home-pricing .vkr-pick__why {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.home-pricing .vkr-pick__why li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.94);
}

.home-pricing .vkr-pick__why li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' stroke='%232563eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat,
    #fff;
}

.home-pricing .vkr-pick__cta {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  border: 0;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.home-pricing .vkr-pick__cta:hover {
  background: #eff6ff;
  color: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.26);
}

.home-pricing .vkr-pick__cta[hidden] {
  display: none;
}

.home-pricing .price {
  border-radius: 24px;
}

.home-pricing .price[data-plan] {
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.home-pricing .price.is-fit {
  border-color: #93c5fd;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.12),
    var(--shadow-lg);
}

.home-pricing .price[data-plan="free"].is-fit {
  border-color: #86efac;
  box-shadow:
    0 0 0 3px rgba(16, 185, 129, 0.12),
    var(--shadow-lg);
}

.home-pricing .vkr-fit-chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin: -10px 0 18px;
  padding: 5px 11px 5px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  animation: home-how-pop 0.45s var(--ease) both;
}

.home-pricing .vkr-fit-chip::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat,
    currentColor;
}

.home-pricing .vkr-fit-chip[hidden] {
  display: none;
}

.home-pricing .price[data-plan="free"] .vkr-fit-chip {
  background: #ecfdf5;
  color: #047857;
}

@media (min-width: 900px) {
  .home-pricing .vkr-pick {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .home-pricing .vkr-pick__questions {
    padding: 34px;
  }

  .home-pricing .vkr-pick__opts {
    grid-template-columns: 1fr 1fr;
  }

  .home-pricing .vkr-pick__result {
    padding: 34px 32px 30px;
  }
}

/* ——— «Чем сервис не является»: одна белая панель с синими значками ——— */
.home-limits .vkr-limits {
  display: grid;
  max-width: 1040px;
  margin: 28px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow:
    0 24px 56px rgba(15, 23, 42, 0.07),
    0 4px 12px rgba(15, 23, 42, 0.02);
  overflow: hidden;
}

.home-limits .vkr-limits__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 24px 26px;
}

.home-limits .vkr-limits__item + .vkr-limits__item {
  border-top: 1px solid var(--line-soft);
}

.home-limits .vkr-limits__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  color: var(--blue);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
}

.home-limits .vkr-limits__item strong {
  display: block;
  margin: 2px 0 6px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.home-limits .vkr-limits__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 900px) {
  .home-limits .vkr-limits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-limits .vkr-limits__item {
    padding: 28px 26px;
  }

  .home-limits .vkr-limits__item + .vkr-limits__item {
    border-top: 0;
    border-left: 1px solid var(--line-soft);
  }
}

/* ——— Частые вопросы ——— */
.home-faq .faq__list {
  gap: 12px;
}

.home-faq .faq-item {
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.03);
}

.home-faq .faq-item.is-open {
  border-color: #bfdbfe;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.08),
    0 18px 40px rgba(37, 99, 235, 0.08);
}

.home-faq .faq-item__q {
  padding: 18px 20px 18px 22px;
}

.home-faq .faq-item__q svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-2);
  transition:
    transform 0.28s var(--ease),
    background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.home-faq .faq-item.is-open .faq-item__q svg {
  background: var(--blue);
  color: #fff;
}

.home-faq .faq-item__a {
  padding-left: 22px;
  padding-right: 22px;
}

.home-faq .faq-item.is-open .faq-item__a {
  padding: 0 22px 20px;
}

/* ——— Телефон: компактные панели ——— */
@media (max-width: 639px) {
  .home-audiences .audience-stage {
    border-radius: 22px;
  }

  .home-audiences .audience-stage__copy {
    padding: 16px 14px 14px;
  }

  .home-audiences .audience-stage__preview {
    padding: 0 10px;
    background: linear-gradient(180deg, #fff 0%, #eef3fa 100%);
  }

  .home-benefits .benefit--window {
    border-radius: 20px;
  }

  .home-pricing .vkr-pick {
    border-radius: 22px;
  }

  .home-pricing .vkr-pick__questions {
    gap: 14px;
    padding: 16px 14px;
  }

  .home-pricing .vkr-pick__head {
    gap: 10px;
    padding-bottom: 12px;
  }

  .home-pricing .vkr-pick__head-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .home-pricing .vkr-pick__head strong {
    font-size: 1.05rem;
  }

  .home-pricing .vkr-pick__head span:not(.vkr-pick__head-icon) {
    display: none;
  }

  .home-pricing .vkr-pick__label {
    margin-bottom: 8px;
    font-size: 14px;
  }

  .home-pricing .vkr-pick__opts {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .home-pricing .vkr-opt {
    grid-template-columns: 1fr;
    justify-items: start;
    row-gap: 6px;
    padding: 10px;
    border-radius: 14px;
  }

  .home-pricing .vkr-opt__icon {
    grid-row: auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .home-pricing .vkr-opt strong {
    font-size: 13.5px;
    line-height: 1.2;
  }

  .home-pricing .vkr-opt > span:last-child {
    display: none;
  }

  .home-pricing .vkr-opt::after {
    top: 12px;
    right: 10px;
    width: 18px;
    height: 18px;
    margin-top: 0;
  }

  .home-pricing .vkr-pick__skip {
    margin-top: 6px;
    font-size: 12px;
  }

  .home-pricing .vkr-pick__result {
    padding: 16px 14px 14px;
  }

  .home-pricing .vkr-pick__plan {
    margin-top: 2px;
    font-size: 1.25rem;
  }

  .home-pricing .vkr-pick__price {
    margin: 2px 0 12px;
  }

  .home-pricing .vkr-pick__price > span {
    font-size: 2.2rem;
  }

  .home-pricing .vkr-pick__why {
    display: none;
  }

  .home-pricing .vkr-pick__result::after {
    width: 160px;
    height: 160px;
    border-width: 26px;
  }

  .home-pricing .vkr-fit-chip {
    margin-top: -8px;
  }

  .home-limits .vkr-limits {
    margin-top: 18px;
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  }

  .home-limits .vkr-limits__item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .home-limits .vkr-limits__icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .home-limits .vkr-limits__icon svg {
    width: 17px;
    height: 17px;
  }

  .home-limits .vkr-limits__item strong {
    margin: 0 0 3px;
    font-size: 14.5px;
  }

  .home-limits .vkr-limits__item p {
    font-size: 13px;
    line-height: 1.45;
  }

  .home-faq .faq-item {
    border-radius: 14px;
  }

  .home-faq .faq-item__q {
    padding: 14px 14px 14px 16px;
    font-size: 14.5px;
  }

  .home-faq .faq-item__q svg {
    width: 26px;
    height: 26px;
    padding: 5px;
  }

  .home-faq .faq-item__a {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 14px;
  }

  .home-faq .faq-item.is-open .faq-item__a {
    padding: 0 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__kicker {
    animation: none;
  }

  .home-pricing .vkr-opt,
  .home-pricing .vkr-opt::after,
  .home-pricing .price[data-plan] {
    transition: none !important;
  }

  .home-pricing .vkr-pick__swap,
  .home-pricing .vkr-fit-chip {
    animation: none !important;
  }

  .home-ex__item,
  .home-ex__page {
    transition: none !important;
  }

  .home-ex__page * {
    animation: none !important;
  }

  .home-how .vkr-route__step,
  .home-how .vkr-route__bars i::after,
  .home-how .vkr-doc__part,
  .home-how .vkr-doc__stamp,
  .home-how .vkr-doc__lines i {
    transition: none !important;
  }

  .home-how .vkr-doc__chips > span,
  .home-how .vkr-doc__toc li,
  .home-how .vkr-doc__lines i {
    animation: none !important;
  }
}

/* ——— Единая ширина: шапка, первый экран и все секции стоят на одной сетке ——— */
body.home-page,
body.seo-page {
  --container: 1280px;
}

.home-page .showcase__intro,
.home-page .examples__intro,
.home-page .audiences__intro,
.home-page .benefits__header,
.home-page .pricing__header,
.home-page .faq__header {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.home-page .home-limits .vkr-limits {
  max-width: none;
}

@media (min-width: 900px) {
  .home-page .home-faq .faq__list {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px 20px;
  }
}

/* ——— «Почему Erudia»: полоса фактов и теги в карточках ——— */
.benefits__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow:
    0 24px 56px rgba(15, 23, 42, 0.06),
    0 4px 12px rgba(15, 23, 42, 0.02);
  overflow: hidden;
}

.benefits__facts li {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.benefits__facts li:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.benefits__facts li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.benefits__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.benefits__facts span {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}

.benefit__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.benefit__tags li {
  padding: 4px 10px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: var(--blue-soft);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-deep, var(--blue));
  white-space: nowrap;
}

@media (min-width: 900px) {
  .benefits__facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .benefits__facts li,
  .benefits__facts li:nth-child(odd),
  .benefits__facts li:nth-last-child(-n + 2) {
    padding: 24px 26px;
    border-bottom: 0;
    border-right: 1px solid var(--line-soft);
  }

  .benefits__facts li:last-child {
    border-right: 0;
  }
}

@media (max-width: 639px) {
  .benefits__facts {
    margin-bottom: 20px;
    border-radius: 20px;
  }

  .benefits__facts li {
    padding: 14px 16px;
  }

  .benefits__facts span {
    font-size: 12.5px;
  }

  .benefit__tags {
    margin-top: 10px;
  }
}

/* Карточки «Почему Erudia»: окна одной высоты, чтобы заголовки стояли на одном уровне */
@media (min-width: 640px) {
  .home-benefits .benefit__preview {
    height: 270px;
    overflow: hidden;
  }

  .home-benefits .benefit__preview .ui-app {
    height: 100%;
  }
}

/* ——— «Почему Erudia»: сравнение «обычный чат ↔ Erudia» с ползунком ——— */
.why__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 16px;
}

.why__switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.why__opt {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.why__opt.is-on {
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.why__opt:focus-visible,
.why__range:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.why__hint {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.why__stage {
  position: relative;
  height: 460px;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow:
    0 32px 72px rgba(15, 23, 42, 0.09),
    0 8px 20px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}

.why__layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 56px 24px 24px;
}

.why__layer--chat {
  background: linear-gradient(180deg, #f3f4f6 0%, #e7e9ee 100%);
}

.why__layer--erudia {
  z-index: 2;
  background:
    radial-gradient(ellipse 70% 60% at 75% 15%, rgba(37, 99, 235, 0.16), transparent 60%),
    linear-gradient(165deg, #f0f5fb 0%, #dfe9f8 100%);
  clip-path: inset(0 0 0 var(--pos));
}

.why__label {
  position: absolute;
  top: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.why__label--chat {
  left: 20px;
  background: #fff;
  border: 1px solid #d9dce3;
  color: #6b7280;
}

.why__label--erudia {
  right: 20px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.why__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 4;
  width: 0;
  pointer-events: none;
}

.why__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25), 0 0 18px rgba(37, 99, 235, 0.35);
}

.why__handle i {
  position: absolute;
  top: 50%;
  left: -22px;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27%3E%3Cpath d=%27M8 7l-5 5 5 5M16 7l5 5-5 5%27 stroke=%27%23fff%27 stroke-width=%272.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") center / 24px no-repeat;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
}

.why__range {
  display: block;
  width: 100%;
  height: 28px;
  margin: 14px 0 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.why__range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cbd5e1 0, #93c5fd 100%);
}

.why__range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cbd5e1 0, #93c5fd 100%);
}

.why__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.why__range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Макет чата */
.why-chat {
  width: min(100%, 560px);
  background: #fff;
  border: 1px solid #d9dce3;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.why-chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 12.5px;
  font-weight: 600;
  color: #6b7280;
}

.why-chat__head .ui-app__dots i {
  background: #d1d5db;
}

.why-chat__body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.why-msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.why-msg--me {
  max-width: 82%;
  margin-left: auto;
  background: #4b5563;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.why-msg--bot {
  background: #f3f4f6;
  color: #4b5563;
  border-bottom-left-radius: 4px;
}

.why-msg--bot p {
  margin: 0;
}

.why-lines {
  display: block;
  margin-top: 8px;
}

.why-lines i {
  display: block;
  width: var(--w);
  height: 6px;
  margin-top: 7px;
  border-radius: 999px;
  background: #d1d5db;
}

.why-msg__cut {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-style: italic;
  color: #b45309;
}

/* Макет Erudia */
.why-app {
  width: min(100%, 560px);
  max-width: none;
}

.why-app__body {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  min-height: 250px;
}

.why-app__toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 12px 10px;
  list-style: none;
  border-right: 1px solid var(--line-soft);
  background: #fafbfc;
}

.why-app__toc li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.why-app__toc li span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.why-app__toc li em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.why-app__toc li.is-on {
  background: linear-gradient(135deg, #3b82f6 0%, var(--blue) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.why-app__toc li.is-on em {
  color: #fff;
}

.why-app__main {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: #fff;
}

.why-app__h {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.why-app__p {
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.why-app__ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid #dbeafe;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
}

.why-app__file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
}

.why-app__file-name {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.why-app__file-btn {
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--blue);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

/* Метки под макетом */
.why-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-flags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #fff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
}

.why-flags li::before {
  content: "✓";
  font-weight: 800;
}

.why-flags--bad li {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.why-flags--bad li::before {
  content: "✕";
}

/* Четыре критерия */
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.why-row {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.why-row h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.why-row p {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  margin: 0;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.45;
}

.why-row p + p {
  border-top: 1px dashed var(--line);
}

.why-row b {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.why-row__chat {
  color: var(--muted);
}

.why-row__chat b {
  color: #9ca3af;
}

.why-row__erudia {
  color: var(--ink);
  font-weight: 600;
}

.why-row__erudia b {
  color: var(--blue);
}

.home-benefits .benefits__facts {
  margin-top: 28px;
}

@media (min-width: 640px) {
  .why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .why__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .why__bar {
    flex-direction: column;
    align-items: stretch;
  }

  .why__switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .why__hint {
    display: none;
  }

  .why__stage {
    height: 470px;
    border-radius: 22px;
  }

  .why__layer {
    padding: 52px 12px 16px;
    gap: 14px;
  }

  .why-app__body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .why-app__toc {
    display: none;
  }

  .why-flags li {
    padding: 5px 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why__opt {
    transition: none !important;
  }
}
