/* Fonts */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.5%;
  line-gap-override: 0%;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src: url('../fonts/fira-sans-300.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src: url('../fonts/fira-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src: url('../fonts/fira-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src: url('../fonts/fira-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Fira Sans';
  src: url('../fonts/fira-sans-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

@property --n {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}

/* Tokens */
:root {
  --c-text: #0d0f2b;
  --c-text-2: #3b3f4c;
  --c-muted: #5b6070;
  --c-accent: #f2335f;
  --c-dark: #120f2a;
  --c-violet: #6c3cf6;
  --c-green: #99d326;
  --c-corner: #00a4dd;
  --c-bg: #eeefef;
  --c-card: #fbfbfd;
  --c-tile: #f0f0f2;
  --c-tile-2: #e4e5ea;
  --c-line: #d5d8de;
  --c-line-2: #e4e5ea;
  --c-line-3: #ececef;
  --c-line-4: #e6e7ea;
  --c-field: #c4c7d0;
  --g-pink: linear-gradient(200deg, #ff2a93 0%, #f7335e 50%, #f23a1e 100%);
  --g-button: linear-gradient(90deg, #ff2e6e, #f23a1e);
  --g-logo: linear-gradient(180deg, #e8317e, #e7362b);
  --shadow-hover: 0 18px 44px rgba(13, 15, 43, 0.18);
  --shadow-green: 0 12px 32px rgba(120, 170, 30, 0.35);
  --shadow-pink: 0 16px 40px rgba(242, 51, 95, 0.28);
  --font-head: 'Fira Sans', 'Inter Fallback', Arial, sans-serif;
  --font-body: 'Inter', 'Inter Fallback', Arial, sans-serif;
  --font-price: 'Times New Roman', Times, serif;
  --fs-hero: clamp(2.5rem, 1.778rem + 2.963vw, 4rem);
  --fs-seo: clamp(2.5rem, 2.259rem + 0.988vw, 3rem);
  --fs-h2: clamp(1.875rem, 1.634rem + 0.988vw, 2.375rem);
  --fs-h3: clamp(1.375rem, 1.255rem + 0.494vw, 1.625rem);
  --fs-num: clamp(2.75rem, 2.389rem + 1.481vw, 3.5rem);
  --gap: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  font: 400 15px/1.45 var(--font-body);
  color: var(--c-text);
  background:
    linear-gradient(var(--c-corner), var(--c-corner)) top right / 112px 112px no-repeat,
    var(--c-bg);
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

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

img,
svg {
  display: block;
}

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

[hidden] {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

[id] {
  scroll-margin-top: 96px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Layout */
.container {
  max-width: 990px;
  margin-inline: auto;
}

.container--md {
  max-width: 1080px;
}

.container--lg {
  max-width: 1180px;
}

.container--xl {
  max-width: 1240px;
}

.section {
  padding-inline: 24px;
}

.lazy-block {
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.section-head--line {
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-text);
}

.section-head--wide-title {
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
}

.section-head__aside {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.section-head__aside .doodle {
  margin-top: -6px;
}

/* Typography */
.title-2 {
  font: 700 var(--fs-h2) / 1.15 var(--font-head);
}

.title-3 {
  font: 600 var(--fs-h3) / 1.2 var(--font-head);
}

.title-3--xl {
  font-size: clamp(1.625rem, 1.445rem + 0.741vw, 2rem);
  line-height: 1.15;
}

.title-3--light {
  font-weight: 400;
  font-size: clamp(1.25rem, 1.13rem + 0.494vw, 1.5rem);
  line-height: 1.25;
}

.kicker {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-accent);
}

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.intro {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

/* Icons */
.icon {
  flex-shrink: 0;
  stroke-width: 1.75;
}

.icon--accent {
  color: var(--c-accent);
}

.icon--bold {
  stroke-width: 2.6;
}

.icon--strong {
  stroke-width: 2.4;
}

.doodle {
  flex-shrink: 0;
  overflow: visible;
}

.doodle--tilt {
  transform: rotate(22deg);
}

.doodle--tilt-back {
  transform: rotate(-30deg);
}

/* Lists */
.bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--c-text-2);
}

.bullets li {
  position: relative;
  padding-left: 14px;
}

.bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--bullet, var(--c-accent));
}

.bullets--lg {
  gap: 12px;
  font-size: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.chips li {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--c-tile);
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

/* Links */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  transition: color 0.18s ease;
}

.text-link__arrow {
  color: var(--c-accent);
}

.text-link__u,
.inline-link,
.site-footer__links a:not(:has(svg)),
.legal a {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition:
    background-size 0.2s ease,
    color 0.18s ease;
}

.site-footer__links a:not(:has(svg)),
.legal a {
  background-size: 0 2px;
}

a:hover .text-link__u,
.inline-link:hover {
  background-size: 100% 1.5px;
}

.site-footer__links a:not(:has(svg)):hover,
.legal a:hover {
  background-size: 100% 2px;
}

.text-link:hover,
.inline-link:hover,
.site-footer__links a:hover,
.legal a:hover,
.social a:hover {
  color: var(--c-accent);
}

.inline-link {
  color: var(--link, var(--c-text));
}

.site-nav__menu a,
.site-nav__lang a,
.more-cases__list a,
.breadcrumbs a {
  transition: opacity 0.18s ease;
}

.site-nav__menu a:hover,
.site-nav__lang a:hover,
.more-cases__list a:hover,
.breadcrumbs a:hover {
  opacity: 0.75;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.oval {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 34px;
  border-radius: 50%;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.oval .icon {
  stroke-width: 2.1;
}

.oval--light {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.oval--dark {
  border: 1.5px solid var(--c-field);
  color: #4a4f5c;
}

.oval--dark .icon {
  stroke-width: 1.75;
}

.oval--white {
  width: 72px;
  height: 58px;
  background: #fff;
  color: var(--c-accent);
}

.arrow-link:hover .oval--light {
  border-color: #fff;
  background: #fff;
  color: var(--oval-hover, var(--c-accent));
}

.arrow-link:hover .oval--dark {
  border-color: var(--c-text);
  background: var(--c-text);
  color: #fff;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.button--outline {
  box-shadow: inset 0 0 0 1.5px var(--c-text);
}

.button--outline:hover {
  box-shadow:
    inset 0 0 0 1.5px var(--c-text),
    0 10px 26px rgba(13, 15, 43, 0.16);
}

.button--primary {
  background: var(--g-button);
  color: #fff;
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--c-green);
  color: var(--c-text);
  box-shadow: var(--shadow-green);
}

.button:disabled {
  cursor: progress;
  opacity: 0.7;
}

/* Header */
.hero {
  position: relative;
  padding: 80px 24px calc(150px + var(--gap));
  border-radius: 0 112px 64px 64px;
  background:
    radial-gradient(
      circle 340px at 22% 300px,
      rgba(242, 51, 95, 0.07),
      rgba(242, 51, 95, 0.03) 55%,
      rgba(242, 51, 95, 0) 100%
    ),
    #fff;
}

.header-bar {
  position: fixed;
  top: 24px;
  right: 24px;
  left: 24px;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1180px;
  margin-inline: auto;
  pointer-events: none;
  transition:
    transform 0.35s ease,
    top 0.35s ease;
}

.header-bar::before {
  content: '';
  width: 56px;
}

.header-bar > * {
  pointer-events: auto;
}

.header-bar.is-hidden {
  transform: translateY(calc(-100% - 40px));
}

.header-bar.is-glass {
  top: 12px;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 10px 8px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(20, 18, 43, 0.1);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.is-glass .site-nav {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.95),
    0 8px 28px rgba(20, 18, 43, 0.14);
}

.site-nav__loader {
  position: absolute;
  top: -22px;
  right: 0;
  left: 0;
  height: 3px;
  border-radius: 3px;
  opacity: 0;
  transform-origin: left center;
  pointer-events: none;
  animation: loader 1.8s ease-out both;
}

.site-nav__logo,
.footer-bar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--g-logo);
  color: #fff;
  transition: box-shadow 0.18s ease;
}

.site-nav__logo:hover,
.footer-bar__logo:hover,
.ai-link:hover,
.ux-card:hover,
.tile--link:hover {
  box-shadow: var(--shadow-hover);
}

.site-nav__menu {
  display: flex;
  gap: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav__lang {
  display: flex;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--c-line-3);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--c-muted);
}

.pen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--c-dark);
  color: #fff;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.pen::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--c-green);
  animation: pulse 2.6s ease-out infinite;
}

.pen:hover {
  background: var(--c-green);
  color: var(--c-text);
}

.pen:hover::after {
  background: var(--c-text);
}

.pen--small {
  display: none;
  width: 56px;
  height: 34px;
  box-shadow:
    0 8px 20px rgba(18, 15, 42, 0.28),
    0 2px 6px rgba(18, 15, 42, 0.16);
}

.pen--small::after {
  top: -4px;
  right: 10px;
  width: 8px;
  height: 8px;
}

.pen--large {
  width: 80px;
  height: 48px;
  box-shadow:
    0 0 0 8px rgba(124, 108, 230, 0.1),
    0 10px 26px rgba(36, 28, 110, 0.22);
}

.pen--large::after {
  top: -5px;
  right: 14px;
  width: 10px;
  height: 10px;
}

/* Hero */
.hero__body {
  margin-top: 56px;
}

.breadcrumbs {
  margin-bottom: 12px;
}

.hero__kicker {
  margin-bottom: 18px;
  font: 400 15px/1.45 var(--font-body);
  color: var(--c-text-2);
}

.hero__title {
  font: 800 var(--fs-hero) / 1.08 var(--font-head);
  letter-spacing: -0.01em;
}

.hero__lead {
  max-width: 640px;
  margin-top: 28px;
  font-size: 20px;
  color: var(--c-text-2);
}

.hero__note {
  margin-top: 12px;
  font-size: 16px;
  color: var(--c-text-2);
}

.hero__lead b,
.hero__note b,
.stats__text b,
.service__text b,
.lead__about b,
.nda b {
  color: var(--c-text);
}

.hero__dot {
  color: var(--c-accent);
}

.marquee {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--c-text-2);
}

.marquee__label {
  flex-shrink: 0;
}

.marquee__window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  animation: marquee 23s linear infinite;
}

.marquee__track::before,
.marquee__track::after {
  content: attr(data-items);
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin-top: 32px;
}

.stats__value {
  position: relative;
  display: block;
  font: 700 var(--fs-num) / 1 var(--font-head);
  animation: count-reveal 1.4s step-end both;
}

.stats__value::after {
  content: counter(n) attr(data-suffix);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--c-text);
  counter-reset: n var(--n);
  pointer-events: none;
  animation:
    count 1.4s cubic-bezier(0.15, 0.7, 0.25, 1) both,
    count-hide 1.4s step-end both;
}

.stats__value[data-count='2003'] {
  --to: 2003;
}

.stats__value[data-count='37'] {
  --to: 37;
}

.stats__value[data-count='76'] {
  --to: 76;
}

.stats__text {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--c-text-2);
}

.hero__tagline {
  margin-top: 40px;
  font-size: 16px;
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

/* Why us */
.why {
  position: relative;
  margin-top: -150px;
}

.why__card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  padding: 56px 56px 44px;
  border-radius: 56px 56px 56px 112px;
  background: var(--g-pink);
  color: #fff;
  box-shadow: var(--shadow-pink);
}

.why :focus-visible,
.ux-card--accent:focus-visible,
.next-step:focus-visible,
.footer-bar :focus-visible {
  outline-color: var(--c-green);
}

.why__feature {
  display: flex;
  gap: 12px;
  margin-top: 44px;
}

.why__asterisk {
  margin-top: 2px;
}

.why__text {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.why__scribble {
  width: min(240px, 100%);
  height: auto;
  margin: 18px 0 0 min(150px, max(0px, calc(100% - 240px)));
  opacity: 0.92;
}

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

.why__intro {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.why__badge {
  margin-top: -10px;
}

.why__box {
  margin-top: 36px;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 32px;
}

.why__box-kicker {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.why__box-title {
  margin-top: 10px;
}

.why__box-text {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.why__list {
  --bullet: currentColor;
  margin-top: 18px;
  gap: 10px;
  color: inherit;
}

.why__list li {
  padding-left: 0;
}

.why__list li::before {
  content: '• ';
  position: static;
}

.why__more {
  margin-top: 30px;
  font-size: 13px;
}

/* Services */
.services {
  padding-top: calc(var(--gap) - 24px);
}

.services__tag {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font: italic 400 11px var(--font-head);
  color: var(--c-text-2);
}

.services__doodle {
  width: auto;
  height: 52px;
}

.services .section-head {
  padding-top: 12px;
}

.services__intro {
  align-self: start;
  max-width: 340px;
  margin-top: 6px;
}

.service {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
}

.service--main {
  padding: 48px 0;
  border-bottom: 1px solid var(--c-line);
}

.service--seo {
  padding: 40px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px dashed #b9c0cc;
}

.service__head {
  display: flex;
  gap: 14px;
}

.service--main .service__head {
  align-items: center;
  gap: 16px;
}

.service__asterisk {
  align-self: flex-start;
  margin-top: -6px;
}

.service__text {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text-2);
}

.service__text--lg {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.service .text-link,
.service-card .text-link {
  align-self: flex-start;
  margin-top: 20px;
}

.service__aside {
  padding-top: 6px;
}

.service__aside .label {
  margin-bottom: 10px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 40px 32px;
  border-right: 1px solid var(--c-line);
}

.service-card:first-child {
  padding-left: 0;
}

.service-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.service__list {
  margin-top: 16px;
}

.service-card__case {
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  color: var(--c-muted);
}

.service-card__case .inline-link {
  font-weight: 700;
}

/* UX/UI */
.ux {
  position: relative;
  z-index: 2;
  padding-top: var(--gap);
}

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

.ux__intro {
  margin-top: 18px;
}

.ux__asterisk {
  margin-top: -6px;
}

.ux__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 44px;
}

.ux-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  margin: 12px 0;
  padding: 34px 16px 20px;
  border-radius: 28px;
  background: var(--c-card);
  transition: box-shadow 0.18s ease;
}

.ux-card--accent {
  min-height: 324px;
  margin: 0;
  padding: 46px 16px 31px;
  border-radius: 28px 28px 28px 56px;
  background: var(--c-accent);
  color: #fff;
}

.ux-card__title {
  margin-top: 22px;
}

.ux-card__text {
  margin: 8px 0 24px;
  font-size: 12px;
  color: var(--c-muted);
}

.ux-card--accent .ux-card__text {
  color: inherit;
}

.ux-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-size: 12px;
}

.ux-card__arrow {
  transition: color 0.18s ease;
}

.ux-card:hover .ux-card__arrow,
.tile--link:hover .ux-card__arrow {
  color: var(--c-accent);
}

.ux-card--accent:hover .ux-card__arrow {
  color: var(--c-text);
}

/* Dark block */
.dark {
  position: relative;
  z-index: 1;
  margin-top: -110px;
  padding-top: 150px;
  padding-bottom: calc(110px + var(--gap));
  border-radius: 80px 80px 80px 112px;
  background: var(--c-dark);
  color: #fff;
}

.dark__note {
  display: flex;
  gap: 14px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  --link: #fff;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  margin-top: 44px;
  padding: 56px 56px 48px;
  border-radius: 56px 56px 56px 96px;
  background: var(--c-card);
  color: var(--c-text);
  box-shadow: 0 0 40px rgba(108, 60, 246, 0.35);
}

.benefits__intro {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-2);
}

.benefits__label {
  margin: 34px 0 14px;
}

.handover li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line-2);
  font-size: 14px;
}

.handover b {
  font-size: 17px;
  font-weight: 400;
}

.handover span {
  color: var(--c-muted);
}

.compliance {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
}

.compliance dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.compliance dd {
  font-size: 15px;
  font-weight: 700;
}

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

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

.benefits__doodle {
  margin-top: -10px;
}

.results {
  margin-top: 8px;
}

.results__item {
  padding: 22px 0;
  border-bottom: 1px solid var(--c-line-2);
}

.results__item:last-child {
  border-bottom: 0;
}

.results__item p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text-2);
}

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

.benefits__tiles {
  margin-top: auto;
  padding-top: 20px;
}

.tile {
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: var(--c-tile);
}

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

.tile--wide {
  grid-column: 1 / -1;
}

.tile--link {
  position: relative;
  display: block;
  transition: box-shadow 0.18s ease;
}

.tile--link .ux-card__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
}

.tile__value {
  font: 700 40px/1 var(--font-head);
}

.tile__value--sm {
  font-size: 32px;
}

.tile__text {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--c-text-2);
}

.tile--dark .tile__text {
  color: rgba(255, 255, 255, 0.75);
}

/* Cases */
.cases-head {
  margin-top: var(--gap);
}

.cases-head__intro {
  margin-top: 27px;
  color: rgba(255, 255, 255, 0.85);
}

.cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 34px 40px 28px;
  border-radius: 48px;
  background: var(--c-card);
  color: var(--c-text);
  box-shadow: 0 0 30px rgba(108, 60, 246, 0.3);
}

.case-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.case-card__client {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--c-muted);
}

.case-card__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 88px;
  height: 88px;
}

.case-card__text {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text-2);
}

.case-card__label {
  margin: 22px 0 10px;
}

.case-card__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--c-line-2);
}

.case-card__stack,
.breadcrumbs {
  font-size: 12px;
  color: var(--c-muted);
}

.cases__extra {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 18px;
}

.more-cases {
  --oval-hover: var(--c-violet);
  display: flex;
  flex-direction: column;
  margin-bottom: -37px;
  padding: 32px 26px 20px;
  border-radius: 40px 40px 40px 64px;
  background: var(--c-violet);
  color: #fff;
}

.more-cases__title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.more-cases__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 26px;
}

.more-cases__list a {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.more-cases__list b {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}

.more-cases__list b + span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.more-cases__list .icon {
  opacity: 0.7;
}

.more-cases__all {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 13px;
  font-weight: 600;
}

.idea-card {
  display: flex;
  flex-direction: column;
  padding: 40px 28px 30px;
  border-radius: 48px;
  background: var(--c-tile-2);
  color: var(--c-text);
}

.idea-card__title {
  line-height: 1.25;
}

.idea-card__lead {
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
}

.idea-card__text {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-2);
}

.idea-card__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
}

/* Clients */
.clients {
  position: relative;
  z-index: 2;
  margin-top: -110px;
}

.clients__card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  padding: 52px 48px 40px;
  border-radius: 56px 56px 56px 96px;
  background: var(--c-card);
}

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

.clients__text {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-2);
}

.clients__text + .clients__text {
  margin-top: 16px;
}

.clients__tiles {
  grid-auto-rows: minmax(130px, auto);
  margin-top: 20px;
}

.clients__intro {
  margin-top: 27px;
  line-height: 1.45;
}

.clients__lists {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}

.clients__box {
  padding: 22px 24px;
  border: 1px solid var(--c-line-3);
  border-radius: 24px;
}

.clients__box-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clients__pin,
.lead-ok__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
}

.clients__box .chips {
  margin-top: 16px;
}

.logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.logos li {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 84px;
  padding: 0 10px;
  border: 1px solid var(--c-line-3);
  border-radius: 16px;
}

.logos a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.clients__all {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 14px;
  color: var(--c-text-2);
}

/* Ask AI */
.ask-ai {
  padding-top: var(--gap);
}

.ask-ai__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px 48px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--c-text);
}

.ask-ai__title {
  margin-top: 8px;
  font: 600 var(--fs-h3) / 1.25 var(--font-head);
}

.ask-ai__intro {
  max-width: 460px;
  margin-top: 14px;
  color: var(--c-text-2);
}

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

.ai-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px 0 26px;
  border: 1px solid var(--c-line-2);
  border-radius: 999px;
  background: var(--c-card);
  font-size: 14px;
  font-weight: 600;
  transition: box-shadow 0.18s ease;
}

/* Process */
.process {
  padding-top: var(--gap);
}

.process__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-inline: 45px;
}

.process__head .doodle {
  margin-top: -10px;
}

.process__intro {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-text-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.step {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-height: 290px;
  padding: 32px;
  border-radius: 36px;
  background: var(--c-card);
}

.step--wide {
  grid-column: span 3;
  min-height: 300px;
  padding: 36px 40px;
}

.step--pink {
  background: var(--g-pink);
  color: #fff;
}

.step--gray {
  background: var(--c-tile-2);
}

.step--dark {
  border-radius: 36px 36px 36px 72px;
  background: var(--c-dark);
  color: #fff;
}

.step__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step__badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--c-text);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.step--pink .step__badge {
  background: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.step--dark .step__badge {
  background: var(--c-accent);
}

.step__title {
  padding-top: 64px;
}

.step__text {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text-2);
}

.step--pink .step__text {
  color: rgba(255, 255, 255, 0.92);
}

.step--dark .step__text {
  color: rgba(255, 255, 255, 0.78);
}

.step__tags {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
}

.step--dark .step__tags {
  color: rgba(255, 255, 255, 0.7);
}

/* Team */
.team {
  padding-block: var(--gap);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 44px;
  border-top: 1px solid var(--c-text);
}

.team-group {
  padding: 36px 0 36px 40px;
  border-bottom: 1px solid var(--c-line);
}

.team-group:nth-child(odd) {
  padding: 36px 40px 36px 0;
  border-right: 1px solid var(--c-line);
}

.team-group__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-group__name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-group__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-muted);
}

.team-group__roles {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.role b {
  font-size: 15px;
}

.role__text {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-2);
}

.role__tags {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted);
}

.tech {
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: 40px;
  align-items: start;
  margin-top: 96px;
  border-bottom: 1px solid var(--c-text);
}

.tech__intro {
  padding-top: 17px;
}

.tech__intro .team-group__name {
  gap: 10px;
}

.tech__text {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text-2);
}

.tech__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  padding: 28px;
  border-right: 1px solid var(--c-line);
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  padding-right: 0;
  border-right: 0;
}

.metric__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-accent);
}

.metric__value {
  margin-top: 14px;
  font: 700 40px/1 var(--font-head);
}

.metric__text {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-2);
}

/* Pricing */
.pricing {
  padding-bottom: 10px;
}

.pricing__card {
  padding: 56px 80px 48px;
  border: 1px solid var(--c-line-4);
  border-radius: 56px 56px 56px 96px;
  background: var(--c-card);
}

.pricing__head {
  align-items: start;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 32px 0;
}

.plan:first-child {
  padding-right: 36px;
  border-right: 1px solid var(--c-line);
}

.plan:last-child {
  padding-left: 36px;
}

.plan__price {
  margin-top: 12px;
  font: italic 700 36px/1.15 var(--font-price);
}

.plan__price--accent {
  color: var(--c-accent);
}

.plan__term {
  font: 500 14px var(--font-body);
  white-space: nowrap;
  color: var(--c-muted);
}

.plan__text {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text-2);
}

.plan__chips {
  margin-top: 16px;
}

.estimate {
  padding: 30px 32px 32px;
  border: 1px solid var(--c-line-2);
  border-radius: 36px;
}

.estimate__grid {
  display: grid;
  grid-template-columns: repeat(3, 148px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
}

.estimate__step {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 22px 18px 20px;
  border-radius: 24px;
  background: var(--c-tile);
}

.estimate__num {
  font: 300 34px/1 var(--font-head);
  color: var(--c-accent);
}

.estimate__step b {
  margin-top: 40px;
  font-size: 15px;
  line-height: 1.3;
}

.estimate__step b + span {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c-text-2);
}

.next-step {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px 28px;
  border-radius: 24px 24px 24px 48px;
  background: var(--g-pink);
  color: #fff;
  box-shadow: var(--shadow-pink);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.next-step:hover {
  background: var(--c-green);
  color: var(--c-text);
  box-shadow: var(--shadow-green);
}

.next-step__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.next-step__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.next-step__title {
  display: block;
  font: 700 32px/1.12 var(--font-head);
}

.next-step__text {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}

.next-step:hover .oval--white {
  background: var(--c-text);
  color: var(--c-green);
}

.nda {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--c-text-2);
}

.nda__emoji {
  flex-shrink: 0;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 20px;
  line-height: 1;
}

/* About + FAQ */
.about {
  padding-top: calc(var(--gap) - 10px);
  padding-bottom: var(--gap);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.seo-text__title {
  font: 700 var(--fs-seo) / 1.1 var(--font-head);
  text-transform: uppercase;
}

.seo-text__lead {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.seo-text h3 {
  margin-top: 30px;
}

.seo-text h3 + p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text-2);
}

.facts {
  position: sticky;
  top: 32px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--c-text);
}

.facts__title {
  font-size: 13px;
  font-weight: 700;
}

.facts__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.facts__list li {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--c-text-2);
}

.facts__list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--c-accent);
}

.faq__intro {
  margin-top: 16px;
}

.faq__list {
  margin-top: 32px;
}

.faq__item {
  padding: 20px 0 22px;
  border-top: 1px solid var(--c-line);
}

.faq__item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-2);
}

.faq__link {
  margin-top: 12px;
}

/* Contacts CTA */
.cta__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: 56px 80px;
  border: 1px solid var(--c-line-4);
  border-radius: 48px 48px 48px 96px;
  background: var(--c-card);
}

.cta__title {
  text-wrap: balance;
}

.cta__text {
  max-width: 560px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-2);
}

/* Footer */
.site-footer {
  padding: 56px 24px 40px;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr;
  gap: 40px;
  padding-inline: 80px;
}

.site-footer__bio {
  max-width: 380px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-2);
}

.site-footer__head {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.site-footer__links a:has(svg) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer__contacts li {
  font-weight: 700;
  color: var(--c-accent);
}

.site-footer__contacts .site-footer__city {
  font-weight: 400;
  color: var(--c-muted);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 28px;
  max-width: 880px;
  margin: 56px auto 0;
  padding: 16px 30px 16px 16px;
  border-radius: 40px;
  background: var(--c-dark);
  color: #fff;
}

.footer-bar__logo {
  width: 48px;
  height: 48px;
}

.footer-bar__copy {
  font-size: 12px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.18s ease;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
  max-width: 880px;
  margin: 14px auto 0;
  padding: 0 30px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
}

/* Lead form */
.lead {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.lead:target,
.lead:has(.lead-ok:target) {
  display: block;
}

.lead__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 43, 0.45);
  backdrop-filter: blur(6px);
  animation: fade 0.25s ease both;
}

.lead__panel {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  max-height: 100%;
  overflow: auto;
  padding: 24px max(24px, calc((100% - 1180px) / 2)) 56px;
  border-radius: 56px 56px 56px 112px;
  background: #fff;
  animation: slide-down 0.3s ease-out both;
}

.lead__top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 48px;
  margin-bottom: 48px;
}

.lead__close {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 48px;
  border-radius: 999px;
  background: var(--c-text);
  color: #fff;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.lead__close:hover {
  background: var(--c-tile-2);
  color: var(--c-text);
}

.lead__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 48px;
  align-items: start;
}

.lead__hello {
  font: 600 34px/1.15 var(--font-head);
  color: var(--c-accent);
}

.lead__about {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-2);
}

.lead__caption {
  margin: 18px 0 4px;
  font-size: 12px;
  color: var(--c-muted);
}

.lead__phones {
  --link: var(--c-accent);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-accent);
}

.lead-form {
  padding: 36px 40px 32px;
  border-radius: 32px;
  background: var(--c-tile);
}

.lead-form__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 20px;
}

.lead-form__title {
  font: 600 32px var(--font-head);
}

.lead-form__sub {
  font-size: 13px;
  color: var(--c-text-2);
}

.lead-form__row {
  display: grid;
  gap: 12px 24px;
  margin-top: 12px;
}

.lead-form__row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

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

.field {
  width: 100%;
  height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 1.5px solid var(--c-field);
  border-radius: 0;
  background: transparent;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease;
}

.field--select {
  padding-right: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230D0F2B' stroke-width='1.6'/%3E%3C/svg%3E")
    right 4px center no-repeat;
  appearance: none;
  cursor: pointer;
}

.field::placeholder,
.lead-form__message::placeholder {
  color: var(--c-muted);
}

.field:hover,
.field:focus {
  border-bottom-color: var(--c-text);
}

.field:user-invalid {
  border-bottom-color: var(--c-accent);
}

.lead-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form__message {
  display: block;
  width: 100%;
  min-height: 120px;
  margin-top: 24px;
  padding: 16px 20px;
  border: 1.5px solid var(--c-field);
  border-radius: 24px;
  background: #fff;
  font-size: 15px;
  outline: none;
  resize: vertical;
  transition: border-color 0.18s ease;
}

.lead-form__message:hover,
.lead-form__message:focus {
  border-color: var(--c-text);
}

.lead-form__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  margin-top: 24px;
}

.lead-form__note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--c-muted);
}

.lead-form__note a {
  font-weight: 600;
}

.lead-form__status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.lead-form__status:empty {
  display: none;
}

/* Screen after sending: shown by the script, or by the address #lead-ok without it */
.lead-ok {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 440px;
}

.lead-ok:not([hidden]),
.lead-ok:target {
  display: flex;
}

.lead:has(.lead-ok:target) .lead-form:not(.lead-ok) {
  display: none;
}

.lead-ok:focus {
  outline: none;
}

.lead-ok__icon {
  width: 56px;
  height: 56px;
  background: var(--c-green);
  color: var(--c-text);
}

.lead-ok__title {
  margin-top: 28px;
  line-height: 1.2;
}

.lead-ok__text {
  max-width: 520px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-2);
}

.lead-ok__note {
  --link: var(--c-accent);
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-muted);
}

.lead-ok__note a {
  font-weight: 700;
}

.lead-ok__close {
  margin-top: 32px;
}

/* Desktop: the page header stays above the open form */
@media (min-width: 901px) {
  body:has(.lead:target, .lead-ok:target) .header-bar {
    z-index: 110;
    transform: none;
  }

  body:has(.lead:target, .lead-ok:target) .pen--large {
    visibility: hidden;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .estimate__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .next-step {
    grid-column: 1 / -1;
  }
}

/* Tablet and phone */
@media (max-width: 900px) {
  :root {
    --gap: 56px;
  }

  .header-bar {
    justify-content: center;
  }

  .header-bar::before,
  .site-nav__menu,
  .site-nav__lang,
  .pen--large,
  .doodle--desktop,
  .desktop-only {
    display: none;
  }

  .pen--small {
    display: flex;
  }

  .doodle {
    zoom: 0.75;
  }

  .section-head,
  .section-head--wide-title,
  .why__card,
  .service,
  .services__grid,
  .ux__grid,
  .benefits,
  .cases,
  .cases__extra,
  .clients__card,
  .ask-ai__grid,
  .steps,
  .team__grid,
  .tech,
  .tech__metrics,
  .plans,
  .estimate__grid,
  .about__grid,
  .cta__card,
  .site-footer__cols,
  .lead__grid,
  .lead-form__row--3,
  .lead-form__row--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats {
    gap: 20px 32px;
  }

  .hero__actions .button,
  .cta__card .button,
  .lead-form__bottom .button,
  .lead-ok__close {
    width: 100%;
  }

  .button {
    height: 52px;
    padding: 0 20px;
  }

  .why__card,
  .benefits,
  .clients__card,
  .pricing__card,
  .cta__card {
    padding: 32px 24px;
  }

  .why__card {
    border-radius: 44px 44px 44px 88px;
  }

  .why__scribble {
    margin-left: auto;
  }

  .service-card,
  .service-card:first-child,
  .service-card:last-child {
    padding: 32px 0;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .handover b {
    font-size: 16px;
  }

  .case-card {
    padding: 28px 22px 22px;
    border-radius: 36px;
  }

  .case-card__head {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .case-card__logo {
    justify-content: flex-start;
    width: auto;
    height: auto;
  }

  .more-cases {
    margin-bottom: 0;
  }

  .clients__tiles .tile {
    padding: 14px 12px;
  }

  .clients__tiles .tile__value {
    font-size: 30px;
  }

  .logos li {
    height: 64px;
    padding: 0 4px;
  }

  .process__head,
  .site-footer__cols {
    padding-inline: 0;
  }

  .step,
  .step--wide {
    grid-column: auto;
  }

  .team-group,
  .team-group:nth-child(odd) {
    padding: 28px 0;
    border-right: 0;
  }

  .tech__intro {
    padding-top: 0;
  }

  .metric,
  .metric:first-child,
  .metric:last-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .plan:first-child {
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .plan:last-child {
    padding: 24px 0 0;
  }

  .estimate {
    padding: 22px 18px;
    border-radius: 28px;
  }

  .estimate__step {
    min-height: 0;
  }

  .next-step__title {
    font-size: 26px;
  }

  .footer-bar {
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
    border-radius: 32px;
    text-align: center;
  }

  .footer-bar__copy {
    white-space: normal;
  }

  .social,
  .legal {
    justify-content: center;
  }

  .legal {
    padding: 0;
  }

  .lead__panel {
    top: auto;
    bottom: 0;
    max-height: 90vh;
    padding: 28px 20px 0;
    border-radius: 32px 32px 0 0;
    animation-name: slide-up;
  }

  .lead__panel::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 44px;
    height: 5px;
    margin-left: -22px;
    border-radius: 3px;
    background: var(--c-line);
  }

  .lead__top {
    height: 44px;
    margin-bottom: 20px;
  }

  .lead__close {
    width: 64px;
    height: 44px;
  }

  .lead__grid {
    gap: 28px;
  }

  .lead-form {
    order: -1;
    padding: 24px 18px 0;
    border-radius: 24px 24px 0 0;
  }

  .lead-form__row {
    gap: 4px;
  }

  .lead-form__bottom {
    position: sticky;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    margin: 16px -18px 0;
    padding: 14px 18px 18px;
    background: var(--c-tile);
  }

  .lead__info {
    padding-bottom: 28px;
  }

  .lead-ok {
    min-height: 0;
    padding-bottom: 28px;
    border-radius: 24px;
  }
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(153, 211, 38, 0.75);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(153, 211, 38, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(153, 211, 38, 0);
  }
}

@keyframes loader {
  0% {
    opacity: 1;
    background: var(--c-accent);
    transform: scaleX(0);
  }

  50% {
    opacity: 1;
    background: var(--c-accent);
    transform: scaleX(0.7);
  }

  72%,
  84% {
    opacity: 1;
    background: var(--c-green);
    transform: scaleX(1);
  }

  100% {
    opacity: 0;
    background: var(--c-green);
    transform: scaleX(1);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-33.3333%);
  }
}

@keyframes count {
  from {
    --n: 0;
  }

  to {
    --n: var(--to);
  }
}

@keyframes count-hide {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes count-reveal {
  0% {
    color: transparent;
  }

  100% {
    color: var(--c-text);
  }
}

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

@keyframes slide-down {
  from {
    transform: translateY(-100%);
  }
}

@keyframes slide-up {
  from {
    transform: translateY(100%);
  }
}

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

  .site-nav__loader {
    display: none;
  }

  .pen::after,
  .lead__backdrop,
  .lead__panel,
  .stats__value {
    animation: none;
  }

  .stats__value::after,
  .marquee__track::before,
  .marquee__track::after {
    content: none;
  }

  .marquee__track {
    width: auto;
    white-space: normal;
    animation: none;
  }

  .marquee__window {
    mask-image: none;
  }
}
