:root {
  --bg: #ffffff;
  --surface: #f2f3f6;
  --ink: #000000;
  --muted: #5c6470;
  --line: #e0e2ea;
  --brand: #243888;
  --brand-mid: #3f559e;
  --brand-soft: #6476b6;
  --brand-fog: #6678b6;
  --white: #ffffff;
  --content-width: 600px;
  --radius-xl: 32px;
  --radius-pill: 56px;
  --shadow-soft: 0 24px 70px rgba(36, 56, 136, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", sans-serif;
}

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

.hero__image-wrap picture,
.intro__image-frame picture,
.feature-card__media picture,
.feature-card__layer picture,
.cta__visual picture,
.final__image-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

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

button,
input {
  font: inherit;
}

/* ─── Responsive copy utilities ──────────────────────────── */
.text--mobile {
  display: none;
}
.text--desktop {
  display: inline;
}

/* ─── Layout ─────────────────────────────────────────────── */
.page {
  width: 100%;
  overflow-x: clip;
}

.section {
  width: 100%;
}

.container {
  width: min(100%, 1440px);
  margin: 0 auto;
  position: relative;
}

.container--narrow {
  width: var(--content-width);
}

/* ─── Typography ─────────────────────────────────────────── */
.section-title {
  margin: 0;
  color: var(--brand);
  font-family: "Unbounded", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.section-title--light {
  color: var(--white);
}

/* ─── Button ─────────────────────────────────────────────── */
.button {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 53px;
  padding: 16px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(36, 56, 136, 0.22);
}

.button:disabled {
  cursor: wait;
  opacity: 0.74;
  transform: none;
  box-shadow: none;
}

.button--hero,
.button--card {
  background: var(--brand);
  color: var(--white);
}

.hero__badge-mobile-art,
.hero__button-mobile-art {
  display: none;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 900px;
  overflow: clip;
  background: var(--brand-mid);
}

.hero__menu-band {
  position: absolute;
  inset: auto 0 0;
  height: 240px;
  overflow: hidden;
}

.hero__menu-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  width: min(100%, 1440px);
  height: 60px;
  margin: 0 auto;
}

.hero__header::before,
.hero__header::after {
  content: "";
  position: absolute;
  top: 0;
  background: var(--brand-mid);
}

.hero__header::before {
  left: 0;
  width: 140px;
  height: 60px;
}

.hero__header::after {
  left: 680px;
  width: 90px;
  height: 60px;
}

.hero__menu-button {
  position: absolute;
  top: 0;
  left: calc(50% - 22px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}

.hero__menu-button img {
  width: 60px;
  height: 60px;
}

.hero__content {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding-top: 92px;
  margin-top: 0;
}

.hero__headline-wrap {
  position: relative;
  width: 515px;
  padding-top: 0;
}

.hero__title {
  margin: 0;
  color: var(--white);
  font-family: "Unbounded", sans-serif;
  font-size: 60px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

/* Figma: badge text opacity 0.5 (не 0.66) */
.hero__badge {
  position: absolute;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  height: 31.6364px;
  padding: 0;
  border-radius: 5.82px;
  background: var(--brand-soft);
  color: rgba(255, 255, 255, 0.5);
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transform-origin: top left;
}

.hero__badge--top {
  top: -16.5469px;
  left: 290.4355px;
  width: 114.636px;
  transform: rotate(5deg);
}

.hero__badge--bottom {
  top: 169.9141px;
  left: 62.7773px;
  width: 174.636px;
  transform: rotate(12deg);
}

/* Figma: hero image bottom -40px (не -31px) */
.hero__image-wrap {
  position: absolute;
  left: 50%;
  bottom: -40px;
  z-index: 3;
  width: 600px;
  height: 600px;
  pointer-events: none;
  transform: translateX(-50%);
}

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

/* ─── Intro ──────────────────────────────────────────────── */
.intro {
  padding: 60px 0;
  background: var(--white);
  min-height: 764.848px;
}

.intro .container--narrow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.intro__image-frame {
  position: relative;
  width: 600px;
  height: 523.848px;
  margin-top: 8px;
  /* overflow: visible — чтобы попапы не обрезались */
  overflow: visible;
}

.intro__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.marker {
  position: absolute;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
  z-index: 3;
  overflow: visible;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  --marker-ink: var(--brand);
  --marker-surface: var(--white);
  --marker-glow: rgba(233, 241, 254, 0.55);
  --marker-shadow: rgba(36, 56, 136, 0.2);
  --marker-border-width: 2px;
  --marker-delay: 0s;
}

.marker:hover,
.marker.is-active,
.marker:focus-visible {
  z-index: 40;
}

.marker::before,
.marker::after {
  content: "";
  position: absolute;
  pointer-events: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.marker::before {
  inset: 0;
  border: var(--marker-border-width) solid var(--marker-ink);
  border-radius: 999px;
  background: var(--marker-surface);
  box-shadow:
    0 3px 10px rgba(36, 56, 136, 0.16),
    0 0 0 0 var(--marker-glow);
  animation: marker-shell-pulse 2.9s cubic-bezier(0.42, 0, 0.22, 1) infinite;
  animation-delay: var(--marker-delay);
  will-change: transform, box-shadow;
}

.marker::after {
  top: 50%;
  left: 50%;
  width: 37.5%;
  height: 37.5%;
  border-radius: 999px;
  background: var(--marker-ink);
  transform: translate(-50%, -50%);
  animation: marker-core-pulse 2.9s cubic-bezier(0.42, 0, 0.22, 1) infinite;
  animation-delay: var(--marker-delay);
  will-change: transform;
}

.marker:nth-of-type(4n + 1) {
  --marker-delay: 0s;
}

.marker:nth-of-type(4n + 2) {
  --marker-delay: 0.35s;
}

.marker:nth-of-type(4n + 3) {
  --marker-delay: 0.7s;
}

.marker:nth-of-type(4n) {
  --marker-delay: 1.05s;
}

.marker > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.marker:focus-visible {
  outline: 2px solid rgba(36, 56, 136, 0.35);
  outline-offset: 4px;
  border-radius: 999px;
}

.marker:hover::before,
.marker.is-active::before,
.marker:focus-visible::before {
  animation-play-state: paused;
  transform: scale(1.08);
  box-shadow:
    0 6px 18px rgba(36, 56, 136, 0.22),
    0 0 0 4px rgba(233, 241, 254, 0.46);
}

.marker:hover::after,
.marker.is-active::after,
.marker:focus-visible::after {
  animation-play-state: paused;
  transform: translate(-50%, -50%) scale(1.08);
}

@keyframes marker-shell-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 3px 10px rgba(36, 56, 136, 0.16),
      0 0 0 0 rgba(233, 241, 254, 0);
  }

  50% {
    transform: scale(1.06);
    box-shadow:
      0 6px 16px rgba(36, 56, 136, 0.2),
      0 0 0 4px rgba(233, 241, 254, 0.42);
  }
}

@keyframes marker-core-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

/* ─── Marker popup ────────────────────────────────────────── */
.marker__popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: min(var(--popup-width, 225px), calc(100vw - 48px));
  padding: 12px;
  background: var(--brand);
  border-radius: 8px;
  box-shadow:
    0 4px 6px -2px rgba(16, 24, 40, 0.03),
    0 12px 16px -4px rgba(16, 24, 40, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
  --popup-shift-x: 0px;
  --popup-transform-hidden: translateX(calc(-50% + var(--popup-shift-x))) translateY(-4px);
  --popup-transform-visible: translateX(calc(-50% + var(--popup-shift-x))) translateY(0);
  transform: var(--popup-transform-hidden);
  z-index: 2;
  white-space: normal;
  text-align: left;
}

.marker__popup--left {
  left: auto;
  right: 0;
  --popup-transform-hidden: translateX(var(--popup-shift-x)) translateY(-4px);
  --popup-transform-visible: translateX(var(--popup-shift-x)) translateY(0);
}

.marker__popup--right {
  left: 0;
  --popup-transform-hidden: translateX(var(--popup-shift-x)) translateY(-4px);
  --popup-transform-visible: translateX(var(--popup-shift-x)) translateY(0);
}

.marker__popup--above {
  top: auto;
  bottom: calc(100% + 10px);
  --popup-transform-hidden: translateX(calc(-50% + var(--popup-shift-x))) translateY(4px);
  --popup-transform-visible: translateX(calc(-50% + var(--popup-shift-x))) translateY(0);
}

.marker__popup--above-right {
  top: auto;
  bottom: calc(100% + 10px);
  left: 0;
  --popup-transform-hidden: translateX(var(--popup-shift-x)) translateY(4px);
  --popup-transform-visible: translateX(var(--popup-shift-x)) translateY(0);
}

.marker__popup--above-left {
  top: auto;
  bottom: calc(100% + 10px);
  left: auto;
  right: 0;
  --popup-transform-hidden: translateX(var(--popup-shift-x)) translateY(4px);
  --popup-transform-visible: translateX(var(--popup-shift-x)) translateY(0);
}

.marker__popup::after {
  content: '';
  position: absolute;
  top: -6px;
  left: clamp(12px, calc(50% - var(--popup-shift-x)), calc(100% - 12px));
  width: 12px;
  height: 12px;
  background: var(--brand);
  border-radius: 1px;
  transform: translateX(-50%) rotate(45deg);
}

.marker__popup--left::after {
  left: auto;
  right: clamp(6px, calc(6px + var(--popup-shift-x)), calc(100% - 18px));
  transform: rotate(45deg);
}

.marker__popup--right::after {
  left: clamp(6px, calc(6px - var(--popup-shift-x)), calc(100% - 18px));
  transform: rotate(45deg);
}

.marker__popup--above::after,
.marker__popup--above-right::after,
.marker__popup--above-left::after {
  top: auto;
  bottom: -6px;
}

.marker__popup--above::after {
  left: clamp(12px, calc(50% - var(--popup-shift-x)), calc(100% - 12px));
  transform: translateX(-50%) rotate(45deg);
}

.marker__popup--above-right::after {
  left: clamp(6px, calc(6px - var(--popup-shift-x)), calc(100% - 18px));
  transform: rotate(45deg);
}

.marker__popup--above-left::after {
  left: auto;
  right: clamp(6px, calc(6px + var(--popup-shift-x)), calc(100% - 18px));
  transform: rotate(45deg);
}

.marker:hover .marker__popup,
.marker.is-active .marker__popup,
.marker:focus-visible .marker__popup {
  opacity: 1;
  transform: var(--popup-transform-visible);
}

.marker:hover .marker__popup--left,
.marker:hover .marker__popup--right,
.marker:hover .marker__popup--above,
.marker:hover .marker__popup--above-right,
.marker:hover .marker__popup--above-left,
.marker.is-active .marker__popup--left,
.marker.is-active .marker__popup--right,
.marker.is-active .marker__popup--above,
.marker.is-active .marker__popup--above-right,
.marker.is-active .marker__popup--above-left,
.marker:focus-visible .marker__popup--left,
.marker:focus-visible .marker__popup--right,
.marker:focus-visible .marker__popup--above,
.marker:focus-visible .marker__popup--above-right,
.marker:focus-visible .marker__popup--above-left {
  transform: var(--popup-transform-visible);
}

.marker__popup-title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: -0.01em;
  color: var(--white);
}

.marker__popup-text {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.01em;
  color: var(--white);
}

.marker--one {
  top: 153.6px;
  left: 127.8px;
}

.marker--two {
  top: 153.6px;
  left: 300.3px;
}

.marker--three {
  top: 153.6px;
  left: 433.8px;
}

.intro__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 0 16px;
}

.intro__copy p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* Figma: gap 4px (не 10px), color #3f559e (не muted) */
.intro__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--brand-mid);
  font-size: 12px;
  line-height: 1.3;
  align-self: center;
}

.intro__check img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ─── Features ───────────────────────────────────────────── */
.section--muted {
  background: var(--surface);
}

.features {
  padding: 0;
  min-height: 806px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 375px);
  justify-content: center;
  gap: 16px;
  width: min(100%, 1440px);
  margin: 0 auto;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 806px;
  padding: 60px 16px;
}

.feature-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 141px;
}

.feature-card__body .feature-card__heading {
  margin: 0;
  color: var(--brand);
  font-family: "Unbounded", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.feature-card:first-child .feature-card__heading,
.feature-card:last-child .feature-card__heading {
  width: 306px;
  align-self: center;
}

.feature-card__body p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* Стандартный медиа-блок (card 1, card 2) */
.feature-card__media {
  position: relative;
  margin-top: auto;
  overflow: visible;
  isolation: isolate;
}

.feature-card__media-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-card__media-visual > img,
.feature-card__media-visual > picture > img,
.feature-card__media-visual > picture img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

/* Card 2: zoom and crop to match Figma imageTransform (scale 0.88, ty 0.12) */
.feature-card--light .feature-card__media-visual > picture > img,
.feature-card--light .feature-card__media-visual > picture img {
  width: 390px;
  height: auto;
  max-width: none;
  margin-top: -63px;
}

/* Двухслойный медиа-блок (card 3) — как в Figma */
.feature-card__media--layered {
  position: relative;
}

.feature-card__media--layered .feature-card__media-visual {
  position: relative;
  height: 460px;
}

.feature-card__layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

/* Слой 1: h=103.67%, w=107.7%, top=-3.67%, left=-0.12% */
.feature-card__layer--1 img {
  position: absolute;
  height: 103.67%;
  width: 107.7%;
  left: -0.12%;
  top: -3.67%;
  max-width: none;
  object-fit: cover;
}

/* Слой 2: h=133.84%, w=134.02%, top=-19.23%, left=-7.26% */
.feature-card__layer--2 img {
  position: absolute;
  height: 133.84%;
  width: 134.02%;
  left: -7.26%;
  top: -19.23%;
  max-width: none;
  object-fit: cover;
}

.feature-marker {
  top: var(--marker-top);
  left: var(--marker-left);
  transform: translate(-50%, -50%);
}

/* ─── CTA ────────────────────────────────────────────────── */
.cta {
  padding: 60px 0;
  min-height: 968px;
}

.cta .container--narrow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.cta__copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta__copy .section-title {
  width: 100%;
}

#cta-title {
  scroll-margin-top: 20px;
}

.cta__copy p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.cta__search {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--white);
}

.cta__input-wrap {
  flex: 1;
  padding: 0 16px;
}

.cta__input-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  line-height: 14px;
}

.cta__input-wrap input::placeholder {
  color: var(--muted);
}

.cta__search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.cta__search-button img {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: none;
  flex: 0 0 48px;
  object-fit: contain;
  display: block;
}

/* Figma: коробка — flex-центрированный контейнер */
.cta__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 600px;
  height: 600px;
  border-radius: 32px;
  overflow: hidden;
  padding: 0 19px;
  background: var(--surface);
}

.cta__visual > picture {
  position: absolute;
  inset: 0;
}

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

/* Desktop: enlarge the handwritten label while keeping mobile at Figma size */
.cta__label-note {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 306px;
  max-width: calc(100% - 48px);
  transform: translate(-50%, -50%);
  color: var(--brand);
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}

.cta__label-note small {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.2;
}

.cta__share-status {
  width: 100%;
  min-height: 17px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transition: opacity 160ms ease;
}

.cta__share-status.is-visible {
  opacity: 1;
}

/* ─── Final ──────────────────────────────────────────────── */
.final {
  padding: 60px 0;
  background: var(--brand-fog);
  min-height: 574.25px;
}

.final .container--narrow {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

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

.final__subtitle {
  margin: 0;
  color: var(--white);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  white-space: normal;
}

.final__bottom p {
  margin: 0;
  color: var(--white);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

/* Figma: max-width 468.75px */
.final__image-wrap {
  width: 375px;
  max-width: none;
  border-radius: 0;
  overflow: hidden;
}

.final__image {
  width: 100%;
  height: 281.25px;
  object-fit: cover;
}

.final__bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 36px;
}

.brand__asset {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand__asset--wordmark {
  width: 36px;
  height: 36px;
}

/* ─── Accessibility ──────────────────────────────────────── */
.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;
}

/* ─── Tablet breakpoint ──────────────────────────────────── */
@media (max-width: 1439px) {
  .container,
  .container--narrow,
  .features__grid,
  .cta__visual,
  .intro__image-frame {
    width: calc(100vw - 32px);
  }

  .hero__content {
    width: calc(100vw - 32px);
  }

  .hero__headline-wrap,
  .hero__image-wrap {
    width: min(600px, calc(100vw - 32px));
  }

  .hero__headline-wrap {
    padding-top: 40px;
  }

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

  .feature-card {
    min-height: auto;
  }
}

/* ─── Mobile breakpoint ──────────────────────────────────── */
@media (max-width: 767px) {
  :root {
    --mobile-max-width: 480px;
    --mobile-side-gap: clamp(12px, 4.267vw, 24px);
    --content-width: min(calc(100vw - (var(--mobile-side-gap) * 2)), calc(var(--mobile-max-width) - (var(--mobile-side-gap) * 2)));
    --mobile-frame: min(100%, var(--mobile-max-width));
    --mobile-content: var(--content-width);
    --hero-mobile-content-width: var(--mobile-content);
    --hero-mobile-title-width: min(var(--hero-mobile-content-width), 343px);
    --hero-mobile-title-height: calc(var(--hero-mobile-title-width) * 132 / 343);
    --hero-mobile-button-height: calc(var(--hero-mobile-title-width) * 53 / 343);
    --hero-mobile-gap: calc(var(--hero-mobile-title-width) * 48 / 343);
  }

  /* Responsive copy: показываем мобильные версии текста */
  .text--desktop {
    display: none;
  }
  .text--mobile {
    display: inline;
  }

  .button {
    min-height: 53px;
    padding: 16px 24px;
    font-size: 14px;
  }

  .container,
  .container--narrow {
    width: min(100%, var(--mobile-max-width));
    padding-inline: var(--mobile-side-gap);
  }

  /* Hero */
  .hero {
    /*
      Mobile hero in Figma is 720px high at 375px width, while the hero image
      still overflows below the frame. The previous formula scaled both the
      CTA-to-image offset and the image height from the growing content width,
      which pushed the lower band too far down on wider phones.
      Keep the top offset tied to the capped 343px title frame, and scale only
      the image block with the wider content width.
    */
    min-height: calc(
      60px +
      (var(--hero-mobile-title-width) * 180 / 343) +
      (var(--hero-mobile-content-width) * 480 / 343) +
      env(safe-area-inset-bottom, 0px)
    );
  }

  .hero__menu-band {
    height: 240px;
  }

  .hero__menu-image {
    display: block;
  }

  .hero__header {
    width: 100%;
  }

  .hero__header::before,
  .hero__header::after {
    display: none;
  }

  .hero__content {
    width: var(--hero-mobile-content-width);
    gap: var(--hero-mobile-gap);
    padding-top: 92px;
  }

  .hero__headline-wrap {
    width: var(--hero-mobile-title-width);
    height: var(--hero-mobile-title-height);
    padding-top: 0;
    overflow: visible;
  }

  .hero__title {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    font-size: clamp(30px, calc(var(--hero-mobile-title-width) * 40 / 343), 40px);
    line-height: clamp(34px, calc(var(--hero-mobile-title-width) * 44 / 343), 44px);
    letter-spacing: -0.03em;
  }

  .hero__badge-mobile-art {
    position: absolute;
    display: block;
    z-index: 2;
    max-width: none;
  }

  .hero__badge-mobile-art--top {
    top: calc(var(--hero-mobile-title-width) * -18 / 343);
    left: calc(var(--hero-mobile-title-width) * 227.918 / 343);
    width: calc(var(--hero-mobile-title-width) * 81 / 343);
    height: calc(var(--hero-mobile-title-width) * 29 / 343);
  }

  .hero__badge-mobile-art--bottom {
    top: calc(var(--hero-mobile-title-width) * 113.4766 / 343);
    left: calc(var(--hero-mobile-title-width) * 44.4961 / 343);
    width: calc(var(--hero-mobile-title-width) * 122 / 343);
    height: calc(var(--hero-mobile-title-width) * 47 / 343);
  }

  .hero__badge {
    opacity: 0;
    pointer-events: none;
  }

  /* Figma mobile: badge padding 4px, radius 4px, font-size 14px */
  .hero__badge {
    padding: 4px;
    border-radius: 4px;
    font-size: 14px;
  }

  .hero__badge--top {
    top: -18px;
    left: 227.918px;
  }

  .hero__badge--bottom {
    top: 113.4766px;
    left: 44.4961px;
  }

  /* Figma mobile: 375px frame => x -56px, y 272px; keep that offset relative to viewport center */
  .hero__image-wrap {
    top: calc(92px + var(--hero-mobile-title-width) * 180 / 343);
    left: calc(50% - var(--hero-mobile-content-width) * 243.5 / 343);
    width: calc(var(--hero-mobile-content-width) * 480 / 343);
    height: calc(var(--hero-mobile-content-width) * 480 / 343);
    bottom: auto;
    transform: none;
  }

  .hero .button--hero {
    width: var(--hero-mobile-content-width);
    min-height: var(--hero-mobile-button-height);
    height: var(--hero-mobile-button-height);
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero .button--hero:hover {
    transform: none;
    box-shadow: none;
  }

  .hero .button--hero .button__label {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .hero__button-mobile-art {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
  }

  /* Intro */
  .intro {
    min-height: auto;
    padding: 48px 0 48px;
  }

  .intro .container--narrow {
    gap: 8px;
  }

  .section-title {
    font-size: 24px;
    line-height: 1.2;
  }

  /* Figma mobile: без border-radius, edge-to-edge */
  .intro__image-frame {
    width: calc(100% + (var(--mobile-side-gap) * 2));
    height: auto;
    margin-inline: calc(var(--mobile-side-gap) * -1);
    margin-top: 0;
    aspect-ratio: 375 / 327.405;
  }

  .intro__image {
    border-radius: 0;
  }

  .marker {
    width: 16px;
    height: 16px;
    --marker-border-width: 1.5px;
  }

  .marker--one {
    top: 29.3211%;
    left: 19.4667%;
  }

  .marker--two {
    top: 29.3211%;
    left: 50.1333%;
  }

  .marker--three {
    top: 29.3211%;
    left: 73.8667%;
  }

  .intro__copy {
    gap: 16px;
    padding: 0;
  }

  .intro__copy p {
    width: 100%;
    min-height: 0;
  }

  .intro__check {
    font-size: 12px;
  }

  /* Features */
  .features {
    min-height: auto;
  }

  .features__grid {
    width: min(100%, var(--mobile-max-width));
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 auto;
  }

  .feature-card {
    gap: 16px;
    min-height: 0;
    padding: 48px var(--mobile-side-gap);
    background: var(--surface);
  }

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

  .feature-card:nth-child(3) {
    background: var(--surface);
  }

  .feature-card__body {
    width: 100%;
    min-height: 0;
  }

  .feature-card__body p {
    width: 100%;
  }

  .feature-card__media {
    width: 100%;
  }

  .feature-card__media-visual {
    position: relative;
    aspect-ratio: 343 / 460;
  }

  .feature-card__media-visual > img,
  .feature-card__media-visual > picture > img,
  .feature-card__media-visual > picture img {
    height: 100%;
  }

  /* Show a bit more of the lower part of card 1 art on wider phones. */
  #feature-card-1 .feature-card__media-visual > picture > img,
  #feature-card-1 .feature-card__media-visual > picture img {
    object-position: center bottom;
  }

  .feature-card--light .feature-card__media-visual > picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .feature-card--light .feature-card__media-visual > picture > img,
  .feature-card--light .feature-card__media-visual > picture img {
    position: absolute;
    top: -13.5666%;
    left: 0.0528%;
    width: 113.6442%;
    height: auto;
    margin-top: 0;
    margin-left: 0;
    max-width: none;
  }

  .feature-card__media--layered {
    width: 100%;
  }

  .feature-card__media--layered .feature-card__media-visual {
    height: auto;
    aspect-ratio: 343 / 460;
  }

  .feature-card--light .feature-marker:nth-of-type(1) {
    --marker-top: 42.0857% !important;
    --marker-left: 79.8834% !important;
  }

  .feature-card--light .feature-marker:nth-of-type(2) {
    --marker-top: 68.3017% !important;
    --marker-left: 72.5948% !important;
  }

  .feature-card:nth-child(3) .feature-marker:nth-of-type(1) {
    --marker-top: 40.6522% !important;
    --marker-left: 69.3878% !important;
  }

  .feature-card:nth-child(3) .feature-marker:nth-of-type(2) {
    --marker-top: 56.5217% !important;
    --marker-left: 88.3382% !important;
  }

  /* CTA */
  .cta {
    min-height: auto;
    padding: 48px 0;
  }

  .cta .container--narrow {
    gap: 16px;
    align-items: stretch;
  }

  .cta__copy {
    gap: 12px;
  }

  .cta__copy p {
    width: 100%;
    min-height: 0;
  }

  .cta__search {
    width: 100%;
  }

  .cta__input-wrap {
    min-width: 0;
    padding: 0 8px 0 16px;
  }

  .cta__input-wrap input {
    width: 100%;
    max-width: 100%;
  }

  .cta__visual {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .cta__copy .section-title {
    width: calc(var(--mobile-content) * 306 / 343);
    align-self: center;
  }

  /* Figma mobile: Caveat Bold 22px, centered on the box */
  .cta__label-note {
    width: calc(var(--mobile-content) * 306 / 343);
    font-size: calc(var(--mobile-content) * 22 / 343);
    line-height: 1.2;
  }

  .cta__label-note small {
    font-size: calc(var(--mobile-content) * 22 / 343);
    line-height: 1.2;
    white-space: pre-line;
  }

  /* Final */
  .final {
    min-height: auto;
    padding: 48px 0 calc(60px + env(safe-area-inset-bottom, 0px));
  }

  .final .container--narrow {
    gap: 0;
  }

  .final__copy {
    width: 100%;
    margin: 0 auto;
    gap: 12px;
  }

  .final__subtitle,
  .final__bottom p {
    width: 100%;
    margin-inline: auto;
    white-space: normal;
  }

  /* Figma mobile: edge-to-edge, без border-radius */
  .final__image-wrap {
    width: calc(100% + (var(--mobile-side-gap) * 2));
    max-width: none;
    margin-inline: calc(var(--mobile-side-gap) * -1);
    margin-top: 0;
    border-radius: 0;
  }

  .final__image {
    height: auto;
    aspect-ratio: 375 / 360;
  }

  .final__bottom {
    width: 100%;
    gap: 16px;
    margin: 0 auto;
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marker::before,
  .marker::after,
  .marker__popup {
    animation: none;
    transition: none;
  }
}
