/* ============ Zippy landing — hero (desktop) ============ */

:root {
  --ink: #0b0b0f;
  --paper: #ffffff;
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

/* Blueprint grid (assets/hero_section/hero_background.svg renders blank —
   recreated in CSS: 81px cells, light teal lines, fading towards edges) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(64, 201, 186, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(64, 201, 186, 0.4) 1px, transparent 1px);
  background-size: 81px 81px;
  background-position: 57px 0;
  -webkit-mask-image: linear-gradient(65deg, transparent 42%, #000 50%);
  mask-image: linear-gradient(65deg, transparent 42%, #000 50%);
  pointer-events: none;
}

/* ---------- Header / logo ---------- */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 50px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-block;
  line-height: 0;
}

.logo img {
  display: block;
  width: 134px;
  height: auto;
}

/* ---------- Языковой переключатель ---------- */

.lang {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lang__link {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.lang__link:hover,
.lang__link:focus-visible {
  opacity: 0.8;
}

.lang__link.is-active {
  opacity: 1;
  pointer-events: none;
}

.lang__sep {
  opacity: 0.25;
  font-weight: 500;
}

/* ---------- Left content ---------- */

.hero__content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  max-width: 780px;
  padding-left: clamp(64px, 14.4vw, 220px);
  padding-right: 24px;
}

.hero__title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: #1c1c22;
}

/* ---------- CTA ---------- */

.hero__cta {
  margin-top: 40px;
}

/* капсула + стрелка — один интерактивный элемент */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.cta__label,
.cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Onest", "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cta__label {
  padding: 10px 16px;
  border-radius: 999px;
}

.cta__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.cta:hover .cta__label,
.cta:hover .cta__icon {
  background: var(--ink);
  color: var(--paper);
}

.cta:focus-visible .cta__label,
.cta:focus-visible .cta__icon {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Onest", "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn--label {
  padding: 10px 16px;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Right illustration ---------- */

.hero__art {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  width: min(46vw, 800px);
  height: auto;
  aspect-ratio: 800 / 832;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero__art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__art img {
  display: block;
  width: 100%;
  height: 100%;
}

/* широкие экраны: hero крупнее и собран ближе к центру,
   чтобы текст и иллюстрация не жались к краям */
@media (min-width: 1600px) {
  .hero__content {
    max-width: none;
    padding-left: 18vw;
    padding-right: 32px;
  }

  .hero__title {
    font-size: clamp(44px, 2.5vw, 52px);
  }

  .hero__subtitle {
    margin-top: 18px;
    font-size: clamp(19px, 1.1vw, 22px);
  }

  .hero__art {
    width: min(48vw, 1000px);
    right: 2.5vw;
  }
}

/* ---------- Section 2: Видео ---------- */

.video-section {
  padding: 90px 0 100px;
  /* плашка: мягкое зелёно-синее свечение по углам */
  background:
    radial-gradient(55% 90% at 12% 0%, rgba(157, 240, 79, 0.4) 0%, rgba(157, 240, 79, 0) 62%),
    radial-gradient(55% 90% at 88% 100%, rgba(126, 156, 245, 0.38) 0%, rgba(126, 156, 245, 0) 62%),
    linear-gradient(180deg, #fbfdf8 0%, #f2f6ea 52%, #eef1f9 100%);
}

.video-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 146px;
}

.video-section__title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
}

.video-section__card {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin-top: 34px;
  padding: 10px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(28, 28, 34, 0.14);
}

.video-section__player {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.video-section__sound {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(28, 28, 34, 0.18);
  border-radius: 999px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease;
}

.video-section__sound:hover {
  background: #ffffff;
}

.video-section__sound:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.video-section__sound svg {
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-section__sound .video-section__sound-off {
  opacity: 1;
}

.video-section__sound.is-on .video-section__sound-off {
  opacity: 0;
}

.video-section__sound.is-on .video-section__sound-on {
  opacity: 1;
}

.video-section__cta {
  margin-top: 30px;
}

@media (max-width: 767px) {
  .video-section {
    padding: 56px 0 64px;
  }

  .video-section__inner {
    padding: 0 20px;
  }

  .video-section__title {
    font-size: 28px;
  }

  .video-section__card {
    margin-top: 22px;
    padding: 6px;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(28, 28, 34, 0.12);
  }

  .video-section__player {
    border-radius: 11px;
  }

  .video-section__sound {
    top: 13px;
    right: 13px;
  }

  .video-section__cta {
    margin-top: 24px;
  }
}

/* ---------- Section 3: Массовый найм в цифрах ---------- */

.numbers__inner {
  padding: 40px 188px 38px 146px;
}

.numbers__title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.numbers__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 62px;
  padding-left: 58px;
}

.numbers__value {
  font-size: 100px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.numbers__caption {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #1c1c22;
}

.numbers__graph {
  display: block;
  flex: 1 1 auto;
  width: 497px;
  max-width: 850px;
  height: auto;
  aspect-ratio: 497 / 130;
}

.numbers__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 14px;
  padding-left: 58px;
}

.numbers__list {
  display: flex;
  list-style: none;
}

.numbers__item {
  padding: 4px 22px;
  border-left: 1px solid #111;
}

.numbers__item:first-child {
  padding-left: 0;
  border-left: 0;
}

.numbers__stat {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.numbers__label {
  max-width: 190px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: #1c1c22;
}

.numbers__cta {
  flex-shrink: 0;
}

/* ---------- Section 3.5: Кейс из блога ---------- */

.blog {
  padding: 90px 0 100px;
  background: #fcfcfc;
}

.blog__inner {
  padding: 0 146px;
}

.blog__card {
  display: flex;
  gap: 48px;
  padding: 38px 40px 40px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 15, 20, 0.05);
}

.blog__body {
  flex: 1;
  min-width: 0;
}

.blog__tag {
  display: inline-block;
  padding: 3px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  background: #a5f35c;
  border-radius: 999px;
  color: var(--ink);
}

.blog__title {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.blog__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: #1c1c22;
}

.blog__more {
  margin-top: 22px;
}

.blog__aside {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 26px;
  background: #f7fbef;
  border-radius: 12px;
}

.blog__aside-label {
  font-size: 13px;
  line-height: 1.35;
  color: #1c1c22;
}

.blog__metric {
  margin-top: 10px;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.blog__metric-mark {
  display: inline-block;
  padding: 2px 10px 5px;
  background: #a5f35c;
  color: var(--ink);
}

.blog__aside-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(28, 28, 34, 0.7);
}

@media (max-width: 1199px) {
  .blog__inner {
    padding: 0 40px;
  }
}

@media (max-width: 767px) {
  .blog {
    padding: 56px 0 64px;
  }

  .blog__inner {
    padding: 0 20px;
  }

  .blog__card {
    flex-direction: column;
    gap: 24px;
    padding: 22px 20px 24px;
    border-radius: 14px;
  }

  .blog__title {
    font-size: 21px;
  }

  .blog__text {
    font-size: 14px;
  }

  .blog__aside {
    flex: none;
    padding: 20px;
  }

  .blog__metric {
    font-size: 36px;
  }
}

/* ---------- Section 4: Поиск узких компетенций ---------- */

.narrow__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 72px 157px 80px 146px;
}

/* мобильные иллюстрации и переключатель карточек — только на ≤767px */
.narrow__img-mobile,
.narrow__left .card-switcher {
  display: none;
}

/* переключатель карточек кандидатов */
.card-switcher {
  display: grid;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.card-switcher__img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card-switcher__img.is-active {
  opacity: 1;
}

.narrow__left {
  flex: 1;
  min-width: 0;
}

.narrow__title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.narrow__lead {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.narrow__text {
  max-width: 395px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #1c1c22;
}

.narrow__diagram {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
  aspect-ratio: 428 / 167;
  margin-top: 24px;
}

.narrow__left .narrow__text + .narrow__text,
.narrow__diagram + .narrow__text {
  margin-top: 26px;
}

.narrow__right {
  flex-shrink: 0;
  width: 525px;
  margin-top: 58px;
}

.narrow__card {
  display: block;
  width: 525px;
  height: 506px;
}

/* ---------- Section 5: Что внутри Zippy ---------- */

.inside {
  min-height: 100vh;
  background: #fcfcfc;
}

.inside__inner {
  padding: 84px 125px 140px 146px;
}

.inside__title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.inside__subtitle {
  max-width: 340px;
  margin-top: 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: #1c1c22;
}

.inside__grid {
  display: flex;
  align-items: flex-start;
  gap: 33px;
  margin-top: 39px;
}

.inside__list {
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 391px;
  flex-shrink: 0;
}

.inside__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 15px 24px 18px;
  font-family: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.inside__item:hover {
  background: #ffffff;
}

.inside__item--1 { --accent: #9df04f; }
.inside__item--2 { --accent: #6fe9c3; }
.inside__item--3 { --accent: #55c8f3; }
.inside__item--4 { --accent: #7e9cf5; }
.inside__item--5 { --accent: #b48ef7; }

.inside__item.is-active {
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 15, 20, 0.07);
}

.inside__item.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: var(--accent);
  border-radius: 0 0 12px 12px;
  transform-origin: left center;
  animation: inside-bar-in 0.35s cubic-bezier(0.65, 0, 0.35, 1) both;
}

@keyframes inside-bar-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.inside__num {
  flex-shrink: 0;
  width: 42px;
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.inside__item-body {
  padding-top: 3px;
}

.inside__item-title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.inside__item-text {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: #45454a;
}

.inside__panel {
  --accent: #9df04f; /* цвет цифры активного тайла по умолчанию */
  position: relative;
  flex: 1;
}

.inside__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(9px, 9px);
  background: var(--accent);
  border-radius: 14px;
  transition: background-color 0.3s ease;
}

.inside__panel-body {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 15, 20, 0.05);
}

.inside__panel-label {
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
}

.inside__panel-label.is-switching {
  animation: inside-label-in 0.45s ease both;
}

@keyframes inside-label-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .inside__item.is-active::after,
  .inside__panel-label.is-switching {
    animation: none;
  }
}

.plan__value.is-switching {
  display: inline-block;
  animation: pricing-price-in 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes pricing-price-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .pricing__period::after,
  .plan__value.is-switching {
    transition: none;
    animation: none;
  }
}

/* ---------- Section 6: Наши клиенты ---------- */
/* Лента кейсов движется горизонтально от вертикального скролла:
   высоту секции задаёт JS, внутренний блок прилипает к экрану */

.clients {
  background-color: #fcfcfc;
  background-image: url("assets/bg_1.svg?v=2");
  background-position: right top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.clients__sticky {
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
  background-color: #fcfcfc;
  background-image: url("assets/bg_1.svg?v=2");
  background-position: right top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.clients.is-pinned .clients__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.clients__head {
  padding: 48px 146px 0;
}

.clients__title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.clients__viewport {
  flex: 1;
  display: flex;
  align-items: center;
  margin-top: 38px;
  padding-bottom: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: clamp(40px, 3vw, 124px);
  scrollbar-width: none;
}

.clients__viewport::-webkit-scrollbar {
  display: none;
}

.clients.is-pinned .clients__viewport {
  overflow: hidden;
}

/* правый отступ в конце ленты */
.clients__track::after {
  content: "";
  flex: 0 0 clamp(40px, 3vw, 124px);
}

.clients__track {
  display: flex;
  gap: 70px;
  width: 100%;
  padding-left: clamp(40px, 3vw, 124px);
}

.clients.is-pinned .clients__track {
  will-change: transform;
}

.clients__card {
  display: flex;
  flex-direction: column;
  flex: 0 0 446px;
  min-height: 545px;
  padding: 22px 21px 52px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 15, 20, 0.05);
  scroll-snap-align: start;
}

.clients__logo {
  align-self: flex-start;
  width: 132px;
  height: 50px;
  object-fit: contain;
}

/* белый png-логотип: монохромная тёмная версия для белой карточки */
.clients__logo--ink {
  filter: brightness(0);
}

.clients__tag {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.35;
  color: #1c1c22;
}

.clients__metric {
  margin-top: 4px;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.clients__metric-mark {
  display: inline-block;
  padding: 2px 10px 5px;
  background: #a5f35c;
  color: var(--ink);
}

/* уменьшенная метрика в карточке клиента (текстовое значение, напр. «14 дней») */
.clients__metric--sm {
  font-size: 28px;
}

/* карточка OpenRate: контент заполняет карточку, поэтому кнопке «Читать»
нужен гарантированный зазор от статистики (крючок — уменьшенная метрика) */
.clients__metric--sm ~ .clients__stats {
  margin-bottom: 34px;
}

/* кейс-карточка: небольшой заголовок и текст с зелёными метками */
.clients__case-title {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.clients__case-text {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #1c1c22;
}

.clients__mark {
  padding: 0 3px 1px;
  background: #a5f35c;
  color: var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* текст кейса после крупной метки — больше воздуха */
.clients__metric + .clients__case-text {
  margin-top: 22px;
}

.clients__quote {
  margin: 26px 0 0;
  padding-left: 19px;
  border-left: 4px solid #d8d8d5;
  font-size: 14px;
  line-height: 1.5;
  color: #1c1c22;
}

.clients__author {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}

.clients__author-role {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(28, 28, 34, 0.6);
}

.clients__stats {
  display: flex;
  margin: 34px 0 0;
  list-style: none;
}

.clients__stat {
  padding: 0 14px;
  border-left: 1px solid #d9d9d6;
}

.clients__stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.clients__stat-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.clients__stat-label {
  max-width: 112px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #1c1c22;
}

.clients__result {
  margin: 34px 0 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: #1c1c22;
}

.clients__result-strong {
  font-weight: 800;
}

.clients__more {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Section 7: Тарифы ---------- */

.pricing {
  padding: 42px 146px 110px;
  background-color: #fcfcfc;
  background-image: url("assets/bg_1.svg?v=2");
  background-position: right top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.pricing__title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pricing__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 15px;
}

.pricing__period {
  position: relative;
  padding: 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}

.pricing__period.is-active {
  font-weight: 700;
}

.pricing__period::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.pricing__period.is-active::after {
  transform: scaleX(1);
}

.pricing__sep {
  color: var(--ink);
}

.pricing__discount {
  margin-left: 14px;
  padding: 2px 7px 3px;
  font-size: 12px;
  font-weight: 800;
  background: #a5f35c;
  color: var(--ink);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.plan {
  display: flex;
  flex-direction: column;
  min-height: 347px;
  padding: 15px 12px 0;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 15, 20, 0.05);
}

.plan__name {
  padding: 0 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-height: 46px;
  margin-top: 6px;
  padding: 0 4px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan__price--custom {
  align-items: flex-start;
  padding-top: 11px;
  font-size: 25px;
}

.plan__per {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.plan__desc {
  min-height: 38px;
  margin-top: 8px;
  padding: 0 4px;
  font-size: 13px;
  line-height: 1.35;
  color: #1c1c22;
}

.plan__start {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.plan__features {
  flex: 1;
  margin: 14px -12px 0;
  padding: 10px 10px 10px 12px;
  border-radius: 12px 12px 0 0;
  /* v1: зелёный классический, синее свечение снизу-слева */
  background:
    radial-gradient(95% 130% at 0% 100%, rgba(96, 128, 255, 0.68) 0%, rgba(96, 128, 255, 0) 62%),
    radial-gradient(85% 75% at 0% 0%, rgba(96, 128, 255, 0.42) 0%, rgba(96, 128, 255, 0) 58%),
    linear-gradient(180deg, #9df04f 0%, #bdfb6f 48%, #cdf98a 100%);
}

/* v2: синий (ирисовый) с зелёным свечением снизу-справа */
.pricing__grid .plan:nth-child(2) .plan__features {
  background:
    radial-gradient(95% 130% at 100% 100%, rgba(157, 240, 79, 0.75) 0%, rgba(157, 240, 79, 0) 60%),
    radial-gradient(85% 75% at 100% 0%, rgba(157, 240, 79, 0.45) 0%, rgba(157, 240, 79, 0) 55%),
    linear-gradient(180deg, #8fa9ff 0%, #bccbff 48%, #d3ddff 100%);
}

/* v3: мятный с голубым и зелёным свечениями */
.pricing__grid .plan:nth-child(3) .plan__features {
  background:
    radial-gradient(95% 130% at 0% 100%, rgba(85, 200, 243, 0.62) 0%, rgba(85, 200, 243, 0) 62%),
    radial-gradient(85% 75% at 100% 100%, rgba(157, 240, 79, 0.5) 0%, rgba(157, 240, 79, 0) 58%),
    linear-gradient(180deg, #6fe9c3 0%, #a9f2dd 48%, #c5f7e8 100%);
}

/* v4: дуотон — зелёный сверху-справа, ирисовый снизу-слева */
.pricing__grid .plan:nth-child(4) .plan__features {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(157, 240, 79, 0.9) 0%, rgba(157, 240, 79, 0) 70%),
    radial-gradient(120% 120% at 0% 100%, rgba(126, 156, 245, 0.9) 0%, rgba(126, 156, 245, 0) 70%),
    linear-gradient(135deg, #d3f6a3 0%, #eef6d5 55%, #e3e8fc 100%);
}

.plan__list {
  margin: 0;
  padding: 12px 12px 14px 24px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: #1c1c22;
  list-style: disc outside;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.plan__list li {
  margin-top: 3px;
}

.plan__list li:first-child {
  margin-top: 0;
}

/* фича с описанием: название + расшифровка под ним */
.plan__feat-name {
  display: block;
  font-weight: 800;
}

.plan__feat-text {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  color: rgba(28, 28, 34, 0.75);
}

/* ---------- Section 8: FAQ ---------- */

.faq {
  padding: 90px 0 140px;
  background: var(--paper);
}

.faq__title {
  padding: 0 146px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.faq__subtitle {
  margin-top: 14px;
  padding: 0 146px;
  font-size: 15px;
  font-weight: 400;
  color: #1c1c22;
}

.faq__list {
  margin: 48px 146px 0;
  list-style: none;
}

.faq__item {
  border-bottom: 1px solid var(--ink);
}

.faq__question {
  display: block;
  width: 100%;
  padding: 17px 20px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}

.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer-inner {
  overflow: hidden;
}

.faq__bar {
  height: 4px;
  background: #a5f35c;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

.faq__item.is-open .faq__bar {
  transform: scaleX(1);
}

.faq__answer-body {
  padding: 24px 24px 30px 38px;
  background: #f7f7f5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq__item.is-open .faq__answer-body {
  opacity: 1;
}

.faq__answer-body p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  color: #1c1c22;
}

@media (prefers-reduced-motion: reduce) {
  .faq__answer,
  .faq__bar,
  .faq__answer-body {
    transition: none;
  }
}

/* ---------- Section 9: Финальный CTA ---------- */

.banner {
  min-height: 492px;
  padding: 75px 146px 114px;
  color: #ffffff;
  background:
    radial-gradient(75% 110% at 0% 0%, #4cd7ce 0%, rgba(76, 215, 206, 0) 60%),
    radial-gradient(90% 120% at 8% 100%, #5a7cf5 0%, rgba(90, 124, 245, 0) 65%),
    radial-gradient(110% 140% at 85% 60%, #3fe12b 0%, rgba(63, 225, 43, 0) 72%),
    radial-gradient(70% 90% at 100% 0%, #2fc99b 0%, rgba(47, 201, 155, 0) 55%),
    linear-gradient(100deg, #4a6ef5 0%, #4a6ef5 40%, #3fe12b 100%);
}

.banner__inner {
  max-width: 490px;
  margin-left: auto;
}

.banner__title {
  font-size: 31px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.banner__text {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
}

.banner__offer {
  margin-top: 24px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.banner__days {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 4px solid #a5f35c;
}

.banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 27px;
  padding: 10px 28px;
  font-family: "Onest", "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #ffffff;
  background: transparent;
  border: 1px solid #ffffff;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.banner__btn:hover {
  background: #ffffff;
  color: #2a3b8f;
}

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

.footer {
  background: var(--ink);
  color: #ffffff;
}

.footer__inner {
  padding: 64px 146px 32px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer__logo {
  display: inline-block;
  line-height: 0;
}

.footer__logo img {
  display: block;
  width: 118px;
  height: auto;
  filter: invert(1);
}

.footer__tagline {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: #a7a7ad;
}

.footer__heading {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  color: #8a8a90;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-top: 10px;
}

.footer__links li:first-child {
  margin-top: 0;
}

.footer__links a {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: #a5f35c;
}

.footer__btn {
  padding: 10px 18px;
  background: #a5f35c;
  border-color: #a5f35c;
  color: var(--ink);
}

.footer__btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--ink);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__copy {
  font-size: 13px;
  color: #8a8a90;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  font-size: 13px;
  color: #8a8a90;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__legal a:hover {
  color: #ffffff;
}

/* ---------- Reveal-анимации на скролл ---------- */

.reveal {
  opacity: 0;
}

.reveal.reveal-in {
  animation: reveal-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0s);
}

.reveal--right.reveal-in {
  animation-name: reveal-right;
}

.reveal--zoom.reveal-in {
  animation-name: reveal-zoom;
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-right {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-zoom {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
  }

  .reveal.reveal-in {
    animation: none;
  }
}

.reveal--fade.reveal-in {
  animation-name: reveal-fade;
}

@keyframes reveal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* ---------- Мобильная версия ---------- */

@media (max-width: 767px) {
  .header {
    padding: 20px 20px 0;
  }

  .lang {
    font-size: 14px;
    gap: 8px;
  }

  .logo img {
    width: 104px;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  /* сетка: мягкое растворение книзу */
  .hero::before {
    background-position: 12px 0;
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }

  .hero__content {
    min-height: 0;
    justify-content: flex-start;
    max-width: none;
    padding: 24px 20px 40px;
  }

  .hero__title {
    font-size: 30px;
    line-height: 1.2;
  }

  .hero__title br {
    display: none;
  }

  .hero__subtitle {
    max-width: 320px;
    margin-top: 12px;
    font-size: 15px;
  }

  .hero__cta {
    margin-top: 28px;
  }

  .hero__art {
    position: static;
    order: -1;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    transform: none;
    padding-top: 84px;
  }

  .hero__art picture,
  .hero__art img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 767px) {
  /* ---------- Section 3: Массовый найм в цифрах ---------- */

  .numbers__inner {
    padding: 56px 20px;
  }

  .numbers__title {
    font-size: 28px;
  }

  .numbers__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 32px;
    padding-left: 0;
  }

  .numbers__value {
    font-size: 64px;
  }

  .numbers__caption {
    font-size: 15px;
  }

  .numbers__graph {
    width: 100%;
    max-width: 100%;
  }

  .numbers__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-top: 32px;
    padding-left: 0;
  }

  .numbers__list {
    flex-direction: column;
    gap: 14px;
  }

  .numbers__item {
    padding: 0;
    border-left: 0;
  }

  .numbers__stat {
    font-size: 24px;
  }

  .numbers__stat-label {
    max-width: none;
    margin-top: 4px;
    font-size: 13px;
  }
}


@media (max-width: 767px) {
  /* ---------- Section 4: Поиск узких компетенций ---------- */

  .narrow__inner {
    flex-direction: column;
    gap: 0;
    padding: 56px 20px 64px;
  }

  .narrow__title {
    font-size: 28px;
    white-space: normal;
  }

  .narrow__lead {
    margin-top: 20px;
    font-size: 18px;
  }

  .narrow__text {
    max-width: none;
    font-size: 15px;
  }

  .narrow__diagram,
  .narrow__right {
    display: none;
  }

  .narrow__img-mobile,
  .narrow__card-mobile {
    display: block;
    width: 100%;
    height: auto;
  }

  .narrow__img-mobile {
    margin-top: 32px;
  }

  .narrow__left .card-switcher {
    display: grid;
    width: 90%;
    margin: 24px auto 0;
  }
}
/* тела аккордеона существуют только на мобильном (инжектируются JS) */
.inside__acc {
  display: none;
}

@media (max-width: 1199px) {
  /* ---------- Section 5: Что внутри Zippy (аккордеон) ---------- */

  .inside__inner {
    padding: 56px 40px 64px;
  }

  .inside__title {
    font-size: 28px;
  }

  .inside__subtitle {
    margin-top: 12px;
    font-size: 15px;
  }

  .inside__grid {
    flex-direction: column;
    gap: 0;
    margin-top: 36px;
  }

  .inside__list {
    width: 100%;
    gap: 0;
  }

  .inside__item {
    width: 100%;
    gap: 16px;
    padding: 14px 0 18px;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid var(--ink);
  }

  .inside__item:hover {
    background: transparent;
  }

  .inside__item.is-active {
    background: transparent;
    box-shadow: none;
  }

  .inside__item.is-active::after {
    display: none;
  }

  .inside__num {
    width: 34px;
    font-size: 40px;
  }

  .inside__item-title {
    font-size: 16px;
  }

  .inside__item-text {
    font-size: 13px;
  }

  .inside__panel {
    display: none;
  }

  .inside__acc {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .inside__acc.is-open {
    grid-template-rows: 1fr;
  }

  .inside__acc-inner {
    overflow: hidden;
  }

  .inside__acc-panel {
    position: relative;
    margin: 2px 0 20px;
  }

  .inside__acc-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(8px, 8px);
    background: var(--accent, #a5f35c);
    border-radius: 14px;
  }

  .inside__acc-body {
    position: relative;
    z-index: 1;
    border-radius: 14px;
    overflow: hidden;
  }

  .inside__acc-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
  }
}

@media (max-width: 767px) {
  .inside__inner {
    padding: 56px 20px 64px;
  }
}

@media (max-width: 767px) {
  /* ---------- Section 6: Наши клиенты (свайп-карусель) ---------- */

  .clients__sticky {
    padding-bottom: 48px;
  }

  .clients__head {
    padding: 56px 20px 0;
  }

  .clients__title {
    font-size: 28px;
  }

  .clients__viewport {
    margin-top: 24px;
    padding-bottom: 12px;
    align-items: flex-start;
    scroll-padding-left: 20px;
  }

  .clients__track {
    gap: 20px;
    padding-left: 20px;
  }

  .clients__track::after {
    flex: 0 0 20px;
  }

  .clients__card {
    flex: 0 0 300px;
    min-height: 0;
    padding: 18px 16px 28px;
  }

  .clients__metric {
    font-size: 36px;
  }


  .clients__stats {
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
  }

  .clients__stat {
    padding: 0;
    border-left: 0;
  }

  .clients__stat-label {
    max-width: none;
  }
}


@media (max-width: 767px) {
  /* правки: рамка панели в аккордеоне не должна обрезаться,
     отступ над кнопкой «Читать» в карточках кейсов */
  .inside__acc-panel {
    margin: 2px 8px 8px 0;
  }

  .clients__more {
    margin-top: 24px;
  }
}
/* капсула «рекомендуем» в тарифе */
.plan__badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  padding: 2px 7px 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  background: #a5f35c;
  border-radius: 999px;
  color: var(--ink);
}

@media (max-width: 767px) {
  /* ---------- Section 7: Тарифы (карусель) ---------- */

  .pricing {
    padding: 56px 0 72px;
  }

  .pricing__title {
    padding: 0 20px;
    font-size: 28px;
  }

  .pricing__toggle {
    margin: 12px 20px 0;
  }

  .pricing__grid {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding: 4px 20px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    scrollbar-width: none;
  }

  .pricing__grid::-webkit-scrollbar {
    display: none;
  }

  .plan {
    flex: 0 0 280px;
    min-height: 0;
  }

  .plan__price--custom {
    font-size: 30px;
    padding-top: 8px;
  }
}

@media (max-width: 767px) {
  /* ---------- Section 8: FAQ ---------- */

  .faq {
    padding: 56px 0 72px;
  }

  .faq__title {
    padding: 0 20px;
    font-size: 28px;
  }

  .faq__subtitle {
    margin-top: 12px;
    padding: 0 20px;
    font-size: 15px;
  }

  .faq__list {
    margin: 32px 20px 0;
  }

  .faq__question {
    padding: 14px 16px;
    font-size: 16px;
  }

  .faq__answer-body {
    padding: 18px 16px 24px 20px;
  }

  .faq__answer-body p {
    font-size: 15px;
  }

  /* ---------- Section 9: Финальный CTA ---------- */

  .banner {
    min-height: 0;
    padding: 56px 20px 72px;
  }

  .banner__inner {
    max-width: none;
  }

  .banner__title {
    font-size: 28px;
    line-height: 1.3;
  }

  .banner__title br,
  .banner__text br,
  .banner__offer br {
    display: none;
  }

  .banner__text {
    margin-top: 14px;
    font-size: 17px;
  }

  .banner__offer {
    margin-top: 22px;
    font-size: 26px;
  }

  .banner__btn {
    margin-top: 24px;
    padding: 12px 32px;
  }

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

  .footer__inner {
    padding: 48px 20px 24px;
  }

  .footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
  }

  .footer__legal {
    flex-direction: column;
    gap: 8px;
  }
}


@media (max-width: 1199px) and (min-width: 768px) {
  /* ---------- Hero: компактный десктоп ---------- */

  /* иллюстрация остаётся сверху справа, но не шире 56vw —
     текст при уменьшении ширины просто уменьшается */
  .hero__art {
    width: min(56vw, 96.15vh);
    height: 100%;
    top: 0;
    transform: none;
  }

  .hero__art picture,
  .hero__art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right top;
  }

  .hero__content {
    max-width: 480px;
    padding-left: clamp(48px, 10vw, 160px);
  }

  .hero__title {
    font-size: clamp(24px, 2.4vw, 30px);
  }
}
@media (max-width: 1199px) and (min-width: 768px) {
  /* ---------- Section 3: Массовый найм в цифрах ---------- */

  .numbers__inner {
    padding: 48px 40px 56px;
  }

  .numbers__top {
    flex-wrap: wrap;
    gap: 28px;
    padding-left: 0;
  }

  .numbers__value {
    font-size: 80px;
  }

  .numbers__graph {
    flex: 1 1 420px;
    min-width: 0;
  }

  .numbers__bottom {
    flex-wrap: wrap;
    gap: 24px;
    padding-left: 0;
  }

  /* ---------- Section 7: Тарифы (2 колонки) ---------- */

  .pricing {
    padding: 48px 40px 72px;
  }

  .pricing__title {
    padding: 0;
    font-size: 28px;
  }

  .pricing__toggle {
    margin: 12px 0 0;
  }

  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  /* ---------- Section 4: Поиск узких компетенций (планшет) ---------- */

  .narrow__inner {
    flex-direction: column;
    gap: 0;
    padding: 56px 40px 64px;
  }

  .narrow__title {
    font-size: 28px;
    white-space: normal;
  }

  .narrow__text {
    max-width: none;
    font-size: 15px;
  }

  .narrow__diagram,
  .narrow__right {
    display: none;
  }

  .narrow__img-mobile {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 32px;
  }

  .narrow__left .card-switcher {
    display: grid;
    width: min(525px, 80%);
    margin: 24px auto 0;
  }
}


/* скриншоты в панели: стопка с кроссфейдом */
.inside__panel-stack {
  display: block;
  width: 100%;
}


.inside__panel-img {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.inside__panel-img.is-active {
  display: block;
}

.inside__acc-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
/* когда все карточки влезают — центрируем ленту.
   только десктоп: на мобильном центрирование переполняет флекс в обе стороны,
   и левая часть (первая карточка) становится недостижимой для свайпа */
@media (min-width: 768px) {
  .clients.is-fits .clients__track {
    justify-content: center;
    padding-left: 0;
  }

  .clients.is-fits .clients__track::after {
    display: none;
  }
}

/* ---------- Страница кейса (case-operators.html) ---------- */

/* шапка не абсолютная, а в потоке страницы */
.page-case .header {
  position: static;
}

.case {
  padding: 26px 0 100px;
  background: #fcfcfc;
}

.case__inner {
  padding: 0 146px;
}

.case__back {
  gap: 8px;
}

.case__card {
  display: flex;
  gap: 48px;
  margin-top: 18px;
  padding: 48px 56px 56px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 15, 20, 0.05);
}

.case__body {
  flex: 1;
  min-width: 0;
}

.case__title {
  max-width: 640px;
  margin-top: 14px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.case__heading {
  margin-top: 34px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.case__text {
  max-width: 640px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: #1c1c22;
}

.case__text strong {
  font-weight: 700;
}

.case__mark {
  padding: 0 3px 1px;
  background: #a5f35c;
  color: var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* метрика «2 дня» держится при прокрутке статьи */
.case__aside {
  align-self: flex-start;
  position: sticky;
  top: 32px;
}

.case__cta {
  margin-top: 36px;
}

/* мета кейса: клиент, сфера, срок, формат */
.case__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px;
  max-width: 640px;
  margin-top: 22px;
}

.case__meta-row {
  padding-top: 10px;
  border-top: 1px solid #e3e3e0;
}

.case__meta-term {
  font-size: 12px;
  font-weight: 500;
  color: #8a8a90;
}

.case__meta-desc {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

/* список «кандидаты уже понимают» */
.case__list {
  max-width: 640px;
  margin-top: 12px;
  list-style: none;
}

.case__list li {
  position: relative;
  margin-top: 8px;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.6;
  color: #1c1c22;
}

.case__list li::before {
  content: "—";
  position: absolute;
  left: 0;
}

/* плитки результатов */
.case__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 640px;
  margin-top: 14px;
  list-style: none;
}

.case__stat {
  padding: 18px 20px;
  background: #f7fbef;
  border-radius: 12px;
}

.case__stat-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.case__stat-label {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(28, 28, 34, 0.75);
}

/* блок «Главное» */
.case__summary {
  max-width: 640px;
  margin-top: 12px;
  padding: 16px 20px;
  background: #f7fbef;
  border-left: 4px solid #a5f35c;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}

/* широкая строка мета на всю сетку (длинное значение, напр. «Вакансии») */
.case__meta-row--wide {
  grid-column: 1 / -1;
}

/* уменьшенная метрика в карточке справа (текстовое значение) */
.blog__metric--sm {
  font-size: 28px;
}

/* нейтральная плашка-заметка (напр. про пилотный период) */
.case__note {
  max-width: 640px;
  margin-top: 14px;
  padding: 14px 18px;
  background: #f2f2f0;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(28, 28, 34, 0.7);
}

/* отзыв клиента в кейсе */
.case__quote {
  max-width: 640px;
  margin-top: 14px;
  padding: 2px 0 2px 19px;
  border-left: 4px solid #a5f35c;
}

.case__quote p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(28, 28, 34, 0.85);
}

.case__quote p:last-of-type {
  margin-bottom: 0;
}

.case__quote-footer {
  display: block;
  margin-top: 16px;
}

.case__quote-author {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.case__quote-role {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: rgba(28, 28, 34, 0.6);
}

@media (max-width: 1199px) {
  .case__inner {
    padding: 0 40px;
  }
}

@media (max-width: 767px) {
  .page-case .header {
    padding: 20px 20px 0;
  }

  .case {
    padding: 16px 0 64px;
  }

  .case__inner {
    padding: 0 20px;
  }

  .case__card {
    flex-direction: column;
    gap: 24px;
    margin-top: 14px;
    padding: 22px 20px 24px;
    border-radius: 14px;
  }

  .case__title {
    font-size: 22px;
  }

  .case__heading {
    margin-top: 26px;
    font-size: 17px;
  }

  .case__text {
    font-size: 14px;
  }

  .case__meta {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .case__list li {
    font-size: 14px;
  }

  .case__stats {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
  }

  .case__stat {
    padding: 14px 16px;
  }

  .case__stat-value {
    font-size: 22px;
  }

  .case__summary {
    padding: 14px 16px;
    font-size: 14px;
  }

  .case__aside {
    position: static;
    flex: none;
    padding: 20px;
  }

  .case__cta {
    margin-top: 28px;
  }
}

/* фон bg_1 на телефонах: iOS игнорирует background-attachment: fixed,
   и cover растягивает картинку по высоте секции — ячейки сетки гигантские.
   Привязываем пропорцию к ширине экрана: картинка во всю ширину,
   свечения в правом верхнем углу секции, ячейки ~5.4% ширины (как на десктопе) */
@media (max-width: 767px) {
  .clients,
  .clients__sticky,
  .pricing {
    background-attachment: scroll;
    background-size: 100% auto;
  }
}

/* Скрытый текст для скринридеров и поисковиков (не влияет на вёрстку) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   LEAD MODAL — попап «Оставьте заявку» (разметку создаёт lead-modal.js)
   ========================================================================== */

body.lead-modal-open {
  overflow: hidden;
}

.lead-modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 11, 15, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lead-modal__overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lead-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 20px;
  transform: translateY(14px);
  transition: transform 0.2s ease;
}

.lead-modal__overlay.is-open .lead-modal {
  transform: translateY(0);
}

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(11, 11, 15, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lead-modal__close:hover {
  background: var(--ink);
  color: var(--paper);
}

.lead-modal__close:focus-visible,
.lead-modal__submit:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.lead-modal__title {
  padding-right: 32px; /* место под крестик */
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.lead-modal__subtitle {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #1c1c22;
}

.lead-modal__form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.lead-modal__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
}

.lead-modal__input {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(11, 11, 15, 0.25);
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.lead-modal__input::placeholder {
  color: rgba(11, 11, 15, 0.35);
}

.lead-modal__input:focus {
  outline: none;
  border-color: var(--ink);
}

.lead-modal__field--error .lead-modal__input {
  border-color: #d92d20;
}

.lead-modal__field-error {
  margin-top: 6px;
  font-size: 12px;
  color: #d92d20;
}

.lead-modal__submit {
  margin-top: 4px;
  width: 100%;
  padding: 13px 16px;
  font-family: "Onest", "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lead-modal__submit:hover {
  opacity: 0.85;
}

.lead-modal__submit[disabled] {
  opacity: 0.45;
  cursor: default;
}

.lead-modal__form-error {
  font-size: 12px;
  line-height: 1.5;
  color: #d92d20;
}

.lead-modal__privacy {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(11, 11, 15, 0.55);
}

.lead-modal__success {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 6px 0 2px;
}

/* display: grid выше перебивает скрытие атрибутом hidden */
.lead-modal__success[hidden] {
  display: none;
}

.lead-modal__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
}

.lead-modal__success-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead-modal__success-text {
  font-size: 14px;
  line-height: 1.5;
  color: #1c1c22;
}

@media (max-width: 480px) {
  .lead-modal {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .lead-modal__title {
    font-size: 20px;
  }
}
