:root {
  --black: #171716;
  --white: #faf9f7;
  --beige: #e3dbd1;
  --secondary: #6e6963;
  --btn: #202020;
  --blue: #253e65;
  --blue2: #406cb0;
  --header-h: 84px;
  --page-pad-x: clamp(24px, 4vw, 56px);
  /* One content shell for header / hero / sections / footer */
  --content-max: 1180px;
  --page-max: var(--content-max);
  --section-y: clamp(64px, 7.5vw, 100px);
  --section-stack: clamp(28px, 3vw, 44px);
  --eyebrow: 15px;
  --h2: clamp(30px, 3.4vw, 44px);
  --sub: clamp(16px, 1.25vw, 18px);
  --body: clamp(14px, 1.05vw, 16px);
  --card-title: clamp(16px, 1.15vw, 18px);
  --feat-label: clamp(13px, 0.95vw, 14px);
  --icon-sm: 28px;
  --icon-md: 36px;
  --radius: 16px;
  --cta-size: 16px;
  --cta-pad: 18px 32px;
  --surface: #f3efec;

  --ink: var(--black);
  --muted: var(--secondary);
  --blue-deep: var(--blue);
  --line: color-mix(in srgb, var(--secondary) 28%, var(--white));
  --bg: var(--white);
  /* SF Pro on Apple; system fallbacks elsewhere */
  --font: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* One type/spacing scale for all below-hero sections on tablet/phone */
@media (max-width: 980px) {
  :root {
    --page-pad-x: clamp(16px, 4.2vw, 24px);
    --page-gutter: var(--page-pad-x);
    --mob-max: 620px;
    --header-pad-y: 12px;
    /* Must match closed .header: menu btn 36px + vertical padding */
    --header-h: calc(36px + 2 * var(--header-pad-y));
    --section-y: clamp(48px, 8vw, 72px);
    --section-stack: 28px;
    --eyebrow: 14px;
    --h2: clamp(28px, 7vw, 32px);
    --sub: 15px;
    --body: 15px;
    --card-title: 17px;
    --feat-label: 12px;
    --icon-sm: 28px;
    --icon-md: 32px;
    /* Shared CTA chrome — hero + level must match exactly */
    --cta-size: 16px;
    --cta-pad: 0 20px;
    --cta-h: 52px;
    --cta-radius: 14px;
  }
}

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

html {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  min-height: 100%;
  padding-top: var(--header-h);
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

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

.screen {
  position: relative;
  height: calc(100svh - var(--header-h));
  overflow: hidden;
}

/* ── Header ── */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-h);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #fff;
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: var(--content-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
}

.logo {
  justify-self: start;
  line-height: 0;
}

.logo img {
  width: 148px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1;
  color: var(--secondary);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--black);
}

.header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 22px;
}

.lang-switch {
  position: relative;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
  line-height: 1;
  cursor: pointer;
}

.lang img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  /* svg already dark — no invert/filter */
  filter: none;
  opacity: 0.9;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  min-width: 88px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 4px 12px color-mix(in srgb, var(--black) 8%, transparent),
    0 16px 32px color-mix(in srgb, var(--black) 10%, transparent);
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--secondary);
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-menu__item:hover,
.lang-menu__item:focus-visible {
  background: color-mix(in srgb, var(--beige) 45%, #fff);
  color: var(--black);
}

.lang-menu__item.is-active {
  color: var(--blue);
  background: color-mix(in srgb, var(--beige) 35%, #fff);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: transparent !important;
  box-shadow: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-login:hover,
.btn-login:focus-visible {
  background: transparent !important;
  border-color: var(--black);
  color: var(--black);
}

.btn-login:active {
  background: transparent !important;
  color: var(--blue);
}

.btn-menu {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 2px 0;
}

.btn-menu span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: var(--black);
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.header.is-open .btn-menu span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-open .btn-menu span:nth-child(2) {
  opacity: 0;
}

.header.is-open .btn-menu span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */

.hero {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  opacity: 1;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--white) 55%, transparent) 0%,
      color-mix(in srgb, var(--white) 28%, transparent) 28%,
      color-mix(in srgb, var(--white) 8%, transparent) 52%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--white) 12%, transparent) 0%,
      transparent 18%,
      color-mix(in srgb, var(--white) 18%, transparent) 78%,
      color-mix(in srgb, var(--white) 55%, transparent) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: stretch;
  column-gap: clamp(8px, 1.5vw, 24px);
  width: 100%;
  max-width: var(--content-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
  overflow: hidden;
  --features-offset: 21px;
  --hero-bottom: 40px;
  /* Title ↔ plaques: keep them visually detached */
  --stack-split: clamp(40px, 5.5vh, 72px);
  /* Plaques ↔ CTA: pull button up under the pills */
  --cta-gap: clamp(18px, 2.4vh, 28px);
}

/* Left column: pack from the top so CTA isn't pinned under the right caption */
.hero__left {
  grid-column: 1;
  grid-row: 1;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--cta-gap);
  width: max-content;
  max-width: min(100%, 620px);
  height: 100%;
  padding-top: clamp(28px, 5vh, 56px);
  padding-bottom: var(--hero-bottom);
  box-sizing: border-box;
}

.hero__stack {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--stack-split);
  min-height: 0;
  width: 100%;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
}

.hero__eyebrow {
  margin: 0;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 300;
  line-height: 1.3;
  color: var(--muted);
}

.hero__title {
  margin: 0;
  font-size: clamp(36px, 3.33vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
}

.hero__title-l1,
.hero__title-l2 {
  display: block;
  white-space: nowrap;
  line-height: 1.05;
}

.hero__title-accent {
  color: var(--blue);
  font-weight: 700;
}

.hero__title-and::before {
  content: "\00a0";
}

.hero__title-and::after {
  content: "\00a0";
}

.hero__title-mob {
  display: none;
}

.hero__br--mob {
  display: none;
}

.hero__br--desk {
  display: block;
}

/* ── Features ── */

.features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  position: relative;
  padding-left: 0;
  z-index: 3;
  align-self: start;
}

.features::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: color-mix(in srgb, var(--secondary) 40%, var(--white));
}

.features__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--black);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.features__item:focus-visible .features__pill {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.features__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--secondary) 75%, var(--black));
  z-index: 1;
  box-sizing: border-box;
  transition: background 0.25s ease, transform 0.25s ease;
}

.features__item.is-active .features__dot {
  background: var(--blue);
  transform: scale(1.15);
}

.features__pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  min-height: 46px;
  padding: 10px 20px 10px 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 3px 14px color-mix(in srgb, var(--black) 7%, transparent);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.features__item:hover .features__pill {
  transform: translateY(-1px);
}

.features__item.is-active .features__pill {
  background: var(--beige);
  box-shadow: none;
  transform: none;
}

.features__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) opacity(0.58);
}

.features__item.is-active .features__icon {
  filter: brightness(0) opacity(0.72);
}

.features__label {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--black);
}

/* ── CTA ── */

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  margin: 0 0 0 var(--features-offset);
  padding: 20px 40px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--blue) 28%, transparent);
  transition: transform 0.15s ease, background 0.15s ease;
  z-index: 3;
}

.btn-cta span {
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 400;
}

.btn-cta:hover {
  background: color-mix(in srgb, var(--blue) 88%, var(--black));
  transform: translateY(-1px);
}

/* ── Visual ── */

.hero__visual {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  padding-top: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.hero__panels {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(48px, 0, 0);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__panel > picture {
  display: contents;
}

.hero__panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  z-index: 2;
}

.hero__panel.is-boot {
  animation: hero-panel-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-panel-in {
  from {
    opacity: 0;
    transform: translate3d(56px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero__panel.is-enter-right {
  opacity: 0;
  transform: translate3d(56px, 0, 0);
}

.hero__panel.is-enter-left {
  opacity: 0;
  transform: translate3d(-56px, 0, 0);
}

.hero__panel.is-leave-left {
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
  z-index: 1;
}

.hero__panel.is-leave-right {
  opacity: 0;
  transform: translate3d(40px, 0, 0);
  z-index: 1;
}

.hero__media {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  pointer-events: none;
}

.hero__media--device {
  max-width: min(560px, 100%);
  object-position: center center;
  align-self: center;
  height: auto;
  max-height: 88%;
}

/* New hero_phone.svg is upright portrait (was a wide tilted crop). */
.hero__panel[data-panel="security"] .hero__media--device {
  max-width: min(340px, 48%);
  max-height: 86%;
}

.hero__media--lap {
  /* New hero_lap.svg is a tighter crop — old scale(1.12) overshoots. */
  max-width: min(620px, 100%);
  max-height: 84%;
  transform: none;
  transform-origin: center center;
}

.hero__media--person {
  object-position: center bottom;
}

.hero__media--card {
  /* New hero_card.svg is tighter in-frame; keep visual weight ~previous. */
  max-width: min(440px, 78%);
  max-height: 72%;
  height: auto;
  width: auto;
  object-fit: contain;
  object-position: center center;
  align-self: center;
  margin: 0;
  transform: none;
}

.hero__media--social {
  max-width: min(520px, 94%);
  max-height: 78%;
  height: auto;
  object-fit: contain;
  object-position: center center;
  align-self: center;
  transform: translateY(-6%);
  margin-bottom: 4%;
}

.hero__panel[data-panel="card"] {
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.hero__panel[data-panel="social"] {
  align-items: center;
  justify-content: center;
}

@media (min-width: 981px) {
  .hero__panel[data-panel="card"] {
    padding: 6% 8%;
  }

  .hero__panel[data-panel="social"] {
    padding-bottom: 4%;
  }
}

.hero__card {
  position: absolute;
  right: var(--page-pad-x);
  left: auto;
  bottom: var(--hero-bottom);
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 30%);
  min-height: calc(1.45em * 3 + 32px);
  padding: 16px 20px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--white) 94%, transparent);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--black) 10%, transparent);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  color: var(--black);
  z-index: 4;
  pointer-events: none;
  box-sizing: border-box;
}

/* ── Short desktop ── */

@media (max-height: 760px) and (min-width: 981px) {
  .hero__inner {
    --hero-bottom: 24px;
    --stack-split: clamp(28px, 4vh, 48px);
    --cta-gap: 14px;
  }

  .hero__left {
    padding-top: clamp(16px, 3vh, 28px);
  }

  .hero__copy {
    gap: 6px;
  }

  .hero__eyebrow {
    font-size: 20px;
  }

  .hero__title {
    font-size: clamp(34px, 3.6vw, 42px);
  }

  .features {
    gap: 6px;
  }

  .features__icon {
    width: 24px;
    height: 24px;
  }

  .btn-cta {
    padding: 16px 32px;
    font-size: 18px;
  }

  .hero__card {
    bottom: 5%;
    padding: 12px 16px;
    font-size: 0.8rem;
    min-height: calc(1.4em * 3 + 24px);
  }
}

/* ── Tablet / mobile — fluid adaptive ── */

@media (max-width: 980px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .screen {
    /*
     * Mobile composition: design floor ~400px, grows centered up to --mob-max.
     * Wider than --mob-max → side fields show background only.
     */
    --mob-max: 620px;
    --page-gutter: var(--page-pad-x);
    --pad-x: var(--page-gutter);
    --pad-b: clamp(10px, 2.2svh, 18px);
    --header-pad-y: clamp(10px, 1.8svh, 16px);
    --logo-w: clamp(108px, 12vw + 50px, 148px);
    --gap-text: clamp(6px, 1.2svh, 10px);
    --gap-stage: clamp(6px, 1.4svh, 14px);
    --gap-card: clamp(6px, 1.2svh, 12px);
    --features-w: fit-content;
    --pill-h: clamp(44px, 5vw + 20px, 56px);
    --pill-gap: clamp(6px, 1.3svh, 12px);
    /* SF Pro — floor = design sizes, gentle scale on wider mobile */
    --title-size: clamp(31px, 24px + 1.8vw, 40px);
    --eyebrow-size: clamp(16px, 12px + 1vw, 20px);
    --caption-size: clamp(16px, 12px + 1vw, 20px);
    /* Inherit shared CTA tokens from :root — do not fork */
    --pill-label-size: clamp(14px, 11px + 0.75vw, 17px);
    --visual-left: clamp(28%, 12vw + 18%, 42%);
    --text-top: clamp(8px, 3.2svh, 28px);
    /* Reserve 3 lines — longest caption; keeps .features from jumping on tab switch */
    --caption-block-h: calc(20px * 2 + 1.4 * 16px * 3);
    --visual-bottom: calc(
      var(--pad-b) + var(--cta-h) + var(--gap-card) + var(--caption-block-h)
    );
    --phone-lift: clamp(30px, 7.5svh, 60px);
    --phone-size: 0.76;
    --person-size: 0.84;
    /* Tuck cropped legs under .hero__card across mobile widths */
    --person-overlap: clamp(18px, 4svh, 32px);
    --card-lift: clamp(30px, 7.5svh, 60px);
    --card-size: 0.62;
    --social-lift: clamp(30px, 7.5svh, 60px);
    --social-size: 0.6;
    --lap-lift: clamp(48px, 10svh, 88px);
    --lap-size: 0.62;

    display: flex;
    flex-direction: column;
    height: calc(100svh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow: hidden;
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    height: var(--header-h);
    min-height: var(--header-h);
    margin: 0;
    padding: 0 var(--page-gutter);
    box-sizing: border-box;
    background: #fff;
    transition: box-shadow 0.2s ease, border-radius 0.2s ease;
  }

  /* Flatten wrapper so logo / nav / actions stay direct flex children */
  .header__inner {
    display: contents;
    max-width: none;
    margin: 0;
    padding: 0;
    height: auto;
  }

  .header.is-open {
    height: auto;
    min-height: var(--header-h);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 20px 48px color-mix(in srgb, var(--black) 12%, transparent);
  }

  .logo {
    order: 1;
  }

  .logo img {
    width: var(--logo-w);
  }

  .header__actions {
    order: 2;
    justify-self: auto;
    gap: clamp(12px, 3.5vw, 18px);
    align-items: center;
  }

  .nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin-top: 10px;
    padding: 6px 0 10px;
    border-top: 1px solid color-mix(in srgb, var(--secondary) 14%, transparent);
  }

  .header.is-open .nav {
    display: flex;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 2px;
    border-bottom: 1px solid color-mix(in srgb, var(--beige) 65%, var(--secondary));
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--black);
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
  }

  .nav a::after {
    content: "→";
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 400;
    color: var(--blue);
    opacity: 0.45;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a:hover,
  .nav a:active {
    color: var(--blue);
  }

  .nav a:hover::after,
  .nav a:active::after {
    opacity: 1;
    transform: translateX(4px);
  }

  .btn-login {
    display: none;
  }

  .btn-menu {
    display: flex;
    position: relative;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1.5px solid transparent;
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .header.is-open .btn-menu {
    border-color: var(--blue);
    background: color-mix(in srgb, var(--beige) 35%, #fff);
  }

  .btn-menu span {
    width: 16px;
  }

  .header.is-open .btn-menu span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    margin: 0;
  }

  .header.is-open .btn-menu span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .header.is-open .btn-menu span:nth-child(2) {
    opacity: 0;
  }

  .header.is-open .btn-menu span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .lang {
    font-size: clamp(0.8rem, 2vw, 0.92rem);
  }

  .lang img {
    width: clamp(16px, 4.5vw, 20px);
    height: clamp(16px, 4.5vw, 20px);
  }

  .hero {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .hero__bg img {
    object-position: 58% 30%;
    opacity: 1;
  }

  .hero__bg::after {
    background:
      linear-gradient(
        90deg,
        color-mix(in srgb, var(--white) 42%, transparent) 0%,
        color-mix(in srgb, var(--white) 18%, transparent) 36%,
        transparent 62%
      ),
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--white) 20%, transparent) 0%,
        transparent 22%,
        color-mix(in srgb, var(--white) 25%, transparent) 70%,
        color-mix(in srgb, var(--white) 72%, transparent) 100%
      );
  }

  .hero__inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    height: 100%;
    width: 100%;
    max-width: var(--mob-max);
    margin-inline: auto;
    padding: 0 var(--page-gutter) var(--pad-b);
    overflow: hidden;
    --features-offset: 0px;
  }

  .hero__left {
    display: contents;
  }

  .hero__stack {
    display: contents;
  }

  .hero__copy {
    display: contents;
  }

  .hero__eyebrow {
    flex: 0 0 auto;
    align-self: flex-start;
    order: 1;
    width: auto;
    max-width: 100%;
    margin: 0 0 var(--gap-text);
    padding-top: var(--text-top);
    font-size: var(--eyebrow-size);
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--secondary);
    text-align: left;
  }

  .hero__title {
    flex: 0 0 auto;
    align-self: flex-start;
    order: 2;
    width: auto;
    max-width: 100%;
    margin: 0 0 var(--gap-stage);
    font-size: var(--title-size);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: left;
    color: var(--black);
  }

  .hero__title-l1,
  .hero__title-l2 {
    display: inline;
    white-space: normal;
  }

  .hero__title-and {
    display: inline;
  }

  .hero__title-and::before {
    content: none;
  }

  .hero__title-and::after {
    content: "\00a0";
  }

  .hero__title-desk {
    display: none;
  }

  .hero__title-mob {
    display: inline;
    color: inherit;
    font-weight: inherit;
  }

  .hero__br--mob {
    display: block;
  }

  .hero__br--desk {
    display: none;
  }

  .hero__title-accent {
    color: var(--blue);
    font-weight: 700;
    white-space: nowrap;
  }

  /* Stage: pills left + visual right (image centered in right zone) */
  .features {
    position: relative;
    z-index: 3;
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: flex-start;
    justify-content: center;
    gap: var(--pill-gap);
    width: max-content;
    max-width: min(58%, 260px);
    height: auto;
    margin: auto 0;
    padding: 0;
    flex: 1 1 auto;
    min-height: 0;
  }

  .features::before,
  .features__dot {
    display: none;
  }

  .features__item {
    width: 100%;
  }

  .features__pill {
    width: 100%;
    min-width: 0;
    min-height: var(--pill-h);
    box-sizing: border-box;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--black) 7%, transparent);
  }

  .features__item.is-active .features__pill {
    background: var(--beige);
    box-shadow: none;
  }

  .features__item:hover .features__pill {
    transform: none;
  }

  .features__label {
    font-size: var(--pill-label-size);
    font-weight: 400;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .features__icon {
    width: clamp(22px, 5.8vw, 28px);
    height: clamp(22px, 5.8vw, 28px);
    flex-shrink: 0;
    filter: brightness(0) opacity(0.55);
  }

  .features__item.is-active .features__icon {
    filter: brightness(0) opacity(0.7);
  }

  .hero__visual {
    position: absolute;
    z-index: 1;
    top: calc(var(--text-top) + 5.5rem);
    /* 0: align to padding-edge of .hero__inner (= outer edge).
       In-flow content already has 15px via padding; extra right here doubled the gap. */
    right: 0;
    bottom: var(--visual-bottom);
    left: var(--visual-left);
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    /* visible: phone can grow past the box; person panel clips itself */
    overflow: visible;
    pointer-events: none;
    align-self: auto;
  }

  .hero__panels {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
  }

  .hero__panel {
    align-items: flex-end;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
  }

  .hero__panel > picture {
    display: contents;
    margin: 0;
    padding: 0;
  }

  .hero__media {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
    margin: 0;
    padding: 0;
  }

  /*
   * Person: height knob + dock under .hero__card via --person-overlap.
   * Panel extends below .hero__visual (card z-index stacks above the crop).
   */
  .hero__media--person,
  .hero__panel[data-panel="secretary"] .hero__media--person {
    width: auto;
    height: calc(100% * var(--person-size));
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: 72% bottom;
    transform: none;
    transform-origin: right bottom;
    align-self: flex-end;
    margin: 0;
    padding: 0;
  }

  .hero__panel[data-panel="secretary"] {
    align-items: flex-end;
    justify-content: flex-end;
    /* Grow clip box downward so legs can tuck under the card */
    bottom: calc(-1 * var(--person-overlap));
    overflow: hidden;
  }

  /*
   * Phone size knob: --phone-size (1 = slot height, >1 grows past visual).
   * Must keep .hero__visual overflow:visible or growth is clipped (invisible).
   * Also override desktop .hero__media--device { max-width: min(560px,100%); max-height: 88% }.
   */
  .hero__media--device:not(.hero__media--lap),
  .hero__panel[data-panel="security"] .hero__media--device {
    width: auto;
    height: calc((100% - var(--phone-lift)) * var(--phone-size));
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: right bottom;
    transform: none;
    transform-origin: right bottom;
    align-self: flex-end;
    margin: 0 0 var(--phone-lift);
    padding: 0;
  }

  .hero__panel[data-panel="security"] {
    align-items: flex-end;
    justify-content: flex-end;
    overflow: visible;
  }

  /*
   * Card (hero_card_mini): same knobs as phone — --card-size / --card-lift.
   * Overrides desktop .hero__media--card { max-width: min(480px,86%); max-height: 78% }.
   */
  .hero__media--card,
  .hero__panel[data-panel="card"] .hero__media--card {
    width: auto;
    height: calc((100% - var(--card-lift)) * var(--card-size));
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: right bottom;
    transform: none;
    transform-origin: right bottom;
    align-self: flex-end;
    margin: 0 0 var(--card-lift);
    padding: 0;
  }

  .hero__panel[data-panel="card"] {
    align-items: flex-end;
    justify-content: flex-end;
    overflow: visible;
  }

  /*
   * Social (hero_redes_mini): height knob like phone/card — --social-size / --social-lift.
   * Overrides desktop .hero__media--social { translateY }.
   */
  .hero__media--social,
  .hero__panel[data-panel="social"] .hero__media--social {
    width: auto;
    height: calc((100% - var(--social-lift)) * var(--social-size));
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: right bottom;
    transform: none;
    transform-origin: right bottom;
    align-self: flex-end;
    margin: 0 0 var(--social-lift);
    padding: 0;
  }

  .hero__panel[data-panel="social"] {
    align-items: flex-end;
    justify-content: flex-end;
    overflow: visible;
  }

  /*
   * Laptop (hero_lap_mini): height knob like phone/card — --lap-size / --lap-lift.
   * (was max-height% + scale — didn't shrink with the stage; overflowed on narrow.)
   */
  .hero__panel[data-panel="site"] .hero__media.hero__media--lap {
    width: auto;
    height: calc((100% - var(--lap-lift)) * var(--lap-size));
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: right bottom;
    transform: none;
    transform-origin: right bottom;
    align-self: flex-end;
    margin: 0 0 var(--lap-lift);
    padding: 0;
  }

  /* Person is a full-bleed cover photo — stays flush to the right edge */
  .hero__panel[data-panel="secretary"] {
    padding: 0;
    margin: 0;
    align-items: flex-end;
    justify-content: flex-end;
  }

  /*
   * All object images share ONE right gutter (= --page-gutter) so it never
   * drifts per-tab. Single source of truth — do not re-zero padding elsewhere.
   */
  .hero__panel[data-panel="security"],
  .hero__panel[data-panel="card"],
  .hero__panel[data-panel="social"],
  .hero__panel[data-panel="site"] {
    padding: 0 var(--page-gutter) 0 0;
    margin: 0;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: visible;
    box-sizing: border-box;
  }

  .hero__card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    flex: 0 0 auto;
    order: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Lock height so flex:1 .features doesn't re-center when captions wrap differently */
    min-height: var(--caption-block-h);
    margin: 0 0 var(--gap-card);
    padding: 20px;
    border-radius: clamp(14px, 3.5vw, 18px);
    background: color-mix(in srgb, var(--beige) 48%, var(--white));
    backdrop-filter: none;
    box-shadow: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    /* Above .hero__visual so person overlap tucks under the card */
    z-index: 4;
    pointer-events: auto;
    box-sizing: border-box;
  }

  .btn-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 10px;
    width: 100%;
    min-width: 0;
    height: var(--cta-h);
    min-height: var(--cta-h);
    max-height: var(--cta-h);
    margin-left: 0;
    padding: var(--cta-pad);
    border-radius: var(--cta-radius);
    background: var(--blue);
    color: var(--white);
    font-size: var(--cta-size);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--blue) 28%, transparent);
    box-sizing: border-box;
  }

  .screen .btn-cta {
    grid-column: auto;
    grid-row: auto;
    order: 5;
    margin: 0;
  }

  .btn-cta span {
    font-size: var(--cta-size);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.03em;
  }
}

/* Narrow phones */
@media (max-width: 400px) {
  :root {
    --cta-h: 50px;
  }

  .screen {
    --visual-left: 38%;
    --pill-h: clamp(44px, 6.4svh, 54px);
  }

  .hero__panel {
    justify-content: flex-end;
    align-items: flex-end;
  }

  .hero__media--person {
    width: auto;
    height: calc(100% * var(--person-size));
    max-width: none;
    object-fit: cover;
    object-position: 72% bottom;
    transform: none;
    transform-origin: right bottom;
    margin: 0;
    padding: 0;
  }
}

/* Phones ~400–520: wide assets overlap pills — tuck right + shrink */
@media (min-width: 401px) and (max-width: 520px) {
  .screen {
    --visual-left: 40%;
    --pill-h: clamp(46px, 6.8svh, 56px);
  }

  .hero__media--person {
    width: auto;
    height: calc(100% * var(--person-size));
    max-width: none;
    object-fit: cover;
    object-position: 72% bottom;
    transform: none;
    transform-origin: right bottom;
    margin: 0;
    padding: 0;
  }

  .features__icon {
    width: clamp(24px, 6vw, 30px);
    height: clamp(24px, 6vw, 30px);
  }
}

/* Roomier phones / small tablets — all visuals match person */
@media (min-width: 521px) and (max-width: 980px) {
  .screen {
    --text-top: clamp(14px, 3.8svh, 32px);
    --visual-left: 28%;
  }

  .hero__media--person {
    width: auto;
    height: calc(100% * var(--person-size));
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: 68% bottom;
    transform: none;
    transform-origin: right bottom;
    align-self: flex-end;
    margin: 0;
    padding: 0;
  }

  .hero__panel[data-panel="secretary"] {
    padding: 0;
    margin: 0;
    justify-content: flex-end;
    align-items: flex-end;
    bottom: calc(-1 * var(--person-overlap));
    overflow: hidden;
  }

  /* Shared right gutter — same single source of truth as the base mobile rule */
  .hero__panel[data-panel="security"],
  .hero__panel[data-panel="card"],
  .hero__panel[data-panel="social"],
  .hero__panel[data-panel="site"] {
    padding: 0 var(--page-gutter) 0 0;
    margin: 0;
    justify-content: flex-end;
    align-items: flex-end;
    overflow: visible;
    box-sizing: border-box;
  }
}

/* Short viewports — compress vertically; keep design type sizes */
@media (max-width: 980px) and (max-height: 740px) {
  :root {
    --cta-h: 44px;
  }

  .screen {
    --header-pad-y: clamp(8px, 1.4svh, 12px);
    --text-top: clamp(4px, 1.6svh, 12px);
    --gap-text: clamp(4px, 0.9svh, 8px);
    --gap-stage: clamp(4px, 1svh, 10px);
    --gap-card: clamp(4px, 1svh, 8px);
    --pill-h: clamp(30px, 4.6svh, 40px);
    --pill-gap: clamp(3px, 0.9svh, 7px);
    --pad-b: clamp(8px, 1.6svh, 12px);
  }
}

@media (max-width: 980px) and (max-height: 640px) {
  :root {
    --cta-h: 40px;
  }

  .screen {
    --text-top: clamp(2px, 1svh, 8px);
    --pill-h: clamp(28px, 4.2svh, 34px);
    --pill-gap: 3px;
  }
}

/* Landscape phones — allow scroll so nothing is crushed */
@media (max-width: 980px) and (orientation: landscape) and (max-height: 500px) {
  html,
  body {
    height: auto;
    overflow: auto;
  }

  .screen {
    height: auto;
    min-height: calc(100svh - var(--header-h));
    max-height: none;
    overflow: visible;
  }

  .hero {
    overflow: visible;
  }

  .hero__inner {
    overflow: visible;
    height: auto;
  }
}

/* ── Shared below-hero shell ── */

.process,
.adv,
.eco,
.level,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

.process__inner,
.adv__inner,
.eco__inner,
.level__inner,
.footer__inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
  box-sizing: border-box;
}

.process__eyebrow,
.adv__eyebrow,
.eco__eyebrow {
  margin: 0 0 10px;
  font-size: var(--eyebrow);
  font-weight: 500;
  color: var(--secondary);
}

.process__title,
.adv__title,
.level__title,
.eco__headline {
  margin: 0;
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--black);
  hyphens: none;
  -webkit-hyphens: none;
}

.level__title-keep {
  white-space: nowrap;
}

.process__title-accent,
.adv__title-accent,
.level__title-accent {
  color: var(--blue);
}

.process__sub,
.adv__sub,
.level__sub {
  margin: 14px 0 0;
  font-size: var(--sub);
  font-weight: 300;
  line-height: 1.45;
  color: var(--secondary);
}

/* ── Process ("Как это работает") ── */

.process {
  position: relative;
  z-index: 1;
  background: var(--surface);
  padding: var(--section-y) 0;
}

.process__head {
  max-width: 720px;
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.3vw, 20px);
  margin: var(--section-stack) 0 0;
  padding: 0;
  list-style: none;
}

.pcard {
  display: flex;
  flex-direction: column;
  min-height: clamp(320px, 26vw, 380px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 2px 6px color-mix(in srgb, var(--black) 5%, transparent),
    0 10px 24px color-mix(in srgb, var(--black) 9%, transparent),
    0 28px 50px color-mix(in srgb, var(--black) 8%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 10px color-mix(in srgb, var(--black) 6%, transparent),
    0 16px 32px color-mix(in srgb, var(--black) 12%, transparent),
    0 36px 60px color-mix(in srgb, var(--black) 10%, transparent);
}

.pcard__body {
  padding: clamp(16px, 1.3vw, 22px) clamp(16px, 1.2vw, 20px) 0;
  background: var(--white);
}

.pcard__num {
  display: block;
  margin: 0 0 12px;
  font-size: clamp(34px, 2.6vw, 46px);
  font-weight: 300;
  line-height: 1;
  color: var(--beige);
}

.pcard__title {
  margin: 0 0 8px;
  font-size: var(--card-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

.pcard__text {
  margin: 0;
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.45;
  color: var(--secondary);
}

.pcard__media {
  margin-top: auto;
  padding-top: clamp(12px, 1.1vw, 18px);
}

.pcard__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Tablet + phone: horizontal swipe carousel */
@media (max-width: 980px) {
  .process {
    padding: var(--section-y) 0;
  }

  .process__grid {
    display: flex;
    gap: 14px;
    margin-top: var(--section-stack);
    margin-left: calc(-1 * var(--page-pad-x));
    margin-right: calc(-1 * var(--page-pad-x));
    padding: 4px var(--page-pad-x) 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--page-pad-x);
    scrollbar-width: none;
  }

  .process__grid::-webkit-scrollbar {
    display: none;
  }

  .pcard {
    flex: 0 0 min(292px, 78vw);
    min-height: 420px;
    scroll-snap-align: start;
  }

  .pcard:hover {
    transform: none;
  }
}

@media (max-width: 620px) {
  .process__grid {
    gap: 12px;
  }

  .pcard {
    flex-basis: min(280px, 82vw);
    min-height: 400px;
  }
}

/* ── Advantages ("Умная бизнес-коммуникация") ── */

.adv {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  background: color-mix(in srgb, var(--beige) 40%, var(--white));
}

/* Full-section backdrop (wall + table + vase) — content sits on top */
.adv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/*
 * Phone stands on the table, right side. The SVG is split:
 * left half = phone, right half = its shadow. We anchor by the phone,
 * letting the shadow half sit toward the right edge.
 * Two stacked layers crossfade so the device silhouette never blanks out.
 */
.adv__phone-stage {
  position: absolute;
  z-index: 1;
  bottom: clamp(24px, 5vw, 72px);
  right: clamp(-40px, 2vw, 40px);
  height: clamp(300px, 40vw, 500px);
  aspect-ratio: 678 / 706;
  width: auto;
  pointer-events: none;
}

.adv__phone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.adv__phone.is-front {
  opacity: 1;
}

.adv__inner {
  position: relative;
  z-index: 2;
}

.adv__left {
  max-width: min(58%, 620px);
}

.adv__sub {
  max-width: 440px;
}

.adv__card {
  margin: var(--section-stack) 0 0;
  padding: clamp(20px, 1.8vw, 28px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--black) 8%, transparent);
}

.adv__card-title {
  margin: 0 0 10px;
  font-size: var(--card-title);
  font-weight: 700;
  color: var(--black);
}

.adv__card-text {
  margin: 0;
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--secondary);
}

/* Keep card height stable while tab copy length changes */
@media (min-width: 981px) {
  .adv__card-title {
    min-height: calc(1.2em * 2);
  }

  .adv__card-text {
    min-height: calc(1.5em * 5);
  }
}

.adv__dots {
  display: flex;
  gap: 6px;
  margin-top: clamp(16px, 1.6vw, 22px);
}

.adv__dots span {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 30%, transparent);
  transition: background 0.25s ease;
}

.adv__dots span.is-active {
  width: 34px;
  background: var(--blue);
}

.adv__tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: clamp(14px, 1.4vw, 20px) 0 0;
  padding: 16px 12px 14px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--black) 7%, transparent);
}

.adv__tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 18px;
  text-align: center;
  color: var(--secondary);
  transition: color 0.2s ease;
}

/* Vertical divider between tabs (inset, like the mockup) */
.adv__tab + .adv__tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  height: 68%;
  width: 1px;
  background: color-mix(in srgb, var(--secondary) 18%, transparent);
}

.adv__tab-icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
  flex: 0 0 auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  opacity: 0.4;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.adv__tab-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  padding: 0 4px;
  /* Always 2 lines + bold metrics — no reflow on active/hover */
  min-height: calc(1.25em * 2);
  font-size: clamp(12px, 0.85vw, 13px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary);
  transition: color 0.2s ease;
}

/* Active underline under the label */
.adv__tab::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.adv__tab:hover .adv__tab-label {
  color: var(--black);
}

.adv__tab:hover .adv__tab-icon {
  opacity: 0.65;
}

.adv__tab.is-active .adv__tab-icon {
  opacity: 1;
  /* tint black SVG to --blue (#253e65) */
  filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(1400%)
    hue-rotate(185deg) brightness(0.92) contrast(0.95);
}

.adv__tab.is-active .adv__tab-label {
  color: var(--blue);
}

.adv__tab.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

/* Mobile stacked cards — hidden on desktop */
.adv__mobile {
  display: none;
}

/* Tablet / mobile: stacked feature cards (mockup) */
@media (max-width: 980px) {
  .adv {
    padding: var(--section-y) 0;
    background: var(--surface);
    overflow: visible;
  }

  .adv__bg,
  .adv__phone-stage,
  .adv__desktop {
    display: none;
  }

  .adv__left {
    max-width: none;
  }

  .adv__title br {
    display: none;
  }

  .adv__sub {
    max-width: none;
  }

  .adv__mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: var(--section-stack);
    margin-inline: auto;
    width: 100%;
    max-width: 400px;
  }

  .adv__mcard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 4px;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--white);
    box-shadow: none;
    /* Top/side inset; phone flush to bottom */
    padding: 12px 12px 0 16px;
    box-sizing: border-box;
  }

  .adv__mcard-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    padding: 2px 6px 12px 0;
  }

  .adv__mcard-icon {
    width: 28px;
    height: 28px;
    margin: 0 0 2px;
    object-fit: contain;
    /* tint black SVG to --blue */
    filter: brightness(0) saturate(100%) invert(18%) sepia(28%) saturate(1400%)
      hue-rotate(185deg) brightness(0.92) contrast(0.95);
  }

  .adv__mcard-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--black);
  }

  .adv__mcard-text {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--secondary);
  }

  .adv__mcard-media {
    --mphone-h: 196px;
    position: relative;
    align-self: end;
    width: calc(var(--mphone-h) * 124 / 222);
    min-height: var(--mphone-h);
    margin-top: 0;
    pointer-events: none;
  }

  .adv__mcard-media img {
    display: block;
    width: 100%;
    height: var(--mphone-h);
    max-width: none;
    aspect-ratio: 124 / 222;
    object-fit: contain;
    object-position: right bottom;
  }
}

@media (max-width: 620px) {
  .adv__mobile {
    gap: 10px;
    max-width: 360px;
  }

  .adv__mcard {
    border-radius: 18px;
    padding: 10px 10px 0 14px;
  }

  .adv__mcard-body {
    padding: 0 4px 10px 0;
  }

  .adv__mcard-media {
    --mphone-h: 180px;
  }
}

/* ── Ecosystem ("единая экосистема") ── */

.eco {
  background: var(--surface);
  padding: var(--section-y) 0;
}

.eco__title {
  margin: 0 auto;
  max-width: 820px;
  font-size: var(--sub);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  color: var(--black);
}

/* Horizontal channels — inline icon+label, infinite auto-marquee */
.eco__channels {
  position: relative;
  margin: var(--section-stack) 0 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}

.eco__channels-track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.2vw, 52px);
  width: max-content;
  padding: 6px 0;
  animation: eco-marquee 45s linear infinite;
  pointer-events: none;
}

.eco__channels.is-paused .eco__channels-track,
.eco__channels:not(.is-inview) .eco__channels-track {
  animation-play-state: paused;
}

@keyframes eco-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eco__channels-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    max-width: var(--content-max);
    margin: 0 auto;
  }

  .eco__channels {
    mask-image: none;
    overflow: visible;
  }
}

.eco__chip {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 0;
  white-space: nowrap;
  color: var(--blue);
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

.eco__chip img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%);
  opacity: 0.75;
}

.eco__chip span {
  font-size: var(--feat-label);
  font-weight: 500;
  line-height: 1.2;
  color: var(--blue);
}

.eco__chip.is-active {
  opacity: 1;
}

.eco__chip.is-active img {
  opacity: 1;
}

.eco__stage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  margin: clamp(36px, 4vw, 56px) 0 0;
}

.eco__intro {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.eco__headline {
  max-width: 380px;
}

.eco__headline-accent {
  color: var(--blue);
}

.eco__counter {
  margin-top: auto;
  padding-top: 32px;
  font-size: var(--body);
  font-weight: 400;
  color: color-mix(in srgb, var(--secondary) 70%, transparent);
  letter-spacing: 0.04em;
}

.eco__cur {
  color: var(--secondary);
}

.eco__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: clamp(260px, 28vw, 340px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 2px 6px color-mix(in srgb, var(--black) 5%, transparent),
    0 14px 34px color-mix(in srgb, var(--black) 8%, transparent);
}

.eco__card-body {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2vw, 32px);
}

.eco__quote {
  display: block;
  width: 23px;
  height: 20px;
  margin: 0 0 14px;
  flex: 0 0 auto;
  object-fit: contain;
}

.eco__card-text {
  margin: 0;
  flex: 1 1 auto;
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--secondary);
}

.eco__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.eco__arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--blue);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.eco__arrow:hover {
  background: color-mix(in srgb, var(--beige) 50%, var(--white));
}

.eco__dots {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.eco__dots span {
  flex: 1 1 0;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 22%, transparent);
  transition: background 0.25s ease, flex-grow 0.25s ease;
}

.eco__dots span.is-active {
  flex: 1.6 1 0;
  background: var(--blue);
}

.eco__card-media {
  min-height: 0;
  background: color-mix(in srgb, var(--beige) 35%, var(--white));
}

.eco__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 980px) {
  .eco {
    padding: var(--section-y) 0;
  }

  .eco__stage {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: var(--section-stack);
  }

  .eco__intro {
    min-height: 0;
    margin-bottom: 18px;
  }

  .eco__headline {
    max-width: none;
  }

  .eco__counter {
    margin-top: 16px;
    padding-top: 0;
    font-size: var(--body);
  }

  .eco__card {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    min-height: 0;
    border-radius: 20px;
    box-shadow: 0 6px 24px color-mix(in srgb, var(--black) 7%, transparent);
  }

  .eco__card-body {
    padding: 22px 20px 16px;
  }

  .eco__quote {
    width: 28px;
    height: 24px;
    margin: 0 0 14px;
  }

  .eco__card-text {
    flex: 0 1 auto;
    font-size: var(--body);
    line-height: 1.5;
    color: var(--black);
  }

  .eco__nav {
    margin-top: 22px;
    gap: 10px;
  }

  .eco__arrow {
    color: color-mix(in srgb, var(--secondary) 75%, transparent);
    font-size: 20px;
  }

  .eco__dots {
    gap: 6px;
  }

  .eco__dots span {
    height: 2px;
    background: color-mix(in srgb, var(--beige) 80%, var(--secondary));
  }

  .eco__dots span.is-active {
    flex: 1.8 1 0;
    background: var(--blue);
  }

  .eco__card-media {
    order: 0;
    min-height: 0;
    aspect-ratio: 5 / 4;
  }

  .eco__card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }
}

@media (max-width: 620px) {
  .eco__card-body {
    padding: 20px 18px 14px;
  }

  .eco__card-media {
    aspect-ratio: 4 / 3;
  }

  .eco__channels-track {
    animation-duration: 32s;
  }
}

/* ── Level ("на новый уровень") ── */

.level {
  background: var(--white);
  padding: var(--section-y) 0;
}

.level__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: stretch;
  gap: clamp(32px, 5vw, 80px);
}

.level__title-accent {
  display: inline;
}

.level__sub {
  max-width: 420px;
}

.level__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--section-stack);
  min-height: 100%;
}

.level__cta {
  /* Layout only — chrome comes from .btn-cta */
  margin-top: auto;
  margin-left: 0;
}

.level__right {
  display: flex;
  flex-direction: column;
  gap: var(--section-stack);
  min-height: 100%;
}

.level__copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}

.level__copy p {
  margin: 0;
  font-size: var(--sub);
  font-weight: 400;
  line-height: 1.45;
  color: var(--secondary);
}

.level__feats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  margin: 0;
  margin-top: auto;
  padding: 0;
  list-style: none;
}

.level__feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.level__feat img {
  width: var(--icon-md);
  height: var(--icon-md);
  object-fit: contain;
}

.level__feat span {
  display: block;
  min-height: calc(1.3em * 2);
  font-size: var(--feat-label);
  font-weight: 500;
  line-height: 1.3;
  color: var(--secondary);
  text-align: center;
}

@media (max-width: 980px) {
  /* Match hero column width so CTAs / content share one measure */
  .process__inner,
  .adv__inner,
  .eco__inner,
  .level__inner,
  .footer__inner {
    max-width: var(--mob-max);
  }

  .level {
    padding: var(--section-y) 0;
  }

  .level__inner {
    grid-template-columns: 1fr;
    gap: var(--section-stack);
  }

  .level__sub {
    max-width: none;
  }

  .level__cta {
    width: 100%;
    margin-top: var(--section-stack);
    margin-left: 0;
  }

  .level__copy {
    max-width: none;
    gap: 12px;
  }

  .level__copy p {
    color: var(--black);
    font-size: var(--body);
    line-height: 1.5;
  }

  .level__feats {
    margin-top: var(--section-stack);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 10px;
  }

  .level__feat {
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .level__feat img {
    width: var(--icon-md);
    height: var(--icon-md);
  }

  .level__feat span {
    font-size: var(--feat-label);
    line-height: 1.25;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .level__sub {
    margin-top: 12px;
  }

  .level__feats {
    gap: 6px 8px;
  }
}

/* ── Footer ── */

.footer {
  background: var(--surface);
  color: var(--blue);
  padding-top: clamp(28px, 3.2vw, 48px);
}

.footer__line {
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--blue) 18%, transparent);
}

.footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(36px, 4vw, 56px) 0;
}

.footer__logo {
  flex: 0 0 auto;
  line-height: 0;
}

.footer__logo img {
  width: clamp(152px, 13vw, 190px);
  height: auto;
}

.footer__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__contacts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--sub);
  font-weight: 400;
  line-height: 1.35;
  color: var(--blue);
}

.footer__contacts img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer__contacts a {
  color: inherit;
}

.footer__contacts a:hover {
  color: var(--blue2);
}

.footer__social {
  display: none;
  gap: 14px;
  align-items: center;
  /* Match left edge of contact icons (24px column) */
  margin: 0;
  padding: 0;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

.footer__social-link:hover {
  opacity: 0.7;
}

.footer__social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 2.2vw, 28px) 0;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 2.8vw, 36px);
}

.footer__nav a {
  font-size: var(--feat-label);
  font-weight: 400;
  color: var(--blue);
}

.footer__nav a:hover {
  color: var(--blue2);
}

.footer__copy {
  margin: 0;
  font-size: var(--feat-label);
  font-weight: 400;
  color: var(--blue);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .footer {
    padding-top: clamp(32px, 8vw, 48px);
  }

  .footer__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 0;
  }

  .footer__logo img {
    width: 150px;
  }

  .footer__aside {
    align-items: flex-start;
    width: 100%;
    gap: 20px;
  }

  .footer__contacts {
    gap: 14px;
  }

  .footer__contacts li {
    font-size: 16px;
    gap: 12px;
  }

  .footer__contacts img {
    width: 22px;
    height: 22px;
  }

  .footer__social {
    gap: 16px;
  }

  .footer__social-link {
    width: 28px;
    height: 28px;
  }

  .footer__social-link img {
    width: 28px;
    height: 28px;
  }

  .footer__bottom {
    padding: 22px 0 28px;
  }

  .footer__nav {
    display: none;
  }

  .footer__copy {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: color-mix(in srgb, var(--blue) 70%, var(--secondary));
  }
}

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

  .hero__panel,
  .features__pill,
  .features__dot,
  .btn-cta {
    transition: none !important;
  }

  .hero__panel.is-boot {
    animation: none !important;
  }
}
