/* ------------------------------------------------------------------
   Briefra — SEO-лендинг. Токены повторяют переменные Figma
   (файл 📁 Briefra, страница «🚧 [WEB] SEO-landing»).
   ------------------------------------------------------------------ */

@font-face {
  font-family: 'Onest';
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Onest_400Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Onest';
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/Onest_500Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Onest';
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/Onest_600SemiBold.ttf') format('truetype');
}

:root {
  /* colors */
  --c-fg: #18181b; /* default/default-foreground */
  --c-muted: #71717a; /* foreground/muted */
  --c-icon-muted: #a3a3a3;
  --c-white: #ffffff;
  --c-page: #ffffff;
  --c-soft: rgba(235, 235, 236, 0.5); /* default/default-soft */
  --c-soft-solid: #f5f5f5;
  --c-default: #ebebec; /* default/default */
  --c-default-hover: #e1e1e1;
  --c-indigo-50: #eef2ff;
  --c-indigo-100: #e0e7ff;
  --c-indigo-500: #6366f1;
  --c-indigo-600: #4f46e5;
  --c-indigo-700: #4338ca;
  --c-separator: #e4e4e7;
  --c-border: #dedee0;

  /* radius */
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-2_5xl: 20px;
  --r-3xl: 24px;
  --r-4xl: 32px;

  /* layout: макет 1440, контент карточек — 1172 (отступ 134) */
  --page-max: 1440px;
  --inset: clamp(16px, calc((100vw - 1172px) / 2), 134px);
  --hero-inset: clamp(16px, 5.2vw, 75px);
  --section-gap: clamp(64px, 11.1vw, 160px);
  --header-h: 72px;
  --phone-w: 346px;
  --phone-h: 708px;

  /* motion */
  --ease-out: cubic-bezier(0.17, 0.59, 0.4, 0.99);
  --ease-slide: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -0.42px;
  color: var(--c-fg);
  background: var(--c-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

/* ---------- Типографика (имена стилей как в Figma) ---------- */

.section__title {
  font-size: clamp(32px, 3.05vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-align: center;
  max-width: 581px;
  margin-inline: auto;
}

.section__title--light {
  color: var(--c-white);
  max-width: 699px;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  max-width: 699px;
  margin-inline: auto;
  padding-inline: 16px;
}

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

.callout {
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.6px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-indigo-500);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    transform 0.2s var(--ease-out),
    opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--lg {
  height: 56px;
  padding: 18px 24px;
  border-radius: var(--r-2_5xl);
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  font-weight: 600;
}

.btn--md {
  height: 48px;
  padding: 12px 16px;
  border-radius: var(--r-2xl);
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.32px;
  font-weight: 600;
}

.btn--sm {
  height: 40px;
  padding: 10px;
  border-radius: var(--r-xl);
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.42px;
  font-weight: 500;
}

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

.btn--primary {
  background: var(--c-indigo-600);
  color: var(--c-white);
}
.btn--primary:hover {
  background: var(--c-indigo-700);
}

.btn--neutral {
  background: var(--c-default);
  color: var(--c-fg);
}
.btn--neutral:hover {
  background: var(--c-default-hover);
}

.btn--tint {
  background: var(--c-indigo-50);
  color: var(--c-indigo-600);
}
.btn--tint:hover {
  background: var(--c-indigo-100);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: var(--r-2_5xl);
  background: var(--c-default);
  color: var(--c-fg);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s var(--ease-out);
}
.btn-icon:hover {
  background: var(--c-default-hover);
}
.btn-icon:active {
  transform: scale(0.96);
}
.btn-icon:disabled {
  color: var(--c-icon-muted);
  cursor: default;
  transform: none;
}
.btn-icon:disabled:hover {
  background: var(--c-default);
}

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header__inner {
  max-width: var(--page-max);
  height: 100%;
  margin-inline: auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__logo {
  flex: 0 0 176px;
  display: flex;
  align-items: center;
}

.header__logo img {
  width: 110px;
  height: 32px;
}

.header__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
  white-space: nowrap;
}

.header__nav a {
  padding: 2px 0;
  color: var(--c-fg);
  transition: color 0.2s ease;
}
.header__nav a:hover {
  color: var(--c-muted);
}

.header__actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

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

.hero {
  position: relative;
}

.hero__inner {
  position: relative;
  max-width: var(--page-max);
  height: clamp(720px, 62.5vw, 900px);
  margin-inline: auto;
  overflow: hidden;
}

.hero__copy {
  position: absolute;
  left: var(--hero-inset);
  top: 34.3%;
  width: 405px;
  max-width: calc(100% - var(--hero-inset) * 2);
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.hero__title {
  font-size: clamp(40px, 3.9vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  /* У колонки gap 40, а заголовок от подзаголовка в макете отделяет 16 */
  margin-bottom: -24px;
}

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

/* Слово с дефисом браузер рвёт по дефису — «бизнес-» на одной строке, «идей» на другой */
.nobr {
  white-space: nowrap;
}

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

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

.hero__phone {
  position: absolute;
  left: var(--hero-phone-x, 50%);
  top: calc(50% + 44px - var(--phone-h) / 2);
  width: var(--phone-w);
  height: var(--phone-h);
  margin-left: calc(var(--phone-w) / -2);
}

.hero__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Плашка с QR-кодом — в hero и в CTA */
.qr-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 286px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 12px 12px 16px;
  border-radius: 28px;
  background: var(--c-fg);
  color: var(--c-white);
  transition: transform 0.25s var(--ease-out);
}
.qr-card:hover {
  transform: translateY(-2px);
}

.qr-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 152px;
  flex: 0 0 152px;
}

.qr-card__title {
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: 0.6px;
  font-weight: 600;
  text-transform: uppercase;
}

.qr-card__caption {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: -0.36px;
  font-weight: 500;
  color: var(--c-muted);
}

.qr-card__code {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-2xl);
  background: var(--c-white);
}

/* Исходник QR — вертикальный jpeg, сам код занимает 74 % ширины */
.qr-card__code img {
  position: absolute;
  top: 0;
  left: 12.9%;
  width: 74.2%;
  height: 100%;
  object-fit: fill;
  mix-blend-mode: hard-light;
}

/* ---------- Секции ---------- */

.section {
  margin-top: var(--section-gap);
}

.section--soft {
  background: var(--c-soft);
  padding-block: var(--section-gap);
}

.section__title + .carousel,
.section__head + .carousel {
  margin-top: 60px;
}

.section--dark {
  background: var(--c-fg);
  border-radius: clamp(32px, 5.5vw, 80px);
  padding-block: var(--section-gap);
  max-width: var(--page-max);
  margin-inline: auto;
  overflow: hidden;
}

/* ---------- Карусель карточек ---------- */

.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 8px;
  padding-inline: var(--inset);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--inset);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.carousel__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.carousel__track > * {
  scroll-snap-align: start;
  flex: 0 0 auto;
}
.carousel__track img,
.carousel__track a {
  -webkit-user-drag: none;
  user-select: none;
}
.carousel__track img {
  pointer-events: none;
}

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.carousel__nav--start {
  justify-content: flex-start;
  margin-top: 0;
}

/* ---------- Карточки ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-4xl);
  overflow: hidden;
}

.card__title {
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.84px;
  font-weight: 500;
}

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

.card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.6s var(--ease-out);
}

/* Что даст анализ: 582 × 415 */
.card--benefit {
  width: 582px;
  height: 415px;
  padding: 32px 32px 0;
  gap: 4px;
}

.card--white {
  background: var(--c-white);
}

.card--benefit .card__media {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.card__phone {
  position: absolute;
  width: 182px;
  height: 373px;
  object-fit: cover;
}
.card__phone--l {
  left: calc(50% - 94px);
  top: 89px;
  transform: translateX(-50%);
}
.card__phone--r {
  left: calc(50% + 94px);
  top: 50px;
  transform: translateX(-50%);
}
.card__phone--c {
  left: 50%;
  top: 71px;
  transform: translateX(-50%);
}
.card__phone--top {
  top: 19px;
}

.card--photo {
  padding: 32px;
  justify-content: flex-end;
  color: var(--c-white);
}
.card--photo .card__bg {
  object-position: center 88%;
}
.card--photo .card__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card--photo .card__text {
  color: var(--c-soft);
}

.card--blue {
  color: var(--c-white);
}
.card--blue .card__title,
.card--blue .card__text,
.card--blue .card__media {
  position: relative;
  z-index: 1;
}
.card--blue .card__text {
  color: var(--c-soft);
}

/* Когда стоит проверить: 415 × 415, фото + затемнение */
.card--when {
  width: 415px;
  height: 415px;
  padding: 32px;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--c-white);
  isolation: isolate;
}
.card--when::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
  transition: background-color 0.4s ease;
}
.card--when .card__title {
  position: relative;
  z-index: 2;
}
.card--when:hover .card__bg {
  transform: scale(1.04);
}
.card--when:hover::before {
  background: rgba(0, 0, 0, 0.42);
}

.card__go {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-xl);
  background: var(--c-fg);
  color: var(--c-white);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease-out);
}
.card--when:hover .card__go,
.card--when:focus-visible .card__go {
  opacity: 1;
  transform: none;
}

/* Какие идеи: 415 × 582 */
.card--idea {
  width: 415px;
  height: 582px;
  padding: 32px;
  gap: 24px;
  justify-content: flex-end;
  background: var(--c-soft);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card--idea .card__media {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card--idea .card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out);
}
.card--idea .card__media--phone img {
  width: auto;
  height: 74%;
}
.card--idea:hover .card__media img {
  transform: translateY(-6px);
}

/* Ноутбук: фото с прозрачным фоном + скриншот приложения поверх экрана */
.laptop {
  position: relative;
  width: 100%;
  aspect-ratio: 4096 / 2481;
}
.laptop__body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.laptop__screen {
  position: absolute;
  left: 10.6%;
  top: 4%;
  width: 78.8%;
  height: 78%;
  object-fit: cover;
  object-position: top;
  border-radius: 2px 2px 0 0;
}
.card--idea:hover .laptop {
  transform: translateY(-6px);
  transition: transform 0.6s var(--ease-out);
}
.card--idea:hover .laptop img {
  transform: none;
}

/* Предметы с прозрачным фоном: в исходниках широкие поля, поэтому увеличиваем */
.card--idea .card__media--object img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--object-scale, 1.3));
}
.card--idea:hover .card__media--object img {
  transform: scale(var(--object-scale, 1.3)) translateY(-6px);
}
.card--idea .card__media--flip img {
  transform: scale(var(--object-scale, 1.3)) scaleX(-1);
}
.card--idea:hover .card__media--flip img {
  transform: scale(var(--object-scale, 1.3)) scaleX(-1) translateY(-6px);
}
.card--idea .card__media--cups {
  --object-scale: 1.5;
}

/* Услуги: две копии диагонали, вторая перевёрнута, разъезжаются на ±30px */
.card--idea .card__media--boxes img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card--idea .card__media--boxes img:first-child {
  transform: translateY(-30px);
}
.card--idea .card__media--boxes img:last-child {
  transform: translateY(30px) rotate(180deg);
}
.card--idea:hover .card__media--boxes img:first-child {
  transform: translateY(-36px);
}
.card--idea:hover .card__media--boxes img:last-child {
  transform: translateY(36px) rotate(180deg);
}

/* Маркетплейсы: три коробки в ряд под углом 15° */
.card--idea .card__media--parcels {
  transform: rotate(15deg);
}
.card--idea .card__media--parcels img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96%;
  height: auto;
  object-fit: contain;
}
.card--idea .card__media--parcels img:nth-child(1) {
  transform: translate(-88%, -50%);
}
.card--idea .card__media--parcels img:nth-child(2) {
  transform: translate(-50%, -50%);
}
.card--idea .card__media--parcels img:nth-child(3) {
  transform: translate(-12%, -50%);
}
.card--idea:hover .card__media--parcels img:nth-child(1) {
  transform: translate(-88%, -56%);
}
.card--idea:hover .card__media--parcels img:nth-child(2) {
  transform: translate(-50%, -56%);
}
.card--idea:hover .card__media--parcels img:nth-child(3) {
  transform: translate(-12%, -56%);
}

/* Кнопка «Проверить» появляется при наведении, раздвигая карточку */
.card__action {
  height: 0;
  padding-block: 0;
  margin-top: -24px;
  opacity: 0;
  overflow: hidden;
  align-self: flex-start;
  transition:
    height 0.35s var(--ease-out),
    margin-top 0.35s var(--ease-out),
    opacity 0.25s ease,
    background-color 0.2s ease;
}
.card--idea:hover .card__action,
.card--idea:focus-within .card__action {
  height: 48px;
  margin-top: 0;
  opacity: 1;
}

/* ---------- Что будет в отчёте ---------- */

.report {
  overflow-x: clip;
}

.report__stage {
  position: relative;
  max-width: var(--page-max);
  height: calc(var(--phone-h) + 60px);
  margin: 60px auto 0;
}

.report__phones {
  position: absolute;
  left: var(--report-phone-x, 50%);
  top: 0;
  width: var(--phone-w);
  height: var(--phone-h);
  margin-left: calc(var(--phone-w) / -2);
}

.report__phone {
  position: absolute;
  inset: 0;
  transform: translate3d(calc(var(--phone-w) + 8px), 60px, 0);
  opacity: 0;
  z-index: 0;
  will-change: transform, opacity;
  transition:
    transform 0.75s var(--ease-slide),
    opacity 0.45s ease;
}

.report__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 52px;
}

/* Затемнение отработанных экранов — как в макете: 90 % чёрного и блюр */
.report__phone::after {
  content: '';
  position: absolute;
  top: 13px;
  left: 15px;
  width: calc(100% - 30px);
  height: calc(100% - 26px);
  border-radius: 40px;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.report__phone.is-center {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  z-index: 4;
}
.report__phone.is-prev-1 {
  transform: translate3d(calc(-1 * (var(--phone-w) + 8px)), 60px, 0);
  opacity: 1;
  z-index: 3;
}
.report__phone.is-prev-2 {
  transform: translate3d(calc(-2 * (var(--phone-w) + 8px)), 60px, 0);
  opacity: 1;
  z-index: 2;
}
.report__phone.is-gone {
  transform: translate3d(calc(-3 * (var(--phone-w) + 8px)), 60px, 0);
  opacity: 0;
  z-index: 1;
}
.report__phone.is-prev-1::after,
.report__phone.is-prev-2::after,
.report__phone.is-gone::after {
  opacity: 1;
}

.report__copy {
  position: absolute;
  right: var(--hero-inset);
  top: calc(50% - 6px);
  width: 405px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.report__slides,
.steps__slides {
  position: relative;
  display: grid;
}

.report__slide,
.steps__slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease-out);
}
.report__slide.is-active,
.steps__slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.report__slide.is-leaving,
.steps__slide.is-leaving {
  transform: translateX(-16px);
}

.report__heading,
.steps__heading {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.96px;
  font-weight: 500;
}

.report__text,
.steps__text {
  color: var(--c-muted);
}

/* ---------- Три шага ---------- */

.steps__inner {
  position: relative;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--hero-inset);
  display: grid;
  grid-template-columns: 405px minmax(0, 1fr) 405px;
  align-items: center;
  min-height: var(--phone-h);
}

.steps__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.steps__title {
  font-size: clamp(32px, 3.05vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.steps__phone {
  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
  justify-self: center;
}

.steps__screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.steps__screen.is-active {
  opacity: 1;
}

.steps__copy {
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-self: end;
  width: 405px;
  max-width: 100%;
}

.steps__slide .callout {
  margin-bottom: 10px;
}

.steps__slide .steps__text {
  margin-top: 10px;
}

/* ---------- SEO-текст ---------- */

.seo__box {
  position: relative;
  width: 581px;
  max-width: calc(100% - 32px);
  margin-inline: auto;
}

.seo__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-height: 479px;
  overflow: hidden;
  transition: max-height 0.7s var(--ease-slide);
}
.seo__box.is-expanded .seo__content {
  max-height: none;
}

.seo__block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.seo__block .section__title {
  max-width: none;
}

.seo__block h3 {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  font-weight: 500;
}

.seo__block p {
  color: var(--c-muted);
}
.seo__block p + p {
  margin-top: -8px;
}
.seo__block a {
  text-decoration: underline;
  text-underline-position: from-font;
}

.seo__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 71px;
  background: linear-gradient(to bottom, rgba(245, 245, 245, 0) 0%, var(--c-soft-solid) 80%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.seo__more {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 227px;
  transform: translateX(-50%);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.seo__box.is-expanded .seo__fade,
.seo__box.is-expanded .seo__more {
  opacity: 0;
  pointer-events: none;
}

/* ---------- FAQ ---------- */

.accordion {
  width: 582px;
  max-width: calc(100% - 32px);
  margin: 60px auto 0;
  background: var(--c-white);
}

.accordion__item {
  border-bottom: 1px solid var(--c-border);
  transition: background-color 0.2s ease;
}
.accordion__item[hidden] {
  display: none;
}
.accordion__item:hover {
  background: var(--c-default);
}

.accordion__summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 44px 16px 16px;
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  font-weight: 500;
}
.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__chevron {
  position: absolute;
  right: 16px;
  top: 18px;
  color: var(--c-muted);
  transition: transform 0.3s var(--ease-out);
}
.accordion__item[open] .accordion__chevron {
  transform: rotate(180deg);
}

.accordion__body {
  overflow: hidden;
}

.accordion__body p {
  padding: 0 16px 16px;
  margin-top: -8px;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--c-muted);
}

.faq__more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.faq__more .btn {
  width: 227px;
}
.faq__more.is-hidden {
  display: none;
}

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

.cta {
  margin-top: var(--section-gap);
}

.cta__inner {
  position: relative;
  max-width: var(--page-max);
  aspect-ratio: 1440 / 900;
  margin-inline: auto;
  overflow: hidden;
}

.cta__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__copy {
  position: absolute;
  left: var(--hero-inset);
  top: 24.6%;
  width: 346px;
  max-width: calc(100% - var(--hero-inset) * 2);
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.cta__title {
  font-size: clamp(40px, 3.9vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin-bottom: -24px;
}

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

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

.footer {
  background: var(--c-soft);
}

.footer__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 80px 16px 16px;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.footer__icon img {
  width: 51px;
  height: 51px;
  border-radius: 16px;
}

.footer__top .footer__col:first-of-type {
  margin-left: auto;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 354px;
}
.footer__col a {
  width: fit-content;
  transition: color 0.2s ease;
}
.footer__col a:hover {
  color: var(--c-indigo-600);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--c-separator);
}

.footer__made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  line-height: 1.1;
}
.footer__made img {
  border-radius: 8px;
}

/* ---------- Появление при прокрутке ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s var(--ease-out);
}
.js .reveal--delay {
  transition-delay: 0.15s;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .report__phone,
  .report__slide,
  .steps__slide,
  .steps__screen,
  .card__bg,
  .card__action {
    transition: none;
  }
}

/* ---------- Адаптив ---------- */

/* 1024: телефон меньше, в hero сдвинут вправо, в отчёте — влево (макет 1024-main) */
@media (max-width: 1279px) {
  :root {
    --phone-w: 280px;
    --phone-h: 573px;
    --hero-phone-x: 68%;
    --report-phone-x: 36.5%;
  }

  .hero__inner {
    height: clamp(640px, 75vw, 768px);
  }
  .hero__copy {
    top: 30%;
  }

  .report__copy {
    width: 340px;
  }

  .steps__inner {
    grid-template-columns: minmax(0, 1fr) var(--phone-w) minmax(0, 1fr);
    column-gap: 24px;
  }
  .steps__copy,
  .steps__intro {
    width: auto;
  }
}

/* 768 и уже: всё в одну колонку (макеты 768-main и 375-main) */
/* 768 и 375: одна колонка. Размеры сняты с макетов 768-main и 375-main —
   у них одна сетка: секции с полем 60, заголовки 28, карточки 16/16. */
@media (max-width: 1023px) {
  :root {
    --header-h: 56px;
    --phone-w: 283px;
    --phone-h: 579px;
    --section-gap: 60px;
  }

  /* Шапка без меню */
  .header__inner {
    padding: 8px 16px;
  }
  .header__logo {
    flex-basis: auto;
  }
  .header__nav {
    display: none;
  }

  .section__title {
    font-size: 28px;
    letter-spacing: -0.84px;
    max-width: 480px;
    padding-inline: 16px;
  }
  .section__head .section__title {
    padding-inline: 0;
  }
  .section__title + .carousel,
  .section__head + .carousel {
    margin-top: 24px;
  }
  .section--soft {
    padding-block: 60px;
  }
  .section--dark {
    border-radius: 24px;
    padding-block: 60px;
  }

  .carousel__track {
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }
  .carousel__nav {
    margin-top: 16px;
  }

  /* Карточки */
  .card {
    border-radius: 16px;
  }
  .card__title {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.32px;
    font-weight: 600;
  }

  .card--benefit {
    width: min(343px, calc(100vw - 32px));
    height: 245px;
    padding: 16px 16px 0;
  }
  .card--photo {
    padding: 16px;
  }
  .card__phone {
    width: 109px;
    height: 224px;
  }
  .card__phone--l {
    left: calc(50% - 57px);
    top: 56px;
  }
  .card__phone--r {
    left: calc(50% + 56px);
    top: 17px;
  }
  .card__phone--c {
    width: 103px;
    height: 211px;
    top: 39px;
  }
  .card__phone--top {
    width: 103px;
    height: 211px;
    top: 39px;
  }
  .card__phone--l.card__phone--top {
    left: calc(50% - 53px);
  }
  .card__phone--r.card__phone--top {
    left: calc(50% + 53px);
  }

  .card--when {
    width: 256px;
    height: 256px;
    padding: 16px;
  }
  .card--idea {
    width: 256px;
    height: 359px;
    padding: 16px;
    gap: 24px;
  }
  /* В макете у мобильных карточек кнопки нет, наведения на тач-экране тоже */
  .card__action,
  .card__go {
    display: none;
  }

  /* Hero: заголовок и подзаголовок, телефон, кнопка с подписью */
  .hero__inner {
    height: auto;
    padding: calc(var(--header-h) + 60px) 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .hero__copy {
    display: contents;
  }
  .hero__title {
    order: 1;
    width: 100%;
    max-width: 640px;
    text-align: center;
    margin-bottom: 0;
    font-size: 32px;
  }
  .hero__lead {
    order: 2;
    max-width: 480px;
    text-align: center;
    margin-top: -24px;
  }
  .hero__phone {
    order: 3;
    position: static;
    margin-left: 0;
    width: var(--phone-w);
    height: var(--phone-h);
  }
  .hero__cta {
    order: 4;
    width: 100%;
    max-width: 343px;
    text-align: center;
  }
  .hero .qr-card,
  .cta .qr-card {
    display: none;
  }

  /* Отчёт: телефон по центру, текст под ним */
  .report__stage {
    height: auto;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .report__phones {
    position: relative;
    left: auto;
    margin-left: 0;
  }
  .report__phone.is-prev-1,
  .report__phone.is-prev-2,
  .report__phone.is-gone {
    opacity: 0;
  }
  .report__phone img {
    border-radius: 42px;
  }
  .report__copy {
    position: static;
    transform: none;
    width: 100%;
    max-width: 480px;
    padding-inline: 16px;
    text-align: center;
    align-items: center;
  }
  .report__heading,
  .steps__heading {
    font-size: 20px;
    line-height: 22px;
    letter-spacing: -0.6px;
  }
  .carousel__nav--start {
    justify-content: center;
  }

  /* Шаги: заголовок, телефон, описание шага; кнопки в макете нет */
  .steps__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-inline: 16px;
    min-height: 0;
  }
  .steps__intro {
    width: 100%;
    max-width: 480px;
  }
  .steps__intro .btn {
    display: none;
  }
  .steps__title {
    font-size: 28px;
    letter-spacing: -0.84px;
  }
  .steps__copy {
    width: 100%;
    max-width: 480px;
    text-align: center;
    align-items: center;
    gap: 24px;
    margin-top: -8px;
  }
  .steps__slide .callout {
    margin-bottom: 0;
  }
  .steps__slide .steps__text {
    margin-top: 0;
  }

  /* SEO-текст */
  .seo__box {
    width: 480px;
  }
  .seo__block h3 {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.32px;
    font-weight: 600;
  }

  /* FAQ: во всю ширину экрана, текст с полем 16 */
  .accordion {
    width: 100%;
    max-width: none;
    margin-top: 24px;
  }
  .accordion__summary {
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: -0.48px;
    padding-right: 36px;
  }
  .faq__more {
    margin-top: 16px;
  }

  /* CTA: текст, затем сцена с телефоном в руке */
  .cta__inner {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-inline: 16px;
  }
  .cta__copy {
    order: -1;
    position: static;
    width: 100%;
    max-width: 480px;
  }
  .cta__title {
    font-size: 32px;
  }
  .cta__scene {
    position: static;
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 374 / 485;
    object-fit: cover;
    object-position: center top;
  }

  .footer__inner {
    padding: 60px 16px 24px;
  }
}

/* Телефон */
@media (max-width: 767px) {
  .seo__box {
    width: auto;
  }

  /* В макете 375 заголовок CTA шире полей на 10 с каждой стороны (363) — иначе
     «Проверьте бизнес-идею» не помещается в строку и заголовок растёт до трёх */
  .cta__title {
    margin-inline: -10px;
  }

  .footer__top {
    flex-wrap: wrap;
    gap: 24px 6px;
  }
  .footer__icon {
    flex: 0 0 100%;
  }
  .footer__top .footer__col:first-of-type {
    margin-left: 0;
  }
  .footer__col {
    width: calc(50% - 3px);
  }
  .footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}
