:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #9a9a9a;
  --soft: #6b6b6b;
  --panel: #e6e6e6;
  --panel-2: #f1f1f1;
  --line: #e2e2e2;
  --dark: #0b0b0b;
  --accent: #9cf53c;
  --accent-deep: #3f8f0b;
  --radius-lg: 28px;
  --radius: 20px;
  --gutter: clamp(16px, 3.4vw, 56px);
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ---------- Мелкие элементы ---------- */
.eyebrow {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-deep);
}

.eyebrow--light {
  color: var(--accent);
}

.dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  vertical-align: 0.2em;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

a.tag:hover {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.tag--light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

a.tag--light:hover {
  border-color: #fff;
  background: #fff;
  color: var(--text);
}

/* «Таблетка» со свечением — аналог картинки-пилюли у Kinetic */
.glow-pill {
  /* --mx / --my: блик, который тянется к курсору (см. script.js) */
  --mx: 30%;
  --my: 50%;
  display: inline-block;
  flex: none;
  width: 54px;
  height: 26px;
  border-radius: 999px;
  background:
    radial-gradient(60% 90% at var(--mx) var(--my), rgba(214, 255, 150, 0.95), transparent 60%),
    radial-gradient(90% 120% at calc(var(--mx) + 25%) 60%, var(--accent), transparent 70%),
    linear-gradient(100deg, #050505 10%, #1d3a06 55%, #050505 95%);
  box-shadow:
    0 0 18px rgba(156, 245, 60, 0.45),
    inset 0 0 6px rgba(0, 0, 0, 0.6);
  transition: box-shadow 0.3s;
}

.glow-pill:hover,
.btn:hover .glow-pill {
  box-shadow:
    0 0 32px rgba(156, 245, 60, 0.85),
    0 0 8px rgba(214, 255, 150, 0.6),
    inset 0 0 6px rgba(0, 0, 0, 0.6);
}

.glow-pill--inline {
  width: 1.9em;
  height: 0.9em;
  margin: 0 0.1em;
  /* центр по высоте заглавных: (0.72em cap-height − 0.9em) / 2 */
  vertical-align: -0.09em;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn--dark {
  background: var(--dark);
  color: #fff;
}

.btn--dark:hover {
  background: #2a2a2a;
}

.btn--outline {
  border-color: var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: #fff;
}

.btn--ghost {
  padding: 0 8px;
}

.btn--ghost:hover {
  opacity: 0.6;
}

.btn--pill {
  min-height: 56px;
  padding: 0 26px 0 8px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.btn--pill .glow-pill {
  width: 70px;
  height: 40px;
}

.btn--pill:hover {
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.08),
    0 0 0 4px rgba(156, 245, 60, 0.35);
}

.btn--light {
  color: var(--text);
}

.btn--full {
  width: 100%;
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo__mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d6ff96, var(--accent) 45%, #245a02 100%);
  box-shadow: 0 0 12px rgba(156, 245, 60, 0.6);
}

.nav {
  display: flex;
  gap: 32px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 500;
}

/* Широкий экран: меню строго по центру шапки. Уже 1100px центр не влезает
   между логотипом и кнопками — там меню остаётся в потоке */
@media (min-width: 1101px) {
  .header__inner {
    position: relative;
  }

  .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .header__cta {
    margin-left: auto;
  }
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.2s;
}

.nav a:hover::after {
  opacity: 1;
}

.header__cta {
  min-height: 42px;
  font-size: 14px;
}

/* Переключатель языка RU / EN */
.lang {
  display: flex;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang__btn {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  transition:
    background-color 0.2s,
    color 0.2s;
}

.lang__btn:hover {
  color: var(--text);
}

.lang__btn[aria-pressed="true"] {
  background: var(--dark);
  color: #fff;
  cursor: default;
}

.burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
}

.burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s;
}

.burger span:first-child {
  top: 15px;
}

.burger span:last-child {
  top: 23px;
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 8px;
}

.hero__panel {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  height: clamp(640px, calc(100vh - 100px), 900px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(50% 45% at 50% 55%, #f4f4f4 0%, transparent 70%),
    linear-gradient(180deg, #ececec 0%, #dedede 100%);
}

/* Верх первого экрана: текст слева, кейсы и цифры справа — одна высота */
.hero__top {
  position: absolute;
  top: clamp(28px, 4vw, 56px);
  left: clamp(24px, 3.4vw, 56px);
  right: clamp(24px, 3.4vw, 56px);
  z-index: 4;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 32px;
  pointer-events: none;
}

.hero__top > * {
  pointer-events: auto;
}

.hero__intro {
  max-width: 660px;
}

.hero__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hero__stats {
  display: flex;
  gap: 28px;
  text-align: right;
}

.hero__stats dt {
  font-size: clamp(30px, 2.6vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero__stats dd {
  max-width: 150px;
  margin-top: 8px;
  margin-left: auto;
  font-size: 13px;
  line-height: 1.3;
  color: var(--soft);
}

.hero__meta {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
}

.hero__title {
  font-size: clamp(34px, 3.3vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero__line {
  display: block;
}

.hero__line--muted {
  color: var(--muted);
}

.hero__lead {
  max-width: 400px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero__mascot {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: clamp(280px, 25vw, 450px);
  transform: translateX(-50%);
}

.hero__word {
  position: absolute;
  left: 50%;
  bottom: -0.137em; /* базовая линия на нижнем крае панели */
  z-index: 1;
  font-size: 33cqw;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.09em;
  color: #fff;
  white-space: nowrap;
  transform: translateX(calc(-50% - 0.058em)); /* компенсация боковых полей букв H и C и хвостового letter-spacing */
  pointer-events: none;
  user-select: none;
}

/* Горизонталь L почти упирается в I — разводим эту пару */
.hero__kern {
  margin-right: 0.07em;
}

.hero__card {
  display: flex;
  flex-direction: column;
  width: 240px;
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s;
}

/* Только для мыши: на тач-экране hover съедает первый тап */
@media (hover: hover) {
  .hero__card:hover {
    transform: translateY(-4px);
  }
}

.hero__card-img {
  overflow: hidden;
  border-radius: 14px;
}

.hero__card-img img {
  width: 100%;
  transition: transform 0.4s;
}

/* Только для мыши: на тач-экране hover съедает первый тап */
@media (hover: hover) {
  .hero__card:hover .hero__card-img img {
    transform: scale(1.05);
  }
}

.hero__card-text {
  padding: 12px 8px 4px;
  font-size: 15px;
  font-weight: 500;
}

/* Плавающая капсула соцсетей: закреплена у правого края окна */
.socials {
  position: fixed;
  top: 50%;
  right: clamp(12px, 2vw, 32px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-50%);
}

/* Прячем капсулу за край, пока мышь не подойдёт к ней (только для мыши) */
.socials-hint {
  display: none;
}

@media (pointer: fine) and (min-width: 861px) {
  .socials {
    transform: translate(calc(100% + 40px), -50%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .socials.is-open,
  .socials:focus-within {
    transform: translate(0, -50%);
  }

  .socials-hint {
    position: fixed;
    top: 50%;
    right: 6px;
    z-index: 39;
    display: block;
    width: 5px;
    height: 56px;
    border-radius: 999px;
    background: rgba(11, 11, 11, 0.25);
    transform: translateY(-50%);
    transition: opacity 0.3s;
  }

  .socials-hint.is-hidden {
    opacity: 0;
  }
}

.socials__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text);
  transition:
    background-color 0.2s,
    color 0.2s;
}

.socials__link:hover,
.socials__link:focus-visible {
  background: var(--dark);
  color: #fff;
}

.socials__link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------- Секции ---------- */
.section {
  padding: clamp(32px, 3.5vw, 56px) 0;
}

.section__head {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.h2 {
  max-width: 900px;
  font-size: clamp(32px, 3.6vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--soft);
}

/* ---------- О подходе ---------- */
.about .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about {
  padding-top: clamp(56px, 7vw, 120px);
}

.about__text {
  position: relative;
  max-width: 980px;
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.035em;
  text-align: center;
  /* строки примерно равной длины — без «висящих» слов */
  text-wrap: balance;
}

.star {
  display: inline-block;
  margin-right: 0.3em;
  font-size: 0.8em;
  color: var(--accent-deep);
}

.perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-top: clamp(64px, 8vw, 140px);
}

/* Карточки в стиле брендовой палитры: подпись сверху, маскот снизу */
.perk {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  min-height: 460px;
  padding: 24px 24px 0;
  border-radius: var(--radius);
  background: #d9d9d9;
  transition: transform 0.3s;
}

/* Только для мыши: на тач-экране hover съедает первый тап */
@media (hover: hover) {
  .perk:hover {
    transform: translateY(-6px);
  }
}

.perk .tag {
  align-self: flex-start;
}

.perk .dot {
  background: var(--accent-deep);
  box-shadow: none;
}

.perk__title {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.perk__art {
  flex: 1;
  min-height: 240px;
  margin: 0 -24px;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
}

/* ---------- Что создаю ---------- */
.services {
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s;
}

.service__title {
  font-size: clamp(24px, 2.4vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.service__text {
  font-size: 15px;
  color: var(--soft);
}

.service__meta {
  display: flex;
  gap: 8px;
}

.service__cta {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--panel-2);
  font-size: 20px;
  transition:
    background-color 0.2s,
    color 0.2s,
    transform 0.2s;
}

.service__cta:focus-visible {
  background: var(--dark);
  color: var(--accent);
  transform: rotate(-45deg);
}

/* Только для мыши: на тач-экране hover съедает первый тап */
@media (hover: hover) {
  .service:hover .service__cta {
    background: var(--dark);
    color: var(--accent);
    transform: rotate(-45deg);
  }
}

/* ---------- Этапы ---------- */
.stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 16px;
}

/* Общие строки для всех карточек: номер / заголовок / текст — заголовки и тексты стоят на одной линии */
.stage {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 12px;
  margin-bottom: 16px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: var(--panel-2);
  transition:
    translate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s;
}

/* Свечение, которое следует за курсором (--gx/--gy ставит script.js) */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle at var(--gx, 80%) var(--gy, 15%),
    rgba(156, 245, 60, 0.35),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

/* Полоска прогресса сверху: заполняется, когда карточка появляется */
.stage::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.6, 0, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 0.12s + 0.25s);
}

.stage.is-visible::after {
  transform: scaleX(1);
}

/* Только для мыши: на тач-экране hover съедает первый тап */
@media (hover: hover) {
  .stage:hover {
    translate: 0 -8px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.1);
  }

  .stage:hover::before {
    opacity: 1;
  }
}

/* Появление по очереди — только если JS включил анимацию */
.reveal-on .stage {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    translate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s;
  transition-delay: calc(var(--i, 0) * 0.12s), calc(var(--i, 0) * 0.12s), 0s, 0s;
}

.reveal-on .stage.is-visible {
  opacity: 1;
  transform: none;
}

.stage__num {
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
}

.stage__title {
  align-self: end;
  padding-top: 120px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stage__text {
  font-size: 14px;
  color: var(--soft);
}

.stage--dark {
  background: var(--dark);
  color: #fff;
}

.stage--dark .stage__num,
.stage--dark .stage__text {
  color: #9a9a9a;
}

.stage--glow {
  color: #fff;
  background:
    radial-gradient(80% 50% at var(--gx, 80%) var(--gy, 10%), rgba(156, 245, 60, 0.75), transparent 70%),
    #070707;
}

.stage--dark::before {
  background: radial-gradient(
    circle at var(--gx, 80%) var(--gy, 15%),
    rgba(156, 245, 60, 0.45),
    transparent 55%
  );
}

.stage--glow::before {
  display: none;
}

.stage--glow .stage__num,
.stage--glow .stage__text {
  color: #b5b5b5;
}

/* ---------- Кейсы ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case {
  display: flex;
  flex-direction: column;
  min-height: 580px;
  padding: 28px;
  border-radius: var(--radius-lg);
  color: #fff;
  transition: transform 0.3s;
}

/* Только для мыши: на тач-экране hover съедает первый тап */
@media (hover: hover) {
  .case:hover {
    transform: translateY(-6px);
  }
}

/* Нечётное число кейсов: последний растягиваем на всю ширину, без дыры в сетке */
.case:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.case--dark {
  background:
    radial-gradient(60% 60% at 85% 100%, rgba(156, 245, 60, 0.55), transparent 70%),
    #0b0b0b;
}

.case--glow {
  background:
    radial-gradient(70% 55% at 20% 10%, rgba(156, 245, 60, 0.7), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(63, 143, 11, 0.8), transparent 70%),
    #0b0b0b;
}

/* Стилизованное окно браузера со скриншотом кейса */
.case {
  position: relative;
  overflow: hidden;
}

.case > :not(.case__shot) {
  position: relative;
  z-index: 1;
}

.case__shot {
  --skeleton:
    linear-gradient(#2a2a2a, #2a2a2a) 8% 12% / 30% 6% no-repeat,
    linear-gradient(#1f1f1f, #1f1f1f) 8% 30% / 55% 14% no-repeat,
    linear-gradient(#9cf53c, #9cf53c) 8% 52% / 18% 7% no-repeat,
    linear-gradient(#1c1c1c, #1c1c1c) 70% 30% / 26% 40% no-repeat,
    linear-gradient(#181818, #181818) 8% 88% / 88% 16% no-repeat,
    #111;
  position: absolute;
  top: 84px;
  right: 28px;
  display: block;
  width: 48%;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 92%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #1d1d1d;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(-5deg);
  transform-origin: 50% 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tag--site {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text);
}

a.tag--site:hover {
  border-color: #fff;
  background: #fff;
  color: var(--text);
}

/* Вся карточка — ссылка на сайт: подложка ссылки из заголовка растянута на карточку */
.case {
  cursor: pointer;
}

.case .case__title {
  position: static;
}

.case__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.case__link:focus-visible {
  outline: none;
}

.case:has(.case__link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.case .case__links,
.case .case__bottom {
  z-index: 2;
  pointer-events: none; /* клик по пустому месту уходит на подложку карточки */
}

.case__links a,
.case__bottom a {
  pointer-events: auto;
}

.case__bar {
  display: flex;
  gap: 5px;
  padding: 10px 12px;
  background: #1d1d1d;
}

.case__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a3a3a;
}

.case__screen {
  display: block;
  aspect-ratio: 16 / 10;
  margin: 0 10px 10px;
  border-radius: 6px;
  filter: grayscale(1) contrast(1.05) brightness(0.72);
  transition: filter 0.5s;
}

/* Зелёный отлив поверх ч/б скриншота */
.case__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(156, 245, 60, 0.28), transparent 55%);
  mix-blend-mode: color;
  pointer-events: none;
  transition: opacity 0.5s;
}

/* Только для мыши: на тач-экране hover съедает первый тап */
@media (hover: hover) {
  .case:hover .case__shot {
    transform: rotate(0deg) translateY(-6px);
  }

  .case:hover .case__screen {
    filter: none;
  }

  .case:hover .case__shot::after {
    opacity: 0;
  }
}

.case__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case__title {
  margin-top: auto;
  max-width: 560px;
  font-size: clamp(26px, 2.4vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.case__result {
  margin-top: 14px;
  color: #b5b5b5;
}

.case__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  color: #b5b5b5;
}

.case__arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 20px;
  transition:
    background-color 0.2s,
    transform 0.2s;
}

.case__arrow:hover {
  background: var(--accent);
  transform: rotate(-45deg);
}

/* ---------- CTA ---------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(56px, 7vw, 110px) 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(45% 60% at 50% 110%, rgba(156, 245, 60, 0.7), transparent 70%),
    #0b0b0b;
}

.cta__title {
  max-width: 860px;
  font-size: clamp(32px, 3.8vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.cta__text {
  max-width: 520px;
  margin: 20px 0 32px;
  color: #b5b5b5;
}

/* ---------- Контакты и бриф ---------- */
.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contacts__card {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.contacts__card--gray {
  position: relative;
  overflow: hidden;
  border-color: transparent;
  background: var(--panel-2);
}

.contacts__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: auto;
}

.contacts__list dt {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--soft);
}

.contacts__list dd {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(26px, 2.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.contacts__list dd .tag {
  font-size: 15px;
  padding: 10px 18px;
  letter-spacing: 0;
}

.contacts__list dd > a:not(.tag):hover {
  opacity: 0.6;
}

/* Стопка листов брифа: покачивается, галочки ставятся по очереди, на hover — веер */
.contacts__card--gray {
  position: relative;
  overflow: hidden;
}

.brief__docs {
  position: absolute;
  top: clamp(28px, 3vw, 44px);
  right: clamp(32px, 5vw, 72px);
  width: 150px;
  height: 180px;
  animation: docs-float 6s ease-in-out infinite;
  pointer-events: none;
}

.doc {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.doc--back {
  background: #e4e4e4;
  transform: rotate(-8deg) translate(-10px, 6px);
}

.doc--mid {
  background: #ececec;
  transform: rotate(-3deg) translate(-4px, 3px);
}

.doc--front {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px;
  transform: rotate(3deg);
}

.contacts__card--gray:hover .doc--back {
  transform: rotate(-16deg) translate(-44px, 10px);
}

.contacts__card--gray:hover .doc--mid {
  transform: rotate(-7deg) translate(-20px, 4px);
}

.contacts__card--gray:hover .doc--front {
  transform: rotate(6deg) translate(12px, -6px);
}

.doc__title {
  width: 60%;
  height: 10px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: var(--dark);
}

.doc__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc__box {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid #c4c4c4;
  border-radius: 4px;
  animation: doc-check 6s ease-in-out infinite;
}

.doc__box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 0;
  width: 4px;
  height: 8px;
  border: solid var(--dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  animation: doc-tick 6s ease-in-out infinite;
}

.doc__row:nth-child(3) .doc__box,
.doc__row:nth-child(3) .doc__box::after {
  animation-delay: 0.6s;
}

.doc__row:nth-child(4) .doc__box,
.doc__row:nth-child(4) .doc__box::after {
  animation-delay: 1.2s;
}

.doc__row:nth-child(5) .doc__box,
.doc__row:nth-child(5) .doc__box::after {
  animation-delay: 1.8s;
}

.doc__line {
  height: 6px;
  border-radius: 3px;
  background: #e2e2e2;
}

@keyframes docs-float {
  50% {
    translate: 0 -8px;
  }
}

/* Галочка: появляется, держится, гаснет к концу цикла */
@keyframes doc-check {
  0%, 10% {
    border-color: #c4c4c4;
    background: transparent;
  }
  18%, 80% {
    border-color: var(--accent);
    background: var(--accent);
  }
  92%, 100% {
    border-color: #c4c4c4;
    background: transparent;
  }
}

@keyframes doc-tick {
  0%, 12% {
    transform: rotate(45deg) scale(0);
  }
  20%, 80% {
    transform: rotate(45deg) scale(1);
  }
  92%, 100% {
    transform: rotate(45deg) scale(0);
  }
}

.brief__text {
  position: relative;
  max-width: min(560px, calc(100% - 250px));
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brief__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 40px;
}

/* ---------- Футер ---------- */
.footer {
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--soft);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__brand .logo {
  color: var(--text);
}

.footer__docs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer__docs a,
.footer__link {
  transition: color 0.2s;
}

.footer__link {
  padding: 0;
  font-size: inherit;
  color: inherit;
}

.footer__link:hover,
.footer__docs a:hover,
.footer__docs a[aria-current="page"] {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .footer__docs {
    align-items: flex-start;
  }
}

/* ---------- Баннер cookie ---------- */
.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: calc(100% - 32px);
  max-width: 420px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  color: var(--soft);
  animation: fade 0.3s ease;
}

.cookie[hidden] {
  display: none;
}

.cookie a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie__actions {
  display: flex;
  gap: 8px;
}

.cookie__actions .btn {
  flex: 1;
}

/* ---------- Юридические страницы ---------- */
.legal {
  padding: 48px 0 64px;
}

.legal__inner {
  max-width: 820px;
}

.legal__back {
  margin-left: auto;
}

.legal__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.legal__date {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.legal p,
.legal__list {
  margin-top: 12px;
  color: var(--soft);
}

.legal__list {
  padding-left: 20px;
  list-style: disc;
}

.legal__list li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal mark {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--accent);
  color: var(--text);
}

.legal__table {
  margin-top: 16px;
  overflow-x: auto;
}

.legal table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal th,
.legal td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--panel-2);
  font-weight: 500;
}

/* ---------- Модалка ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fade 0.2s ease;
}

.modal[hidden] {
  display: none;
}

.modal__box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 36px 32px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--panel-2);
  font-size: 24px;
  line-height: 1;
}

.modal__close:hover {
  background: var(--dark);
  color: #fff;
}

.modal__title {
  padding-right: 44px;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.modal__text {
  margin-top: 12px;
  color: var(--soft);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
}

.field input {
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
  font: inherit;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.field input:focus {
  border-color: var(--text);
  background: #fff;
}

.field input.is-invalid {
  border-color: #d33;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--soft);
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--dark);
}

.consent a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent.is-invalid {
  color: #d33;
}

.consent.is-invalid input {
  outline: 2px solid #d33;
  outline-offset: 1px;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.form__status {
  min-height: 1.4em;
  font-size: 14px;
}

.form__status.is-error {
  color: #d33;
}

.form__status.is-ok {
  color: var(--accent-deep);
}

.form__note {
  font-size: 13px;
  color: var(--muted);
}

/* Уведомление о Privacy Policy вместо галочек на английской версии */
.form__legal {
  font-size: 13px;
  color: var(--soft);
}

.form__legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Блоки для другого языка скрыты, даже если у класса свой display */
[data-lang-only][hidden] {
  display: none !important;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
  .stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .service__text {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 640px;
    margin-top: -16px;
  }
}

@media (max-width: 1024px) {
  .hero__side {
    display: none;
  }

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

  .perk {
    min-height: 420px;
  }

  .cases,
  .contacts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header__inner {
    min-height: 68px;
    justify-content: space-between;
  }

  .header__cta {
    display: none;
  }

  .lang {
    margin-left: auto;
  }

  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--panel-2);
  }

  .nav a::after {
    display: none;
  }

  html {
    scroll-padding-top: 68px;
  }

  .hero__panel {
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: var(--radius);
  }

  .hero__top {
    position: static;
    display: block;
  }

  .hero__intro {
    padding: 28px 20px 0;
  }

  .hero__title {
    font-size: clamp(28px, 7.8vw, 40px);
    text-wrap: balance;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__mascot {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(340px, 76%);
    margin: 16px auto 0;
    transform: none;
  }

  .contacts__card .eyebrow {
    margin-bottom: 0;
  }


  /* Капсула соцсетей перекрывает контент на телефоне — контакты есть внизу */
  .socials,
  .socials-hint {
    display: none;
  }

  .perks {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .perk {
    min-height: 340px;
  }

  .perk__art {
    min-height: 200px;
  }

  .service {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 16px;
    padding: 22px 0;
  }

  .service__text {
    grid-row: auto;
    margin-top: 0;
    font-size: 14px;
  }

  .service__meta {
    grid-column: 1;
  }

  .service__cta {
    grid-column: 2;
    grid-row: 1;
    width: 44px;
    height: 44px;
  }

  .stages {
    grid-template-columns: 1fr;
  }

  .stage {
    margin-bottom: 10px;
  }

  .stage__title {
    padding-top: 8px;
  }

  .case__shot {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin: 20px 0 8px;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* На телефоне мелкие ссылки не нужны: вся карточка ведёт на сайт */
  .case__links,
  .case__arrow {
    display: none;
  }

  .case__shot {
    margin-top: 0;
  }

  .case__bottom {
    margin-top: 20px;
    padding-top: 16px;
  }

  .case {
    min-height: 380px;
    padding: 20px;
    border-radius: var(--radius);
  }

  .cta {
    border-radius: var(--radius);
  }

  .contacts__card {
    min-height: 0;
    gap: 32px;
    border-radius: var(--radius);
  }

  .brief__docs {
    display: none;
  }

  .brief__text {
    max-width: none;
  }

  .brief__actions {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0;
  }

  .modal__box {
    padding: 28px 20px 20px;
    border-radius: var(--radius);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Блог ---------- */
.blog-nav {
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
}

.blog-nav a:hover {
  color: var(--accent-deep);
}

.blog-nav + .legal__back {
  margin-left: 0;
}

.post__back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none !important;
}

.post__back:hover {
  color: var(--text);
}

.post__body {
  margin-top: 32px;
  font-size: 17px;
  line-height: 1.65;
}

.post__body p,
.post__body ul,
.post__body ol {
  margin-top: 16px;
  color: #333;
}

.post__body ul,
.post__body ol {
  padding-left: 22px;
}

.post__body ul {
  list-style: disc;
}

.post__body ol {
  list-style: decimal;
}

.post__body li + li {
  margin-top: 8px;
}

.post__body h2 {
  margin-top: 48px;
  font-size: clamp(22px, 2.6vw, 28px);
}

.post__body h3 {
  margin: 32px 0 8px;
  font-size: 19px;
  font-weight: 500;
}

.post__body strong {
  font-weight: 600;
  color: var(--text);
}

.post__body blockquote {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  background: var(--panel-2);
  border-radius: 0 12px 12px 0;
}

.post__body blockquote p {
  margin: 0;
}

.post__body hr {
  margin: 40px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.post__body code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--panel-2);
  font-size: 0.9em;
}

.post__table {
  margin-top: 20px;
  overflow-x: auto;
}

.post__table table {
  font-size: 15px;
}

.post-cta {
  margin-top: 56px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 120% at 105% 115%, rgba(106, 171, 36, 0.9) 0%, rgba(80, 150, 20, 0.45) 30%, rgba(11, 11, 11, 0) 70%),
    var(--dark);
  color: #fff;
}

.post-cta .eyebrow {
  margin-bottom: 12px;
}

.post-cta__title {
  max-width: 560px;
  margin: 0 !important;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.post-cta__text {
  max-width: 520px;
  color: #bdbdbd !important;
}

.post-cta__btn {
  margin-top: 24px;
  background: var(--accent);
  color: var(--text) !important;
  text-decoration: none !important;
}

.post-cta__btn:hover {
  background: #b6ff6a;
}

.post-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.post-card a {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: border-color 0.2s, background 0.2s;
}

.post-card a:hover {
  border-color: var(--text);
  background: var(--panel-2);
}

.post-card time {
  font-size: 13px;
  color: var(--muted);
}

.post-card h2 {
  margin: 8px 0 0 !important;
  font-size: 22px;
}

.post-card p {
  margin-top: 8px !important;
}

@media (max-width: 600px) {
  .blog-nav + .legal__back {
    display: none;
  }

  .post__body {
    font-size: 16px;
  }
}

.post-cta .eyebrow {
  color: var(--accent) !important;
}

/* ---------- Картинки в статьях и предложениях ---------- */
.post__body figure,
.prop__proto {
  margin: 24px 0 0;
}

.post__body figure img,
.prop__proto img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.post__body figcaption,
.prop__proto figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Персональные предложения (/p/…) ---------- */
.prop__block {
  margin-top: 40px;
}

.prop__block .eyebrow {
  margin-bottom: 12px;
}

.prop__video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--dark);
}

.prop__video iframe,
.prop__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pkgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.pkg {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pkg:last-child {
  border-color: var(--text);
}

.post__body .pkg h3 {
  margin: 0;
  font-size: 18px;
}

.post__body .pkg__price {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.post__body .pkg__term {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

.post__body .pkg ul {
  margin-top: 16px;
  font-size: 15px;
}

.prop-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.prop-case {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: border-color 0.2s;
}

.prop-case:hover {
  border-color: var(--text);
}

.prop-case__img {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--panel-2) top center / cover no-repeat;
}

.prop-case__title {
  font-weight: 500;
  line-height: 1.3;
}

.prop-case__result {
  font-size: 14px;
  color: var(--accent-deep);
}

.prop-case__open {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.prop-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.prop-cta__actions .post-cta__btn {
  margin-top: 0;
}

.prop-cta__alt {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
  text-decoration: none !important;
}

.prop-cta__alt:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
