:root {
  --bg: #0d0d0d;
  --green: #005818;
  --green-stroke: #448b3b;
  --chip-stroke: #20421c;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.75);
  --text-muted: #999999;
  --frame-mobile: 360px;
  --frame-desktop: 1440px;
  --frame-desktop-max: 1920px;
}

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Geologica, Inter, "Segoe UI", Arial, sans-serif;
}

img,
video {
  display: block;
  max-width: 100%;
}

img[src$=".svg"] {
  object-fit: contain;
}

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

button {
  font: inherit;
}

.site-shell {
  position: relative;
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 768px);
  height: 104px;
  padding: 24px 16px 32px;
  border-radius: 32px;
  transform: translateX(-50%) translateY(0);
  transition: transform 320ms ease;
  will-change: transform;
}

.site-header.is-header-hidden {
  transform: translateX(-50%) translateY(calc(-100% - 16px));
}

.header-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  object-fit: cover;
  pointer-events: none;
}

.header-bg--desktop,
.contact-nav {
  display: none;
}

.copy-tooltip {
  position: fixed;
  z-index: 999;
  padding: 6px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: #0d0d0d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 0);
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, 8px);
}

/* ---- Прогрессивный блюр фона хедера ----
   Несколько слоёв backdrop-filter с экспоненциально растущим радиусом
   (0.5 → 16px), «сшитых» масками-градиентами: плавный переход от чёткого
   контента снизу к максимально размытому фону сверху. */
.header-blur {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.header-blur > span {
  position: absolute;
  inset: 0;
  display: block;
}

.header-blur > span:nth-child(1) {
  -webkit-backdrop-filter: blur(0.5px);
  backdrop-filter: blur(0.5px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 12.5%, rgba(0, 0, 0, 0) 25%);
  mask-image: linear-gradient(to top, #000 0%, #000 12.5%, rgba(0, 0, 0, 0) 25%);
}

.header-blur > span:nth-child(2) {
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #000 12.5%, #000 25%, rgba(0, 0, 0, 0) 37.5%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #000 12.5%, #000 25%, rgba(0, 0, 0, 0) 37.5%);
}

.header-blur > span:nth-child(3) {
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 12.5%, #000 25%, #000 37.5%, rgba(0, 0, 0, 0) 50%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 12.5%, #000 25%, #000 37.5%, rgba(0, 0, 0, 0) 50%);
}

.header-blur > span:nth-child(4) {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 25%, #000 37.5%, #000 50%, rgba(0, 0, 0, 0) 62.5%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 25%, #000 37.5%, #000 50%, rgba(0, 0, 0, 0) 62.5%);
}

.header-blur > span:nth-child(5) {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 37.5%, #000 50%, #000 62.5%, rgba(0, 0, 0, 0) 75%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 37.5%, #000 50%, #000 62.5%, rgba(0, 0, 0, 0) 75%);
}

.header-blur > span:nth-child(6) {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 50%, #000 62.5%, #000 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 50%, #000 62.5%, #000 100%);
}

/* Градиентная заливка хедера (фрейм 676:1742): тёмный вертикальный градиент
   поверх размытого фона — плотный у верхнего края за контентом (читаемость),
   плавно угасающий к прозрачному низу, где просвечивает размытый контент. */
.header-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(13, 13, 13) 0%,
    rgb(13, 13, 13) 50%,
    rgba(13, 13, 13, 0) 100%
  );
}

/* контент хедера — над слоями блюра и градиентом */
.site-header > :not(.header-blur):not(.header-gradient):not(.header-bg) {
  position: relative;
  z-index: 1;
}

.brand {
  display: block;
  width: 160px;
  height: 48px;
  opacity: 0.95;
}

.brand__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.case-burger,
.case-menu {
  display: none;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  /* svh (а не dvh) намеренно: dvh «дышит» вместе со скроллом при сворачивании
     адресной строки мобильного браузера, из-за чего все абсолютно
     спозиционированные элементы внутри (портрет, текст, декор) визуально
     ездили. svh фиксирован на высоте при развёрнутой адресной строке. */
  height: 100svh;
  overflow: hidden;
}

.hero__bg,
.hero__bottom,
.hero__edge {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.hero__bg {
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: lighten;
  overflow: hidden;
  background: #0d0d0d;
}

.hero__terminal canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__edge {
  top: 0;
  width: 53px;
  height: 100%;
  object-fit: cover;
}

.hero__edge--left {
  left: 0;
}

.hero__edge--right {
  right: 0;
  transform: rotate(180deg);
}

.hero__bottom {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 217px;
  object-fit: cover;
}

.hero__bottom--desktop {
  display: none;
}

.hero__content {
  position: absolute;
  /* На невысоких мобильных вьюпортах чистое центрирование по 50% высоты
     утаскивает карточку с фото под фикс-хедер (header z-index:20 перекрывает
     скруглённый верх карточки). Нижняя граница clamp'а — минимальный отступ,
     при котором верх portrait-card всегда остаётся под шапкой. */
  top: max(calc(50% - 97.75px), 350px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 360px;
  padding-top: 100px;
  gap: 20px;
  transform: translate(-50%, -50%);
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0) 68%);
}

.portrait-card {
  position: relative;
  width: 175px;
  height: 257.5px;
  overflow: hidden;
  border: 1px solid var(--green-stroke);
  border-radius: 32px;
}

.portrait-card__blur,
.portrait-card__image {
  position: absolute;
  left: -5.8333px;
  top: 1.6801px;
  width: 185.8333px;
  height: 278.6398px;
  max-width: none;
  object-fit: cover;
}

.portrait-card__blur {
  filter: blur(5px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 360px;
  padding: 12px 0;
  text-align: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.hero h1,
.final-cta h2 {
  margin: 0;
  color: transparent;
  font-weight: 400;
  letter-spacing: 0;
  background-clip: text;
  -webkit-background-clip: text;
}

.hero h1 {
  min-width: 100%;
  font-size: 36px;
  /* line-height:1 был у'же реального bounding box шрифта (ascent+descent
     ~45px при размере 36px) — из-за background-clip:text нижний край букв
     с выносными элементами (g, у, р…) обрезался, т.к. градиент-заливка не
     доходила до низа глифа. */
  line-height: 48px;
  background-image: linear-gradient(180deg, #ffffff 0%, #749a74 100%);
}

.hero p {
  width: 338px;
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 20px 12px 24px;
  border: 1px solid transparent;
  border-radius: 24px;
  color: #eeeeee;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  cursor: pointer;
  background:
    linear-gradient(#0d0d0d, #0d0d0d) padding-box,
    linear-gradient(135deg, #185b1b 0%, #8dae8e 50%, #84a886 100%) border-box;
  box-shadow: 0 0 0 0 rgba(141, 174, 142, 0);
  transition:
    transform 180ms ease,
    box-shadow 220ms ease,
    background 320ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), 0 0 16px rgba(141, 174, 142, 0.35);
}

.button:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32), 0 0 8px rgba(141, 174, 142, 0.25);
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(141, 174, 142, 0.45), 0 6px 18px rgba(0, 0, 0, 0.28);
}

.button img {
  display: block;
  flex-shrink: 0;
  box-sizing: content-box;
  object-fit: contain;
}

.button img[src$="arrow-right.svg"] {
  width: 15px;
  height: 13px;
  padding: 5.5px 4.5px;
}

.button img[src$="arrow-down.svg"] {
  width: 13px;
  height: 15px;
  padding: 4.5px 5.5px;
}

.button img[src$="icon-telegram.svg"] {
  width: 19px;
  height: 16px;
  padding: 4px 2.5px;
}

.button .button__icon--hero-desktop {
  display: none;
}

.button--small {
  margin-top: 16px;
}

.glass-cta {
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-bg-strong: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.28);
  --text-color: #ffffff;
  --glow-color: rgba(120, 170, 255, 0.25);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  color: var(--text-color);
  font: 600 16px/1.1 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.2px;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.03);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
  animation: glassPulse 5.8s ease-in-out infinite;
}

.glass-cta__text,
.glass-cta > img {
  position: relative;
  z-index: 2;
}

.glass-cta__text {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.glass-cta::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.02) 42%,
    rgba(255, 255, 255, 0.22) 49%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.22) 51%,
    rgba(255, 255, 255, 0.02) 58%,
    transparent 65%
  );
  transform: translateX(-160%) rotate(8deg);
  animation: sheenSweep 6.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0;
}

.glass-cta::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 160px;
  height: 160px;
  top: -90px;
  left: -30px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 28%,
    transparent 65%
  );
  filter: blur(8px);
  opacity: 0.45;
  animation: floatGlow 7s ease-in-out infinite;
}

.glass-cta:hover {
  transform: translateY(-1px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    var(--glass-bg-strong);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 0 24px var(--glow-color);
}

.glass-cta:active {
  transform: translateY(0) scale(0.985);
}

.glass-cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.14),
    0 12px 30px rgba(0, 0, 0, 0.22),
    0 0 24px var(--glow-color);
}

@keyframes sheenSweep {
  0%,
  72%,
  100% {
    transform: translateX(-160%) rotate(8deg);
    opacity: 0;
  }

  8% {
    opacity: 0.55;
  }

  18% {
    transform: translateX(160%) rotate(8deg);
    opacity: 0.18;
  }

  22% {
    opacity: 0;
  }
}

@keyframes glassPulse {
  0%,
  100% {
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      inset 0 -1px 0 rgba(255, 255, 255, 0.04),
      0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  50% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.26),
      inset 0 -1px 0 rgba(255, 255, 255, 0.05),
      0 0 22px rgba(120, 170, 255, 0.16);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.42;
  }

  50% {
    transform: translate(12px, 10px) scale(1.05);
    opacity: 0.55;
  }
}

.cases {
  position: relative;
}

.cases::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
}

.case {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 40px 16px 0;
}

.case--kassir,
.case--vanta,
.case--intermark {
  height: auto;
}

.case__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: center;
}

/* Frame 2136142753 — группа «заголовок кейса + описание» */
.case__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

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

.chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 12px;
  border: 1px solid var(--chip-stroke);
  border-radius: 20px;
  color: #bcbcbc;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.case-logo {
  position: relative;
  display: block;
  flex: 0 0 auto;
}

.case-logo--kassir {
  width: 319px;
  height: 64px;
}

.case-logo--kassir .case-logo__text {
  position: absolute;
  top: 9px;
  left: 20px;
  width: 277px;
  height: auto;
  aspect-ratio: 277.002 / 45.5566;
  object-fit: contain;
}

.case-logo--kassir .case-logo__smile {
  position: absolute;
  top: -1px;
  left: 181px;
  width: 57px;
  height: auto;
  aspect-ratio: 57.1974 / 66.4947;
  object-fit: contain;
}

.case-logo--vanta {
  width: 285px;
  height: auto;
  margin: 14px 0;
  aspect-ratio: 284.852 / 35.7191;
  object-fit: contain;
}

.case-logo--intermark {
  width: 301px;
  height: auto;
  margin: 7px 0;
  aspect-ratio: 301 / 50;
  object-fit: contain;
}

.case h2 {
  width: 100%;
  margin: 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0;
}

.case p {
  width: 100%;
  margin: 0;
  color: #bcbcbc;
  font-size: 20px;
  font-weight: 300;
  line-height: 26px;
  letter-spacing: 0;
}

.case--kassir p {
  color: #bcbcbc;
}

/* Обводка кнопки «Подробнее» при наведении привязана к цвету кейса, на
   который она ведёт — тот же градиент, что у кнопки «Написать в Telegram»
   внутри самого кейса (kassir/vanta-case.css, .case-final .final-cta__button). */
.case--kassir .button--small:hover {
  background:
    linear-gradient(#0d0d0d, #0d0d0d) padding-box,
    linear-gradient(135deg, #fbecb7 0%, #fbe598 50%, #fcde7a 100%) border-box;
}

.case--vanta .button--small:hover {
  background:
    linear-gradient(#0d0d0d, #0d0d0d) padding-box,
    linear-gradient(135deg, #ceeaff 0%, #79c7fe 50%, #25a4fe 100%) border-box;
}

.case--intermark .button--small:hover {
  background:
    linear-gradient(#0d0d0d, #0d0d0d) padding-box,
    linear-gradient(135deg, #f5d3d1 0%, #e58885 50%, #d63e3a 100%) border-box;
}

/* Кнопка «Перейти к кейсам» (герой) и «Написать в Telegram» (финальный
   блок) не привязаны к конкретному кейсу — на наведении всегда белые,
   как и одноимённая кнопка внутри самих кейс-страниц. */
.hero .button:hover,
.final-cta__button:hover {
  background:
    linear-gradient(#0d0d0d, #0d0d0d) padding-box,
    linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #ffffff 100%) border-box;
}

.case-media {
  position: relative;
  flex: 0 0 auto;
}

.case-media--phones {
  width: 738px;
  height: 484px;
  overflow: hidden;
}

.case-media--has-video {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.case-media__video {
  position: absolute;
  inset: 0;
  top: -5px;
  bottom: auto;
  width: 100%;
  height: calc(100% + 5px);
  display: block;
  object-fit: cover;
}

.case-media--has-video > .connection-line,
.case-media--has-video > .phone {
  display: none;
}

.case-media--image {
  width: 100%;
  aspect-ratio: 1408 / 924.2256;
}

.case-media--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.connection-line {
  position: absolute;
  left: 50%;
  z-index: 0;
  width: 490px;
  height: 1px;
  background: linear-gradient(90deg, rgba(88, 88, 88, 0), rgba(128, 128, 128, 0.5), rgba(88, 88, 88, 0));
  transform: translateX(-50%) rotate(-6deg);
  opacity: 0.7;
}

.connection-line--top {
  top: 186px;
}

.connection-line--bottom {
  top: 293px;
  transform: translateX(-50%) rotate(6deg);
}

.phone {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.phone--left,
.phone--right {
  display: none;
}

.phone--center {
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
}

.phone--dark {
  width: 138px;
  height: 296px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #11141b;
  color: #f7f7f7;
}

.phone--yellow {
  width: 154px;
  height: 320px;
  background: #ffc400;
  color: #111111;
}

.phone--light {
  width: 138px;
  height: 296px;
  background: #f9f9f8;
  color: #151515;
}

.phone--blue {
  width: 154px;
  height: 320px;
  background: linear-gradient(160deg, #f4fbff 0%, #d8f1ff 100%);
  color: #111111;
}

.phone__status {
  display: flex;
  justify-content: space-between;
  padding: 10px 13px 7px;
  font-size: 7px;
  font-weight: 700;
}

.phone__status span {
  padding: 1px 6px;
  border-radius: 8px;
  background: #ffc400;
  color: #0e0e0e;
}

.phone__search {
  margin: 0 9px;
  padding: 5px 7px;
  border-radius: 8px;
  background: #1e222b;
  color: #9ca2aa;
  font-size: 6px;
}

.phone__cards,
.phone__poster-grid,
.phone__date-grid,
.phone__pills,
.phone__tabs {
  display: flex;
  gap: 5px;
}

.phone__cards {
  margin: 9px;
}

.phone__cards span {
  width: 36px;
  height: 42px;
  padding-top: 24px;
  border: 1px solid #6e651e;
  border-radius: 7px;
  background: linear-gradient(#23262d, #101218);
  color: #d6d6d6;
  font-size: 5px;
  text-align: center;
}

.phone__modal {
  width: 96px;
  margin: 32px auto 0;
  padding: 12px 10px 9px;
  border-radius: 9px;
  background: #303640;
  text-align: center;
}

.phone__modal strong,
.phone__modal small,
.phone__modal em {
  display: block;
  font-style: normal;
}

.phone__modal strong {
  font-size: 6px;
}

.phone__modal small {
  margin-top: 4px;
  color: #bfc4c9;
  font-size: 5px;
}

.phone__modal em {
  margin-top: 10px;
  color: #ffffff;
  font-size: 6px;
}

.phone__cta {
  position: absolute;
  left: 23px;
  right: 23px;
  bottom: 46px;
  padding: 7px 0;
  border-radius: 12px;
  background: #ffc400;
  color: #1a1a1a;
  font-size: 6px;
  font-weight: 700;
  text-align: center;
}

.phone__tabs {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  justify-content: space-between;
}

.phone__tabs span {
  width: 13px;
  height: 10px;
  border-radius: 3px;
  background: #626976;
}

.phone--yellow .phone__status,
.phone--blue .phone__status {
  padding: 12px 14px;
  font-size: 8px;
}

.phone__brand {
  position: absolute;
  top: 113px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 17px;
  font-weight: 900;
}

.phone__brand span {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #111111;
  border-radius: 50%;
}

.phone__home-indicator {
  position: absolute;
  left: 50%;
  bottom: 11px;
  width: 42px;
  height: 3px;
  border-radius: 4px;
  background: #111111;
  transform: translateX(-50%);
}

.phone__poster-grid {
  margin: 9px;
}

.phone__poster-grid span {
  width: 36px;
  height: 48px;
  border-radius: 5px;
  background: linear-gradient(135deg, #d04438, #20242d 60%);
}

.phone--right strong {
  display: block;
  margin: 12px 13px;
  font-size: 9px;
  line-height: 1.05;
}

.phone__pills,
.phone__date-grid {
  margin: 0 10px 9px;
  flex-wrap: wrap;
}

.phone__pills span {
  padding: 5px 8px;
  border-radius: 10px;
  background: #20242c;
  color: #d9d9d9;
  font-size: 5px;
}

.phone__date-grid span {
  width: 24px;
  height: 26px;
  border-radius: 5px;
  background: #252a33;
}

.phone__title {
  padding: 2px 16px 10px;
  font-size: 7px;
  text-align: center;
}

.qr-card {
  width: 108px;
  margin: 16px auto 0;
  padding: 13px 9px 9px;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.qr-card strong {
  display: block;
  font-size: 8px;
  line-height: 1.08;
}

.qr-grid {
  width: 76px;
  height: 76px;
  margin: 11px auto;
  background:
    linear-gradient(90deg, #111 50%, transparent 0) 0 0 / 12px 12px,
    linear-gradient(#111 50%, transparent 0) 0 0 / 12px 12px,
    #ffffff;
  image-rendering: pixelated;
}

.qr-card span {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 10px;
  background: #11863a;
  color: #ffffff;
  font-size: 6px;
}

.phone__copy-link {
  width: 108px;
  margin: 11px auto;
  padding: 8px 0;
  border-radius: 6px;
  background: #eeeeee;
  color: #333333;
  font-size: 6px;
  text-align: center;
}

.phone--blue img {
  position: absolute;
  top: 132px;
  left: 50%;
  width: 90px;
  height: auto;
  aspect-ratio: 284.852 / 35.7191;
  object-fit: contain;
  transform: translateX(-50%);
}

.phone--blue small {
  position: absolute;
  top: 164px;
  left: 0;
  right: 0;
  font-size: 5px;
  font-weight: 700;
  text-align: center;
}

.credit-card {
  width: 110px;
  margin: 22px auto;
  padding: 13px;
  border-radius: 12px;
  background: #fff1fb;
}

.credit-card strong,
.credit-card small {
  display: block;
}

.credit-card strong {
  font-size: 9px;
}

.credit-card small {
  margin-top: 3px;
  color: #777777;
  font-size: 5px;
}

.credit-card__art {
  width: 72px;
  height: 72px;
  margin: 9px auto;
  border-radius: 28px;
  background:
    radial-gradient(circle at 65% 45%, #ffffff 0 12px, transparent 13px),
    linear-gradient(135deg, #f69ae7, #dcefff 62%, #ffffff);
  transform: rotate(-12deg);
}

.credit-card button {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-radius: 6px;
  background: #13a9f4;
  color: #ffffff;
  font-size: 6px;
}

.phone__tabs--light span {
  background: #d5d5d5;
}

.section-divider {
  display: flex;
  align-items: center;
  width: 100%;
  height: 97px;
  padding: 48px 16px;
}

.section-divider::before {
  content: "";
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(17, 63, 19, 0) 0%, #185b1b 17%, #8dae8e 34%, #ffffff 50.481%, #84a886 67%, #185b1b 84%, rgba(17, 63, 19, 0) 100%);
}

.final-cta {
  position: relative;
  height: 800px;
  overflow: hidden;
}

.final-cta__bg,
.final-cta__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.final-cta__bg {
  object-fit: cover;
}

.final-cta__glitch {
  overflow: hidden;
  background: #000000;
}

.final-cta__glitch canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.final-cta__overlay {
  background: linear-gradient(180deg, var(--bg) 35.096%, rgba(13, 13, 13, 0.35) 100%);
}

.final-cta__edge {
  position: absolute;
  top: 79px;
  width: 100px;
  height: 721px;
  pointer-events: none;
}

.final-cta__edge--left {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(13, 13, 13, 0) 100%);
}

.final-cta__edge--right {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(13, 13, 13, 0) 100%);
}

.final-cta__bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 87px;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0) 0%, var(--bg) 100%);
  pointer-events: none;
}

.final-cta__content {
  position: absolute;
  top: calc(50% - 0.5px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 360px;
  transform: translate(-50%, -50%);
}

.video-card {
  position: relative;
  width: 210px;
  height: 309px;
  overflow: hidden;
  border: 1px solid var(--green-stroke);
  border-radius: 32px;
  background: transparent;
}

.video-card__photo {
  position: absolute;
  top: 10.31px;
  left: -19.96px;
  width: 248.72px;
  height: 365.92px;
  max-width: none;
  object-fit: cover;
}

.final-cta__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 360px;
  min-height: 306px;
  padding: 12px 0;
  text-align: center;
}

.final-cta__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.final-cta h2 {
  width: 100%;
  font-size: 36px;
  line-height: 1;
  background-image: linear-gradient(152deg, #ffffff 12.437%, #749a74 52.566%);
}

.final-cta p {
  width: 100%;
  margin: 0;
  color: #bcbcbc;
  font-size: 20px;
  font-weight: 300;
  line-height: 26px;
  letter-spacing: 0;
}

.desktop-label {
  display: none;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.hero__content[data-reveal] {
  transform: translate(-50%, -50%);
}

.hero__content[data-reveal].is-visible {
  transform: translate(-50%, -50%);
}

.final-cta__content[data-reveal] {
  transform: translate(-50%, -50%);
}

.final-cta__content[data-reveal].is-visible {
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal],
  [data-reveal].is-visible,
  .hero__content[data-reveal],
  .hero__content[data-reveal].is-visible,
  .final-cta__content[data-reveal],
  .final-cta__content[data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .hero__content[data-reveal],
  .hero__content[data-reveal].is-visible,
  .final-cta__content[data-reveal],
  .final-cta__content[data-reveal].is-visible {
    transform: translate(-50%, -50%);
  }

  .glass-cta,
  .glass-cta::before,
  .glass-cta::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1279px) {
  .case {
    gap: 0;
  }

  .case__copy {
    display: contents;
  }

  .chips {
    order: 1;
    margin-bottom: 12px;
  }

  .case-logo {
    order: 1;
    margin-bottom: 12px;
  }

  .case__text {
    order: 1;
    margin-bottom: 20px;
  }

  .case-media {
    order: 2;
    margin-bottom: 12px;
  }

  .case__copy > .button {
    order: 3;
  }

  /* На мобильной шапка — на всю ширину экрана, скруглённые углы (как у
     десктопной «плавающей» пилюли) тут не нужны и выглядят как обрезанный
     угол у самого края экрана. */
  .site-header,
  .header-bg {
    border-radius: 0;
  }

  /* -------------------- Бургер-меню (мобильная версия) --------------------
     Перенесено из kassir-case.css: изначально стили жили только там (для
     страниц-кейсов), теперь нужны и на главной, поэтому переехали в общий
     styles.css. kassir-case.css больше их не переопределяет. */
  .case-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 12px;
    border: 0;
    border-radius: 24px;
    background: none;
    color: #ffffff;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
  }

  .case-burger:focus,
  .case-burger:focus-visible {
    outline: none;
  }

  .case-burger__icon {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
  }

  .case-burger__bar {
    position: absolute;
    left: 3.75px;
    width: 16.5px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 280ms ease, opacity 280ms ease, top 280ms ease;
  }

  .case-burger__bar:nth-child(1) {
    top: 5.75px;
  }

  .case-burger__bar:nth-child(2) {
    top: 11px;
  }

  .case-burger__bar:nth-child(3) {
    top: 16.25px;
  }

  .case-burger.is-open .case-burger__bar:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
  }

  .case-burger.is-open .case-burger__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .case-burger.is-open .case-burger__bar:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
  }

  .case-menu {
    position: absolute !important;
    top: 78px !important;
    right: 16px !important;
    left: auto !important;
    z-index: 20 !important;
    flex-direction: column;
    gap: 2px;
    min-width: 210px;
    padding: 12px;
    border: 1px solid #3d3d3d;
    border-radius: 16px;
    background: rgba(13, 13, 13, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .case-menu.is-open {
    display: flex;
  }

  .case-menu a {
    padding: 8px 12px;
    border-radius: 8px;
    color: #e4e4e4;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
  }

  .case-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
  }
}

@media (min-width: 1280px) {
  .site-shell {
    max-width: var(--frame-desktop-max);
  }

  .site-header {
    width: min(100%, var(--frame-desktop-max));
    height: 128px;
    padding: 20px 72px 0;
    align-items: flex-start;
  }

  .header-bg--mobile {
    display: none;
  }

  .contact-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 48px;
    color: #e4e4e4;
    font-size: 16px;
    font-weight: 300;
    line-height: 28px;
  }

  .contact-nav a {
    transition: color 180ms ease, opacity 180ms ease;
  }

  .contact-nav a:hover {
    color: #ffffff;
    opacity: 0.82;
  }

  .nav-divider {
    width: 1px;
    height: 20px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.5);
  }

  .case-burger,
  .case-menu {
    display: none;
  }

  .hero__edge {
    width: 100px;
    content: url("assets/hero-edge-desktop.webp");
  }

  .hero__bottom--desktop {
    display: block;
  }

  .hero__bottom--mobile {
    display: none;
  }

  .hero__content {
    top: 50%;
    flex-direction: row;
    width: 670px;
    height: 309px;
    padding-top: 0;
    gap: 20px;
  }

  .hero__content::before {
    background: radial-gradient(ellipse at center, #000 0%, rgba(0, 0, 0, 0) 72%);
  }

  .portrait-card {
    width: 210px;
    height: 309px;
  }

  .portrait-card__blur,
  .portrait-card__image {
    top: -1px;
    left: -8px;
    width: 223px;
    height: 334px;
  }

  .hero__copy {
    align-items: flex-start;
    width: 440px;
    gap: 28px;
    text-align: left;
  }

  .hero__text {
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 64px;
  }

  .hero p {
    width: 100%;
  }

  .button {
    margin-top: 0;
  }

  .cases {
    padding-top: 40px;
  }

  .cases::after {
    display: none;
  }

  .case {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: auto;
    padding: 0 80px;
    gap: clamp(72px, 12.8vw, 184px);
  }

  .case--kassir,
  .case--vanta,
  .case--intermark {
    height: auto;
  }

  .case--kassir {
    margin-top: 0;
  }

  .case__copy {
    align-items: flex-start;
    flex: 0 0 360px;
    width: 360px;
    gap: 12px;
    text-align: left;
  }

  .case__copy > .button {
    margin-top: 16px;
  }

  .case h2 {
    font-size: 24px;
    line-height: 28px;
    letter-spacing: -0.48px;
  }

  .case p {
    font-size: 20px;
    line-height: 26px;
  }

  .chips {
    justify-content: flex-start;
  }

  .case-logo--kassir .case-logo__text {
    left: 0;
  }

  .case-logo--kassir .case-logo__smile {
    left: 161px;
    top: -2px;
  }

  .case-logo--vanta {
    margin: 14px 0;
  }

  .case p {
    color: #bcbcbc;
  }

  .case-media {
    flex: 1 0 0;
    min-width: 0;
  }

  .case-media--phones {
    width: auto;
    height: auto;
    aspect-ratio: 780 / 512;
    overflow: visible;
  }

  .case-media--has-video {
    overflow: hidden;
  }

  .case-media__video {
    object-fit: contain;
  }

  .case-media--image {
    aspect-ratio: 780 / 512;
  }

  .phone--left,
  .phone--right {
    display: block;
  }

  .phone--left {
    left: 3%;
    top: 44px;
  }

  .phone--right {
    right: 0;
    top: 42px;
  }

  .phone--center {
    top: 18px;
  }

  .phone--dark,
  .phone--light {
    width: 170px;
    height: 360px;
    border-radius: 22px;
  }

  .phone--yellow,
  .phone--blue {
    width: 220px;
    height: 420px;
    border-radius: 24px;
  }

  .phone__status {
    padding: 12px 15px 9px;
    font-size: 8px;
  }

  .phone--yellow .phone__status,
  .phone--blue .phone__status {
    padding: 18px 20px;
    font-size: 10px;
  }

  .phone__brand {
    top: 160px;
    font-size: 23px;
  }

  .phone__brand span {
    width: 24px;
    height: 24px;
  }

  .phone__search {
    margin: 0 12px;
    font-size: 7px;
  }

  .phone__cards,
  .phone__poster-grid {
    margin: 12px;
  }

  .phone__cards span {
    width: 45px;
    height: 52px;
    font-size: 6px;
  }

  .phone__modal {
    width: 118px;
    margin-top: 39px;
    padding: 15px 12px 10px;
  }

  .phone__modal strong,
  .phone__modal em,
  .phone__cta,
  .phone__pills span,
  .phone__copy-link,
  .credit-card button {
    font-size: 7px;
  }

  .phone__modal small {
    font-size: 6px;
  }

  .phone__poster-grid span {
    width: 45px;
    height: 58px;
  }

  .phone--right strong {
    margin: 16px 15px;
    font-size: 11px;
  }

  .phone__date-grid span {
    width: 29px;
    height: 30px;
  }

  .phone__cta {
    left: 26px;
    right: 26px;
    bottom: 55px;
  }

  .phone__tabs {
    bottom: 20px;
  }

  .qr-card {
    width: 132px;
    margin-top: 20px;
  }

  .qr-card strong {
    font-size: 10px;
  }

  .qr-grid {
    width: 92px;
    height: 92px;
  }

  .phone__copy-link {
    width: 132px;
  }

  .phone__title {
    font-size: 8px;
  }

  .phone--blue img {
    top: 178px;
    width: 126px;
  }

  .phone--blue small {
    top: 216px;
    font-size: 7px;
  }

  .credit-card {
    width: 138px;
    margin-top: 30px;
  }

  .credit-card strong {
    font-size: 11px;
  }

  .credit-card small {
    font-size: 6px;
  }

  .credit-card__art {
    width: 88px;
    height: 88px;
  }

  .section-divider {
    height: 201px;
    padding: 100px 64px;
  }

  .section-divider--last {
    height: 1px;
    padding: 0;
  }

  .section-divider--last::before {
    display: none;
  }

  .final-cta__content {
    top: calc(50% + 0.5px);
    flex-direction: row;
    align-items: flex-end;
    width: 670px;
    gap: 32px;
  }

  .final-cta__copy {
    align-items: flex-start;
    flex: 1 0 0;
    width: auto;
    height: 306px;
    justify-content: space-between;
    text-align: left;
  }

  .final-cta__button {
    margin-top: 16px;
  }

  .final-cta h2 {
    font-size: 48px;
    background-image: linear-gradient(148.037deg, #ffffff 12.437%, #749a74 52.566%);
  }

  .mobile-label {
    display: none;
  }

  .desktop-label {
    display: inline;
  }
}
