@font-face {
  font-family: "Bebas Neue";
  src: url("./assets/fonts/bebas-neue-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/roboto-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("./assets/fonts/roboto-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --neural-white: #f7f7f4;
  --pure-white: #ffffff;
  --quantum-black: #0a0a0a;
  --solar-core: #ffd240;
  --circuit-silver: #c0c0c0;
  --line: rgba(10, 10, 10, 0.14);
  --frame-radius: 0px;
  --mouse-x: 0;
  --mouse-y: 0;
}

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

html {
  scroll-behavior: smooth;
  background: #e7e7e2;
  color: var(--quantum-black);
  font-family: "Roboto", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 105%, rgba(255, 210, 64, 0.3), transparent 30%),
    #e7e7e2;
}

::selection {
  color: var(--quantum-black);
  background: var(--solar-core);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  min-height: 100svh;
  padding: 0;
  background: var(--quantum-black);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  border: 0;
  border-radius: 0 0 44px 44px;
  background:
    radial-gradient(circle at 50% 69%, rgba(255, 210, 64, 0.18), transparent 27%),
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.92), transparent 46%),
    var(--neural-white);
  box-shadow: none;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.hero::after {
  width: 52vw;
  height: 52vw;
  min-width: 540px;
  min-height: 540px;
  left: 50%;
  bottom: -36vw;
  border-radius: 50%;
  background: var(--solar-core);
  filter: blur(100px);
  opacity: 0.25;
  transform: translateX(-50%);
}

.hero__copy {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(86px + clamp(8px, 1.6vh, 18px)) 24px 0;
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
}

.hero__title {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(88px, 10.6vw, 184px);
  font-weight: 500;
  line-height: 0.74;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero__subtitle {
  max-width: 650px;
  margin: clamp(16px, 2vh, 22px) 0 0;
  color: rgba(10, 10, 10, 0.62);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: -0.018em;
}

.hero__actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.hero__cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--quantum-black);
  box-shadow:
    0 14px 30px rgba(10, 10, 10, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  font: 600 15px/1 "Roboto", Arial, sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__cta:hover {
  box-shadow:
    0 18px 36px rgba(10, 10, 10, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transform: translateY(-2px);
}

.hero__cta:focus-visible {
  outline: 3px solid rgba(255, 210, 64, 0.75);
  outline-offset: 3px;
}

.hero__stage {
  position: absolute;
  z-index: 3;
  width: 100%;
  height: min(56vh, 620px);
  min-height: 450px;
  right: 0;
  bottom: 0;
  left: 0;
  perspective: 1100px;
}

.float-card {
  position: absolute;
  z-index: 9;
  display: flex;
  width: clamp(214px, 17vw, 266px);
  min-height: 84px;
  gap: 13px;
  align-items: center;
  padding: 13px 15px;
  top: 48%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(232, 232, 230, 0.68));
  box-shadow:
    0 20px 40px rgba(10, 10, 10, 0.12),
    0 0 32px rgba(255, 255, 255, 0.94),
    0 0 13px rgba(255, 210, 64, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 0 0 1px rgba(10, 10, 10, 0.035) inset;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  isolation: isolate;
  backface-visibility: hidden;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.float-card::after {
  position: absolute;
  z-index: -1;
  inset: -20px;
  border-radius: 28px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.92), transparent 68%);
  filter: blur(14px);
  opacity: 0.86;
  content: "";
}

.float-card__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 10px;
  color: var(--icon-ink, #ffffff);
  background: var(--icon-color, var(--solar-core));
  box-shadow:
    0 8px 18px color-mix(in srgb, var(--icon-color, var(--solar-core)) 42%, transparent),
    0 1px 0 rgba(255, 255, 255, 0.62) inset;
}

.float-card__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.float-card__copy {
  min-width: 0;
}

.float-card__headline {
  margin: 0;
  font-size: clamp(14px, 1.08vw, 17px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.float-card--maps {
  --icon-color: #cfff63;
  --icon-ink: #ffffff;
  --depth: 0.7;
}

.float-card--site {
  --icon-color: #ffd240;
  --icon-ink: #ffffff;
  --depth: 0.95;
}

.float-card--crm {
  --icon-color: #b69cff;
  --depth: 1.15;
}

.float-card--seo {
  --icon-color: #8bc9ff;
  --depth: 1.05;
}

.float-card--ads {
  --icon-color: #ffad73;
  --depth: 0.85;
}

.float-card--bots {
  --icon-color: #0a0a0a;
  --depth: 0.65;
}

.hero-person {
  --depth: 0.3;
  position: absolute;
  z-index: 4;
  width: clamp(430px, 38vw, 620px);
  aspect-ratio: 1122 / 1402;
  left: 50%;
  bottom: -32%;
  transform: translate3d(
    calc(-50% + var(--mouse-x) * var(--depth) * 1px),
    calc(var(--mouse-y) * var(--depth) * 1px),
    0
  );
  pointer-events: none;
  will-change: transform;
}

.hero-person__glow {
  position: absolute;
  z-index: -1;
  width: 92%;
  height: 68%;
  left: 4%;
  bottom: 8%;
  border-radius: 50%;
  background: var(--solar-core);
  filter: blur(68px);
  opacity: 0.32;
}

.hero-person img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    grayscale(1)
    contrast(1.08)
    drop-shadow(0 28px 35px rgba(10, 10, 10, 0.16));
}

.hero-sculpture {
  --depth: 0.34;
  position: absolute;
  z-index: 4;
  /* На компьютере размер и подъём считает script.js: куб стоит на панели условий работы
     и не поднимается выше кнопок. Без скрипта — прежние значения */
  width: var(--sculpture-size, clamp(370px, 33vw, 530px));
  aspect-ratio: 1;
  left: 50%;
  bottom: var(--sculpture-lift, 0px);
  transform: translate3d(
    calc(-50% + var(--mouse-x) * var(--depth) * 1px),
    calc(var(--mouse-y) * var(--depth) * 1px),
    0
  );
  pointer-events: none;
  will-change: transform;
}

.hero-sculpture__glow {
  position: absolute;
  z-index: -1;
  width: 82%;
  height: 66%;
  left: 9%;
  bottom: 10%;
  border-radius: 50%;
  background: var(--solar-core);
  filter: blur(78px);
  opacity: 0.25;
}

.hero-sculpture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 34px 38px rgba(10, 10, 10, 0.24));
}

.hero__formula {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 13px;
  align-items: center;
  right: 32px;
  bottom: 24px;
  margin: 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hero__formula i {
  width: 26px;
  height: 1px;
  background: var(--quantum-black);
}

.process {
  position: relative;
  z-index: 11;
  height: calc(100svh + 240vh);
  color: #ffffff;
  background: var(--quantum-black);
}

.process__sticky {
  position: sticky;
  top: 0;
  display: grid;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(24px, 2.8vw, 48px) clamp(20px, 3.2vw, 56px) clamp(16px, 2vw, 32px);
  background: var(--quantum-black);
}

.process__header {
  display: grid;
  place-items: center;
  padding-bottom: clamp(20px, 2.4vw, 38px);
  text-align: center;
}

.process__header h2 {
  margin: 0;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(62px, 7vw, 116px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: .01em;
}

.process__steps {
  display: grid;
  min-height: 0;
  overflow: hidden;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,.28);
  transition: grid-template-rows 380ms cubic-bezier(.22, 1, .36, 1);
}

.process__steps[data-active="0"] { grid-template-rows: 5fr 1fr 1fr 1fr; }
.process__steps[data-active="1"] { grid-template-rows: 1fr 5fr 1fr 1fr; }
.process__steps[data-active="2"] { grid-template-rows: 1fr 1fr 5fr 1fr; }
.process__steps[data-active="3"] { grid-template-rows: 1fr 1fr 1fr 5fr; }

.process-step {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: minmax(150px, 23%) minmax(190px, 25%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.28);
  isolation: isolate;
  transition:
    color 500ms ease,
    background 700ms ease;
}

.process-step:last-child {
  border-bottom: 0;
}

.process-step__number {
  align-self: start;
  padding-top: clamp(10px, 1.5vh, 18px);
  color: rgba(255,255,255,.94);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(96px, 13vw, 220px);
  font-weight: 300;
  line-height: .78;
  letter-spacing: -.075em;
  transition:
    color 320ms ease,
    transform 380ms cubic-bezier(.22, 1, .36, 1);
}

.process__steps[data-active]:not([data-active="-1"]) .process-step:not(.is-active) .process-step__number {
  color: rgba(255,255,255,.38);
  transform: translateY(-.02em);
}

.process-step__headline {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding-right: clamp(22px, 3vw, 48px);
  transform: translateY(clamp(-42px, -3.5vh, -26px));
}

.process-step__headline h3 {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 22px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.025em;
}

/* ===== Подзаголовки свёрнутых этапов ===== */
.process__steps[data-active]:not([data-active="-1"]) .process-step:not(.is-active) .process-step__headline {
  transform: none;
}

.process-step__headline > span {
  display: block;
  width: clamp(48px, 4vw, 70px);
  height: 2px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: transparent;
  font-size: 0;
  line-height: 0;
  background: var(--solar-core);
  opacity: 0;
  transform: scaleX(.5);
  transform-origin: right center;
  transition:
    opacity 280ms ease,
    transform 380ms cubic-bezier(.22, 1, .36, 1);
}

.process-step.is-active .process-step__headline > span {
  opacity: 1;
  transform: scaleX(1.12);
}

.process-step__content {
  max-width: 610px;
  padding: clamp(18px, 2vw, 32px) clamp(10px, 1vw, 18px) clamp(18px, 2vw, 32px) 0;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 180ms ease,
    transform 320ms cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}

.process-step.is-active .process-step__content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 70ms;
}

.process-step__content p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(12px, 1.05vw, 17px);
  line-height: 1.55;
}

.process-step__content p + p {
  margin-top: clamp(8px, .75vw, 12px);
}

.process-step__content strong {
  color: #ffffff;
  font-weight: 600;
}

.process-step__result {
  max-width: 580px !important;
  margin-top: clamp(14px, 1.2vw, 20px) !important;
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--solar-core);
  color: rgba(255,255,255,.94) !important;
  font-size: clamp(13px, 1.12vw, 18px) !important;
  line-height: 1.45 !important;
}

.process-step__result strong {
  color: var(--solar-core);
  font-weight: 700;
}

.process-step__content ul {
  display: grid;
  gap: 8px;
  margin: clamp(18px, 2vw, 30px) 0 0;
  padding: 0;
  list-style: none;
}

.process-step__content li {
  position: relative;
  padding-left: 20px;
  color: rgba(255,255,255,.9);
  font-size: clamp(10px, .86vw, 14px);
  line-height: 1.35;
}

.process-step__content li::before {
  position: absolute;
  top: .62em;
  left: 0;
  width: 7px;
  height: 1px;
  content: "";
  background: var(--solar-core);
}

.case-reel {
  position: relative;
  z-index: 12;
  min-height: max(920px, 100svh);
  overflow: hidden;
  padding: clamp(34px, 4vw, 70px) clamp(20px, 4vw, 72px) clamp(28px, 3vw, 54px);
  border-radius: 44px;
  color: var(--quantum-black);
  background:
    radial-gradient(circle at 50% 45%, rgba(255,210,64,.12), transparent 32%),
    linear-gradient(180deg, #f8f8f6 0%, #eeeeeb 100%);
}

.case-reel__header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  justify-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding-bottom: clamp(16px, 1.8vw, 28px);
  text-align: center;
}

@media (min-width: 761px) {
  .case-reel__header {
    transform: translateY(clamp(-34px, -2vw, -22px));
  }
}

.case-reel__header > * {
  transition:
    opacity 700ms ease,
    transform 900ms cubic-bezier(.16, 1, .3, 1);
}

.case-reel:not(.is-visible) .case-reel__header > * {
  opacity: 0;
  transform: translateY(18px);
}

.case-reel__header p,
.case-reel__header span {
  margin: 0 0 6px;
  font-size: clamp(8px, .62vw, 11px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.case-reel__header span {
  justify-self: end;
  color: rgba(10,10,10,.5);
}

/* Цифры агентства — строкой над «Наши кейсы» (раньше отдельный блок «EFFORA в цифрах») */
.case-reel__header .case-reel__eyebrow {
  margin-bottom: 14px;
}

.case-reel__header h2 {
  margin: 0;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(62px, 7vw, 116px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: .01em;
}

/* ===== «Станьте нашим кейсом» под заголовком кейсов ===== */
.case-reel__header .case-reel__lead {
  max-width: 40em;
  margin: 20px auto 0;
  color: rgba(10, 10, 10, .62);
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
}

.case-reel__header .case-reel__offer {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 11px 20px;
  border-radius: 999px;
  color: var(--quantum-black);
  background: var(--solar-core);
  box-shadow: 0 12px 30px rgba(255, 210, 64, .35);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.case-reel__header .case-reel__offer:hover {
  transform: translateY(-2px);
}

.case-reel__header .case-reel__offer:focus-visible {
  outline: 3px solid var(--quantum-black);
  outline-offset: 3px;
}

.case-carousel {
  position: relative;
  max-width: 1600px;
  height: clamp(600px, 72vh, 820px);
  margin: 0 auto;
  perspective: 1800px;
}

.case-carousel__viewport {
  position: absolute;
  inset: 0;
  transform: translateY(clamp(28px, 4vh, 46px));
  transform-style: preserve-3d;
}

.case-card {
  --offset: 0;
  --depth: 0;
  --stack-scale: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(940px, 72vw);
  height: clamp(330px, 45vh, 510px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: clamp(20px, 2.2vw, 34px);
  background: #d8d8d4;
  box-shadow: 0 28px 70px rgba(10,10,10,.18);
  cursor: pointer;
  outline: none;
  touch-action: pan-x;
  opacity: calc(1 - var(--depth) * .14);
  transform:
    translate(-50%, -50%)
    translateY(calc(var(--offset) * clamp(94px, 11vh, 126px)))
    translateZ(calc(var(--depth) * -105px))
    rotateX(calc(var(--offset) * -3.5deg))
    scale(var(--stack-scale));
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  transition:
    transform 420ms cubic-bezier(.16, 1, .3, 1),
    opacity 300ms ease,
    box-shadow 420ms ease;
  will-change: transform;
}

.case-card.is-wrapping {
  transition: none !important;
}

/* ===== Непрерывный переход карточки через край карусели ===== */
.case-card--wrap-exit {
  pointer-events: none;
}

.case-card[data-active="true"] {
  box-shadow: 0 42px 100px rgba(10,10,10,.24);
}

.case-reel:not(.is-visible) .case-card {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(calc(var(--offset) * 18px)) translateZ(180px) rotateX(0) scale(1.12);
}

.case-card[data-expanded="true"],
.case-card[data-active="true"]:hover,
.case-card[data-active="true"]:focus-visible {
  transform: translate(-50%, -50%) translateY(0) translateZ(90px) rotateX(0) scale(1.045);
}

.case-card__visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #ffffff;
  background-color: #d6d6d3;
}

.case-card__visual::before,
.case-card__visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.case-card__visual::before {
  inset: 0;
  opacity: .78;
  background:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
}

.case-card__visual::after {
  top: -22%;
  right: -10%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255,255,255,.05), 0 0 0 120px rgba(255,255,255,.035);
}

.case-card__visual--maps { background: linear-gradient(135deg, #0a0a0a 0 47%, #ffd240 47% 100%); }
.case-card__visual--websites { background: linear-gradient(135deg, #d5d5d2 0 48%, #181818 48% 100%); }
.case-card__visual--crm { background: linear-gradient(135deg, #111111, #4b4b48 62%, #ffd240); }
.case-card__visual--seo { background: linear-gradient(135deg, #f4f4f1 0 50%, #1a1a1a 50% 100%); }
.case-card__visual--bots { background: linear-gradient(135deg, #151515 0 58%, #c9c9c5 58% 100%); }

.case-card__visual > img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(190px, 26vw, 390px);
  height: auto;
  filter: drop-shadow(0 34px 34px rgba(0,0,0,.26));
  transform: translate(-50%, -48%) rotate(-7deg);
  transition: transform 420ms cubic-bezier(.16, 1, .3, 1);
}

.case-card:nth-child(even) .case-card__visual > img {
  transform: translate(-50%, -48%) rotate(7deg);
}

.case-card[data-expanded="true"] .case-card__visual > img,
.case-card[data-active="true"]:hover .case-card__visual > img,
.case-card[data-active="true"]:focus-visible .case-card__visual > img {
  transform: translate(-50%, -52%) rotate(0) scale(1.08);
}

.case-card__index,
.case-card__tag {
  position: absolute;
  z-index: 2;
  top: clamp(20px, 2.4vw, 34px);
  font-size: clamp(8px, .62vw, 11px);
  font-weight: 600;
  letter-spacing: .18em;
}

.case-card__index { left: clamp(20px, 2.8vw, 42px); }
.case-card__tag { right: clamp(20px, 2.8vw, 42px); }

.case-card__caption {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 78px;
  padding: 19px clamp(22px, 2.8vw, 42px) 18px;
  color: #ffffff;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.88) 34%);
  transform: translateZ(2px);
}

.case-card[data-side="above"] .case-card__caption {
  top: 0;
  bottom: auto;
  padding-top: 18px;
  padding-bottom: 34px;
  background: linear-gradient(0deg, transparent, rgba(0,0,0,.88) 40%);
}

.case-card__caption h3 {
  margin: 0;
  font-size: clamp(15px, 1.25vw, 21px);
  font-weight: 500;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.case-card__caption p {
  max-width: 680px;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  color: rgba(255,255,255,.72);
  font-size: clamp(10px, .82vw, 14px);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px);
  transition:
    max-height 550ms cubic-bezier(.22, 1, .36, 1),
    margin 550ms cubic-bezier(.22, 1, .36, 1),
    opacity 300ms ease,
    transform 500ms cubic-bezier(.22, 1, .36, 1);
}

.case-card--doors,
.case-card--project {
  color: #ffffff;
  text-decoration: none;
}

.case-card--doors:focus-visible,
.case-card--project:focus-visible {
  outline: 3px solid var(--solar-core);
  outline-offset: 4px;
}

.case-card__visual--doors,
.case-card__visual--project {
  background: #090909;
}

.case-card__visual--doors::before,
.case-card__visual--doors::after,
.case-card__visual--project::before,
.case-card__visual--project::after {
  display: none;
}

.case-card--doors .case-card__visual > img,
.case-card--doors[data-expanded="true"] .case-card__visual > img,
.case-card--doors[data-active="true"]:hover .case-card__visual > img,
.case-card--doors[data-active="true"]:focus-visible .case-card__visual > img,
.case-card--project .case-card__visual > img,
.case-card--project:nth-child(even) .case-card__visual > img,
.case-card--project[data-expanded="true"] .case-card__visual > img,
.case-card--project[data-active="true"]:hover .case-card__visual > img,
.case-card--project[data-active="true"]:focus-visible .case-card__visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
  transform: translate(-50%, -50%);
}

.case-card--doors .case-card__tag,
.case-card--project .case-card__tag {
  padding: 7px 10px;
  border-radius: 100px;
  background: rgba(0, 0, 0, .65);
}

.case-card--doors .case-card__caption,
.case-card--project .case-card__caption {
  padding-right: clamp(140px, 13vw, 180px);
}

.case-card__open {
  position: absolute;
  right: clamp(22px, 2.8vw, 42px);
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(9px, .7vw, 12px);
  line-height: 1;
}

.case-card[data-expanded="true"] .case-card__caption p,
.case-card[data-active="true"]:hover .case-card__caption p,
.case-card[data-active="true"]:focus-visible .case-card__caption p {
  max-height: 72px;
  margin-top: 8px;
  opacity: 1;
  transform: translateY(0);
}

.case-carousel__status {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: 6px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
}

.case-carousel__status i {
  display: block;
  width: 72px;
  height: 1px;
  background: rgba(10,10,10,.35);
}

.case-carousel__current { color: #e5334f; }

@media (prefers-reduced-motion: reduce) {
  .case-card,
  .case-card__visual > img,
  .case-card__caption p {
    transition: none;
  }
}

.portfolio-surface {
  position: relative;
  z-index: 12;
  overflow: hidden;
  padding-bottom: clamp(80px, 8vw, 160px);
  border-radius: 44px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255,210,64,.12), transparent 21%),
    radial-gradient(circle at 82% 82%, rgba(255,210,64,.08), transparent 19%),
    linear-gradient(180deg, #f8f8f6 0%, #eeeeeb 100%);
}

.portfolio-surface .case-reel {
  z-index: 1;
  border-radius: 0;
  background: transparent;
}

/* ===== Кейсы сразу после «Услуг и цен», за ними — бесплатный разбор =====
   Схема «Как это работает вместе» замыкает светлую плашку без лишнего отступа */
.portfolio-surface .audit-band + .system {
  padding-top: clamp(80px, 8vw, 160px);
  padding-bottom: 0;
}

/* ===== Бесплатный разбор карточки — жёлтая полоса после кейсов ===== */
.audit-band {
  position: relative;
  z-index: 2;
  max-width: 1600px;
  margin: clamp(48px, 6vw, 112px) auto 0;
  padding: 0 clamp(20px, 4vw, 72px);
}

.audit-band__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
  padding: clamp(28px, 3.4vw, 56px) clamp(24px, 4vw, 64px);
  border-radius: 36px;
  color: var(--quantum-black);
  background: var(--solar-core);
  box-shadow: 0 24px 60px rgba(255, 190, 0, .22);
}

.audit-band__label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

.audit-band h2 {
  margin: 0;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(40px, 4.6vw, 76px);
  font-weight: 400;
  line-height: .9;
}

.audit-band__text > p:last-child {
  max-width: 40em;
  margin: 16px 0 0;
  color: rgba(10, 10, 10, .75);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.55;
}

.audit-band__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.audit-band__button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--quantum-black);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.audit-band__button:hover {
  transform: translateY(-2px);
}

.audit-band__link {
  color: var(--quantum-black);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-underline-offset: 4px;
}

.audit-band__button:focus-visible,
.audit-band__link:focus-visible {
  outline: 3px solid var(--quantum-black);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .audit-band__button {
    transition: none;
  }

  .audit-band__button:hover {
    transform: none;
  }
}

@media (max-width: 760px) {
  .portfolio-surface .audit-band + .system {
    padding-top: 64px;
  }

  .audit-band {
    margin-top: 40px;
    padding: 0 12px;
  }

  .audit-band__card {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 22px;
    border-radius: 26px;
  }
}

.services-pricing {
  position: relative;
  z-index: 2;
  padding: clamp(38px, 5vw, 82px) clamp(20px, 4vw, 72px) clamp(54px, 6vw, 104px);
  color: var(--quantum-black);
}

.services-pricing__header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: end;
  max-width: 1600px;
  margin: 0 auto clamp(38px, 4.8vw, 78px);
}

.services-pricing__header > * { margin: 0; }

.services-pricing__header > p,
.services-pricing__header > span {
  padding-bottom: 8px;
  font-size: clamp(8px, .65vw, 11px);
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.45;
  text-transform: uppercase;
}

.services-pricing__header > span {
  justify-self: end;
  max-width: 330px;
  color: rgba(10,10,10,.5);
  text-align: right;
}

.services-pricing__header h2 {
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(66px, 7.2vw, 122px);
  font-weight: 400;
  line-height: .8;
  letter-spacing: .01em;
  white-space: nowrap;
}

.services-pricing__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(8px, .8vw, 14px);
  max-width: 1600px;
  margin: 0 auto;
}

.service-offer {
  position: relative;
  display: grid;
  min-height: clamp(290px, 25vw, 360px);
  overflow: hidden;
  grid-template-rows: 1fr auto auto;
  padding: clamp(22px, 2vw, 32px);
  border: 0;
  border-radius: clamp(24px, 2.8vw, 42px);
  color: var(--quantum-black);
  background: linear-gradient(145deg, #dededb, #f7f7f4 64%, #d8d8d4);
  box-shadow: 0 18px 50px rgba(10,10,10,.08);
  isolation: isolate;
  outline: none;
  transition:
    transform 440ms cubic-bezier(.16,1,.3,1),
    box-shadow 440ms ease;
}

.service-offer::before,
.service-offer::after { display: none; }

.service-offer--maps {
  --service-tag-bg: #caff67;
  --service-tag-color: #152000;
  grid-column: span 7;
}

.service-offer--websites {
  --service-tag-bg: #8fd2ff;
  --service-tag-color: #071b29;
  grid-column: span 7;
}

.service-offer--crm {
  --service-tag-bg: #b99cff;
  --service-tag-color: #170c2f;
  grid-column: span 8;
}

.service-offer--seo {
  --service-tag-bg: #ffad87;
  --service-tag-color: #321307;
  grid-column: span 5;
}

.service-offer--marketing {
  --service-tag-bg: #111111;
  --service-tag-color: #ffffff;
  grid-column: span 5;
}

.service-offer--bots {
  --service-tag-bg: #ff8baa;
  --service-tag-color: #310916;
  grid-column: span 4;
}

.service-offer--dark {
  color: #ffffff;
  background: linear-gradient(145deg, #080808, #242423 66%, #0e0e0e);
}

.service-offer--accent {
  background: linear-gradient(145deg, #ffd240, #f3bd18);
}

.service-offer:hover,
.service-offer:focus,
.service-offer:focus-within {
  z-index: 3;
  box-shadow: 0 34px 80px rgba(10,10,10,.17);
  transform: translateY(-7px);
}

.service-offer__icon {
  position: absolute;
  z-index: -1;
  top: clamp(18px, 1.8vw, 28px);
  right: clamp(18px, 1.8vw, 28px);
  width: clamp(115px, 11vw, 190px);
  height: clamp(115px, 11vw, 190px);
  object-fit: contain;
  opacity: .82;
  filter: drop-shadow(0 22px 24px rgba(10,10,10,.2));
  transform: rotate(7deg) scale(.96);
  transform-origin: 70% 30%;
  transition:
    opacity 400ms ease,
    transform 560ms cubic-bezier(.16,1,.3,1);
}

.service-offer:nth-child(even) .service-offer__icon { transform: rotate(-7deg) scale(.94); }
.service-offer--dark .service-offer__icon { filter: brightness(1.22) drop-shadow(0 24px 30px rgba(0,0,0,.46)); }

.service-offer:hover .service-offer__icon,
.service-offer:focus .service-offer__icon,
.service-offer:focus-within .service-offer__icon {
  opacity: .98;
  transform: translate(-8px, -7px) rotate(0) scale(1.04);
}

.service-offer__intro {
  z-index: 1;
  align-self: end;
  max-width: 70%;
  padding-top: clamp(82px, 8vw, 118px);
}

.service-offer__intro > p {
  margin: 0 0 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
}

.service-offer__intro h3 {
  margin: 0;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(36px, 3.3vw, 56px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.service-offer--maps .service-offer__intro h3 {
  line-height: 1.02;
}

.service-offer__intro > span {
  display: block;
  margin-top: 13px;
  color: rgba(10,10,10,.58);
  font-size: clamp(14px, .95vw, 17px);
  line-height: 1.3;
}

.service-offer--dark .service-offer__intro > span,
.service-offer--dark .service-offer__details { color: rgba(255,255,255,.65); }

.service-offer__details {
  z-index: 1;
  max-width: 680px;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  color: rgba(10,10,10,.64);
  opacity: 0;
  transform: translateY(16px);
  transition:
    max-height 520ms cubic-bezier(.16,1,.3,1),
    margin 520ms cubic-bezier(.16,1,.3,1),
    opacity 280ms ease,
    transform 440ms cubic-bezier(.16,1,.3,1);
}

.service-offer:hover .service-offer__details,
.service-offer:focus .service-offer__details,
.service-offer:focus-within .service-offer__details {
  max-height: 190px;
  margin-top: 18px;
  opacity: 1;
  transform: translateY(0);
}

.service-offer__details > p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(11px, .82vw, 14px);
  line-height: 1.45;
}

.service-offer__details ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
}

.service-offer__details li {
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  color: var(--service-tag-color, #151515);
  font-size: clamp(9px, .7vw, 12px);
  font-weight: 500;
  line-height: 1.15;
  background: var(--service-tag-bg, #d8d8d4);
  box-shadow: none;
}

.service-offer__details li::before { display: none; }

.service-offer--dark .service-offer__details li {
  color: var(--service-tag-color);
  background: var(--service-tag-bg);
  box-shadow: none;
}

.service-offer--accent .service-offer__details li {
  color: var(--service-tag-color);
  background: var(--service-tag-bg);
}

.service-offer__footer {
  z-index: 2;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(16px, 1.7vw, 26px);
  padding-top: 0;
}

.service-offer__footer strong {
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .025em;
}

/* Что оплачивается отдельно — сразу под ценой: «Без скрытых доплат» в заголовке остаётся правдой.
   Подпись висит под ценой и не сдвигает её — цены в соседних карточках стоят на одной линии */
.service-offer__footer strong {
  position: relative;
}

.service-offer__footer .service-offer__extra {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  white-space: nowrap;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  opacity: .62;
}

.service-offer__footer a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 42px;
  padding: 5px 18px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  background: #0a0a0a;
  transition: transform 260ms ease, background 260ms ease;
}

.service-offer__footer a:hover,
.service-offer__footer a:focus-visible {
  background: #252525;
  transform: translateX(3px);
}

.service-offer--dark .service-offer__footer a {
  color: #0a0a0a;
  background: #ffd240;
}

@media (max-width: 1100px) {
  .service-offer--maps,
  .service-offer--websites,
  .service-offer--crm,
  .service-offer--seo,
  .service-offer--marketing,
  .service-offer--bots { grid-column: span 6; }

  .service-offer__intro { max-width: 82%; }
}

@media (max-width: 1100px) {
  .hero__copy {
    padding-top: 104px;
  }

  .hero__stage {
    height: 58vh;
  }

  .float-card {
    width: 210px;
    min-height: 78px;
    gap: 11px;
    padding: 11px 12px;
  }
}

@media (max-width: 760px) {
  :root {
    --frame-radius: 0px;
  }

  .page-shell {
    padding: 0;
  }

  .hero {
    min-height: max(780px, 100svh);
  }

  .hero__copy {
    padding: 92px 16px 0;
  }

  .hero__eyebrow {
    margin-bottom: 17px;
    font-size: 8px;
    letter-spacing: 0.15em;
  }

  .hero__title {
    font-size: clamp(68px, 23.5vw, 112px);
    line-height: 0.84;
  }

  .hero__subtitle {
    max-width: 350px;
    margin-top: 18px;
    font-size: 14px;
  }

  .hero__subtitle br {
    display: none;
  }

  .hero__actions {
    margin-top: 17px;
  }

  .hero__cta {
    min-height: 44px;
    padding: 0 20px;
  }

  .hero__stage {
    height: 500px;
    min-height: 500px;
  }

  .float-card {
    width: min(44vw, 172px);
    min-height: 78px;
    gap: 9px;
    padding: 10px;
    border-radius: 14px;
  }

  .float-card__icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    border-radius: 8px;
  }

  .float-card__icon svg {
    width: 15px;
    height: 15px;
  }

  .float-card__headline {
    font-size: 12px;
    line-height: 1.08;
  }

  .hero-person {
    width: min(88vw, 380px);
    bottom: -18%;
  }

  .hero-sculpture {
    width: min(76vw, 310px);
    bottom: 0;
  }

  .hero__formula {
    display: none;
  }

  .process {
    height: calc(100svh + 280vh);
  }

  .process__sticky {
    min-height: 620px;
    padding: 20px 16px 12px;
  }

  .process__header {
    display: grid;
    place-items: center;
    padding-bottom: 18px;
    text-align: center;
  }

  .process__header h2 {
    font-size: clamp(54px, 17vw, 72px);
  }

  .process-step {
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: min-content minmax(0, 1fr);
  }

  .process-step__number {
    grid-row: 1 / 3;
    font-size: 82px;
  }

  .process-step__headline {
    grid-column: 2;
    grid-row: 1;
    padding: 16px 0 10px 12px;
    transform: none;
  }

  .process-step__headline h3 {
    font-size: 14px;
  }

  .process-step__headline > span {
    width: 42px;
    height: 2px;
    margin-right: 4px;
  }

  .process-step__content {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    padding: 8px 8px 16px 12px;
  }

  .process-step__content p {
    font-size: 11px;
    line-height: 1.45;
  }

  .process-step__result {
    margin-top: 10px !important;
    padding-left: 10px;
    font-size: 11.5px !important;
  }

  .process-step__content ul {
    gap: 6px;
    margin-top: 14px;
  }

  .process-step__content li {
    padding-left: 15px;
    font-size: 9px;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .hero__copy {
    padding-top: 96px;
  }

  .hero__title {
    font-size: clamp(78px, 9.8vw, 142px);
  }

  .hero__subtitle {
    margin-top: 16px;
  }

  .hero__stage {
    height: 55vh;
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  .portfolio-surface {
    padding-bottom: 64px;
    border-radius: 30px;
  }

  .case-reel {
    min-height: 860px;
    padding: 28px 16px 24px;
  }

  .case-reel__header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .case-reel__header p { margin-bottom: 16px; }
  .case-reel__header h2 { font-size: clamp(58px, 18vw, 76px); }
  .case-reel__header span { display: none; }

  .case-carousel { height: 690px; }

  .case-carousel__viewport { transform: translateY(26px); }

  .case-card {
    width: calc(100vw - 40px);
    height: 360px;
    border-radius: 20px;
    transform:
      translate(-50%, -50%)
      translateY(calc(var(--offset) * 84px))
      translateZ(calc(var(--depth) * -85px))
      rotateX(calc(var(--offset) * -3deg))
      scale(var(--stack-scale));
  }

  .case-card[data-expanded="true"],
  .case-card[data-active="true"]:hover,
  .case-card[data-active="true"]:focus-visible {
    transform: translate(-50%, -50%) translateZ(36px) scale(1.015);
  }

  .case-card__visual > img { width: min(68vw, 260px); }

  .case-card__caption {
    min-height: 74px;
    padding: 18px 18px 16px;
  }

  .case-card__caption h3 { font-size: 13px; }
  .case-card__caption p { font-size: 10px; }

  .case-carousel__status {
    right: 4px;
    bottom: 0;
  }

  .services-pricing {
    padding: 44px 12px 64px;
  }

  .services-pricing__header {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    min-width: 0;
    margin-bottom: 34px;
    text-align: center;
  }

  .services-pricing__header > p {
    width: min(100%, 280px);
    padding-bottom: 0;
    overflow-wrap: anywhere;
  }
  .services-pricing__header > span { display: none; }
  .services-pricing__header h2 {
    font-size: clamp(50px, 14vw, 58px);
    white-space: normal;
  }

  .services-pricing__grid { grid-template-columns: 1fr; }

  .service-offer--maps,
  .service-offer--websites,
  .service-offer--crm,
  .service-offer--seo,
  .service-offer--marketing,
  .service-offer--bots {
    grid-column: 1;
  }

  .service-offer {
    min-height: 340px;
    padding: 22px 20px;
    border-radius: 26px;
  }

  .service-offer__icon {
    top: 20px;
    right: 16px;
    width: 135px;
    height: 135px;
  }

  .service-offer__intro {
    max-width: 100%;
    padding-top: 112px;
  }

  .service-offer__intro h3 { font-size: clamp(34px, 10.6vw, 48px); }

  .service-offer__footer {
    gap: 12px;
    margin-top: 18px;
  }

  .service-offer__footer strong { font-size: 23px; }
  .service-offer__footer a { padding-inline: 14px; }
}

.client-questions {
  position: relative;
  z-index: 3;
  padding: clamp(76px, 8vw, 150px) clamp(20px, 5vw, 92px) clamp(96px, 10vw, 180px);
  overflow: hidden;
  color: #f7f7f4;
  background: #090909;
}

.client-questions__header {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(220px, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
  width: min(100%, 1680px);
  margin: 0 auto clamp(82px, 9vw, 150px);
}

.client-questions__header > p {
  margin: 0 0 12px;
  font-size: clamp(9px, .68vw, 12px);
  font-weight: 700;
  letter-spacing: .28em;
}

.client-questions__header h2 {
  margin: 0;
  max-width: 8.5em;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(68px, 7.6vw, 126px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.025em;
  text-align: center;
}

.client-questions__header > div {
  display: grid;
  gap: 8px;
  max-width: 340px;
  margin: 0 0 8px auto;
}

.client-questions__header strong {
  color: #f7f7f4;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 600;
}

.client-questions__header span {
  color: rgba(247, 247, 244, .56);
  font-size: clamp(13px, .9vw, 16px);
  line-height: 1.55;
}

.client-questions__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.35vw, 24px);
  width: min(100%, 1600px);
  margin: 0 auto;
}

.question-card {
  --question-card-radius: clamp(24px, 2vw, 34px);
  position: relative;
  min-height: clamp(330px, 24vw, 410px);
  min-width: 0;
  border-radius: var(--question-card-radius);
  outline: none;
  opacity: 0;
  perspective: 1400px;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 560ms ease,
    transform 820ms cubic-bezier(.16, 1, .3, 1);
  cursor: pointer;
}

.question-card:nth-child(2),
.question-card:nth-child(5) {
  transition-delay: 80ms;
}

.question-card:nth-child(3),
.question-card:nth-child(6) {
  transition-delay: 160ms;
}

.question-card.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.question-card:focus-visible {
  outline: 2px solid rgba(247, 247, 244, .85);
  outline-offset: 5px;
}

.question-card__inner {
  position: relative;
  width: 100%;
  min-height: inherit;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 760ms cubic-bezier(.16, 1, .3, 1);
}

.question-card[data-flipped="true"] .question-card__inner {
  transform: rotateY(180deg);
}

.question-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: inherit;
  padding: clamp(28px, 2.6vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(247, 247, 244, .16);
  border-radius: inherit;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.question-card__front {
  color: #f7f7f4;
  background: #151515;
}

.question-card__back {
  color: #0a0a0a;
  background: #e8e7e2;
  border-color: rgba(0, 0, 0, .08);
  transform: rotateY(180deg);
}

.question-card__eyebrow {
  display: block;
  margin-bottom: clamp(42px, 4vw, 72px);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(9px, .65vw, 11px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .24em;
}

.question-card__front .question-card__eyebrow {
  color: rgba(247, 247, 244, .45);
}

.question-card__back .question-card__eyebrow {
  color: rgba(10, 10, 10, .48);
}

.question-card h3 {
  max-width: 9.5em;
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(34px, 2.75vw, 50px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-shadow: none;
}

.question-card__back p {
  margin: 0;
  max-width: 27em;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(16px, 1.12vw, 20px);
  font-weight: 400;
  line-height: 1.52;
  text-shadow: none;
}

.question-card__turn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding-top: 28px;
  text-align: center;
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(9px, .65vw, 11px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .18em;
}

.question-card__front .question-card__turn {
  color: rgba(247, 247, 244, .62);
  border-top: 1px solid rgba(247, 247, 244, .14);
}

.question-card__back .question-card__turn {
  color: rgba(10, 10, 10, .55);
  border-top: 1px solid rgba(10, 10, 10, .12);
}

@media (hover: hover) and (pointer: fine) {
  .question-card.is-visible {
    animation: question-card-shake 12s ease-in-out infinite;
    animation-delay: 1.2s;
    transform-origin: center center;
  }

  .question-card:nth-child(2).is-visible { animation-delay: 3.2s; }
  .question-card:nth-child(3).is-visible { animation-delay: 5.2s; }
  .question-card:nth-child(4).is-visible { animation-delay: 7.2s; }
  .question-card:nth-child(5).is-visible { animation-delay: 9.2s; }
  .question-card:nth-child(6).is-visible { animation-delay: 11.2s; }

  .question-card.is-visible:hover,
  .question-card.is-visible:focus-visible {
    animation: none;
    transform: translate3d(0, 0, 0);
  }

  .question-card:hover .question-card__inner {
    transform: rotateY(180deg);
  }
}

@keyframes question-card-shake {
  0%,
  7%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  1.2% {
    transform: translate3d(-2px, 0, 0) rotate(-.18deg);
  }

  2.4% {
    transform: translate3d(2px, 0, 0) rotate(.18deg);
  }

  3.6% {
    transform: translate3d(-1px, 0, 0) rotate(-.1deg);
  }

  4.8% {
    transform: translate3d(1px, 0, 0) rotate(.1deg);
  }
}

@media (max-width: 1100px) {
  .client-questions__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .question-card {
    min-height: 340px;
  }

  .question-card:nth-child(n) {
    transition-delay: 0ms;
  }
}

@media (max-width: 900px) {
  .client-questions__header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .client-questions__header > div {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .client-questions {
    padding: 64px 12px 82px;
  }

  .client-questions__header {
    margin-bottom: 56px;
  }

  .client-questions__header h2 {
    max-width: 100%;
    font-size: clamp(50px, 14.5vw, 66px);
  }

  .client-questions__header > p {
    max-width: 270px;
    line-height: 1.5;
  }

  .client-questions__track {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .question-card {
    min-height: 330px;
  }

  .question-card__face {
    padding: 26px 24px;
  }

  .question-card__eyebrow {
    margin-bottom: 42px;
  }

  .question-card h3 {
    max-width: 8.8em;
    font-size: clamp(34px, 10.5vw, 44px);
  }

  .question-card__back p {
    font-size: 16px;
    line-height: 1.5;
  }
}

/* ===== «Вопросы перед стартом» на телефоне — лента, которую листают вбок =====
   Те же карточки-перевёртыши, но в один ряд: блок занимает около экрана вместо трёх.
   Следующая карточка выглядывает справа — видно, что ленту можно листать.
   Поля сверху и снизу — место для поворота карточки, иначе лента обрезала бы её углы */
@media (max-width: 640px) {
  .client-questions__track {
    display: flex;
    gap: 12px;
    width: auto;
    margin: -28px -12px;
    padding: 28px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .client-questions__track::-webkit-scrollbar {
    display: none;
  }

  /* Карточки за краем ленты не ждут появления при прокрутке — видны сразу */
  .question-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
    opacity: 1;
    transform: none;
  }
}

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

  .process {
    height: auto;
  }

  .process__sticky {
    position: relative;
    height: auto;
    min-height: 0;
  }

  .process__steps {
    display: block;
  }

  .process-step {
    min-height: 330px;
  }

  .process-step__content {
    opacity: 1;
    transform: none;
  }

  .question-card {
    opacity: 1;
    transform: none;
  }
}

/* ===== Главная: первый экран ===== */

.hero__brand,
.hero__claim {
  display: block;
}

.hero__claim {
  max-width: 24em;
  margin: clamp(16px, 2.2vh, 26px) auto 0;
  font-size: clamp(22px, 2.05vw, 34px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-transform: none;
}

.hero__actions {
  flex-wrap: wrap;
  gap: 10px;
}

.hero__cta--ghost {
  border: 1px solid rgba(10, 10, 10, .16);
  color: var(--quantum-black);
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 10px 24px rgba(10, 10, 10, .06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__cta--ghost:hover {
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(10, 10, 10, .1);
}

/* ===== Первый экран: условия работы =====
   Тот же «стеклянный» материал, что у карточек услуг вокруг куба: крупное слово — суть,
   подпись — расшифровка. На телефоне — четыре плитки 2×2 под кнопками,
   на компьютере — одна панель по центру внизу первого экрана.
   Прошлый вариант — тёмная плашка сверху слева (1ca0e08) — владелец откатил */
.hero__trust {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(calc(100% - 32px), 420px);
  margin: 20px auto 0;
  padding: 0;
  list-style: none;
}

.hero__trust li {
  display: grid;
  /* Заголовки — на одной линии, даже если подпись у соседа переносится на две строки */
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(232, 232, 230, .68));
  box-shadow:
    0 14px 30px rgba(10, 10, 10, .08),
    0 1px 0 rgba(255, 255, 255, .98) inset,
    0 0 0 1px rgba(10, 10, 10, .035) inset;
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  text-align: left;
}

.hero__trust strong {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--quantum-black);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.hero__trust strong::before {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--solar-core);
  box-shadow: 0 0 0 3px rgba(255, 210, 64, .28);
}

.hero__trust span {
  padding-left: 15px;
  color: rgba(10, 10, 10, .6);
  font-size: 12px;
  line-height: 1.3;
}

@media (min-width: 761px) {
  .hero__trust {
    position: absolute;
    bottom: 22px;
    left: 50%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(960px, calc(100% - 64px));
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(232, 232, 230, .68));
    box-shadow:
      0 20px 40px rgba(10, 10, 10, .12),
      0 0 32px rgba(255, 255, 255, .9),
      0 1px 0 rgba(255, 255, 255, .98) inset,
      0 0 0 1px rgba(10, 10, 10, .035) inset;
    transform: translateX(-50%);
    backdrop-filter: blur(22px) saturate(1.08);
    -webkit-backdrop-filter: blur(22px) saturate(1.08);
  }

  .hero__trust li {
    padding: 12px 18px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero__trust li + li {
    border-left: 1px solid rgba(10, 10, 10, .08);
  }

  .hero__trust strong {
    font-size: clamp(15px, 1.25vw, 19px);
  }
}

/* Подпись «Система — рост» справа внизу не помещается рядом с панелью условий */
@media (min-width: 761px) and (max-width: 1279px) {
  .hero__formula {
    display: none;
  }
}

@media (min-width: 1280px) {
  .hero__trust {
    width: min(960px, calc(100% - 400px));
  }
}

.system__header {
  display: grid;
  max-width: 1600px;
  grid-template-columns: minmax(80px, 1fr) minmax(0, auto) minmax(80px, 1fr);
  gap: 28px;
  align-items: end;
  margin: 0 auto clamp(38px, 4.8vw, 72px);
}

.system__header > * {
  margin: 0;
}

.system__header > p,
.system__header > span {
  padding-bottom: 8px;
  font-size: clamp(8px, .65vw, 11px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ===== Вводный текст системы под заголовком ===== */
.system__header > span {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: 760px;
  padding-bottom: 0;
  color: rgba(10, 10, 10, .5);
  text-align: center;
}

.system__header h2 {
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(62px, 7vw, 116px);
  font-weight: 400;
  line-height: .8;
  letter-spacing: .01em;
  text-align: center;
}

/* ===== «Узнаёте себя?»: тест на карточках ===== */

.pains {
  position: relative;
  z-index: 20;
  padding: clamp(72px, 7vw, 132px) clamp(20px, 4vw, 72px);
  color: #f7f7f4;
  background:
    radial-gradient(circle at 12% 88%, rgba(255, 210, 64, .08), transparent 32%),
    var(--quantum-black);
}

.pains__layout {
  display: grid;
  max-width: 1600px;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
  margin: 0 auto;
}

.pains__aside {
  position: sticky;
  top: 100px;
}

.pains__eyebrow {
  margin: 0 0 22px;
  color: rgba(247, 247, 244, .55);
  font-size: clamp(9px, .68vw, 11px);
  font-weight: 700;
  letter-spacing: .22em;
}

.pains h2 {
  margin: 0;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(64px, 7.2vw, 124px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.01em;
}

.pains__lead {
  max-width: 24em;
  margin: 26px 0 0;
  color: rgba(247, 247, 244, .66);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
}

/* Итог: какие услуги собираются из отмеченного */

.pains-result {
  margin-top: clamp(32px, 3.4vw, 52px);
  padding: clamp(20px, 2vw, 30px);
  border: 1px solid rgba(247, 247, 244, .14);
  border-radius: 28px;
  background: linear-gradient(160deg, #181818, #0f0f0f);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.pains-result__head {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
}

.pains-result__label {
  color: rgba(247, 247, 244, .55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.pains-result__count {
  color: rgba(247, 247, 244, .5);
  font-size: 13px;
}

.pains-result__count b {
  color: #f7f7f4;
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.pains-result__meter {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 18px;
}

.pains-result__meter i {
  height: 4px;
  border-radius: 4px;
  background: rgba(247, 247, 244, .12);
  transition: background 300ms ease, box-shadow 300ms ease;
}

.pains-result__meter i.is-on {
  background: var(--solar-core);
  box-shadow: 0 0 12px rgba(255, 210, 64, .5);
}

.pains-result__empty {
  margin: 0;
  color: rgba(247, 247, 244, .5);
  font-size: 14px;
  line-height: 1.5;
}

.pains-result[data-has-selection="true"] .pains-result__empty {
  display: none;
}

.pains-result__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pains-result__list a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--quantum-black);
  background: #f7f7f4;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  animation: pains-chip-in 450ms cubic-bezier(.22, 1, .36, 1);
  transition: background 200ms ease;
}

.pains-result__list a:hover {
  background: #ffffff;
}

.pains-result__list a:focus-visible {
  outline: 3px solid var(--solar-core);
  outline-offset: 2px;
}

@keyframes pains-chip-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.94);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.pains-result__cta {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border-radius: 999px;
  color: var(--quantum-black);
  background: var(--solar-core);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 260ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 260ms ease;
}

.pains-result__cta:hover {
  box-shadow: 0 14px 30px rgba(255, 210, 64, .25);
  transform: translateY(-2px);
}

.pains-result__cta:focus-visible {
  outline: 3px solid #f7f7f4;
  outline-offset: 3px;
}

/* Карточки с ситуациями: по нажатию карточка становится жёлтой */

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

.pain-card {
  position: relative;
  display: flex;
  min-height: clamp(220px, 16vw, 260px);
  flex-direction: column;
  padding: clamp(22px, 2vw, 30px);
  border: 1px solid rgba(247, 247, 244, .12);
  border-radius: 26px;
  color: #f7f7f4;
  background: #141414;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 350ms ease,
    border-color 300ms ease,
    color 300ms ease,
    box-shadow 450ms ease,
    transform 450ms cubic-bezier(.16, 1, .3, 1);
}

.pain-card:hover {
  border-color: rgba(247, 247, 244, .32);
  transform: translateY(-4px);
}

.pain-card:active {
  transform: scale(.98);
}

.pain-card__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.pain-card__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.pain-card__check {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1.5px solid rgba(247, 247, 244, .3);
  border-radius: 50%;
  transition:
    background 250ms ease,
    border-color 250ms ease;
}

.pain-card__check::after {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid var(--solar-core);
  border-left: 2px solid var(--solar-core);
  content: "";
  transform: translate(-50%, -50%) rotate(-45deg) scale(0);
  transition: transform 300ms cubic-bezier(.22, 1.4, .36, 1);
}

.pain-card:hover .pain-card__check {
  border-color: rgba(247, 247, 244, .75);
}

.pain-card__text {
  margin-block: auto;
  padding-top: 20px;
  font-size: clamp(20px, 1.6vw, 27px);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.03em;
}

.pain-card__solution {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 300ms ease,
    transform 400ms cubic-bezier(.22, 1, .36, 1);
}

.pain-card.is-selected {
  border-color: var(--solar-core);
  color: var(--quantum-black);
  background: var(--solar-core);
  box-shadow: 0 24px 60px rgba(255, 210, 64, .18);
}

.pain-card.is-selected .pain-card__check {
  border-color: var(--quantum-black);
  background: var(--quantum-black);
}

.pain-card.is-selected .pain-card__check::after {
  transform: translate(-50%, -50%) rotate(-45deg) scale(1);
}

.pain-card.is-selected .pain-card__solution {
  opacity: 1;
  transform: none;
}

.pain-card:has(.pain-card__input:focus-visible) {
  outline: 3px solid var(--solar-core);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .pains__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  /* Заголовок — сверху, итог — под карточками и «прилипает» к низу экрана, пока их листаешь */
  .pains__aside {
    display: contents;
  }

  .pains__eyebrow,
  .pains h2,
  .pains__lead {
    order: 1;
  }

  .pains__cards {
    order: 2;
    margin-top: 36px;
  }

  .pains-result {
    position: sticky;
    z-index: 5;
    bottom: 12px;
    order: 3;
    margin-top: 28px;
  }
}

@media (max-width: 760px) {
  .pains {
    padding: 64px 16px 56px;
  }

  .pains h2 {
    font-size: clamp(56px, 17vw, 72px);
  }

  .pains__cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .pain-card {
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
  }

  .pain-card__text {
    padding-top: 16px;
    font-size: 21px;
  }

  .pain-card__solution {
    font-size: 10px;
  }

  .pains-result {
    padding: 16px;
    border-radius: 22px;
  }

  .pains-result__meter {
    margin: 10px 0 12px;
  }

  .pains-result__empty {
    display: none;
  }

  .pains-result__list {
    flex-wrap: nowrap;
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pains-result__list::-webkit-scrollbar {
    display: none;
  }

  .pains-result__list a {
    min-height: 36px;
    font-size: 13px;
    white-space: nowrap;
  }

  .pains-result__cta {
    min-height: 48px;
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pain-card,
  .pain-card__check,
  .pain-card__check::after,
  .pain-card__solution,
  .pains-result__meter i,
  .pains-result__cta {
    transition: none;
  }

  .pain-card:hover,
  .pain-card:active {
    transform: none;
  }

  .pains-result__list a {
    animation: none;
  }
}

/* Цена проблемы и ориентир по стоимости */

.pain-card__cost {
  margin-top: 12px;
  color: rgba(10, 10, 10, .72);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 300ms ease,
    transform 400ms cubic-bezier(.22, 1, .36, 1);
}

.pain-card.is-selected .pain-card__cost {
  opacity: 1;
  transform: none;
}

.pains-result__list em {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(10, 10, 10, .18);
  color: rgba(10, 10, 10, .55);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
}

.pains-result__price {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 247, 244, .12);
}

.pains-result__price-label {
  display: block;
  color: rgba(247, 247, 244, .5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.pains-result__price p {
  margin: 8px 0 0;
  color: rgba(247, 247, 244, .72);
  font-size: 15px;
  line-height: 1.4;
}

.pains-result__price .pains-result__price-main {
  color: #f7f7f4;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 500;
  letter-spacing: -.02em;
}

.pains-result__price b {
  color: var(--solar-core);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pains-result__price small {
  display: block;
  margin-top: 10px;
  color: rgba(247, 247, 244, .42);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  /* На телефоне цена проблемы раскрывается, а не занимает место заранее */
  .pain-card__cost {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition:
      max-height 400ms cubic-bezier(.22, 1, .36, 1),
      margin 400ms cubic-bezier(.22, 1, .36, 1),
      opacity 300ms ease;
  }

  .pain-card.is-selected .pain-card__cost {
    max-height: 120px;
    margin-top: 10px;
  }

  .pains-result__price {
    margin-top: 12px;
    padding-top: 10px;
  }

  .pains-result__price .pains-result__price-main {
    font-size: 18px;
  }

  .pains-result__price p {
    margin-top: 4px;
    font-size: 13px;
  }

  .pains-result__price-label,
  .pains-result__price small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pain-card__cost {
    transition: none;
  }
}

/* ===== Услуги: этапы и кнопки ===== */

.service-offer__intro > .service-offer__stage {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 10px;
  border: 1px solid rgba(10, 10, 10, .16);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
}

.service-offer--dark .service-offer__stage {
  border-color: rgba(255, 255, 255, .24);
}

.service-offer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.service-offer__footer .service-offer__discuss {
  border: 1px solid rgba(10, 10, 10, .2);
  color: var(--quantum-black);
  background: transparent;
}

.service-offer__footer .service-offer__discuss:hover,
.service-offer__footer .service-offer__discuss:focus-visible {
  border-color: var(--quantum-black);
  background: rgba(255, 255, 255, .6);
}

.service-offer--dark .service-offer__footer .service-offer__discuss {
  border-color: rgba(255, 255, 255, .3);
  color: #ffffff;
  background: transparent;
}

.service-offer--dark .service-offer__footer .service-offer__discuss:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, .08);
}

/* ===== «Как это работает вместе» ===== */

.system {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 3vw, 56px) clamp(20px, 4vw, 72px) clamp(56px, 6vw, 104px);
  color: var(--quantum-black);
}

.system__flow {
  position: relative;
  display: grid;
  max-width: 1600px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, .8vw, 14px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.system__flow::before {
  position: absolute;
  z-index: 0;
  top: 54px;
  right: 6%;
  left: 6%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(10, 10, 10, .08), rgba(10, 10, 10, .3), rgba(10, 10, 10, .08));
}

.system-step {
  --stage-color: #caff67;
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 22px 22px 24px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(240, 240, 237, .75));
  box-shadow: 0 18px 44px rgba(10, 10, 10, .07);
}

.system-step--convince { --stage-color: #8fd2ff; }
.system-step--keep { --stage-color: #b99cff; }
.system-step--measure { --stage-color: #ffd240; }

.system-step__stage {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0a0a0a;
  background: var(--stage-color);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .16em;
}

.system-step__index {
  margin-top: 22px;
  color: rgba(10, 10, 10, .18);
  font-size: clamp(44px, 3.6vw, 64px);
  font-weight: 300;
  line-height: .8;
  letter-spacing: -.06em;
}

.system-step h3 {
  margin: 18px 0 0;
  font-size: clamp(20px, 1.5vw, 25px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.system-step p {
  margin: 10px 0 18px;
  color: rgba(10, 10, 10, .62);
  font-size: 14px;
  line-height: 1.5;
}

.system-step__tools {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(10, 10, 10, .1);
  color: rgba(10, 10, 10, .72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ===== Цвет этапов в схеме — только метки =====
   Карточки шагов светлые: крупные жёлтая и чёрная плашки есть у «Связок» ниже,
   и цветные шаги сливались с ними. Метка этапа: «Привлечь» — белая,
   «Убедить» — жёлтая, «Не потерять» — чёрная, «Посчитать» — серебристая. */
.system-step--attract {
  --stage-color: #ffffff;
}

.system-step--attract .system-step__stage {
  box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .18);
}

.system-step--convince {
  --stage-color: var(--solar-core);
}

.system-step--keep {
  --stage-color: var(--quantum-black);
}

.system-step--keep .system-step__stage {
  color: #ffffff;
}

.system-step--measure {
  --stage-color: #c0c0c0;
}

/* ===== Подзаголовок «Связки»: отделяет готовые связки от схемы ===== */
.system__subheader {
  max-width: 760px;
  margin: clamp(72px, 8vw, 128px) auto clamp(24px, 3vw, 40px);
  text-align: center;
}

.system__subheader p {
  margin: 0;
  color: rgba(10, 10, 10, .5);
  font-size: clamp(9px, .7vw, 11px);
  font-weight: 700;
  letter-spacing: .2em;
}

.system__subheader h3 {
  margin: 12px 0 0;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(44px, 5vw, 84px);
  font-weight: 400;
  line-height: .9;
}

.system__subheader span {
  display: block;
  margin-top: 16px;
  color: rgba(10, 10, 10, .6);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.55;
}

.system__subheader + .system__bundles {
  margin-top: 0;
}

.system__bundles {
  display: grid;
  max-width: 1600px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, .8vw, 14px);
  margin: clamp(28px, 3vw, 48px) auto 0;
}

.bundle {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 38px);
  border-radius: clamp(24px, 2.8vw, 42px);
  background: linear-gradient(145deg, #dededb, #f7f7f4 64%, #d8d8d4);
  box-shadow: 0 18px 50px rgba(10, 10, 10, .08);
}

.bundle--dark {
  color: #ffffff;
  background: linear-gradient(145deg, #080808, #242423 66%, #0e0e0e);
}

.bundle--accent {
  background: linear-gradient(145deg, #ffd240, #f3bd18);
}

.bundle__label {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  opacity: .6;
}

.bundle h3 {
  margin: 16px 0 0;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(34px, 3vw, 50px);
  font-weight: 400;
  line-height: .9;
  text-transform: uppercase;
}

.bundle > p:not(.bundle__label) {
  max-width: 26em;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: .72;
}

.bundle ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 26px;
  padding: 0;
  list-style: none;
}

.bundle li {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-weight: 500;
}

.bundle--dark li {
  color: #ffffff;
  background: rgba(255, 255, 255, .1);
}

.bundle--accent li {
  background: rgba(255, 255, 255, .45);
}

.bundle__button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 0 22px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--quantum-black);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1), background 200ms ease;
}

.bundle__button:hover {
  transform: translateY(-2px);
}

.bundle--dark .bundle__button {
  color: #0a0a0a;
  background: var(--solar-core);
}

.bundle__button:focus-visible {
  outline: 3px solid rgba(10, 10, 10, .85);
  outline-offset: 3px;
}

.system__note {
  max-width: 1600px;
  margin: 18px auto 0;
  color: rgba(10, 10, 10, .5);
  font-size: 13px;
  text-align: center;
}

/* ===== Команда ===== */

.team {
  position: relative;
  z-index: 12;
  padding: clamp(12px, 2vw, 28px);
  background: var(--quantum-black);
}

.team__panel {
  display: grid;
  max-width: 1600px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(32px, 4.6vw, 80px);
  border-radius: 44px;
  color: var(--quantum-black);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .9), transparent 34%),
    linear-gradient(112deg, #ededec, #d9d9d6);
}

.team__eyebrow {
  margin: 0 0 22px;
  font-size: clamp(9px, .68vw, 11px);
  font-weight: 700;
  letter-spacing: .22em;
}

.team h2 {
  margin: 0;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(48px, 4.4vw, 80px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.01em;
}

.team__intro > p:not(.team__eyebrow) {
  max-width: 34em;
  margin: 26px 0 0;
  color: rgba(10, 10, 10, .68);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
}

.team__intro > .team__promise {
  padding-left: 16px;
  border-left: 3px solid var(--solar-core);
  color: var(--quantum-black) !important;
  font-weight: 500;
}

/* Принципы работы вместо карточек людей */
.team__principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle {
  display: flex;
  min-height: clamp(200px, 16vw, 270px);
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 2.2vw, 34px);
  border: 1px solid rgba(10, 10, 10, .06);
  border-radius: clamp(22px, 2.2vw, 32px);
  background: linear-gradient(160deg, #f6f6f4, #e3e3df);
  box-shadow: 0 18px 50px rgba(10, 10, 10, .06);
}

.principle h3 {
  margin: 0;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(30px, 2.6vw, 44px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.01em;
}

.principle p {
  max-width: 24em;
  margin: 0;
  color: rgba(10, 10, 10, .66);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.5;
}

/* ===== Адаптив новых секций ===== */

@media (max-width: 1100px) {
  .system__flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system__flow::before {
    display: none;
  }

  .system-step:last-child {
    grid-column: 1 / -1;
    min-height: 0;
  }

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

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

@media (max-width: 760px) {
  /* +130 px к прежним 900 — место под плитки условий работы: куб и карточки услуг вокруг него
     прижаты к низу первого экрана и иначе уходили бы под плитки */
  .hero {
    min-height: max(1030px, 100svh);
    border-radius: 0 0 30px 30px;
  }

  .hero__claim {
    max-width: 15em;
    font-size: clamp(20px, 6vw, 25px);
  }

  .hero__subtitle {
    margin-top: 14px;
  }

  .hero__cta {
    flex: 1 1 150px;
  }

  .hero__actions {
    width: min(100%, 360px);
  }

  .system__header {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    margin-bottom: 30px;
    text-align: center;
  }

  .system__header h2 {
    font-size: clamp(48px, 13.6vw, 60px);
  }

  .service-offer__footer {
    flex-wrap: wrap;
  }

  /* Кнопки переносятся под цену — подпись о доплатах встаёт в поток, чтобы не наехать на них */
  .service-offer__footer .service-offer__extra {
    position: static;
    margin-top: 6px;
    white-space: normal;
  }

  .system {
    padding: 8px 12px 56px;
  }

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

  .system-step {
    min-height: 0;
    padding: 20px;
    border-radius: 24px;
  }

  .system-step__index {
    position: absolute;
    top: 18px;
    right: 20px;
    margin: 0;
    font-size: 40px;
  }

  .bundle {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .team {
    padding: 8px;
  }

  .team__panel {
    padding: 36px 20px 20px;
    border-radius: 30px;
  }

  .team h2 {
    font-size: clamp(46px, 13vw, 60px);
  }

  .team__principles {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .principle {
    min-height: 0;
    gap: 12px;
    padding: 22px 20px;
    border-radius: 22px;
  }

  .principle h3 {
    font-size: 30px;
  }
}

/* ===== Общие компоненты: шапка, форма заявки, подвал ===== */

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--quantum-black);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms ease;
}

.skip-link:focus-visible {
  outline: 3px solid var(--solar-core);
  outline-offset: 2px;
  transform: translateY(0);
}

.hero__cta {
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 12px;
  right: 0;
  left: 0;
  padding-inline: clamp(12px, 2vw, 28px);
  pointer-events: none;
  transition: transform 460ms cubic-bezier(.22, 1, .36, 1);
}

.site-header.is-hidden:not(.is-open):not(:focus-within) {
  transform: translateY(calc(-100% - 20px));
}

.case-study-page .site-header__bar {
  background: rgba(247, 247, 244, .9);
}

.site-header__bar {
  display: flex;
  max-width: 1600px;
  min-height: 58px;
  gap: 20px;
  align-items: center;
  margin: 0 auto;
  padding: 8px 8px 8px 24px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 29px;
  color: var(--quantum-black);
  background: rgba(247, 247, 244, .76);
  box-shadow:
    0 14px 40px rgba(10, 10, 10, .1),
    0 1px 0 rgba(255, 255, 255, .9) inset;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  pointer-events: auto;
}

.site-header__brand {
  flex: 0 0 auto;
  color: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
}

.site-header__nav {
  display: flex;
  gap: clamp(4px, .5vw, 10px);
  margin-inline: auto;
}

/* ===== Скруглённая плашка выбранного пункта меню ===== */
.site-header__nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(10, 10, 10, .72);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: color 200ms ease, background-color 200ms ease;
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible,
.site-header__nav a[aria-current="page"] {
  color: var(--quantum-black);
  background: var(--solar-core);
}

.site-header__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.site-header__messenger,
.site-header__toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(10, 10, 10, .12);
  border-radius: 50%;
  color: var(--quantum-black);
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}

.site-header__messenger:hover,
.site-header__toggle:hover {
  border-color: rgba(10, 10, 10, .3);
  background: #ffffff;
}

/* Значок MAX — подпись вместо логотипа. Селектор посильнее, чтобы на тёмных страницах кейсов текст не перекрасился */
.site-header .site-header__messenger--max {
  color: var(--quantum-black);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
}

/* На узких телефонах два значка не помещаются в шапку — MAX остаётся в кнопках внизу экрана, форме и подвале */
@media (max-width: 480px) {
  .site-header .site-header__messenger--max {
    display: none;
  }
}

.site-header__messenger svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header .site-header__cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--quantum-black);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1), background 200ms ease;
}

.site-header .site-header__cta:hover {
  background: #262626;
  transform: translateY(-1px);
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid rgba(255, 210, 64, .9);
  outline-offset: 3px;
}

.site-header__toggle {
  display: none;
  gap: 5px;
  align-content: center;
}

.site-header__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 260ms ease;
}

.site-header.is-open .site-header__toggle span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.site-header.is-open .site-header__toggle span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .site-header__bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .site-header__toggle {
    display: grid;
  }

  .site-header__nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px 0 10px;
    border-top: 1px solid rgba(10, 10, 10, .1);
  }

  .site-header.is-open .site-header__nav {
    display: flex;
  }

  .site-header__nav a {
    padding: 14px 12px;
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .site-header__bar {
    padding-left: 18px;
  }

  .site-header__brand {
    font-size: 20px;
  }

  .site-header__messenger {
    display: none;
  }

  .site-header .site-header__cta {
    padding: 0 16px;
    font-size: 13px;
  }
}

/* Секция заявки */

.contact {
  position: relative;
  z-index: 3;
  padding: 0 clamp(12px, 2vw, 28px) clamp(12px, 2vw, 28px);
  background: #090909;
}

.contact__panel {
  display: grid;
  max-width: 1600px;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 96px);
  margin: 0 auto;
  padding: clamp(28px, 4.4vw, 76px);
  border-radius: 44px;
  color: var(--quantum-black);
  background:
    radial-gradient(circle at 12% 100%, rgba(255, 210, 64, .2), transparent 34%),
    var(--neural-white);
}

.contact__intro {
  min-width: 0;
  container-type: inline-size;
}

.contact__eyebrow {
  margin: 0 0 22px;
  font-size: clamp(9px, .68vw, 11px);
  font-weight: 700;
  letter-spacing: .22em;
}

.contact h2 {
  margin: 0;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  /* Размер зависит от колонки, чтобы длинное слово не заходило в отступ перед формой. */
  font-size: clamp(36px, 14.6cqi, 100px);
  font-weight: 400;
  line-height: .84;
  letter-spacing: -.02em;
}

.contact__lead {
  max-width: 30em;
  margin: 26px 0 0;
  color: rgba(10, 10, 10, .66);
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.55;
}

.contact__offer {
  display: grid;
  max-width: 520px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: end;
  margin-top: clamp(28px, 3vw, 44px);
  padding: 22px 22px 22px 26px;
  border-radius: 26px;
  background: var(--solar-core);
  box-shadow: 0 18px 40px rgba(255, 190, 0, .22);
}

.contact__offer-label {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.contact__offer p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.contact__offer-button,
.contact__messenger {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1), background 200ms ease;
}

.contact__offer-button {
  color: #ffffff;
  background: var(--quantum-black);
}

.contact__offer-button:hover,
.contact__messenger:hover {
  transform: translateY(-2px);
}

.contact__messengers {
  margin-top: clamp(28px, 3vw, 40px);
}

.contact__messengers p {
  margin: 0 0 12px;
  color: rgba(10, 10, 10, .55);
  font-size: 14px;
}

.contact__messengers div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact__messenger {
  min-width: 120px;
  border: 1px solid rgba(10, 10, 10, .2);
  color: var(--quantum-black);
}

/* Телефоны чуть уже, чтобы на телефоне помещались в одну строку */
.contact__messenger[href^="tel:"] {
  padding: 0 16px;
}

/* ===== Рабочее время в блоке заявки ===== */
.contact__messengers .contact__hours {
  max-width: 34em;
  margin: 14px 0 0;
  color: rgba(10, 10, 10, .5);
  font-size: 13px;
  line-height: 1.5;
}

.contact a:focus-visible,
.contact button:focus-visible {
  outline: 3px solid rgba(10, 10, 10, .85);
  outline-offset: 3px;
}

/* Форма заявки */

.lead-form {
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 40px);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(10, 10, 10, .08);
}

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

.lead-form__field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.lead-form__field > span,
.lead-form__services legend {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lead-form__field small {
  margin-left: 6px;
  color: rgba(10, 10, 10, .45);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
}

.lead-form input[type="text"],
.lead-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 15px 18px;
  border: 1px solid rgba(10, 10, 10, .14);
  border-radius: 16px;
  color: var(--quantum-black);
  background: #fafaf8;
  font: 400 16px/1.4 "Roboto", Arial, sans-serif;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.lead-form textarea {
  min-height: 104px;
  resize: vertical;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: rgba(10, 10, 10, .36);
}

.lead-form input[type="text"]:focus,
.lead-form textarea:focus {
  border-color: var(--quantum-black);
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 210, 64, .45);
}

.lead-form [aria-invalid="true"] {
  border-color: #d92d43 !important;
}

.lead-form__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lead-form__services legend {
  margin-bottom: 10px;
  padding: 0;
}

/* Выбор способа связи стоит перед полями имени и контакта */
.lead-form__method {
  margin-bottom: 4px;
}

.lead-chip {
  position: relative;
  cursor: pointer;
}

.lead-chip input,
.lead-form__consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.lead-chip span {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(10, 10, 10, .16);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.1;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.lead-chip:hover span {
  border-color: rgba(10, 10, 10, .4);
}

.lead-chip--accent span {
  border-color: rgba(230, 170, 0, .6);
  background: rgba(255, 210, 64, .22);
}

.lead-chip input:checked + span {
  border-color: var(--quantum-black);
  color: #ffffff;
  background: var(--quantum-black);
}

.lead-chip input:focus-visible + span,
.lead-form__consent input:focus-visible + span::before {
  outline: 3px solid rgba(255, 210, 64, .9);
  outline-offset: 2px;
}

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

.lead-form__consent {
  position: relative;
  display: block;
  cursor: pointer;
}

.lead-form__consent span {
  position: relative;
  display: block;
  padding-left: 34px;
  color: rgba(10, 10, 10, .7);
  font-size: 14px;
  line-height: 1.45;
}

.lead-form__consent span::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(10, 10, 10, .35);
  border-radius: 7px;
  content: "";
  background: #ffffff center / 14px no-repeat;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.lead-form__consent input:checked + span::before {
  border-color: var(--quantum-black);
  background-color: var(--quantum-black);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m3 8.5 3.2 3L13 4.5' fill='none' stroke='%23ffd240' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.lead-form__consent[data-invalid="true"] span::before {
  border-color: #d92d43;
}

.lead-form a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(10, 10, 10, .3);
  text-underline-offset: 3px;
}

.lead-form a:hover {
  text-decoration-color: currentColor;
}

.lead-form__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}

.lead-form__submit {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--quantum-black);
  box-shadow: 0 14px 30px rgba(10, 10, 10, .18);
  font: 600 16px/1 "Roboto", Arial, sans-serif;
  cursor: pointer;
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1), background 200ms ease;
}

.lead-form__submit:hover {
  background: #262626;
  transform: translateY(-2px);
}

.lead-form__submit:focus-visible {
  outline: 3px solid rgba(255, 210, 64, .9);
  outline-offset: 3px;
}

.lead-form__submit:disabled {
  opacity: .6;
  cursor: progress;
  transform: none;
}

.lead-form__policy {
  max-width: 260px;
  margin: 0;
  color: rgba(10, 10, 10, .5);
  font-size: 12px;
  line-height: 1.45;
}

.lead-form__status {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

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

.lead-form__status[data-tone="error"] {
  color: #c4223a;
}

.lead-form__success {
  display: grid;
  align-content: center;
  gap: 14px;
}

.lead-form__success strong {
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(40px, 3.6vw, 60px);
  font-weight: 400;
  line-height: .9;
}

.lead-form__success p {
  max-width: 28em;
  margin: 0;
  color: rgba(10, 10, 10, .66);
  font-size: 16px;
  line-height: 1.55;
}

/* ===== Экран после отправки заявки: что будет дальше ===== */
.lead-form__next {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: next-step;
}

.lead-form__next li {
  position: relative;
  padding: 12px 14px 12px 48px;
  border-radius: 14px;
  color: rgba(10, 10, 10, .7);
  background: rgba(10, 10, 10, .04);
  font-size: 15px;
  line-height: 1.5;
  counter-increment: next-step;
}

.lead-form__next li::before {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--quantum-black);
  background: var(--solar-core);
  content: counter(next-step);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.lead-form__next b {
  color: var(--quantum-black);
  font-weight: 600;
}

.lead-form__success .lead-form__aside {
  font-size: 14px;
}

.lead-form__aside a {
  color: var(--quantum-black);
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .contact__panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .contact {
    padding: 0 8px 8px;
  }

  .contact__panel {
    padding: 34px 12px 12px;
    border-radius: 30px;
  }

  .contact__intro {
    padding-inline: 8px;
  }

  .contact__offer {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
  }

  .contact__offer-button {
    justify-self: start;
  }

  .lead-form {
    padding: 20px 16px;
    border-radius: 24px;
  }

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

  .lead-form__submit {
    width: 100%;
  }

  .lead-form__policy {
    max-width: none;
  }
}

/* Подвал */

.site-footer {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: clamp(56px, 6vw, 96px) clamp(20px, 5vw, 92px) 0;
  color: #f7f7f4;
  background: #090909;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--solar-core);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-footer__inner {
  display: grid;
  max-width: 1600px;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin: 0 auto;
}

.site-footer__logo {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.055em;
}

.site-footer__brand p {
  max-width: 26em;
  margin: 18px 0 0;
  color: rgba(247, 247, 244, .56);
  font-size: 15px;
  line-height: 1.55;
}

.site-footer__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.site-footer__messengers a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 20px;
  border: 1px solid rgba(247, 247, 244, .22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 200ms ease, color 200ms ease;
}

.site-footer__messengers a:hover {
  color: var(--quantum-black);
  background: #f7f7f4;
}

/* ===== Кнопки связи внизу экрана на телефоне ===== */
.mobile-contact {
  display: none;
}

@media (max-width: 760px) {
  .mobile-contact {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 150;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(10, 10, 10, .92);
    box-shadow: 0 18px 40px rgba(10, 10, 10, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(120%);
    transition:
      transform 320ms cubic-bezier(.22, 1, .36, 1),
      opacity 200ms ease,
      visibility 0s linear 320ms;
  }

  .mobile-contact.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      transform 320ms cubic-bezier(.22, 1, .36, 1),
      opacity 200ms ease,
      visibility 0s;
  }

  /* Селектор посильнее, чтобы общее правило ссылок страниц кейсов не перекрасило кнопки */
  .mobile-contact a.mobile-contact__button {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--neural-white);
    background: rgba(255, 255, 255, .1);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-contact a.mobile-contact__button--call {
    color: var(--quantum-black);
    background: var(--solar-core);
  }

  .mobile-contact a.mobile-contact__button:focus-visible {
    outline: 2px solid var(--solar-core);
    outline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-contact,
  .mobile-contact.is-visible {
    transition: none;
  }
}

/* ===== Уведомление о cookie (появляется, когда в script.js задан METRIKA_ID) ===== */
.cookie-notice {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 300;
  display: grid;
  width: min(420px, calc(100% - 32px));
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(247, 247, 244, .12);
  border-radius: 20px;
  color: var(--neural-white);
  background: rgba(10, 10, 10, .94);
  box-shadow: 0 24px 60px rgba(10, 10, 10, .28);
  font-size: 14px;
  line-height: 1.5;
}

.cookie-notice p {
  margin: 0;
  color: rgba(247, 247, 244, .78);
}

.cookie-notice p a {
  color: var(--neural-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.cookie-notice__button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(247, 247, 244, .24);
  border-radius: 999px;
  color: var(--neural-white);
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-notice__button--accept {
  border-color: var(--solar-core);
  color: var(--quantum-black);
  background: var(--solar-core);
}

.cookie-notice__button:focus-visible,
.cookie-notice p a:focus-visible {
  outline: 2px solid var(--solar-core);
  outline-offset: 3px;
}

.site-footer__cookie {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
}

.site-footer__cookie:hover {
  color: var(--neural-white);
}

@media (max-width: 560px) {
  .cookie-notice {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }
}

/* ===== Телефоны и часы в подвале ===== */
.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 22px;
}

.site-footer__contacts a {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: color 200ms ease;
}

.site-footer__contacts a:hover {
  color: var(--solar-core);
}

.site-footer__contacts p {
  width: 100%;
  margin: 2px 0 0;
  color: rgba(247, 247, 244, .42);
  font-size: 13px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.site-footer__title {
  margin: 0 0 6px;
  color: rgba(247, 247, 244, .42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.site-footer .site-footer__col a {
  color: rgba(247, 247, 244, .78);
  font-size: 15px;
  transition: color 200ms ease;
}

.site-footer .site-footer__col a:hover {
  color: var(--solar-core);
}

.site-footer__bottom {
  display: flex;
  max-width: 1600px;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: clamp(48px, 5vw, 80px) auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 247, 244, .12);
  color: rgba(247, 247, 244, .42);
  font-size: 13px;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer--compact {
  padding-top: 40px;
}

.site-footer--compact .site-footer__bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.site-footer__bottom a:hover {
  color: #f7f7f4;
}

.site-footer__wordmark {
  margin: clamp(24px, 3vw, 48px) 0 0;
  color: #141414;
  font-size: clamp(96px, 24vw, 420px);
  font-weight: 500;
  line-height: .74;
  letter-spacing: -.06em;
  text-align: center;
  user-select: none;
  transform: translateY(.12em);
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__bottom {
    flex-direction: column;
  }
}

/* Текстовые страницы: политика, согласие, 404 */

.text-page {
  min-height: 100vh;
  color: var(--quantum-black);
  background: var(--neural-white);
}

.text-page__main {
  max-width: 860px;
  margin: 0 auto;
  padding: 150px clamp(20px, 4vw, 40px) 96px;
}

.text-page__main--center {
  display: flex;
  min-height: calc(100vh - 40px);
  flex-direction: column;
  justify-content: center;
}

.text-page__eyebrow {
  margin: 0 0 18px;
  color: rgba(10, 10, 10, .5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

.text-page h1 {
  margin: 0 0 28px;
  font-family: "Bebas Neue", "Roboto", sans-serif;
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.02em;
}

@media (max-width: 480px) {
  .text-page h1 {
    font-size: clamp(28px, 8vw, 38px);
    overflow-wrap: anywhere;
  }
}

.text-page h2 {
  margin: 44px 0 14px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.text-page p,
.text-page li {
  color: rgba(10, 10, 10, .78);
  font-size: 16px;
  line-height: 1.7;
}

.text-page ul {
  padding-left: 22px;
}

.text-page__main a {
  color: inherit;
  text-underline-offset: 3px;
}

.text-page__note {
  margin: 0 0 32px;
  padding: 18px 22px;
  border-left: 3px solid var(--solar-core);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 210, 64, .16);
}

.text-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.text-page__main .text-page__button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  padding: 0 26px;
  border: 1px solid var(--quantum-black);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.text-page__main .text-page__button--primary {
  color: #ffffff;
  background: var(--quantum-black);
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__nav a,
  .lead-form__submit,
  .contact__offer-button,
  .contact__messenger {
    transition: none;
  }
}

/* ===== Первый экран на самых узких телефонах =====
   Подписи в плитках условий работы переносятся на лишнюю строку — ещё немного места.
   Стоит в конце файла, чтобы перебить общее правило высоты первого экрана для телефонов */
@media (max-width: 359px) {
  .hero {
    min-height: max(1090px, 100svh);
  }
}
