.hero{
    position: relative;
    padding:
      calc(var(--header-h) + var(--safe-t) + 16px)
      max(var(--gutter), var(--safe-r))
      0
      max(var(--gutter), var(--safe-l));
    overflow: clip;
    isolation: isolate;
  }
  
  /* ——— Панель: БЕЗ ФОНА, лёгкая сетка ——— */
  .hero__panel{
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    background:
      linear-gradient(color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px) 0 0 / 56px 56px,
      linear-gradient(90deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px) 0 0 / 56px 56px;
    border-radius: 32px;
    padding: clamp(28px, 4vw, 64px) clamp(20px, 3.2vw, 56px);
    min-height: calc(90svh - var(--header-h) - 16px);
    max-height: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: clip;
    isolation: isolate;
  }
  /* Сетку гасим по краям — чтобы не выглядела как таблица */
  .hero__panel::before{
    content:"";
    position:absolute; inset:0; pointer-events:none;
    background: radial-gradient(ellipse at center, transparent 30%, var(--paper) 92%);
    z-index: 0;
  }
  
  /* ——— Связующие линии ——— */
  .hero__links{
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  
  /* ——— Контент ——— */
  .hero__content{
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(14px, 1.8vw, 22px);
  }
  
  .hero__tag{
    display: inline-flex;
    align-items: center;
    background: var(--butter);
    color: var(--ink);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    min-height: 28px;
  }
  
  /* Заголовок */
  .hero__title{
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(32px, 6vw, 96px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .08em;
    color: var(--ink);
    max-width: 100%;
    hyphens: manual;
  }
  .hero__line{
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .22em;
    max-width: 100%;
  }
  .hero__word{ display:inline-block; white-space:nowrap; }
  
  .hero__mark{
    position: relative;
    color: var(--pine);
    display: inline-block;
    white-space: nowrap;
  }
  .hero__mark::after{
    content:"";
    position:absolute;
    left:-.06em; right:-.06em; bottom:.02em;
    height:.3em;
    background: var(--butter);
    z-index: -1;
    border-radius: 2px;
    transform-origin: left center;
    transform: scaleX(1);
  }
  html.js:not(.is-ready) .hero__mark::after{ transform: scaleX(0); }
  html.js.is-ready .hero__mark::after{ animation: hero-mark-draw .5s ease-out .9s both; }
  @keyframes hero-mark-draw{
    from{ transform: scaleX(0); }
    to  { transform: scaleX(1); }
  }
  
  /* Таблетка-звезда */
  .hero__pill{
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.1em; height: 1.1em;
    border-radius: 50%;
    background: var(--pine-mist);
    vertical-align: middle; flex-shrink: 0;
  }
  .hero__pill svg{
    width: 55%; height: 55%;
    animation: hero-pill-spin 20s linear infinite;
    transform-origin: center;
  }
  @keyframes hero-pill-spin{ to{ transform: rotate(360deg); } }
  
  /* Подзаголовок */
  .hero__subtitle{
    max-width: 520px;
    font-size: clamp(16px, 1.3vw + 12px, 20px);
    color: var(--stone);
    margin: 0;
    line-height: 1.45;
    text-wrap: pretty;
  }
  
  /* Кнопки */
  .hero__actions{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.4vw, 16px);
    margin-top: clamp(6px, 1.2vw, 12px);
  }
  
  /* Ghost на светлом: обводка Ink, текст Ink */
  .btn--ghost-dark{
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
  }
  @media (hover: hover) and (pointer: fine){
    .btn--ghost-dark:hover{ background: var(--ink); color: var(--paper); }
  }
  
  /* ——— Social proof ——— */
  .hero__proof{
    display: flex; align-items: center; gap: 14px;
    margin-top: clamp(12px, 1.6vw, 18px);
    flex-wrap: wrap; justify-content: center;
  }
  .hero__avatars{ display: flex; }
  .hero__avatar{
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 700;
    font-size: 14px; color: var(--ink);
    border: 2px solid var(--snow);
    margin-left: -10px;
  }
  .hero__avatar:first-child{ margin-left: 0; }
  .hero__avatar--more{
    background: var(--ink); color: var(--paper);
    font-size: 12px; font-weight: 500;
    font-family: var(--font-body);
  }
  .hero__proof-text{
    font-size: 14px; color: var(--stone);
    margin: 0;
  }
  .hero__proof-text strong{ color: var(--ink); font-weight: 600; }
  
  /* ——— Плавающие превью ——— */
  .hero__previews{
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    perspective: 1200px;
    transform-style: preserve-3d;
    transform: translate3d(0, calc(var(--py, 0) * 1px), 0)
               translate3d(calc(var(--px, 0) * 1px), 0, 0);
  }
  
  .hero-preview{
    position: absolute;
    border-radius: 22px;
    overflow: hidden;
    pointer-events: auto;
    border: 0;
    padding: 0;
    cursor: pointer;
    transform-origin: center center;
    transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease;
    will-change: transform;
    touch-action: manipulation;
    box-shadow: 0 10px 40px -12px rgba(18,18,18,.18);
  }
  .hero-preview:active{ transform: scale(.97) !important; }
  .hero-preview:focus-visible{ outline: 2px solid var(--pine); outline-offset: 4px; }
  
  .hero-preview__inner{
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
  }
  .hero-preview__badge{
    position: absolute;
    bottom: 8px; left: 8px;
    background: var(--ink); color: var(--paper);
    font-size: 11px; padding: 4px 10px;
    border-radius: var(--radius-pill);
    opacity: 0; transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
    font-family: var(--font-body); font-weight: 500;
  }
  @media (hover: hover) and (pointer: fine){
    .hero-preview:hover .hero-preview__badge{ opacity: 1; transform: translateY(0); }
  }
  
  .hero-preview[data-bg="pine-mist"] .hero-preview__inner{ background: var(--pine-mist); }
  .hero-preview[data-bg="butter-soft"] .hero-preview__inner{ background: var(--butter-soft); }
  .hero-preview[data-bg="snow"] .hero-preview__inner{ background: var(--snow); }
  .hero-preview[data-bg="ink"] .hero-preview__inner{ background: var(--ink); }
  .hero-preview[data-bg="ink"] .hero-preview__badge{ background: var(--butter); color: var(--ink); }
  
  .hero-preview__shape{ width: 60%; height: 60%; }
  
  /* ——— Веерная 3D-раскладка (десктоп) ——— */
  .hero-preview[data-pos="1"]{
    left: 6%; top: 22%;
    width: 128px; height: 128px;
    transform: rotateY(8deg) rotateZ(-6deg) translateZ(-40px);
    animation: hero-float-a 9s ease-in-out infinite alternate;
  }
  .hero-preview[data-pos="2"]{
    left: 18%; top: 60%;
    width: 96px; height: 124px;
    transform: rotateY(-10deg) rotateZ(4deg) translateZ(-80px);
    animation: hero-float-b 11s ease-in-out infinite alternate;
    animation-delay: -2s;
  }
  .hero-preview[data-pos="3"]{
    left: 4%; top: 78%;
    width: 112px; height: 80px;
    transform: rotateY(12deg) rotateZ(-3deg) translateZ(-60px);
    animation: hero-float-c 8s ease-in-out infinite alternate;
    animation-delay: -1s;
  }
  .hero-preview[data-pos="4"]{ left: 20%; top: 8%; 
    width: 104px; height: 76px;
    transform: rotateY(0deg) rotateZ(5deg) translateZ(20px);
    animation: hero-float-a 10s ease-in-out infinite alternate;
    animation-delay: -4s;
  }
  .hero-preview[data-pos="5"]{ right: 14%; top: 5%;
    width: 132px; height: 92px;
    transform: rotateY(-8deg) rotateZ(-4deg) translateZ(40px);
    animation: hero-float-b 12s ease-in-out infinite alternate;
    animation-delay: -3s;
  }
  .hero-preview[data-pos="6"]{
    right: 8%; top: 20%;
    width: 108px; height: 132px;
    transform: rotateY(-12deg) rotateZ(6deg) translateZ(-40px);
    animation: hero-float-c 9s ease-in-out infinite alternate;
    animation-delay: -5s;
  }
  .hero-preview[data-pos="7"]{
    right: 4%; top: 62%;
    width: 96px; height: 96px;
    transform: rotateY(10deg) rotateZ(-5deg) translateZ(-70px);
    animation: hero-float-a 11s ease-in-out infinite alternate;
    animation-delay: -6s;
  }
  
  @keyframes hero-float-a{
    from{ translate: 0 0; }
    to  { translate: 4px -10px; }
  }
  @keyframes hero-float-b{
    from{ translate: 0 0; }
    to  { translate: -6px -8px; }
  }
  @keyframes hero-float-c{
    from{ translate: 0 0; }
    to  { translate: 6px 10px; }
  }
  
  /* ——— Лента партнёров ——— */
  .hero__partners{
    max-width: var(--container);
    margin: clamp(20px, 3vw, 40px) auto 0;
    display: flex; align-items: center; gap: clamp(16px, 2vw, 28px);
    flex-wrap: wrap; justify-content: center;
    padding: 18px clamp(12px, 2vw, 24px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .hero__partners-label{
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--stone);
  }
  .hero__partners-list{
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px);
  }
  .hero__partners-list li{
    font-family: var(--font-head); font-weight: 600;
    font-size: clamp(14px, 1.2vw + 8px, 20px);
    color: var(--stone); opacity: .8;
    transition: color .2s, opacity .2s;
  }
  @media (hover: hover) and (pointer: fine){
    .hero__partners-list li:hover{ color: var(--pine); opacity: 1; }
  }
  
  /* ——— JS-анимации стартовых состояний ——— */
  html.js .hero__panel{
    opacity: 0; transform: translateY(6px);
    transition: opacity .25s ease, transform .25s ease;
  }
  html.js.is-ready .hero__panel{ opacity: 1; transform: none; }
  
  html.js .hero__tag,
  html.js .hero__subtitle,
  html.js .hero__actions,
  html.js .hero__proof{ opacity: 0; transform: translateY(12px); }
  html.js.is-ready .hero__tag,
  html.js.is-ready .hero__subtitle,
  html.js.is-ready .hero__actions,
  html.js.is-ready .hero__proof{
    opacity: 1; transform: none;
    transition: opacity .35s ease, transform .35s ease;
  }
  html.js.is-ready .hero__tag{ transition-delay: .2s; }
  html.js.is-ready .hero__subtitle{ transition-delay: .55s; }
  html.js.is-ready .hero__actions{ transition-delay: .65s; }
  html.js.is-ready .hero__proof{ transition-delay: .75s; }
  
  html.js .hero__line > *{ opacity: 0; transform: translateY(24px); }
  html.js.is-ready .hero__line > *{
    opacity: 1; transform: none;
    transition: opacity .6s ease, transform .6s ease;
  }
  html.js.is-ready .hero__line:nth-child(1) > *{ transition-delay: .25s; }
  html.js.is-ready .hero__line:nth-child(2) > *{ transition-delay: .32s; }
  html.js.is-ready .hero__line:nth-child(3) > *{ transition-delay: .39s; }
  html.js.is-ready .hero__line:nth-child(4) > *{ transition-delay: .46s; }
  
  html.js .hero__previews{ opacity: 0; transition: opacity .4s ease .35s; }
  html.js.is-ready .hero__previews{ opacity: 1; }
  
  html.js .hero__partners{ opacity: 0; transform: translateY(16px); }
  html.js.is-ready .hero__partners{
    opacity: 1; transform: none;
    transition: opacity .5s ease .9s, transform .5s ease .9s;
  }
  
  /* ——— Адаптив ——— */
  @media (max-width: 1199px){
    .hero__panel{ max-height: 700px; }
    .hero-preview[data-pos="1"]{ width: 108px; height: 108px; left: 5%; top: 20%; }
    .hero-preview[data-pos="3"]{ width: 96px; height: 72px; left: 3%; top: 76%; }
    .hero-preview[data-pos="7"]{ display: none; }
  }
  
  @media (max-width: 1023px){
    .hero__panel{
      padding: clamp(20px, 3vw, 40px) clamp(16px, 2.4vw, 28px);
      min-height: auto;
      max-height: none;
      border-radius: 24px;
    }
    .hero-preview[data-pos="2"]{ width: 80px; height: 108px; }
    .hero-preview[data-pos="6"]{ width: 84px; height: 108px; }
    .hero__partners{ gap: 12px 20px; }
  }
  
  @media (max-width: 767px){
    .hero__title{ font-size: clamp(28px, 8vw, 48px); }
    .hero__subtitle{ font-size: 16px; max-width: 90%; }
    .hero__actions{ flex-direction: column; width: 100%; gap: 12px; }
    .hero__actions .btn{ width: 100%; min-height: 52px; justify-content: center; }
  
    .hero__previews .hero-preview[data-pos="1"]{ width: 84px; height: 84px; left: 3%; top: 6%; }
    .hero__previews .hero-preview[data-pos="4"]{ width: 70px; height: 60px; left: auto; right: 5%; top: 8%; }
    .hero__previews .hero-preview[data-pos="3"]{ width: 76px; height: 60px; left: 5%; bottom: 8%; top: auto; }
    .hero__previews .hero-preview[data-pos="2"],
    .hero__previews .hero-preview[data-pos="5"],
    .hero__previews .hero-preview[data-pos="6"],
    .hero__previews .hero-preview[data-pos="7"]{ display: none; }
  
    .hero__links{ display: none; }
    .hero__proof{ gap: 10px; }
    .hero__avatar{ width: 30px; height: 30px; font-size: 12px; }
    .hero__partners-list{ gap: 12px 20px; font-size: 14px; }
    .hero__partners{ padding: 14px 0; }
  }
  
  @media (max-width: 479px){
    .hero__title{ font-size: clamp(26px, 8.4vw, 40px); }
    .hero__line{ gap: .18em; }
    .hero__tag{ font-size: 12px; padding: 6px 12px; }
    .hero-preview[data-pos="1"]{ width: 68px; height: 68px; }
    .hero-preview[data-pos="4"]{ width: 62px; height: 52px; }
    .hero-preview[data-pos="3"]{ display: none; }
  }
  
  @media (max-width: 359px){
    .hero__previews{ display: none; }
  }
  
  @media (max-height: 500px) and (orientation: landscape){
    .hero__panel{
      min-height: auto;
      padding: 16px 20px;
      border-radius: 20px;
      max-height: none;
    }
    .hero__title{ font-size: clamp(24px, 4vw, 40px); }
    .hero__subtitle{ font-size: 14px; max-width: 70%; }
    .hero__actions{ flex-direction: row; }
    .hero__actions .btn{ width: auto; min-height: 44px; }
    .hero__previews .hero-preview{ display: none; }
    .hero__proof, .hero__partners{ display: none; }
  }
  
  /* ——— prefers-reduced-motion ——— */
  @media (prefers-reduced-motion: reduce){
    .hero-preview,
    .hero__pill svg{
      animation: none !important;
    }
    html.js .hero__panel,
    html.js .hero__tag,
    html.js .hero__subtitle,
    html.js .hero__actions,
    html.js .hero__proof,
    html.js .hero__line > *,
    html.js .hero__partners{
      opacity: 1 !important; transform: none !important;
      transition: opacity .15s ease !important;
    }
    html.js .hero__mark::after{ transform: scaleX(1) !important; }
  }