/* Pro AI — экран 1 v3
   Фон героя: крем First Internet (их bg-white = #FFFBEF).
   Акцент CTA — наш красный, не оранжевый FI #FA4E03. */

:root {
  --beige: #fffbef;
  --ink: #141414;
  --bar: #1a1a1a;
  --support: #d92e2a;
  --sites: #ffc83d;
  --seo: #49BFFF;
  --crm: #42db72;
  --muted: #6a6a6a;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-script: "Bad Script", cursive; /* кириллица, плавная линия, не «калачик» */
  --radius-soft: 14px; /* слегка скруглённые, не овал */
}

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

body {
  margin: 0;
  background: var(--beige);
  font-family: var(--font-body);
  color: var(--ink);
}

body.has-audit {
  padding-bottom: 5.2rem;
}

.screen-1 {
  position: relative;
  z-index: auto;
  /* Жёсткая высота: иначе контент растягивает экран и прячет квадрокоптер за аудитом */
  height: calc(100vh - 5.2rem - 7.2cm);
  min-height: calc(100vh - 5.2rem - 7.2cm);
  max-height: calc(100vh - 5.2rem - 7.2cm);
  padding: 1.15rem clamp(1.25rem, 3.5vw, 3rem) 0.35rem;
  background: var(--beige);
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* Оболочка плашки + выпадающая лестница */
.nav-shell {
  position: relative;
  z-index: 50;
  width: min(1180px, 96vw);
  margin: 0 auto;
}

/* ——— Плашка: толще, шире, углы слегка скруглены ——— */
.nav-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  min-height: 83px;
  padding: 0.75rem 0.75rem 0.75rem 1.61rem;
  background: var(--bar);
  border-radius: var(--radius-soft);
  color: #fff;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.16);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.426rem;
  letter-spacing: 0.02em;
}


.logo-mark {
  width: 37px;
  height: 37px;
  display: block;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Пирамида из 4 цветов зон (legacy, не используется в v4) */
.logo-pyramid {
  position: relative;
  width: 28px;
  height: 26px;
  display: block;
}

.logo-pyramid .pyr {
  position: absolute;
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.18);
}

.pyr-top {
  top: 0;
  left: 8.5px;
}

.pyr-mid-l {
  top: 7px;
  left: 2px;
}

.pyr-mid-r {
  top: 7px;
  left: 15px;
}

.pyr-base {
  top: 14px;
  left: 8.5px;
}

.t-sites { background: var(--sites); }
.t-seo { background: var(--seo); }
.t-crm { background: var(--crm); }
.t-support { background: var(--support); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.7rem;
  flex: 1;
  justify-content: center;
}

.nav-link,
.nav-trigger {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem 0.55rem;
  font-family: inherit;
  border-radius: 10px;
}

.nav-link:hover,
.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-item {
  position: relative;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chev {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease;
}

.nav-trigger[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.nav-cta {
  flex-shrink: 0;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--support);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.5rem 1.12rem;
  border-radius: var(--radius-soft);
}

.nav-cta:hover {
  filter: brightness(1.08);
}

.nav-burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.mobile-drawer {
  margin: 0.75rem auto 0;
  width: min(420px, 100%);
  background: var(--bar);
  border-radius: var(--radius-soft);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-drawer a,
.mobile-drawer summary {
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-weight: 500;
}

.mob-services {
  color: #fff;
}

.mob-services summary {
  cursor: pointer;
  list-style: none;
}

.mob-services summary::-webkit-details-marker {
  display: none;
}

.mob-services a {
  display: block;
  padding-left: 1.35rem;
  font-size: 0.92rem;
}

.mob-cta {
  background: var(--support) !important;
  text-align: center;
  font-weight: 700 !important;
  margin-top: 0.25rem;
}

/* ——— Hero: H1 по ширине плашки, справа — агентство ——— */
.hero-copy {
  width: min(1180px, 96vw);
  max-width: min(1180px, 96vw);
  margin: 0 auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding-top: 2.05cm;
  position: relative;
  z-index: 3;
}

.hero-stage {
  position: relative;
  width: 100%;
}

.hero-title-wrap {
  position: relative;
  width: max-content;
  max-width: none;
  margin: 0;
  /* Как на скрине: блок заголовка выходит влево от плашки, но не уезжает за край окна */
  left: max(-1.5cm, calc(12px - (100vw - min(1180px, 96vw)) / 2));
  transform: none;
  padding-bottom: 1.2cm;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.15vw, 4.35rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: inherit;
  text-align: left;
}

.hero-title-line {
  display: block;
  width: max-content;
  padding-left: 0;
  margin: 0 0 1cm;
}

.hero-title-line--2 {
  padding-left: 0;
}

.hero-title-line--3 {
  padding-left: 0;
  margin-bottom: 0;
}

#vb-span-01,
#vb-span-02 {
  white-space: nowrap;
}

.hero-aside {
  position: absolute;
  right: 1cm;
  left: auto;
  top: 0;
  z-index: 4;
  width: max-content;
  max-width: none;
  padding-left: 0;
  text-align: right;
  transform: none;
}

.hero-line {
  margin: 0.45cm 0 1.25cm;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 0 clamp(1.25rem, 3.5vw, 3rem) 0;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.35;
  color: var(--support);
  overflow-wrap: break-word;
  text-align: left;
}

.hero-about {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.2;
  font-weight: 600;
  max-width: none;
  width: auto;
  white-space: nowrap;
  text-align: right;
}

.hero-about--contour {
  margin-bottom: 0.85rem;
}

.hero-line-muted {
  color: inherit;
  font-size: 1em;
  font-weight: 600;
}

.contour-italic {
  font-family: inherit;
  font-style: italic;
  font-weight: 600;
  font-size: 1em;
  color: var(--support);
  letter-spacing: inherit;
}

.hero-right {
  justify-self: end;
  width: max-content;
  max-width: 100%;
}

.contour-script {
  position: relative;
  display: inline-block;
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.12em;
  color: var(--support);
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
  transform: rotate(-8deg);
  transform-origin: top center;
  padding: 0 0.15em 0.22em;
  animation: none;
}

.contour-script:hover {
  animation: none;
}

.contour-flow {
  position: absolute;
  left: -2%;
  right: -10%;
  bottom: -0.05em;
  width: 112%;
  height: 0.55em;
  overflow: visible;
  pointer-events: none;
}

.meet-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.55rem;
  min-width: 0;
  width: auto;
  margin-left: auto;
  /* Высота чёрной кнопки «Узнать подробнее» */
  --meet-btn-h: calc(2.24rem + 1.25 * clamp(1.134rem, 1.3125vw, 1.26rem));
  /* Фавикон: как кнопка +25%, затем −7%, −10%, −3%, −5%, ещё −10% */
  --meet-icon-size: calc(var(--meet-btn-h) * 1.25 * 0.93 * 0.90 * 0.97 * 0.95 * 0.90);
}

/* Чёрная кнопка с текстом «Узнать подробнее» */
.meet-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--bar);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1.134rem, 1.3125vw, 1.26rem);
  padding: 1.12rem 2.4rem;
  border: 0;
  border-radius: var(--radius-soft);
  line-height: 1.25;
}

.meet-cta:hover {
  filter: brightness(1.08);
}

/* Вместо Enter: цветной фавикон, крутится по часовой */
.meet-arrow {
  display: grid;
  place-items: center;
  width: var(--meet-icon-size);
  height: var(--meet-icon-size);
  flex-shrink: 0;
  border: 0;
  border-radius: var(--radius-soft);
  background: none;
  color: inherit;
  text-decoration: none;
}

.meet-arrow:hover,
.meet-row:hover .meet-arrow {
  background: none;
}

.meet-arrow__spin,
.meet-arrow__mark {
  display: block;
  width: var(--meet-icon-size);
  height: var(--meet-icon-size);
  transform-origin: 50% 50%;
}

.meet-arrow__spin {
  animation: meet-favicon-spin 2.6s linear infinite;
}

@keyframes meet-favicon-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Бегущая строка: SEO · Сайт · Диалог · CRM, без паузы */
.hero-bottom {
  margin-top: auto;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  transform: none;
  position: relative;
  z-index: 3;
  isolation: isolate;
}

.hero-marquee {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  overflow: hidden;
  padding: 0.7rem 0 0.85rem;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  background: var(--beige);
  position: relative;
  z-index: 3;
  transform: translateY(0.5cm);
}

.hero-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: hero-marquee-run 48s linear infinite;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.09rem, 1.55vw, 1.32rem);
  letter-spacing: 0.04em;
  text-transform: none;
}

.hero-marquee__seq {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 2.4rem;
}

.hero-marquee__track span {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  color: #141414;
}

/* Фавикон Pro AI между названиями больше не рисуем */
.hero-marquee__track span::after {
  content: none !important;
  display: none !important;
  background: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

/* Иконка ≈ 1/3 высоты полосы бегущей строки (padding + строка текста) */
.marquee-icon {
  display: block;
  width: 1.23rem;
  height: 1.23rem;
  flex: 0 0 1.23rem;
  margin: 0;
  object-fit: contain;
  border-radius: 2px;
  pointer-events: none;
  /* Значок остаётся в фирменном цвете файла, текст рядом — тёмный */
  color: initial;
  filter: none;
}

.hero-marquee__track span[data-brand] {
  color: #141414;
}

/* =======================================================================
   ANIMATED EXAMPLES CARDS — горизонтальный сплит
   ======================================================================= */
.ex-card[data-zone="dialog"] {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
}

.ex-card[data-zone="dialog"] .ex-card__media {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1 1 auto;
  aspect-ratio: auto;
  overflow: hidden;
}

/* Входные плашки: не ломать превью каталога/галереи высотой 100% */
.ex-screen.is-gallery .ex-card[data-zone="dialog"] .ex-card__media,
.ex-screen.is-catalog .ex-card[data-zone="dialog"] .ex-card__media {
  height: 14.5rem;
  min-height: 14.5rem;
  flex: none;
}

.ex-card[data-zone="dialog"] .ex-card__media > img.ex-card__base-img {
  display: none;
}

.ex-card[data-zone="dialog"] .ex-card__media::before {
  display: none;
}

.ex-card[data-zone="dialog"] .ex-card__animation-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 3;
  opacity: 1;
  pointer-events: none;
  overflow: hidden;
}

.ex-card[data-zone="dialog"] .ex-card__step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  opacity: 0;
  animation: d-step-cycle 16s infinite;
}

@keyframes d-step-cycle {
  0%, 22% { opacity: 1; z-index: 2; }
  25%, 100% { opacity: 0; z-index: 1; }
}

.ex-card[data-zone="dialog"] .ex-card__step[data-step="1"] { animation-delay: 0s; }
.ex-card[data-zone="dialog"] .ex-card__step[data-step="2"] { animation-delay: 4s; }
.ex-card[data-zone="dialog"] .ex-card__step[data-step="3"] { animation-delay: 8s; }
.ex-card[data-zone="dialog"] .ex-card__step[data-step="4"] { animation-delay: 12s; }

.ex-card[data-zone="dialog"] .ex-card__step-text {
  flex: 0 0 42%;
  width: 42%;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.4;
  color: var(--ink);
  background: var(--beige);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  border-right: 1px solid rgba(20, 20, 20, 0.08);
}

.ex-card__step-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--support);
}

.ex-card[data-zone="dialog"] .ex-card__step-text p {
  margin: 0;
}

.ex-card[data-zone="dialog"] .ex-card__step-img {
  flex: 1 1 auto;
  background: #ece6d8;
  position: relative;
  overflow: hidden;
}

.ex-card[data-zone="dialog"] .ex-card__step-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (prefers-reduced-motion: reduce) {
  .ex-card[data-zone="dialog"] .ex-card__step {
    animation: none;
  }
  .ex-card[data-zone="dialog"] .ex-card__step[data-step="1"] {
    opacity: 1;
    z-index: 2;
  }
}

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

@keyframes contour-swing {
  0%, 100% { transform: rotate(-12deg); }
  25% { transform: rotate(4deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(2deg); }
}
.services-drop {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.5s;
}

.services-drop::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}

.nav-shell:has(#services-menu-wrap:hover) .services-drop,
.nav-shell:has(#services-ladder:hover) .services-drop,
.nav-shell:has(#services-btn:focus-visible) .services-drop,
.nav-shell.is-ladder-open .services-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.svc-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 0 1.15rem 0 1.35rem;
  color: rgba(245, 245, 245, 0.92);
  text-decoration: none;
  border-radius: 12px;
  background: rgba(26, 26, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.35s ease,
    transform 0.4s ease,
    background 0.2s ease,
    color 0.2s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

.nav-shell:has(#services-menu-wrap:hover) .svc-row,
.nav-shell:has(#services-ladder:hover) .svc-row,
.nav-shell:has(#services-btn:focus-visible) .svc-row,
.nav-shell.is-ladder-open .svc-row {
  opacity: 1;
  transform: none;
}

.svc-row[data-zone="sites"] { box-shadow: inset 5px 0 0 var(--sites); }
.svc-row[data-zone="seo"] { box-shadow: inset 5px 0 0 var(--seo); }
.svc-row[data-zone="crm"] { box-shadow: inset 5px 0 0 var(--crm); }
.svc-row[data-zone="support"] { box-shadow: inset 5px 0 0 var(--support); }

.svc-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  letter-spacing: 0.01em;
  text-align: center;
}

/* Крутящийся фавикон в меню «Услуги» убран из HTML; прячем, если всплывёт */
.svc-arrow {
  display: none !important;
}

.svc-arrow__spin,
.svc-arrow__mark {
  display: block;
  width: 28px;
  height: 28px;
  transform-origin: 50% 50%;
}

.nav-shell.is-ladder-open .svc-arrow__spin,
.nav-shell:has(#services-menu-wrap:hover) .svc-arrow__spin,
.nav-shell:has(#services-ladder:hover) .svc-arrow__spin {
  animation: meet-favicon-spin 2.6s linear infinite;
}

.svc-row:hover {
  background: rgba(26, 26, 26, 0.94);
  color: #fff;
}

.svc-row:hover .svc-arrow {
  background: none;
}

/* Второй экран сразу под бегущей строкой: на первом экране виден квадрокоптер. */
.screen-2 {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  margin-top: 0;
  padding: 0;
  background: #fffbef;
}

.screen-2__frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  border: 0;
  background: #fffbef;
  pointer-events: auto;
}

.screen-2__hits {
  display: none;
}

/* ——— Аудит: две строки на всю ширину, кнопка и крестик справа внизу ——— */
.audit-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--support);
  color: #fff;
  min-height: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.audit-bar.is-closed {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.audit-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.2rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.55rem 0.7rem 0.55rem 1.1rem;
}

.audit-copy {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-width: 0;
}

.audit-line1,
.audit-line2 {
  margin: 0;
  white-space: normal;
  max-width: none;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.3;
}

.audit-line1 {
  font-weight: 800;
}

.audit-line2 {
  margin-top: 0.15rem;
  font-weight: 500;
  opacity: 0.94;
}

.audit-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  align-self: center;
}

.audit-close {
  position: static;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.audit-close:hover {
  background: rgba(0, 0, 0, 0.18);
}

.audit-cta {
  flex-shrink: 0;
  margin-right: 0;
  background: var(--bar);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.12rem;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.55rem;
  border-radius: 12px;
  white-space: nowrap;
}

.audit-cta:hover {
  filter: brightness(1.1);
}


/* ——— Живая схема экрана 2 внизу hero, как изометрия FI ——— */
.hero-schematic {
  position: relative;
  flex: 1 1 auto;
  width: min(1180px, 96vw);
  min-height: clamp(280px, 42vh, 560px);
  margin: 1.1rem auto 0;
  border-radius: 18px;
  overflow: visible;
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.hero-schematic__frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 42vh, 560px);
  border: 0;
  background: #000;
}

.hero-schematic__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

@media (max-width: 960px) {
  html {
    scroll-behavior: auto;
    overflow-anchor: none;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-shell {
    width: 100%;
    max-width: none;
  }

  .nav-bar,
  .mobile-drawer {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .nav-bar {
    min-height: 64px;
  }

  .mobile-drawer {
    margin: 0.75rem 0 0;
  }

  /* На мобилке лестница в drawer, не под плашкой */
  .services-drop {
    display: none !important;
  }

  .hero-title-line--2,
  .hero-title-line--3 {
    padding-left: 0;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .hero-title {
    display: flex;
    flex-direction: column;
    gap: 1cm;
    font-size: clamp(2.04rem, 4.62vw, 3.69rem);
    white-space: normal;
    width: 100%;
  }

  .hero-title-wrap {
    display: block;
    width: 100%;
    left: auto;
    transform: none;
    padding-bottom: 0;
  }

  .hero-title-line {
    width: auto;
    grid-column: auto;
    margin: 0;
  }

  #vb-span-01,
  #vb-span-02 {
    white-space: normal;
  }

  .hero-stage {
    min-height: 0;
  }

  .screen-1 {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 1rem;
    overflow-x: clip;
  }

  .hero-bottom {
    width: 100%;
    margin-left: 0;
  }

  .hero-marquee {
    transform: none;
  }

  .hero-line {
    padding-left: 0;
    padding-right: 0;
  }

  /* Графика на весь экран, страница листается, блоки можно нажать */
  .screen-2 {
    position: relative;
    height: 100svh;
    min-height: 100svh;
    max-height: none;
    aspect-ratio: unset;
  }

  .screen-2__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    pointer-events: none;
  }

  .screen-2__hits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    position: absolute;
    inset: 0;
    z-index: 4;
  }

  .screen-2__hit {
    display: flex;
    align-items: flex-end;
    padding: 0.85rem 0.9rem;
    color: #141414;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 0 8px #fffbef;
    touch-action: pan-y;
  }

  .screen-2__hit--sites,
  .screen-2__hit--seo {
    justify-content: flex-start;
  }

  .screen-2__hit--dialog,
  .screen-2__hit--support {
    justify-content: flex-end;
  }

  .audit-bar {
    display: block;
    z-index: 200;
    transform: none;
  }

  .hero-aside {
    position: static;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    margin-top: 1rem;
    text-align: left;
    transform: none;
  }

  .hero-about {
    font-size: clamp(1.2rem, 4.2vw, 1.5rem);
    white-space: normal;
    text-align: left;
  }

  .contour-script {
    transform: none;
    white-space: nowrap;
  }

  .audit-line1,
  .audit-line2 {
    white-space: normal;
  }

  .audit-inner {
    grid-template-columns: 1fr;
    padding: 0.7rem 0.85rem 0.85rem;
  }

  .audit-copy {
    grid-column: 1;
    grid-row: auto;
  }

  .audit-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: stretch;
    width: 100%;
    gap: 0.45rem;
  }

  .audit-cta {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    box-sizing: border-box;
  }

  body.has-audit {
    padding-bottom: 9rem;
  }
}

@media (min-width: 961px) {
  .mobile-drawer {
    display: none !important;
  }

  /* Контакты: тот же шрифт, что пункты меню; по вертикали — середина плашки */
  #vb-a-03 {
    transform: none;
    height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Отступы строк H1: 15 / 15 / 25 px относительно блока заголовка */
  #vb-span-01,
  #vb-span-02,
  #vb-span-03 {
    transform: none;
  }
  #vb-main-01 {
    transform: none;
  }
  #vb-p-01 {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ladder-row,
  .services-ladder-panel {
    transition: none;
  }

  .nav-shell.is-ladder-open .ladder-row {
    transition-delay: 0ms;
    opacity: 1;
    transform: none;
  }

  .contour-script,
  .contour-script:hover {
    animation: none;
  }

  .hero-marquee__track {
    animation: none;
  }

  .meet-arrow__spin,
  .svc-arrow__spin {
    animation: none;
  }
}

/* ——— 02.10: мобильное меню закрыто по умолчанию; атрибут hidden сильнее display:flex ——— */
.mobile-drawer[hidden] {
  display: none !important;
}

/* ——— 02.10: мини-графика второго экрана под свёрнутой плашкой (только мобильная главная) ——— */
.mob-hero-art {
  display: none;
}

@media (max-width: 960px) {
  .mob-hero-art {
    display: block;
    width: min(260px, 72vw);
    margin: 0.9rem auto 0;
  }

  .mob-hero-art img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 520 / 353;
  }

  /* меню открыто — его место занимает список, графику прячем */
  .mobile-drawer:not([hidden]) + .mob-hero-art {
    display: none;
  }
}
