@import url('fonts.css');
:root {
  --navy: #1b2643;
  --navy-2: #243556;
  --navy-3: #0f1728;
  --cyan: #1ec8ff;
  --cyan-2: #5ad8ff;
  --text: #1b2643;
  --muted: #5a6b86;
  --white: #ffffff;
  --soft: #f3f7fb;
  --radius: 28px;
  --radius-sm: 18px;
  --shadow: 0 24px 60px rgba(15, 23, 40, 0.18);
  --font: "Manrope", system-ui, sans-serif;
  /* Same gap between major blocks on PC and phone */
  --section-gap: 28px;
  /* Page width: tight on phone, wide on PC with small side gutters */
  --page-gutter: 16px;
  --page-max: 1180px;
  --page-width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  --edge-radius: 48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  width: 100%;
  max-width: 100%;
  background-color: #f3f7fb;
  overflow-x: hidden;
  overscroll-behavior: none;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior: none;
  overscroll-behavior-x: none;
  overscroll-behavior-y: none;
  touch-action: pan-y;
  position: relative;
  background-color: #f3f7fb;
  background-image:
    radial-gradient(ellipse 120% 70% at 0% 0%, rgba(30, 200, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 8%, rgba(48, 72, 112, 0.10), transparent 52%),
    radial-gradient(ellipse 80% 50% at 85% 100%, rgba(90, 216, 255, 0.14), transparent 50%),
    linear-gradient(165deg, #ffffff 0%, #f3f8fc 38%, #e8f4fb 68%, #eef3f9 100%);
  background-attachment: scroll;
  background-repeat: no-repeat;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
/* Текст можно выделять только в полях и в статьях */
input, textarea, select, option,
[contenteditable="true"],
.allow-select,
.news-body,
.doc-body,
.article-body,
.product-story,
.legal-doc,
pre, code {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
/* Soft page helpers (disabled — caused Safari jitter) */
.edge-veil,
.top-edge-blend {
  display: none !important;
}

/* Header stays transparent over hero */
.site-header.is-scrolled,
.site-header.is-solid {
  background-color: transparent;
  background-image: none;
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}



/* ===== Site intro ===== */
.site-intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  z-index: 4000;
  display: grid;
  place-items: center;
  background: var(--navy);
  opacity: 1;
  visibility: visible;
  transition: background .55s cubic-bezier(.42, 0, .18, 1), opacity .55s ease, visibility .55s ease;
}
.site-intro.is-light {
  background: #ffffff;
}
.site-intro[hidden] {
  display: none !important;
}
.site-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.intro-active {
  overflow: hidden;
}
body.intro-active .to-top,
body.intro-active > .to-top,
body.intro-active .mail-pop {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
.site-intro-inner {
  width: min(440px, calc(100% - 40px));
  display: grid;
  justify-items: center;
  gap: 28px;
}
.site-intro-full {
  width: min(420px, 72vw);
  max-width: 420px;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  filter: brightness(0) invert(1);
  transition: filter .55s cubic-bezier(.42, 0, .18, 1);
}
.site-intro.is-light .site-intro-full {
  filter: none;
}
body.intro-active .site-intro-full {
  animation: intro-full-in .85s cubic-bezier(.22, 1, .36, 1) .08s forwards;
}
@keyframes intro-full-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.site-intro-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  animation: intro-dots-in .4s ease .35s forwards;
}
.site-intro-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.45;
  animation: intro-dot 1.1s ease-in-out infinite;
  transition: background .55s cubic-bezier(.42, 0, .18, 1);
}
.site-intro.is-light .site-intro-dots span {
  background: var(--navy);
}
.site-intro-dots span:nth-child(2) { animation-delay: .16s; }
.site-intro-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes intro-dots-in {
  to { opacity: 1; }
}
@keyframes intro-dot {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.3; }
  35% { transform: translateY(-5px); opacity: 1; }
}
/* Телефон: интро сразу белое — без синих полос сверху и снизу у браузера */
@media (max-width: 980px) {
  html:has(#siteIntro:not(.is-done)),
  html:has(body.intro-active) {
    background-color: #ffffff !important;
  }
  body.intro-active {
    background-color: #ffffff !important;
    background-image: none !important;
  }
  .site-intro,
  .site-intro.is-light {
    background: #ffffff;
  }
  .site-intro .site-intro-full,
  .site-intro.is-light .site-intro-full {
    filter: none;
  }
  .site-intro-dots span,
  .site-intro.is-light .site-intro-dots span {
    background: var(--navy);
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-intro { display: none !important; }
  body.intro-active { overflow: auto; }
  .news-widget--promo.is-expanded::after,
  .news-widget--promo.is-expanded .news-widget-list .news-preview,
  .news-widget--promo.is-collapsing .news-widget-list .news-preview {
    animation: none !important;
  }
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
/* form controls keep light fields — do NOT put color-scheme:light on body
   (that made iPhone browser bars flash blue then turn white) */
input, textarea, select, .quiz-form, .lead-form {
  color-scheme: light;
}

.container {
  width: var(--page-width);
  margin: 0 auto;
}


/* ===== Desktop: wider layout, small side gutters, softer edge rounding ===== */
@media (min-width: 981px) {
  :root {
    /* Как на скрине Директа: блоки по центру с заметными полями по бокам */
    --page-gutter: clamp(48px, 6.5vw, 120px);
    --page-max: 1200px;
    --edge-radius: 40px;
  }
  .hero-direct-inner {
    gap: 40px;
  }
  .section-head {
    max-width: 920px;
    margin-bottom: 32px;
  }
  .section-head h2 {
    font-size: clamp(30px, 3.1vw, 48px);
  }
  .promo-banner {
    gap: 32px;
    padding: 40px 44px;
  }
  .promo-banner-copy {
    max-width: 980px;
  }
  .promo-banner h2 {
    font-size: clamp(28px, 2.8vw, 44px);
  }
  .cards-bento {
    gap: 20px;
  }
  .feature-grid {
    gap: 18px;
  }
  .feature-card {
    padding: 26px;
  }
  .feature-card h3 {
    font-size: 19px;
  }
  .bot-promo {
    gap: 28px;
  }
  .news-widget {
    width: min(820px, 100%);
  }
  .page-lead {
    max-width: 900px;
  }
  .page-main--full {
    max-width: 1180px;
  }
  .page-hero-inner {
    padding: 32px 36px;
    gap: 28px;
  }
  .footer-grid {
    gap: 36px;
  }
  .tab-panel.is-active {
    gap: 32px;
  }
  .vacancy-open-copy {
    max-width: 760px;
  }
}

/* ===== Header: floating glass pills ===== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  margin: 0;
  padding: 0;
  background: transparent;
}
.header-bar {
  width: var(--page-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}
@media (min-width: 981px) {
  .header-bar {
    padding-top: 14px;
    transition: padding-top .28s ease;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .site-header.is-scrolled .header-bar,
  .site-header.is-solid .header-bar {
    padding-top: 8px;
  }
  .header-logo-group {
    gap: 8px;
  }
  .header-main {
    margin-left: 0;
    flex: 0 1 auto;
  }
  .site-header.is-scrolled .header-main,
  .site-header.is-solid .header-main {
    margin-left: 0;
    max-width: none;
  }
}
.header-logo-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.header-pill {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    padding .28s ease,
    opacity .28s ease,
    transform .28s ease,
    max-width .35s ease;
}
.brand.header-pill {
  flex: 0 0 auto;
  padding: 4px 10px;
}
.header-main {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 8px;
  position: relative;
  overflow: visible;
  margin-left: auto; /* phone: push menu to the right */
}
/* PC: same spacing at top and after scroll — no huge middle gap */
@media (min-width: 981px) {
  .header-main,
  .site-header.is-scrolled .header-main,
  .site-header.is-solid .header-main {
    margin-left: 0;
    max-width: none;
  }
  .header-bar {
    justify-content: center;
    gap: 8px;
  }
}
@media (min-width: 981px) {
  .site-header.is-at-top .site-header-collapse {
    width: 0;
    min-width: 0;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.brand { position: relative; }
.brand-logo--on-dark { display: none; }
.brand-logo--on-light { display: block; }
/* Default (top): white logo; colored only after scroll */
.site-header:not(.is-solid):not(.is-scrolled) .brand-logo--on-light {
  display: none;
}
.site-header:not(.is-solid):not(.is-scrolled) .brand-logo--on-dark {
  display: block;
  filter: none;
}
/* Solid / scrolled header: colored logo */
.site-header.is-solid .brand-logo--on-light,
.site-header.is-scrolled .brand-logo--on-light {
  display: block;
  filter: none;
}
.site-header.is-solid .brand-logo--on-dark,
.site-header.is-scrolled .brand-logo--on-dark {
  display: none;
}
/* Custom uploaded logo: white at top, original colors after scroll */
html.has-custom-logo .brand-logo--on-dark { display: none !important; }
html.has-custom-logo .brand-logo--on-light { display: block !important; }
html.has-custom-logo .site-header:not(.is-solid):not(.is-scrolled) .brand-logo--on-light {
  filter: brightness(0) invert(1) !important;
}
html.has-custom-logo .site-header.is-solid .brand-logo--on-light,
html.has-custom-logo .site-header.is-scrolled .brand-logo--on-light {
  filter: none !important;
}
/* Intro: сначала белый знак на синем, потом свои цвета */
html.has-custom-logo .site-intro:not(.is-light) .site-intro-full {
  filter: brightness(0) invert(1);
}
html.has-custom-logo .site-intro.is-light .site-intro-full {
  filter: none;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  row-gap: 2px;
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  overflow: visible;
}
.nav-pill {
  position: absolute;
  top: 0; left: 0; height: 100%;
  border-radius: 999px;
  background: var(--cyan);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: transform .35s cubic-bezier(.22,1,.36,1), width .35s cubic-bezier(.22,1,.36,1), opacity .2s ease;
}
.nav-pill.is-on { opacity: 1; }
.nav a {
  position: relative;
  z-index: 1;
  padding: 6px 5px;
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.15;
  flex: 0 0 auto;
}
.nav a.is-hover,
.nav a:hover { color: #fff; }
.header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  margin-left: 2px;
}
.header-actions .btn {
  padding: 8px 10px;
  font-size: 11.5px;
  white-space: nowrap;
  line-height: 1.1;
}
/* «Позвонить» только на телефоне — на ПК кнопка бесполезна и не должна мелькать */
@media (min-width: 981px) {
  .header-actions > a.btn-ghost[href^="tel:"],
  .site-header.is-scrolled .header-actions > a.btn-ghost[href^="tel:"],
  .site-header.is-solid .header-actions > a.btn-ghost[href^="tel:"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}
@media (max-width: 1180px) {
  .nav a {
    padding: 6px 4px;
    font-size: 11px;
  }
  .header-actions .btn-primary {
    padding: 8px 9px;
    font-size: 11px;
  }
}
.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; margin: auto; position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Scrolled / inner: glass pills. Fixed only on desktop — on phone always absolute like products */
.site-header.is-scrolled,
.site-header.is-solid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  /* без opacity — иначе «Позвонить» / заявки мигают при скролле */
  transition: transform .75s cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 981px) {
  .site-header.is-scrolled,
  .site-header.is-solid {
    position: fixed;
  }
}
.site-header.is-scrolled .header-pill,
.site-header.is-solid .header-pill {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 12px 32px rgba(15, 23, 40, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(28px) saturate(1.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.55);
}
/* ПК / планшет: ручное сворачивание шапки */
@media (min-width: 981px) {
  .site-header.is-header-hidden {
    transform: translateY(calc(-100% - 16px));
    opacity: 0;
    pointer-events: none;
  }
  .site-header-collapse {
    position: static;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
      0 10px 28px rgba(15, 23, 40, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    box-sizing: border-box;
    transition:
      background .2s ease,
      opacity .28s ease,
      visibility .28s ease;
  }
  .site-header:not(.is-at-top) .site-header-collapse {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-header-collapse:hover {
    background: rgba(255, 255, 255, 0.96);
  }
  .site-header-collapse svg {
    display: block;
    transition: transform .28s ease;
  }
  .site-header:not(.is-scrolled):not(.is-solid) .site-header-collapse {
    background: transparent;
    border-color: transparent;
    color: #fff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.is-header-hidden .site-header-collapse {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  /* Свернутая шапка: круглая стрелка «развернуть» */
  .site-header-puller {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(-160%);
    z-index: 88;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
      0 12px 32px rgba(15, 23, 40, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    cursor: pointer;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition:
      transform .45s cubic-bezier(.22, 1, .36, 1),
      opacity .35s ease;
  }
  .site-header-puller.is-on {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-header-puller:hover {
    background: rgba(255, 255, 255, 0.98);
  }
  .site-header-puller svg {
    display: block;
  }
}
.site-scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  height: 3px;
  pointer-events: none;
  background: rgba(48, 72, 112, 0.08);
}
.site-scroll-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1ec8ff, #5ad8ff);
  box-shadow: 0 0 12px rgba(30, 200, 255, 0.45);
  transition: width .12s linear;
}
@media (max-width: 980px) {
  /* Как на сайте без «чёлки»: светлый верх, без синей полосы под статус-баром */
  html:has(body.page-home),
  body.page-home {
    background-color: #ffffff;
  }
  body.page-home {
    position: relative;
    /* Cyan page orbs were peeking through hero corner cutouts — kill them on phone. */
    background-image: none;
  }
  /* Soft page plate under hero bottom radius: corners match white page, not cyan/navy. */
  body.page-home::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--hero-face-h, 100svh) - 32px);
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #f3f7fb;
    background-image: linear-gradient(165deg, #ffffff 0%, #f3f8fc 38%, #e8f4fb 68%, #eef3f9 100%);
  }
  body.page-home main {
    position: relative;
    z-index: 1;
  }
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-solid {
    padding: 0 !important;
  }
  .site-header-hint {
    display: none !important;
  }
  .site-header.is-header-hidden {
    transform: translateY(calc(-100% - 12px));
    opacity: 0;
    pointer-events: none;
  }
  .site-header-collapse {
    order: 3;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
      0 12px 32px rgba(15, 23, 40, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    color: var(--navy);
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition:
      background .2s ease,
      opacity .28s ease;
  }
  .site-header:not(.is-at-top) .site-header-collapse {
    display: inline-flex;
    opacity: 1;
    pointer-events: auto;
  }
  .site-header.is-header-hidden .site-header-collapse,
  .site-header.nav-open .site-header-collapse {
    display: none !important;
    opacity: 0;
    pointer-events: none;
  }
  .site-header:not(.is-scrolled):not(.is-solid) .site-header-collapse {
    background: transparent;
    border-color: transparent;
    color: #fff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header-puller {
    position: fixed;
    top: calc(8px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(-160%);
    z-index: 88;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow:
      0 12px 32px rgba(15, 23, 40, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition:
      transform .45s cubic-bezier(.22, 1, .36, 1),
      opacity .35s ease;
  }
  .site-header-puller.is-on {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
.site-header.is-scrolled .brand.header-pill,
.site-header.is-solid .brand.header-pill {
  padding: 4px 12px;
}
/* На ПК при прокрутке меню остаётся видно — «Контакты» не пропадают */
.site-header.is-scrolled .header-main,
.site-header.is-solid .header-main {
  display: flex;
  flex: 0 1 auto;
  max-width: min(1200px, calc(100% - 120px));
  padding: 3px 6px 3px 8px;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
@media (min-width: 981px) {
  .site-header.is-scrolled .header-main,
  .site-header.is-solid .header-main {
    margin-left: 0;
    max-width: none;
  }
}
@media (max-width: 1280px) {
  .site-header.is-scrolled .header-actions .btn-ghost,
  .site-header.is-solid .header-actions .btn-ghost,
  .site-header .header-actions .btn-ghost {
    display: none;
  }
  .site-header.is-scrolled .nav a,
  .site-header.is-solid .nav a,
  .site-header .nav a {
    padding-left: 4px;
    padding-right: 4px;
    font-size: 11px;
  }
}
.site-header.is-scrolled .brand-logo,
.site-header.is-solid .brand-logo {
  filter: none;
}
.site-header.is-scrolled .nav a,
.site-header.is-solid .nav a {
  color: var(--navy);
  font-weight: 800;
}
.site-header.is-scrolled .nav a.is-hover,
.site-header.is-scrolled .nav a:hover,
.site-header.is-solid .nav a.is-hover,
.site-header.is-solid .nav a:hover {
  color: #fff;
}
.site-header.is-scrolled .btn-ghost,
.site-header.is-solid .btn-ghost {
  border-color: rgba(48,72,112,.16);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.site-header.is-scrolled .nav-toggle,
.site-header.is-solid .nav-toggle {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 12px 32px rgba(15, 23, 40, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  color: var(--navy);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan-2), var(--cyan));
  color: #fff;
}
.btn-dark {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: #fff;
}
/* a:hover задаёт navy — на тёмной кнопке текст пропадал */
a.btn-dark:hover,
a.btn-dark:focus,
.btn-dark:hover,
.btn-dark:focus {
  color: #fff;
}
.tab-copy a.btn-dark:hover,
.tab-copy a.btn-dark:focus,
[data-directions-block] a.btn-dark:hover,
[data-directions-block] a.btn-dark:focus {
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
}
/* Header call button: always readable (later .btn-ghost sets navy — override) */
.site-header .btn-ghost {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.65);
  color: #fff;
}
.site-header.is-scrolled .btn-ghost,
.site-header.is-solid .btn-ghost {
  background: #fff;
  border: 1px solid rgba(48,72,112,.18);
  color: var(--navy);
}

/* ===== Hero Direct-like ===== */
.hero-direct {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  /* Top pad only clears the header; remaining space is split evenly above/below the block */
  padding: calc(76px + env(safe-area-inset-top, 0px)) 0 32px;
  overflow: hidden;
  background: var(--navy-3);
  color: #fff;
  border-radius: 0 0 var(--edge-radius) var(--edge-radius);
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  /* ПК: плавное появление боковых полей (margin auto не анимируется — только числа) */
  transition:
    border-radius .9s cubic-bezier(.33, 1, .68, 1),
    width .9s cubic-bezier(.33, 1, .68, 1),
    max-width .9s cubic-bezier(.33, 1, .68, 1),
    margin-left .9s cubic-bezier(.33, 1, .68, 1),
    margin-right .9s cubic-bezier(.33, 1, .68, 1);
}
/* At the top of the page: edge-to-edge video, no visible rounded frame */
.hero-direct.is-fullscreen {
  border-radius: 0;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
/* PC: видео на всю ширину; при скролле — плавное скругление углов */
@media (min-width: 981px) {
  .hero-direct,
  .hero-direct.is-fullscreen,
  .hero-direct:not(.is-fullscreen) {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .hero-direct {
    border-radius: var(--edge-radius);
    transition: border-radius .9s cubic-bezier(.33, 1, .68, 1);
  }
  .hero-direct.is-fullscreen {
    border-radius: 0;
  }
  .hero-direct-bg {
    transition: border-radius .9s cubic-bezier(.33, 1, .68, 1);
  }
}
.hero-direct-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--navy-3);
  border-radius: inherit;
  transition: border-radius .9s cubic-bezier(.33, 1, .68, 1);
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity .45s ease;
}
.hero-bg-video.is-looping {
  opacity: .55;
}
.hero-bg-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Soft top blend: brand navy → video (smooth into browser bar) */
    linear-gradient(
      to bottom,
      #1b2643 0%,
      rgba(48, 72, 112, 0.88) 18%,
      rgba(48, 72, 112, 0.45) 48%,
      rgba(48, 72, 112, 0.12) 72%,
      rgba(48, 72, 112, 0) 100%
    ),
    linear-gradient(90deg, rgba(48,72,112,.92) 0%, rgba(48,72,112,.68) 42%, rgba(48,72,112,.22) 100%);
  background-size: 100% min(200px, 28vh), 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: top left, center;
}
/* Extra soft blur at the top of the hero video — no hard edge */
.hero-direct-bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: min(180px, 24vh);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(48, 72, 112, 0.65) 0%,
    rgba(48, 72, 112, 0.28) 40%,
    rgba(48, 72, 112, 0.08) 70%,
    rgba(48, 72, 112, 0) 100%
  );
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 25%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 25%, transparent 100%);
}
@media (max-width: 980px) {
  /* Let the real video reach the top — no solid navy “paint strip” over it */
  .hero-bg-shade {
    background:
      linear-gradient(
        to bottom,
        rgba(48, 72, 112, 0.28) 0%,
        rgba(48, 72, 112, 0.12) 40%,
        rgba(48, 72, 112, 0) 70%
      ),
      linear-gradient(90deg, rgba(48,72,112,.88) 0%, rgba(48,72,112,.62) 42%, rgba(48,72,112,.18) 100%);
    background-size: 100% min(140px, 22vh), 100% 100%;
    background-repeat: no-repeat, no-repeat;
    background-position: top left, center;
  }
  .hero-direct-bg::after {
    display: none;
  }
}
.hero-direct-inner {
  position: relative;
  z-index: 1;
  /* Same outer width as the rest of the site by default */
  width: var(--page-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  /* Bottoms of stats + widget stay aligned; chat grows down inside */
  align-items: stretch;
}
/* PC: only the overlay (title / chat / stats) matches «Направления» cards —
   from first card to third — not the full plaque edge. Video stays full-bleed. */
@media (min-width: 981px) {
  .hero-direct-inner {
    /* Directions plaque uses padding 40px 44px (box-sizing:border-box) */
    width: calc(var(--page-width) - 88px);
  }
}
.hero-direct-inner > div:first-child {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.hero-kicker {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-2);
  font-weight: 800;
  margin-bottom: 14px;
}
.hero-direct h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: .95;
  letter-spacing: -.04em;
  font-weight: 800;
  margin-bottom: 22px;
  max-width: 10ch;
}
.hero-lead {
  max-width: 520px;
  color: rgba(255,255,255,.78);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-panel {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  height: 100%;
  align-self: stretch;
}
.hero-panel-top {
  display: flex; gap: 6px; margin-bottom: 10px;
}
.hero-panel-top i {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); display: block;
}
.hero-ai-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  min-height: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255,255,255,.78);
  flex: 0 0 auto;
}
.hero-ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 3px rgba(61, 214, 140, .22);
  flex: 0 0 auto;
}
.hero-ai-live {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}
.hero-ai-live-core {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 8px rgba(61, 214, 140, 0.75);
  z-index: 1;
}
.hero-ai-live-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(61, 214, 140, 0.85);
  animation: hero-ai-pulse 1.7s ease-out infinite;
}
@keyframes hero-ai-pulse {
  0% {
    transform: scale(0.55);
    opacity: 0.95;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-ai-live-ring { animation: none; opacity: 0.45; }
}
.hero-ai-logo {
  display: none;
}
.hero-ai-name {
  color: #fff;
  font-weight: 800;
  letter-spacing: .06em;
}
.hero-ai-status {
  opacity: .72;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 220px;
  margin-bottom: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.hero-msg {
  max-width: 92%;
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition:
    opacity .58s cubic-bezier(.22, 1, .36, 1),
    transform .58s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.hero-msg.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.hero-msg.is-out {
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition:
    opacity .48s cubic-bezier(.4, 0, .2, 1),
    transform .48s cubic-bezier(.4, 0, .2, 1);
}
.hero-msg--agent {
  align-self: flex-start;
}
.hero-msg--client {
  align-self: flex-end;
}
.hero-bubble {
  background: #fff;
  color: var(--navy);
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(34,53,85,.12);
}
.hero-msg--client .hero-bubble {
  background: rgba(255,255,255,.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: none;
}
.hero-bubble-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.hero-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-top: 2px;
  background: rgba(255,255,255,.12);
}
.hero-avatar--logo,
.hero-avatar--iskra {
  background: #fff;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  overflow: hidden;
  padding: 2px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.55);
}
.hero-msg--agent .hero-bubble {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
  border: 1px solid rgba(255,255,255,.65);
}
.hero-avatar--client {
  border: 1.5px solid rgba(255,255,255,.35);
}
.hero-msg--client .hero-avatar {
  order: 2;
}
.hero-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  margin-bottom: 12px;
  width: fit-content;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity .4s cubic-bezier(.22, 1, .36, 1),
    transform .4s cubic-bezier(.22, 1, .36, 1);
}
.hero-typing.is-show {
  opacity: 1;
  transform: translateY(0);
}
.hero-typing.is-hide {
  opacity: 0;
  transform: translateY(4px);
}
.hero-typing[hidden] { display: none !important; }
.hero-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(48,72,112,.35);
  animation: hero-dot 1.35s ease-in-out infinite;
}
.hero-typing span:nth-child(2) { animation-delay: .2s; }
.hero-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes hero-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.hero-chat-cta { width: 100%; margin-top: auto; }

/* ===== News widget ===== */
.section-news {
  position: relative;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(30, 200, 255, 0.18), transparent 55%),
    linear-gradient(160deg, #16233b 0%, #1b2643 45%, #243556 100%);
  color: #fff;
  border-radius: var(--edge-radius);
  overflow: hidden;
  padding: var(--section-gap) 0;
}
.section-news .section-head h2 { color: #fff; }
.section-news .section-head p { color: rgba(255, 255, 255, 0.7); }

.news-widget {
  position: relative;
  contain: layout;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-radius: 44px;
  padding: 22px 22px 20px;
  box-shadow:
    0 24px 60px rgba(8, 14, 28, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(680px, 100%);
  margin: 0 auto;
  overflow: hidden;
  transition:
    padding .55s cubic-bezier(.22, 1, .36, 1),
    border-radius .55s cubic-bezier(.22, 1, .36, 1),
    background .4s ease,
    box-shadow .55s cubic-bezier(.22, 1, .36, 1);
}
.news-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,.14), transparent 38%),
    radial-gradient(
      ellipse 38% 42% at 100% 100%,
      rgba(30, 200, 255, 0.46) 0%,
      rgba(30, 200, 255, 0.14) 42%,
      transparent 70%
    );
}
.news-widget.is-expanded {
  width: 100%;
  max-width: 100%;
  padding: 28px 28px 24px;
  border-radius: 56px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 32px 80px rgba(8, 14, 28, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.news-widget-top {
  display: flex;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.news-widget-top i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3d4554;
  display: block;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
.news-widget-top i:nth-child(1) { background: #ff5f57; }
.news-widget-top i:nth-child(2) { background: #febc2e; }
.news-widget-top i:nth-child(3) { background: #28c840; }
.news-widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.news-widget-kicker {
  margin: 0 0 4px;
  color: var(--cyan-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.news-widget-head h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  color: #fff;
  font-weight: 800;
}
.news-widget-expand {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
}
.news-widget-expand:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}
.news-widget-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  position: relative;
  z-index: 1;
  transition: gap .55s cubic-bezier(.22, 1, .36, 1);
}
.news-widget-list .news-preview:nth-child(n+2) {
  display: none;
}
.news-widget.is-expanded .news-widget-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.news-widget.is-expanded .news-widget-list .news-preview:nth-child(n+2) {
  display: grid;
}
.news-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: inherit;
  text-decoration: none;
  position: relative;
  transition:
    background .4s ease,
    transform .45s cubic-bezier(.22, 1, .36, 1),
    border-color .4s ease,
    box-shadow .45s ease;
}
[data-demo-news][hidden],
[data-demo-vacancy][hidden],
.news-widget-extra[hidden],
html.demo-news-off [data-demo-news],
html.demo-news-off #newsWidgetExtra,
html.demo-vacancies-off [data-demo-vacancy] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  grid-template-rows: 0fr !important;
}
/* Always keep at least the first home-widget news visible */
#newsWidgetList > .news-preview:first-child {
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
html.demo-news-off #newsWidgetList > .news-preview[data-demo-news]:first-child {
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: unset !important;
  padding: 12px !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  grid-template-rows: none !important;
}
html.demo-news-off #newsWidget.is-expanded #newsWidgetList > .news-preview[data-demo-news] {
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: unset !important;
  padding: 12px !important;
  overflow: visible !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  grid-template-rows: none !important;
}
.news-preview-img {
  width: 100%;
  height: auto;
  /* Почти квадрат: картинка чуть шире, с текстом карточка чуть выше квадрата */
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: rgba(255,255,255,.08);
}
.news-preview-body {
  display: grid;
  gap: 4px;
  padding: 2px 4px 4px;
}
.news-preview:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(90, 216, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(8, 14, 28, 0.22);
  color: #fff;
}
.news-preview time {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}
.news-preview strong {
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
}
.news-preview span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}
.news-widget-extra {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  position: relative;
  z-index: 1;
  transition:
    grid-template-rows .9s cubic-bezier(.22, 1, .36, 1),
    opacity .75s ease,
    transform .9s cubic-bezier(.22, 1, .36, 1);
}
.news-widget-extra-inner {
  overflow: hidden;
  display: grid;
  gap: 10px;
  min-height: 0;
}
.news-widget.is-expanded .news-widget-extra {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.news-widget.is-expanded .news-widget-extra-inner {
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  transition: gap .55s cubic-bezier(.22, 1, .36, 1);
}
.news-widget.is-expanded .news-widget-extra-inner .news-preview {
  opacity: 0;
  transform: translateY(16px);
  animation: news-glass-in .7s cubic-bezier(.22, 1, .36, 1) forwards;
}
.news-widget.is-expanded .news-widget-extra-inner .news-preview:nth-child(1) { animation-delay: .08s; }
.news-widget.is-expanded .news-widget-extra-inner .news-preview:nth-child(2) { animation-delay: .16s; }
.news-widget.is-expanded .news-widget-extra-inner .news-preview:nth-child(3) { animation-delay: .24s; }
.news-widget.is-expanded .news-widget-extra-inner .news-preview:nth-child(4) { animation-delay: .32s; }
@keyframes news-glass-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.news-widget-cta {
  width: 100%;
  margin-top: 2px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 40, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), background .35s ease;
}
.news-widget-cta:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 40, 0.88) !important;
  color: #fff;
}

@media (max-width: 980px) {
  .section-news { border-radius: 50px; padding: var(--section-gap) 0; }
  .news-widget,
  .news-widget.is-expanded {
    width: 100%;
    border-radius: 28px;
    padding: 18px;
  }
  .news-widget-list,
  .news-widget.is-expanded .news-widget-list,
  .news-widget.is-expanded .news-widget-extra-inner {
    grid-template-columns: 1fr;
  }
}

/* News page list */
.news-story { display: grid; gap: 22px; }
.news-story--list {
  gap: 18px;
  padding-top: 8px;
}
.news-story--list .section-head h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.15;
}
.news-story--list .section-head p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-weight: 600;
}
.news-story-stats { margin: 0; }
.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
}
.news-filter {
  appearance: none;
  border: 1px solid rgba(48, 72, 112, 0.1);
  background: #fff;
  color: var(--navy);
  font-weight: 750;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 40, 0.04);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.news-filter:hover { transform: translateY(-1px); border-color: rgba(30, 200, 255, 0.45); }
.news-filter.is-on {
  background: linear-gradient(135deg, #1b2643, #243556);
  color: #fff;
  border-color: transparent;
}
.news-filter-empty {
  margin: 8px 0 0;
  font-weight: 600;
}
.news-filter-empty[hidden] { display: none !important; }
.news-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.news-card {
  position: relative;
  display: grid;
  gap: 0;
  grid-template-rows: auto 1fr;
  padding: 0;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, #fff 0%, #f7fbfe 100%);
  border: 1px solid rgba(48, 72, 112, 0.08);
  box-shadow:
    0 12px 32px rgba(15, 23, 40, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: inherit;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, border-color .28s ease;
  min-height: 100%;
}
.news-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #5ad8ff, #1ec8ff 55%, transparent);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 2;
  pointer-events: none;
}
.news-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 0;
  display: block;
  background: #eef3f8;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.news-card-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 16px 18px 18px;
  align-content: start;
  position: relative;
  z-index: 1;
}
.news-card-tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(30, 200, 255, 0.2), rgba(30, 200, 255, 0.08));
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(30, 200, 255, 0.42);
  box-shadow: 0 22px 48px rgba(15, 23, 40, 0.12);
}
.news-card:hover::before { opacity: 1; }
.news-card:hover .news-card-img { transform: scale(1.05); }
.news-card:hover .news-card-more { gap: 8px; }
.news-card time {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  padding: 0;
  align-self: center;
  justify-self: end;
  white-space: nowrap;
}
.news-card h3 {
  margin: 0;
  grid-column: 1 / -1;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.25;
  color: var(--navy);
  padding: 0;
  letter-spacing: -.015em;
}
.news-card p {
  margin: 0;
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
  padding: 0;
  font-size: 14.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-more {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: var(--cyan);
  padding: 6px 0 0;
  margin-top: auto;
  transition: gap .2s ease;
}
/* Первая новость — крупный блок на всю ширину */
.news-feed > .news-card.is-featured {
  grid-column: 1 / -1;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr;
  min-height: 300px;
  background: linear-gradient(120deg, #fff 0%, #f3f9fd 55%, #eaf6fb 100%);
}
.news-feed > .news-card.is-featured .news-card-img {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
}
.news-feed > .news-card.is-featured .news-card-copy {
  padding: 30px 32px 28px;
  gap: 10px 14px;
  align-content: center;
}
.news-feed > .news-card.is-featured h3 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.02em;
}
.news-feed > .news-card.is-featured p {
  -webkit-line-clamp: 4;
  font-size: 15.5px;
}

.news-card video.news-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
  background: #eef3f8;
}
.news-feed > .news-card.is-featured video.news-card-img {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
}
.news-card.is-filter-hidden { display: none !important; }
.news-card:not(:has(.news-card-img)) .news-card-copy {
  grid-template-columns: 1fr;
  padding-top: 20px;
}
.news-feed > .news-card.is-featured:not(:has(.news-card-img)) {
  grid-template-columns: 1fr;
}
@media (max-width: 900px) {
  .news-feed { grid-template-columns: 1fr; }
  .news-feed > .news-card.is-featured {
    grid-template-columns: 1fr;
  }
  .news-feed > .news-card.is-featured .news-card-img {
    min-height: 0;
    height: auto;
    aspect-ratio: 5 / 4;
  }
  .news-feed > .news-card.is-featured .news-card-copy {
    padding: 16px 18px 18px;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.hero-stats div {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #1e3554 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
  min-width: 0;
  text-align: center;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 40, 0.22);
}
.hero-stats b { display: block; font-size: 18px; margin-bottom: 4px; color: #fff; }
.hero-stats span { font-size: 12px; color: rgba(255,255,255,.78); font-weight: 600; }

/* ===== Sections ===== */
.section {
  /* Only top gap — so space between blocks stays exactly --section-gap */
  padding: var(--section-gap) 0 0;
  margin: 0;
}
.section:last-of-type {
  padding-bottom: var(--section-gap);
}
.section-dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #1e3554 100%);
  color: #fff;
  border-radius: var(--edge-radius);
  overflow: hidden;
}
/* After video: Napavleniya = same card radius & side inset as promo plaque */
.hero-direct + .section-dark {
  width: var(--page-width);
  margin-top: var(--section-gap);
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 36px;
  border-radius: 40px;
  box-sizing: border-box;
}
@media (min-width: 981px) {
  .hero-direct + .section-dark {
    padding: 40px 44px;
  }
}
.hero-direct + .section-dark > .container {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.hero-direct + .section-dark + .section {
  padding-top: var(--section-gap);
}
.section-head {
  margin-bottom: 28px;
  max-width: 760px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.section-dark .section-head p { color: rgba(255,255,255,.7); }

.promo-banner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #16233b, #243556);
  border-radius: 36px;
  padding: 36px;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 0;
  outline: 0;
}
.promo-banner--news {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 22px;
}
.promo-banner-copy {
  max-width: 820px;
}
.promo-banner h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.1;
  margin: 12px 0;
}
.promo-banner p { color: rgba(255,255,255,.72); font-weight: 600; margin-bottom: 18px; }
.promo-visual {
  border-radius: 24px;
  overflow: hidden;
  min-height: 220px;
  background: #0f1728 center/cover no-repeat;
}
.promo-visual--logo {
  background: #fff;
  display: grid;
  place-items: center;
  padding: 28px;
}
.promo-visual--logo img {
  width: min(280px, 78%);
  height: auto;
  display: block;
}
.promo-visual--news {
  background: transparent;
  overflow: visible;
  min-height: 0;
  display: block;
  width: 100%;
}
.news-widget--promo {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 0;
  border-radius: 28px;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.1);
  transition:
    width .7s cubic-bezier(.22, 1, .36, 1),
    max-width .7s cubic-bezier(.22, 1, .36, 1),
    padding .7s cubic-bezier(.22, 1, .36, 1),
    border-radius .7s cubic-bezier(.22, 1, .36, 1),
    background .5s ease,
    box-shadow .7s cubic-bezier(.22, 1, .36, 1),
    transform .7s cubic-bezier(.22, 1, .36, 1);
}
.news-widget--promo.is-expanded {
  width: 100%;
  max-width: 100%;
  border-radius: 32px;
  padding: 22px;
  box-shadow:
    0 28px 70px rgba(8, 14, 28, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
.news-widget--promo.is-expanded::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.18) 46%,
    transparent 70%
  );
  background-size: 220% 100%;
  animation: widget-shine 1.05s cubic-bezier(.22, 1, .36, 1) both;
  z-index: 2;
}
@keyframes widget-shine {
  from { background-position: 120% 0; opacity: 0; }
  30% { opacity: 1; }
  to { background-position: -40% 0; opacity: 0; }
}
.news-widget--promo .news-widget-head h3 {
  font-size: 24px;
}
.news-widget--promo .news-widget-list {
  grid-template-columns: 1fr;
  overflow: visible;
  min-height: 0;
}
.news-widget--promo .news-preview {
  min-height: 0;
  overflow: visible;
}
.news-widget--promo .news-preview span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Extra row unused for promo — items live in the list (4 + more when expanded) */
.news-widget--promo .news-widget-extra {
  display: none !important;
}
.news-widget--promo.is-expanded .news-widget-list {
  grid-template-columns: 1fr;
}
.news-widget--promo.is-expanded .news-widget-list .news-preview:nth-child(n+2) {
  display: grid;
}
/* PC: compact when closed; full-width when open — clean expand (no width morph + blur) */
@media (min-width: 981px) {
  .promo-banner--news {
    align-items: start;
    transition: none;
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .promo-banner--news:has(.news-widget.is-expanded) {
    padding-bottom: 40px;
  }
  .promo-visual--news {
    display: flex;
    justify-content: stretch;
    width: 100%;
  }
  .news-widget--promo {
    transition:
      background .55s ease,
      box-shadow .7s cubic-bezier(.22, 1, .36, 1),
      padding .7s cubic-bezier(.22, 1, .36, 1),
      border-radius .7s cubic-bezier(.22, 1, .36, 1),
      transform .7s cubic-bezier(.22, 1, .36, 1);
    width: 100% !important;
    max-width: none !important;
  }
  .news-widget--promo .news-widget-list {
    display: grid;
    gap: 12px;
    width: 100%;
  }
  .news-widget--promo .news-preview {
    min-width: 0;
    align-content: start;
  }
  .news-widget--promo .news-preview-img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 5 / 4;
    object-fit: cover;
  }
  .news-widget--promo .news-preview span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .news-widget--promo .news-widget-head h3 {
    font-size: 22px;
  }

  /* Collapsed PC: 4 in a row */
  .news-widget--promo:not(.is-expanded) .news-widget-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
  .news-widget--promo:not(.is-expanded) .news-widget-list .news-preview {
    display: none !important;
  }
  .news-widget--promo:not(.is-expanded) .news-widget-list .news-preview:nth-child(-n+4) {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    pointer-events: auto !important;
  }
  .news-widget--promo:not(.is-expanded) .news-preview-img {
    height: auto;
    max-height: none;
    aspect-ratio: 5 / 4;
  }

  /* Expanded PC: 4 per row, show the rest (second row) */
  .news-widget--promo.is-expanded .news-widget-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    transition: gap .7s cubic-bezier(.22, 1, .36, 1);
  }
  .news-widget--promo.is-expanded .news-widget-list .news-preview {
    display: grid !important;
  }
  .news-widget--promo.is-expanded .news-widget-list .news-preview:nth-child(n+5) {
    animation: news-promo-rise .75s cubic-bezier(.22, 1, .36, 1) both;
  }
  .news-widget--promo.is-expanded .news-preview-img {
    height: auto;
    max-height: none;
    aspect-ratio: 5 / 4;
  }
  .news-widget--promo.is-expanded .news-widget-list .news-preview:nth-child(5) { animation-delay: .05s; }
  .news-widget--promo.is-expanded .news-widget-list .news-preview:nth-child(6) { animation-delay: .12s; }
  .news-widget--promo.is-expanded .news-widget-list .news-preview:nth-child(7) { animation-delay: .18s; }
  .news-widget--promo.is-expanded .news-widget-list .news-preview:nth-child(8) { animation-delay: .24s; }
  .news-widget--promo.is-collapsing .news-widget-list .news-preview:nth-child(n+5) {
    animation: news-promo-fall .35s ease both;
  }
}
@keyframes news-promo-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(.94);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes news-promo-fall {
  from {
    opacity: 1;
    transform: none;
    filter: none;
  }
  to {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(.97);
    filter: blur(4px);
  }
}
.news-marker {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(8, 14, 28, 0.22);
}
.news-marker--card {
  top: 22px;
  left: 22px;
}
@media (max-width: 980px) {
  .promo-visual--news {
    min-height: 0;
  }
  .news-widget-list,
  .news-widget--promo .news-widget-list,
  .news-widget--promo.is-expanded .news-widget-list,
  .news-widget.is-expanded .news-widget-extra-inner,
  .news-widget--promo .news-widget-extra-inner {
    grid-template-columns: 1fr;
  }
  .news-widget--promo.is-expanded .news-widget-list .news-preview:nth-child(n+2) {
    animation: news-promo-rise .65s cubic-bezier(.22, 1, .36, 1) both;
  }
  .news-widget--promo.is-expanded .news-widget-list .news-preview:nth-child(2) { animation-delay: .04s; }
  .news-widget--promo.is-expanded .news-widget-list .news-preview:nth-child(3) { animation-delay: .1s; }
  .news-widget--promo.is-expanded .news-widget-list .news-preview:nth-child(4) { animation-delay: .16s; }
  .news-widget--promo.is-expanded .news-widget-list .news-preview:nth-child(5) { animation-delay: .22s; }
  .news-widget--promo.is-expanded .news-widget-list .news-preview:nth-child(6) { animation-delay: .28s; }
  .news-widget--promo.is-collapsing .news-widget-list .news-preview:nth-child(n+2) {
    animation: news-promo-fall .3s ease both;
  }
}

.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.tab-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(48,72,112,.06);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}
.tab-btn.is-active {
  background: var(--navy);
  color: #fff;
}
.tab-panel {
  display: none;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(48,72,112,.08);
}
.tab-panel.is-active { display: grid; grid-template-columns: 1.1fr .9fr; }
.tab-copy { padding: 28px; }
.tab-copy h3 { font-size: 28px; margin-bottom: 10px; }
.tab-copy p { color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.tab-media {
  min-height: 280px;
  background: center/cover no-repeat;
}


/* Подсказка «листай вправо» — только телефон */
.bento-swipe-hint {
  display: none;
  margin: 8px 0 18px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.cards-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bento-expand {
  display: none;
}

@media (min-width: 981px) {
  /* Одна сетка: главные + остальные из двух рядов */
  [data-bento-block] .bento-dirs {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  [data-bento-block] .cards-bento--main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-height: none;
    opacity: 1;
    transform: none;
    overflow: visible;
    pointer-events: auto;
    margin-top: 0;
    transition: none;
  }
  [data-bento-block] .cards-bento--more,
  [data-bento-block] .cards-bento--more[hidden] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-height: none;
    opacity: 1;
    transform: none;
    overflow: visible;
    pointer-events: auto;
    margin-top: 0;
    transition: none;
  }
  [data-bento-block] .cards-bento--more .bento-card {
    opacity: 1;
    transform: none;
    transition: none;
    min-width: 0;
  }
  [data-bento-block] .cards-bento--more .bento-card h3 {
    font-size: 15px;
    line-height: 1.25;
  }
  [data-bento-block] .bento-expand {
    display: none !important;
  }
  [data-bento-block] .bento-card--featured {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
    min-height: 280px;
  }
  [data-bento-block] .bento-card--featured img {
    min-height: 0;
  }
  [data-bento-block] .bento-card--featured h3 {
    font-size: clamp(20px, 1.5vw, 26px);
  }
  [data-bento-block] .bento-card--featured .bento-card-text {
    padding: 52px 20px 16px;
  }
  /* Второстепенные плашки на ПК: высота / 1.4 от прежних 5/4 */
  [data-bento-block] .bento-card:not(.bento-card--featured) {
    aspect-ratio: 7 / 4;
  }
}
@media (max-width: 980px) {
  [data-bento-block] .bento-card--featured {
    flex: 0 0 auto !important;
    width: min(92vw, 380px) !important;
    min-width: 300px !important;
    max-width: 380px !important;
    aspect-ratio: 4 / 3 !important;
  }
  [data-bento-block] .bento-card--featured h3 {
    font-size: clamp(20px, 5.8vw, 26px);
  }
  [data-bento-block] .bento-card--featured .bento-short {
    font-size: 15px;
  }
}

/* «Смотрите также» — без общей белой плашки, карточки со своей подложкой */
.related-section {
  margin-top: 0;
  margin-bottom: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  box-sizing: border-box;
  overflow: visible;
  min-width: 0;
  max-width: 100%;
}
.related-section .related-head,
.related-section .section-head {
  margin-bottom: 18px;
}
.related-section .related-head h2,
.related-section .section-head h2 {
  font-size: 22px;
}
.related-section .related-head p,
.related-section .section-head p {
  font-size: 14px;
  margin: 0;
}

/* «Смотрите также»: подсказка листания на телефоне */
.related-section .bento-swipe-hint {
  display: none;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
@media (max-width: 980px) {
  .related-section .bento-swipe-hint {
    display: block;
    margin: 0 0 14px;
  }
  .related-section .cards-bento,
  .cards-bento--related {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 8px;
    padding-right: 20px;
    margin-right: -8px;
    scrollbar-width: none;
  }
  .related-section .cards-bento::-webkit-scrollbar,
  .cards-bento--related::-webkit-scrollbar {
    display: none;
  }
  .related-section .bento-card,
  .cards-bento--related .bento-card {
    scroll-snap-align: start;
    flex: 0 0 auto !important;
    width: min(168px, 52vw) !important;
    min-width: 148px !important;
  }
}

.related-section .cards-bento,
.cards-bento--related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  overflow: visible;
  padding-bottom: 0;
}
.related-section .bento-card,
.cards-bento--related .bento-card {
  position: relative;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 0;
  height: auto;
  aspect-ratio: 5 / 4;
  border-radius: 22px;
  box-shadow: none;
}
.related-section .bento-card:hover,
.cards-bento--related .bento-card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}
.related-section .bento-card img,
.cards-bento--related .bento-card img {
  opacity: 1;
  filter: none;
}
.related-section .bento-card:hover img,
.cards-bento--related .bento-card:hover img,
.related-section .bento-card.is-hover img,
.cards-bento--related .bento-card.is-hover img {
  opacity: 0;
  transform: scale(1.06);
}
.related-section .bento-card-text,
.cards-bento--related .bento-card-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 0;
  height: auto;
  padding: 40px 16px 14px;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 40, 0.16) 48%, rgba(15, 23, 40, 0.4) 100%);
}
.related-section .bento-card .tag,
.related-section .bento-card .bento-short,
.related-section .bento-card .bento-more,
.related-section .bento-card p,
.cards-bento--related .bento-card .tag,
.cards-bento--related .bento-card .bento-short,
.cards-bento--related .bento-card .bento-more,
.cards-bento--related .bento-card p {
  display: none !important;
}
.related-section .bento-card h3,
.cards-bento--related .bento-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff !important;
}
.related-section .bento-card:hover .bento-card-text,
.cards-bento--related .bento-card:hover .bento-card-text {
  top: 0;
  height: 100%;
  padding: 16px 16px 14px;
  background: linear-gradient(160deg, var(--cyan-2) 0%, var(--cyan) 55%, #1f9fd0 100%);
}
.related-section .bento-card:hover h3,
.cards-bento--related .bento-card:hover h3 {
  color: var(--navy) !important;
}

.bento-card {
  position: relative;
  /* Как на скрине / у новостей: почти квадрат, чуть шире */
  aspect-ratio: 5 / 4;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  display: block;
  color: #fff;
  box-shadow: none;
  filter: none;
  -webkit-filter: none;
  transition: transform .25s ease;
}
.bento-card:hover,
.bento-card.is-hover {
  transform: translateY(-4px);
  box-shadow: none;
  color: #fff;
}
.bento-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .3s ease, transform .45s ease;
}
.bento-card:hover img,
.bento-card.is-hover img {
  opacity: 0;
  transform: scale(1.06);
}
.bento-card-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  min-height: 0;
  height: auto;
  padding: 56px 22px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 0%, rgba(34,53,85,.16) 48%, rgba(34,53,85,.42) 100%);
  transition: background .3s ease;
}
.bento-card:hover .bento-card-text,
.bento-card.is-hover .bento-card-text,
.bento-card:focus-visible .bento-card-text {
  top: 0;
  height: 100%;
  padding: 22px 22px 20px;
  background: linear-gradient(160deg, var(--cyan-2) 0%, var(--cyan) 55%, #1f9fd0 100%);
}
.bento-card .tag {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-2);
  font-weight: 800;
  margin-bottom: 8px;
  transition: color .25s ease;
}
.bento-card:hover .tag,
.bento-card.is-hover .tag { color: rgba(48,72,112,.72); }
.bento-card h3 {
  font-size: 22px;
  margin-bottom: 6px;
  color: #fff;
  transition: color .25s ease;
}
.bento-card:hover h3,
.bento-card.is-hover h3 { color: var(--navy); }
.bento-short {
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 600;
  transition: opacity .25s ease, transform .25s ease, max-height .25s ease, margin .25s ease;
}
.bento-card:hover .bento-short,
.bento-card.is-hover .bento-short {
  opacity: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  transform: translateY(6px);
}
.bento-more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: max-height .35s ease, opacity .3s ease, transform .3s ease, margin .3s ease;
}
.bento-card:hover .bento-more,
.bento-card.is-hover .bento-more,
.bento-card:focus-visible .bento-more {
  max-height: 180px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 6px;
}
.bento-more p {
  color: rgba(48,72,112,.88) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
}
.bento-more ul {
  margin: 0 0 10px;
  padding: 0 0 0 16px;
  display: grid;
  gap: 4px;
}
.bento-more li {
  color: rgba(48,72,112,.88);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
article.bento-card {
  cursor: pointer;
}

.product-story .cards-bento--garant,
.product-story .cards-bento--kits {
  margin-top: 4px;
  align-items: start;
}
.product-story .cards-bento--garant {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.product-story .cards-bento--kits {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.product-story .cards-bento--garant .bento-card {
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  min-height: 0;
  height: auto;
  align-self: start;
  overflow: hidden;
}
.product-story .cards-bento--kits .bento-card {
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  min-height: 0;
  height: auto;
  align-self: start;
  overflow: hidden;
}
.product-story .cards-bento--garant .bento-card h3,
.product-story .cards-bento--kits .bento-card h3 {
  font-size: 15px;
  line-height: 1.22;
  margin-bottom: 4px;
}
.product-story .cards-bento--garant .bento-short,
.product-story .cards-bento--kits .bento-short {
  font-size: 13px;
}
.product-story .cards-bento--garant .bento-card-text,
.product-story .cards-bento--kits .bento-card-text {
  padding: 48px 16px 14px;
}
.product-story .cards-bento--garant .bento-card:hover:not(.is-hover) img,
.product-story .cards-bento--kits .bento-card:hover:not(.is-hover) img {
  opacity: 1;
  transform: none;
}
.product-story .cards-bento--garant .bento-card:hover:not(.is-hover) .bento-card-text,
.product-story .cards-bento--kits .bento-card:hover:not(.is-hover) .bento-card-text {
  top: auto;
  height: auto;
  padding: 48px 16px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(34,53,85,.16) 48%, rgba(34,53,85,.42) 100%);
}
.product-story .cards-bento--garant .bento-card:hover:not(.is-hover) h3,
.product-story .cards-bento--kits .bento-card:hover:not(.is-hover) h3 {
  color: #fff;
}
.product-story .cards-bento--garant .bento-card:hover:not(.is-hover) .tag,
.product-story .cards-bento--kits .bento-card:hover:not(.is-hover) .tag {
  color: var(--cyan-2);
}
.product-story .cards-bento--garant .bento-card:hover:not(.is-hover) .bento-short,
.product-story .cards-bento--kits .bento-card:hover:not(.is-hover) .bento-short {
  opacity: 1;
  max-height: none;
  overflow: visible;
  transform: none;
}
.product-story .cards-bento--garant .bento-card:hover .bento-more,
.product-story .cards-bento--garant .bento-card:focus-visible .bento-more,
.product-story .cards-bento--kits .bento-card:hover .bento-more,
.product-story .cards-bento--kits .bento-card:focus-visible .bento-more {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  margin-top: 0;
}
.product-story .cards-bento--garant .bento-card,
.product-story .cards-bento--kits .bento-card {
  grid-column: auto;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.product-story .cards-bento--garant .bento-card.is-hover,
.product-story .cards-bento--kits .bento-card.is-hover {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  z-index: 3;
  transform: none;
  grid-column: auto;
}
.product-story .cards-bento--garant .bento-card.is-hover .bento-card-text,
.product-story .cards-bento--kits .bento-card.is-hover .bento-card-text {
  position: relative;
  top: auto;
  height: auto;
  min-height: 100%;
  justify-content: flex-start;
  padding: 18px 18px 20px;
  transition: background 0.35s ease, padding 0.35s ease;
}
.product-story .cards-bento--garant .bento-card.is-hover .bento-short,
.product-story .cards-bento--kits .bento-card.is-hover .bento-short {
  display: none;
}
.product-story .cards-bento--garant .bento-more,
.product-story .cards-bento--kits .bento-more {
  transition: opacity 0.28s ease, transform 0.35s ease, margin 0.3s ease;
}
.product-story .cards-bento--garant .bento-card.is-hover .bento-more,
.product-story .cards-bento--kits .bento-card.is-hover .bento-more {
  max-height: none;
  opacity: 1;
  overflow: visible;
  transform: none;
  margin-top: 8px;
}
.product-story .cards-bento--garant .bento-card.is-hover .bento-more p,
.product-story .cards-bento--kits .bento-card.is-hover .bento-more p {
  margin-bottom: 10px;
}
.product-story .cards-bento--garant .bento-card.is-hover .bento-more ul,
.product-story .cards-bento--kits .bento-card.is-hover .bento-more ul {
  margin-bottom: 0;
}
.product-story .cards-bento--garant .bento-card.is-hover img,
.product-story .cards-bento--kits .bento-card.is-hover img,
.product-story .cards-bento--garant .bento-card.is-hover:hover img,
.product-story .cards-bento--kits .bento-card.is-hover:hover img {
  opacity: 0;
  transform: scale(1.06);
}
.product-story .cards-bento--garant .bento-card.is-hover .bento-card-text,
.product-story .cards-bento--kits .bento-card.is-hover .bento-card-text,
.product-story .cards-bento--garant .bento-card.is-hover:hover .bento-card-text,
.product-story .cards-bento--kits .bento-card.is-hover:hover .bento-card-text {
  background: linear-gradient(160deg, var(--cyan-2) 0%, var(--cyan) 55%, #1f9fd0 100%);
}
.product-story .cards-bento--garant .bento-card.is-hover h3,
.product-story .cards-bento--kits .bento-card.is-hover h3,
.product-story .cards-bento--garant .bento-card.is-hover:hover h3,
.product-story .cards-bento--kits .bento-card.is-hover:hover h3 {
  color: var(--navy);
}
.product-story .cards-bento--garant .bento-card.is-hover .tag,
.product-story .cards-bento--kits .bento-card.is-hover .tag,
.product-story .cards-bento--garant .bento-card.is-hover:hover .tag,
.product-story .cards-bento--kits .bento-card.is-hover:hover .tag {
  color: rgba(48, 72, 112, 0.72);
}
.product-story .cards-bento--garant .bento-card.is-hover .bento-more p,
.product-story .cards-bento--garant .bento-card.is-hover .bento-more li,
.product-story .cards-bento--kits .bento-card.is-hover .bento-more p,
.product-story .cards-bento--kits .bento-card.is-hover .bento-more li {
  color: rgba(48, 72, 112, 0.88) !important;
}
.product-sheet .product-story .ps-section.ps-section--dirs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: calc(100% + 22px);
  max-width: none;
  box-sizing: border-box;
  padding: 28px 26px 24px 28px;
}
.ps-section--dirs .bento-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  margin: 16px auto 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}
.ps-section--dirs .bento-expand:hover {
  background: rgba(255, 255, 255, 0.22);
}
.ps-section--dirs .bento-expand[hidden] {
  display: none !important;
}
.ps-section--dirs .bento-expand-ico {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-garant-fold].is-garant-open .bento-expand-ico {
  transform: rotate(225deg) translateY(-1px);
}
@keyframes garant-fold-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 981px) {
  [data-garant-fold].is-garant-open .cards-bento--garant > .bento-card:nth-child(n+9),
  [data-garant-fold].is-garant-open .cards-bento--kits > .bento-card:nth-child(n+9) {
    animation: garant-fold-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  [data-garant-fold]:not(.is-garant-open) .cards-bento--garant > .bento-card:nth-child(n+9),
  [data-garant-fold]:not(.is-garant-open) .cards-bento--kits > .bento-card:nth-child(n+9) {
    display: none;
  }
}
@media (max-width: 980px) {
  .ps-section--dirs .bento-swipe-hint {
    display: block;
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.78);
  }
  .product-story .cards-bento--garant,
  .product-story .cards-bento--kits,
  .product-sheet .product-story .cards-bento--garant,
  .product-sheet .product-story .cards-bento--kits {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    overflow-x: auto !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    gap: 12px;
    margin: 0 -16px;
    padding: 8px 0 36px;
    scrollbar-width: none;
    grid-template-columns: none !important;
    height: max-content !important;
    max-height: none !important;
  }
  .product-story .cards-bento--garant:has(.is-hover),
  .product-story .cards-bento--kits:has(.is-hover),
  .product-sheet .product-story .cards-bento--garant:has(.is-hover),
  .product-sheet .product-story .cards-bento--kits:has(.is-hover) {
    overflow-x: auto !important;
    overflow-y: visible;
    height: max-content !important;
  }
  .product-story .cards-bento--garant > .bento-card:first-child,
  .product-story .cards-bento--kits > .bento-card:first-child,
  .product-sheet .product-story .cards-bento--garant > .bento-card:first-child,
  .product-sheet .product-story .cards-bento--kits > .bento-card:first-child {
    margin-left: 16px;
  }
  .product-story .cards-bento--garant > .bento-card:last-child,
  .product-story .cards-bento--kits > .bento-card:last-child,
  .product-sheet .product-story .cards-bento--garant > .bento-card:last-child,
  .product-sheet .product-story .cards-bento--kits > .bento-card:last-child {
    margin-right: 16px;
  }
  .product-story .cards-bento--garant::-webkit-scrollbar,
  .product-story .cards-bento--kits::-webkit-scrollbar {
    display: none;
  }
  .product-story .cards-bento--garant > .bento-card,
  .product-story .cards-bento--kits > .bento-card,
  .product-sheet .product-story .cards-bento--garant > .bento-card,
  .product-sheet .product-story .cards-bento--kits > .bento-card {
    flex: 0 0 auto !important;
    width: min(78vw, 320px) !important;
    min-height: 300px !important;
    aspect-ratio: 3 / 4 !important;
    scroll-snap-align: start;
    grid-column: auto !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    isolation: isolate;
    transform: translate3d(0, 0, 0);
  }
  .product-story .cards-bento--garant > .bento-card.is-hover,
  .product-story .cards-bento--kits > .bento-card.is-hover,
  .product-sheet .product-story .cards-bento--garant > .bento-card.is-hover,
  .product-sheet .product-story .cards-bento--kits > .bento-card.is-hover {
    aspect-ratio: unset !important;
    flex: 0 0 min(78vw, 320px) !important;
    width: min(78vw, 320px) !important;
    height: auto !important;
    max-height: none !important;
    min-height: 300px !important;
    align-self: flex-start;
    overflow: hidden !important;
    border-radius: 22px !important;
    transform: translate3d(0, 0, 0) !important;
    z-index: 1;
    grid-column: auto !important;
    background: linear-gradient(160deg, var(--cyan-2) 0%, var(--cyan) 55%, #1f9fd0 100%);
  }
  .product-story .cards-bento--garant > .bento-card.is-hover .bento-card-text,
  .product-story .cards-bento--kits > .bento-card.is-hover .bento-card-text {
    position: relative !important;
    top: auto;
    height: auto !important;
    min-height: 100% !important;
    overflow: hidden !important;
    border-radius: 22px;
    justify-content: flex-start;
  }
  .product-story .cards-bento--garant > .bento-card.is-hover .bento-more,
  .product-story .cards-bento--kits > .bento-card.is-hover .bento-more {
    max-height: none !important;
    overflow: hidden !important;
  }
  .product-story .cards-bento--garant > .bento-card.is-hover .bento-more p,
  .product-story .cards-bento--garant > .bento-card.is-hover .bento-more li,
  .product-story .cards-bento--kits > .bento-card.is-hover .bento-more p,
  .product-story .cards-bento--kits > .bento-card.is-hover .bento-more li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  [data-garant-fold]:not(.is-garant-open) .cards-bento--garant > .bento-card:nth-child(n+5),
  [data-garant-fold]:not(.is-garant-open) .cards-bento--kits > .bento-card:nth-child(n+5) {
    display: block !important;
  }
  .ps-section--dirs .bento-expand {
    display: none !important;
  }
  .product-sheet .product-story .ps-section.ps-section--dirs {
    width: 100% !important;
    padding: 22px 16px 28px;
    overflow: visible !important;
    isolation: auto;
    contain: none;
  }
}
.bento-more-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.bento-go {
  display: grid !important;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  font-size: 0;
}
.bento-go svg {
  width: 16px;
  height: 16px;
  display: block;
}
.bento-go:hover {
  filter: brightness(1.08);
  color: #fff !important;
}
.bento-pick {
  display: inline-flex !important;
  margin-top: 0;
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  width: fit-content;
}
.bento-pick:hover {
  filter: brightness(1.08);
  color: #fff !important;
}
.quiz-picked {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature-card {
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(48,72,112,.06);
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-weight: 600; font-size: 14px; }

/* Чем мы помогаем клиентам — без плашек, иконки по 2 в ряд */
.home-help-clients {
  margin-top: 28px;
  padding-top: 8px;
}
.home-help-clients-head {
  margin-bottom: 18px;
  max-width: 640px;
}
.home-help-clients-head .home-help-kicker {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}
.home-help-clients-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}
.home-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}
.home-help-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.home-help-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  background: rgba(30, 200, 255, 0.12);
}
.home-help-item h4 {
  margin: 2px 0 6px;
  font-size: 17px;
  color: var(--navy);
}
.home-help-item p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
}
@media (max-width: 700px) {
  .home-help-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Corporate life — bright moments cards */
a.life-moment-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
a.life-moment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(48,72,112,.1);
}
.life-moment-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  height: 140px;
  background: #0f1728;
}
.life-moment-media img,
.life-moment-media video.life-moment-preview {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.life-moment-media video.life-moment-preview {
  /* silent looping preview — no browser chrome */
  background: #0f1728;
}
.life-moment-more {
  display: inline-flex;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}
a.life-moment-card.has-video .life-moment-more::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cyan, #1ec8ff);
  box-shadow: 0 0 0 4px rgba(30, 200, 255, 0.18);
  align-self: center;
}

/* Vacancies page */
.vacancy-story { display: grid; gap: 18px; margin-bottom: 8px; }
.vacancy-plates { margin-top: 4px; }
.vacancy-steps { margin-bottom: 8px; }

.vacancy-search {
  margin: 0 0 22px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(48, 72, 112, 0.08);
  box-shadow: 0 12px 36px rgba(15, 23, 40, 0.06);
}
.vacancy-search-label {
  display: block;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 15px;
}
.vacancy-search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.vacancy-search-row input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(48, 72, 112, 0.14);
  background: #f7fbfe;
  color: var(--navy);
  font-weight: 600;
}
.vacancy-search-row input[type="search"]:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(30, 200, 255, 0.18);
}
.vacancy-search-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  min-height: 1.2em;
}
.vacancy-list {
  display: grid;
  gap: 14px;
}
.vacancy-card {
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(48, 72, 112, 0.07);
  box-shadow: 0 14px 40px rgba(15, 23, 40, 0.07);
  display: grid;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.vacancy-card:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 200, 255, 0.35);
  box-shadow: 0 18px 44px rgba(15, 23, 40, 0.1);
}
.vacancy-card-top { display: grid; gap: 10px; }
.vacancy-card h2 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--navy);
}
.vacancy-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.vacancy-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(30, 200, 255, 0.12);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
}
.vacancy-card-summary {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.vacancy-card-body {
  margin: 0;
  white-space: pre-line;
  color: var(--text);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.55;
}
.vacancy-card-actions {
  margin-top: 6px;
}
.vacancy-empty {
  padding: 18px 4px;
  font-weight: 600;
}
.vacancy-open {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #1b2643, #243556 55%, #1d8fc0);
  color: #fff;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 18px 44px rgba(15, 23, 40, 0.18);
}
.vacancy-open-copy { flex: 1 1 240px; max-width: 640px; }
.vacancy-open .ps-tag {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: rgba(255,255,255,.9);
}
.vacancy-open .ps-tag::before {
  content: none !important;
  display: none !important;
}

.vacancy-open h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.6vw, 26px);
  color: #fff;
}
.vacancy-open p { margin: 0; color: rgba(255,255,255,.82); font-weight: 600; }
.vacancy-open a:not(.btn) { color: #9fe0f7; font-weight: 800; }
.vacancy-open .btn-dark {
  background: #fff;
  color: var(--navy);
  flex: 0 0 auto;
}
.panel-soft { /* alias */ }
.cta-wide {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  background: #fff;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 40, 0.1);
}
.cta-wide-copy { padding: 36px 40px; }
.cta-wide-copy .eyebrow {
  margin-bottom: 10px;
  color: rgba(48, 72, 112, 0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.cta-wide-copy h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--navy);
}
.cta-wide-copy p { color: var(--muted); font-weight: 600; margin-bottom: 18px; }

/* Глобальный блок консультации: один вид везде */
[data-cta="consult"].cta-wide {
  background: #fff;
  color: var(--navy);
}
[data-cta="consult"] .cta-wide-copy .eyebrow { color: rgba(48, 72, 112, 0.45) !important; }
[data-cta="consult"] .cta-wide-copy h2 { color: var(--navy) !important; }
[data-cta="consult"] .cta-wide-copy > p { color: var(--muted) !important; }

.cta-wide-media {
  min-height: 280px;
  background: center/cover no-repeat;
}

/* Homepage: Yandex map under lead form */
.section-map {
  padding-top: var(--section-gap);
}
.home-map {
  background: #fff;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 23, 40, 0.1);
  padding: 28px 28px 24px;
}
.home-map-head {
  margin-bottom: 16px;
}
.home-map-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--navy);
}
.home-map-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.home-map-frame {
  position: relative;
  width: 100%;
  height: min(420px, 58vh);
  border-radius: 28px;
  overflow: hidden;
  background: #e8f1f8;
  border: 1px solid rgba(48, 72, 112, 0.06);
}
.home-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.home-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 980px) {
  .home-map {
    border-radius: 28px;
    padding: 20px 16px 16px;
  }
  .home-map-frame {
    height: min(320px, 52vh);
    border-radius: 20px;
  }
  .home-map-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .home-map-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Contacts: banner full-bleed, text in frosted card (readable on any image) */
.contacts-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px !important;
  color: var(--navy);
  background-color: #e8f1f8;
  background-image: url("../img/hero-office.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100%;
}
.contacts-panel[data-media-slot] {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.contacts-panel-card {
  width: min(100%, 360px);
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 18px 44px rgba(15, 23, 40, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.contacts-panel-card h2 {
  color: var(--navy);
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.1;
}
.contacts-panel-card p {
  margin: 0 0 8px;
  font-weight: 600;
}
.contacts-panel-card p:last-child {
  margin-bottom: 0;
}
.contacts-panel-muted {
  color: var(--muted) !important;
}
.contacts-panel-link {
  color: var(--navy) !important;
  font-weight: 800 !important;
  font-size: 17px;
}
.contacts-panel-link a {
  color: var(--navy);
}
.contacts-panel-link a:hover {
  color: var(--cyan);
}
.contacts-panel-link + .contacts-panel-link a {
  color: var(--cyan);
  font-weight: 700;
}
.contacts-panel-link + .contacts-panel-link a:hover {
  color: var(--navy);
}

.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(48,72,112,.05);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--navy);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: -4px;
  border-right: 2.5px solid var(--cyan);
  border-bottom: 2.5px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.faq-item.is-open summary::after,
.faq-item[open] summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.22, 1, .36, 1);
}
.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}
.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-item .faq-panel-inner p,
.faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s ease .05s, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.faq-item.is-open .faq-panel-inner p {
  opacity: 1;
  transform: translateY(0);
}

/* Реклама бота вместо FAQ на главной */
.bot-promo {
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 22px;
  align-items: stretch;
}
.bot-promo-copy {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 28px 28px 26px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(48, 72, 112, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 40, 0.06);
}
.bot-promo-copy .tag {
  width: fit-content;
  margin: 0;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(30, 200, 255, 0.14);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bot-promo-copy h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--navy);
}
.bot-promo-copy > p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  max-width: 46ch;
}
.bot-promo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bot-promo-chips span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 200, 255, 0.12);
  color: var(--navy);
  font-size: 13px;
  font-weight: 750;
}
.bot-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.bot-promo-hint {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(30, 200, 255, 0.45), transparent 55%),
    linear-gradient(155deg, #1b2643 0%, #243556 55%, #152038 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 40, 0.18);
  overflow: hidden;
  position: relative;
}
.bot-promo-hint-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.bot-promo-hint-title strong { color: var(--cyan-2); }
.bot-promo-hint-text { display: none; }
.bot-promo-map,
.bot-promo-stage {
  position: relative;
  margin-top: 12px;
  min-height: 220px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.bot-promo-viewport {
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 50% at 18% 0%, rgba(30, 200, 255, 0.22), transparent 58%),
    linear-gradient(160deg, #2a3d5f, #152038 72%);
}
/* Only the fake page zooms — button & chat stay sharp overlays */
.bot-promo-page {
  position: absolute;
  inset: 0;
  transform-origin: 92% 92%;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  animation: none;
}
.home-bot-promo.is-visible .bot-promo-page {
  animation: bot-promo-zoom 7.5s cubic-bezier(.4, .05, .2, 1) infinite;
}
.bot-promo-page-head {
  display: flex;
  gap: 6px;
  padding: 14px 14px 0;
}
.bot-promo-page-head span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}
.bot-promo-page-head span:nth-child(1) { width: 42px; }
.bot-promo-page-head span:nth-child(2) { width: 10px; border-radius: 50%; }
.bot-promo-page-head span:nth-child(3) { flex: 1; max-width: 110px; margin-left: auto; }
.bot-promo-page-body {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10px;
  padding: 14px;
}
.home-bot-promo.is-visible .bot-promo-page-body {
  animation: bot-promo-dim 7.5s ease-in-out infinite;
}
.bot-promo-page-lines {
  display: grid;
  gap: 7px;
  align-content: start;
  padding-top: 6px;
}
.bot-promo-page-lines i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.bot-promo-page-lines i:nth-child(1) { width: 78%; }
.bot-promo-page-lines i:nth-child(2) { width: 92%; }
.bot-promo-page-lines i:nth-child(3) { width: 58%; }
.bot-promo-page-card {
  height: 72px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.bot-promo-fake-fab {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1b2643;
  background: linear-gradient(180deg, #fff, #e8f5fb);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
  z-index: 4;
  transform: translateZ(0);
  will-change: transform, box-shadow;
  animation: none;
}
.home-bot-promo.is-visible .bot-promo-fake-fab {
  animation: bot-promo-fab 7.5s ease-in-out infinite;
}
.bot-promo-click {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(90, 216, 255, 0.95);
  opacity: 0;
  transform: scale(.5);
  pointer-events: none;
  animation: none;
}
.home-bot-promo.is-visible .bot-promo-click {
  animation: bot-promo-click 7.5s ease-out infinite;
}
.bot-promo-fake-chat {
  position: absolute;
  right: 12px;
  bottom: 70px;
  width: 148px;
  height: 124px;
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #eef7fc);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 16px, 0) scale(.88);
  transform-origin: 90% 100%;
  z-index: 5;
  animation: none;
  display: grid;
  align-content: start;
  gap: 7px;
  pointer-events: none;
  will-change: transform, opacity;
}
.home-bot-promo.is-visible .bot-promo-fake-chat {
  animation: bot-promo-chat 7.5s cubic-bezier(.22, 1, .36, 1) infinite;
}
.bot-promo-fake-chat-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
}
.bot-promo-fake-chat-head b {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5ad8ff, #1ec8ff);
  flex: 0 0 auto;
}
.bot-promo-fake-chat-head span {
  height: 8px;
  width: 46%;
  border-radius: 999px;
  background: rgba(48, 72, 112, 0.2);
}
.bot-promo-fake-chat-bubble {
  height: 13px;
  width: 78%;
  border-radius: 9px;
  background: rgba(30, 200, 255, 0.28);
}
.bot-promo-fake-chat-bubble.is-me {
  width: 58%;
  margin-left: auto;
  background: rgba(48, 72, 112, 0.14);
}
.bot-promo-fake-chat-input {
  margin-top: auto;
  height: 14px;
  border-radius: 9px;
  background: rgba(48, 72, 112, 0.07);
  border: 1px solid rgba(48, 72, 112, 0.1);
}

/* Mild pan+zoom on page only · fab/chat stay crisp · chat after click only */
@keyframes bot-promo-zoom {
  0%, 14% { transform: translate3d(0, 0, 0) scale(1); }
  38%, 82% { transform: translate3d(-10%, -12%, 0) scale(1.28); }
  92%, 100% { transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes bot-promo-dim {
  0%, 46% { opacity: 1; }
  56%, 82% { opacity: .42; }
  92%, 100% { opacity: 1; }
}
@keyframes bot-promo-fab {
  0%, 36% { transform: scale(1); box-shadow: 0 10px 22px rgba(0,0,0,.3); }
  44% { transform: scale(.9); box-shadow: 0 4px 10px rgba(0,0,0,.22); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(30,200,255,.2), 0 12px 24px rgba(0,0,0,.28); }
  58%, 82% { transform: scale(1); box-shadow: 0 0 0 0 rgba(30,200,255,0), 0 10px 22px rgba(0,0,0,.3); }
  92%, 100% { transform: scale(1); box-shadow: 0 10px 22px rgba(0,0,0,.3); }
}
@keyframes bot-promo-click {
  0%, 42% { opacity: 0; transform: scale(.4); }
  47% { opacity: 1; transform: scale(1); }
  55% { opacity: 0; transform: scale(1.55); }
  100% { opacity: 0; transform: scale(.4); }
}
@keyframes bot-promo-chat {
  0%, 50% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 16px, 0) scale(.88);
  }
  51% {
    opacity: 0;
    visibility: visible;
    transform: translate3d(0, 16px, 0) scale(.88);
  }
  58% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, -2px, 0) scale(1.02);
  }
  64%, 82% {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
  }
  90%, 100% {
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 12px, 0) scale(.9);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bot-promo-page,
  .bot-promo-page-body,
  .bot-promo-fake-fab,
  .bot-promo-click,
  .bot-promo-fake-chat {
    animation: none !important;
  }
  .bot-promo-fake-chat {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .bot-promo-page-body {
    opacity: 1;
  }
}
@media (max-width: 820px) {
  .bot-promo { grid-template-columns: 1fr; }
}

.lead-form {
  display: grid;
  gap: 10px;
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(48,72,112,.14);
  background: #fff;
  color: var(--navy);
}

/* Согласия: одна колонка текста + галочка слева (не разбивать слова по колонкам) */
.check-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.quiz-form .check,
.lead-form .check,
label.check {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.45;
  margin: 0;
}
.quiz-form .check input,
.lead-form .check input,
label.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--cyan);
}
.check-text {
  display: block;
  min-width: 0;
}
.check-text a {
  font-weight: 800;
  white-space: normal;
}

/* Quiz form */
.quiz-form { display: grid; gap: 14px; }
.quiz-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(48,72,112,.08);
  overflow: hidden;
}
.quiz-progress-bar {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #5ad8ff);
  transition: width .35s ease;
}
.quiz-step-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.quiz-step { display: none; gap: 10px; }
.quiz-step.is-active { display: grid; }
.quiz-q {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 4px;
}
.quiz-help-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
}
.quiz-form.is-help-mode [data-quiz-help] textarea {
  min-height: 110px;
}
.quiz-options {
  display: grid;
  gap: 10px;
}
@media (max-width: 560px) {
  .quiz-options { grid-template-columns: 1fr; }
}
.quiz-option {
  display: block;
  cursor: pointer;
}
.quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.quiz-option span {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(48,72,112,.12);
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.quiz-option:hover span,
.quiz-option input:focus-visible + span {
  border-color: rgba(30,200,255,.55);
}
.quiz-option input:checked + span {
  border-color: var(--cyan);
  background: rgba(30,200,255,.12);
  box-shadow: 0 0 0 3px rgba(30,200,255,.18);
}
.quiz-form input,
.quiz-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(48,72,112,.14);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
}
.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.quiz-actions .btn { min-width: 120px; }
.quiz-actions .btn[hidden] { display: none !important; }
.quiz-actions #quizSubmit { flex: 1 1 140px; }
.quiz-hint {
  margin: 0;
  color: #c0392b;
  font-size: 13px;
  font-weight: 700;
}

/* ===== Inner pages (Yandex-style continuation of homepage) ===== */
.page { padding-bottom: 40px; }
.page-inner { padding-top: 88px; }
.page-top {
  padding: 18px 0 8px;
}
.page-top .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.page-top .breadcrumbs a::after {
  content: "/";
  margin-left: 8px;
  color: rgba(48,72,112,.35);
}
.inner-ydx {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 24px;
}
.inner-section { width: 100%; }
.inner-section .section-head {
  margin-bottom: 18px;
}
.page-hero { padding: 110px 0 16px; }
.page-hero-inner {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 20px;
  align-items: end;
  background: #fff;
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(48,72,112,.08);
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: 10px;
}
.page-lead { color: var(--muted); font-weight: 600; max-width: 720px; }
.eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 10px;
}
.breadcrumbs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumbs a::after {
  content: "/";
  margin-left: 8px;
  color: rgba(48,72,112,.35);
}
.page-hero-side { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.hero-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(48,72,112,.06);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.page-body { padding: 8px 0 40px; }
.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  align-items: start;
}
.page-main--full { max-width: 920px; }
.content-blocks { display: flex; flex-direction: column; gap: var(--section-gap); }
.content-block,
.glass,
.info-card,
.icon-card,
.product-card,
.page-aside {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(48,72,112,.06);
}
.content-block { padding: 28px 30px; }
.content-block:empty,
.glass:empty {
  display: none !important;
}
.content-block--with-media {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 22px;
  align-items: start;
}
.content-block-media {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  background: #eef3f8;
}
.content-block-copy {
  min-width: 0;
}
.content-block-copy .btn { margin-top: 6px; }
@media (max-width: 860px) {
  .content-block--with-media {
    grid-template-columns: 1fr;
  }
  .content-block-media {
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }
}
.content-block h2,
.content-block h3 { margin-bottom: 10px; }
.legacy-content { font-size: 15px; color: var(--text); }
.legacy-content h2,
.legacy-content h3,
.legacy-content h4 { color: var(--navy); margin: 0 0 14px; }
.legacy-content h3 { margin-top: 22px; font-size: 18px; }
.legacy-content p,
.legacy-content li { margin-bottom: 12px; color: var(--muted); line-height: 1.55; }
.legacy-content ul { padding-left: 20px; }
.legacy-content ul.list,
.legacy-content .feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.legacy-content ul.list li,
.legacy-content .feature-list li {
  position: relative;
  padding: 12px 14px 12px 40px;
  margin: 0;
  border-radius: 16px;
  background: rgba(30, 200, 255, 0.12);
  color: var(--navy);
  font-weight: 600;
}
.legacy-content ul.list li::before,
.legacy-content .feature-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--cyan);
}
.legacy-content img { border-radius: 14px; }

/* Nice tables */
.legacy-content table,
.table1,
.price-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 8px 0 0;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(48, 72, 112, 0.08);
}
.table1__forscroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
  border-radius: 20px;
}
.legacy-content th,
.table1 th,
.price-table th {
  background: linear-gradient(135deg, #1b2643, #243556);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-align: left;
  padding: 14px 16px;
  border: none;
  letter-spacing: 0.02em;
}
.legacy-content td,
.table1 td,
.price-table td {
  border: none;
  border-top: 1px solid rgba(48, 72, 112, 0.08);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  vertical-align: top;
}
.legacy-content tr:nth-child(even) td,
.table1 tr:nth-child(even) td,
.price-table tr:nth-child(even) td {
  background: rgba(243, 247, 251, 0.85);
}
.legacy-content .td--price,
.table1 .td--price,
.price-table .td--price {
  white-space: nowrap;
  font-weight: 800;
  color: var(--navy);
}
.legacy-content td:last-child,
.table1 td:last-child,
.price-table td:last-child {
  color: var(--cyan);
  font-weight: 800;
}
.include-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.include-list li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(243, 247, 251, 0.95);
  border: 1px solid rgba(48, 72, 112, 0.06);
  margin: 0 !important;
  color: var(--muted) !important;
  font-weight: 600;
}
.include-list li strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 2px;
}

/* Video in plaque mask + own controls around */
.video-player {
  display: grid;
  gap: 14px;
  width: 100%;
  position: relative;
  isolation: isolate;
}
.video-mask {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #0f1728;
  box-shadow: 0 24px 60px rgba(15, 23, 40, 0.18);
  margin: 0;
  isolation: isolate;
  z-index: 1;
}
.video-mask iframe,
.content-block--video iframe,
.legacy-content .video-mask iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0;
  display: block;
  z-index: 1;
}
.video-consent {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(48, 72, 112, 0.92), rgba(15, 23, 40, 0.96));
}
.video-consent p {
  margin: 0;
  max-width: 460px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}
.video-player:not(.video-player--native) .video-mask iframe {
  pointer-events: none;
}
.video-player--native .video-mask iframe {
  pointer-events: auto;
}
/* hide any accidental second iframe */
.video-player iframe + iframe,
.video-mask iframe + iframe {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.video-player--native .video-nav,
.video-player--native .video-bigplay {
  display: none !important;
}
.video-bigplay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(34,53,85,.15), rgba(34,53,85,.45));
  display: grid;
  place-items: center;
  transition: opacity .35s ease, background .35s ease;
}
.video-bigplay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 16px 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 16px 40px rgba(8, 14, 28, 0.28);
}
.video-bigplay:hover span {
  background: #fff;
  transform: scale(1.03);
}
.video-player.is-playing .video-bigplay {
  opacity: 0;
  pointer-events: none;
}
.video-nav {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(48, 72, 112, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(15, 23, 40, 0.18);
  color: #fff;
}
.video-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, transform .25s ease;
}
.video-nav-btn svg { display: block; }
.video-nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.video-nav-progress {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  overflow: hidden;
}
.video-nav-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
  transition: width .15s linear;
}
.video-nav-time {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  min-width: 4.5ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.content-block--video {
  padding: 18px;
  border-radius: var(--edge-radius);
  background: transparent;
  box-shadow: none;
}
.content-block--video .video-mask {
  margin: 0;
}
.font-red { color: var(--cyan); }
.note-list {
  margin-top: 16px;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 600;
}
.note-list .red,
.red { color: #d64545; font-weight: 700; }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.benefit-grid article {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(30, 200, 255, 0.12);
}
.benefit-grid p {
  margin: 0 !important;
  color: var(--navy) !important;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
}

/* Hide leftover scraped chrome */
.ecp__background,
.ecp__topcenter,
.transpBox:empty,
.tender__form1:empty,
.forma-all .form-bg-name,
.forma-all .form-bg-phone,
.forma-all .form-bg-link,
.forma-all .form-bg-comment {
  display: none !important;
}
.product-feature img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 14px;
}
.product-feature .card-actions { margin-top: 12px; }
.split {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 20px;
  align-items: center;
}
.split-visual { display: flex; justify-content: center; }
.about-logo { width: min(220px, 100%); height: auto; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(48,72,112,.06);
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
}
.info-cards,
.icon-cards,
.cards-grid {
  display: grid;
  gap: 12px;
}
.info-cards,
.icon-cards,
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid { grid-template-columns: repeat(3, 1fr); }
.info-card,
.icon-card,
.product-card { padding: 18px; }
.info-card--title { grid-column: 1 / -1; font-weight: 800; }
.product-card img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
}
.card-desc { color: var(--muted); font-weight: 600; font-size: 14px; }
.card-actions { margin-top: 12px; }
.page-aside { padding: 18px; position: sticky; top: 20px; }
.aside-title {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 12px;
}
.aside-links { list-style: none; margin: 0 0 16px; }
.aside-links a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}
.aside-links a:hover {
  background: rgba(30,200,255,.12);
  color: var(--navy);
}
.aside-cta {
  border-top: 1px solid rgba(48,72,112,.08);
  padding-top: 14px;
}
.aside-cta p { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.mini-cards { display: flex; flex-wrap: wrap; gap: 8px; }
.mini {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(48,72,112,.06);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
}
.about-logo { max-width: 220px; margin-bottom: 12px; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.content-block.split {
  grid-template-columns: 200px 1fr;
  align-items: start;
}
.split-text { padding: 0; }
/* ===== Scroll reveals ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s cubic-bezier(.22, 1, .36, 1),
    transform .9s cubic-bezier(.22, 1, .36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
.reveal-left { transform: translate3d(-52px, 12px, 0); }
.reveal-right { transform: translate3d(52px, 12px, 0); }
.reveal-up { transform: translate3d(0, 40px, 0); }
.reveal-scale {
  transform: translate3d(0, 28px, 0) scale(.96);
}
.reveal-stack {
  transform: translate3d(0, 64px, 0) scale(.985);
}
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-up.is-visible,
.reveal-scale.is-visible,
.reveal-stack.is-visible {
  transform: none;
  filter: none;
}

/* Home: keep stacking order, but no overlap that breaks equal gaps */
@media (min-width: 981px) {
  body.page-home .home-stack {
    position: relative;
    z-index: 3;
    margin-top: 0;
  }
  body.page-home .home-lift {
    position: relative;
    z-index: 2;
  }
}

/* Cascade inside visible sections (features / faq) — направления отдельно, без каскада */
body.page-home .home-features.is-visible .feature-card,
body.page-home .home-faq.is-visible .faq-item,
body.page-home .home-bot-promo.is-visible .bot-promo {
  opacity: 1;
  transform: none;
  filter: none;
}
body.page-home .home-features .feature-card,
body.page-home .home-faq .faq-item,
body.page-home .home-bot-promo .bot-promo {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.97);
  filter: none;
  transition:
    opacity .85s cubic-bezier(.22, 1, .36, 1),
    transform .85s cubic-bezier(.22, 1, .36, 1);
}
body.page-home .section-dark .cards-bento .bento-card {
  /* Карточки направлений — без тени и размытия по краям */
  filter: none !important;
  -webkit-filter: none !important;
  box-shadow: none !important;
}
body.page-home .home-features.is-visible .feature-card:nth-child(1),
body.page-home .home-faq.is-visible .faq-item:nth-child(1),
body.page-home .home-bot-promo.is-visible .bot-promo { transition-delay: .08s; }
body.page-home .home-features.is-visible .feature-card:nth-child(2),
body.page-home .home-faq.is-visible .faq-item:nth-child(2) { transition-delay: .14s; }
body.page-home .home-features.is-visible .feature-card:nth-child(3),
body.page-home .home-faq.is-visible .faq-item:nth-child(3) { transition-delay: .18s; }
body.page-home .home-features.is-visible .feature-card:nth-child(4),
body.page-home .home-faq.is-visible .faq-item:nth-child(4) { transition-delay: .24s; }

/* Направления: без каскада, без размытия блока и без «прятания» фото при наведении */
body.page-home [data-bento-block].reveal,
body.page-home [data-bento-block].reveal-scale {
  filter: none;
  transform: none;
}
body.page-home [data-bento-block].section-dark .cards-bento .bento-card {
  opacity: 1;
  transform: none;
  filter: none !important;
  -webkit-filter: none !important;
  transition: transform .2s ease;
}
body.page-home [data-bento-block].section-dark .cards-bento .bento-card:hover,
body.page-home [data-bento-block].section-dark .cards-bento .bento-card.is-hover {
  transform: translateY(-4px);
}
body.page-home [data-bento-block] .bento-card img {
  transition: none;
}
body.page-home [data-bento-block] .bento-card:hover img,
body.page-home [data-bento-block] .bento-card.is-hover img {
  opacity: 1;
  transform: none;
}

/* Directions tabs + panel entrance */
body.page-home [data-directions-block] .tabs-row .tab-btn {
  opacity: 0;
  transform: translate3d(-16px, 0, 0);
  transition:
    opacity .55s cubic-bezier(.22, 1, .36, 1),
    transform .55s cubic-bezier(.22, 1, .36, 1),
    background .25s ease,
    color .25s ease;
}
body.page-home [data-directions-block].is-visible .tabs-row .tab-btn {
  opacity: 1;
  transform: none;
}
body.page-home [data-directions-block].is-visible .tabs-row .tab-btn:nth-child(1) { transition-delay: .1s; }
body.page-home [data-directions-block].is-visible .tabs-row .tab-btn:nth-child(2) { transition-delay: .18s; }
body.page-home [data-directions-block].is-visible .tabs-row .tab-btn:nth-child(3) { transition-delay: .26s; }
body.page-home [data-directions-block].is-visible .tabs-row .tab-btn:nth-child(4) { transition-delay: .34s; }
body.page-home [data-directions-block].is-visible .tabs-row .tab-btn:nth-child(5) { transition-delay: .42s; }
body.page-home [data-directions-block].is-visible .tabs-row .tab-btn:nth-child(6) { transition-delay: .5s; }

.tab-panel {
  /* без opacity — иначе кнопка во вкладке мигает при смене */
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.tab-panel.is-switching-out {
  transform: translate3d(-12px, 0, 0);
}
.tab-panel.is-switching-in {
  animation: tab-panel-in .35s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes tab-panel-in {
  from { transform: translate3d(16px, 0, 0); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-up,
  .reveal-scale,
  .reveal-stack,
  body.page-home .section-dark .cards-bento .bento-card,
  body.page-home .home-features .feature-card,
  body.page-home .home-faq .faq-item,
  body.page-home .home-bot-promo .bot-promo,
  body.page-home [data-directions-block] .tabs-row .tab-btn,
  .tab-panel,
  .tab-panel.is-switching-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
  body.page-home .home-stack {
    margin-top: 0;
  }
}



/* === SITEWIDE REVEAL CASCADE 2026-08-12 === */
/* Появление вложенных карточек на всех страницах (как на главной) */
body:not(.page-home) .reveal .ps-stat,
body:not(.page-home) .reveal .ps-plate,
body:not(.page-home) .reveal .ps-aud,
body:not(.page-home) .reveal .ps-step,
body:not(.page-home) .reveal .ps-chart,
body:not(.page-home) .reveal .feature-card,
body:not(.page-home) .reveal .news-card,
body:not(.page-home) .reveal .vacancy-card,
body:not(.page-home) .reveal .life-card,
body:not(.page-home) .reveal .bento-card,
body:not(.page-home) .reveal .faq-item,
body:not(.page-home) .reveal .content-block,
body:not(.page-home) .reveal .ps-card,
body:not(.page-home) .reveal .price-table tbody tr,
body:not(.page-home) .reveal .table1 tbody tr,
body:not(.page-home) .reveal .cta-wide,
body:not(.page-home) .reveal .promo-banner {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(.97);
  filter: none;
  transition:
    opacity .85s cubic-bezier(.22, 1, .36, 1),
    transform .85s cubic-bezier(.22, 1, .36, 1);
}

body:not(.page-home) .reveal.is-visible .ps-stat,
body:not(.page-home) .reveal.is-visible .ps-plate,
body:not(.page-home) .reveal.is-visible .ps-aud,
body:not(.page-home) .reveal.is-visible .ps-step,
body:not(.page-home) .reveal.is-visible .ps-chart,
body:not(.page-home) .reveal.is-visible .feature-card,
body:not(.page-home) .reveal.is-visible .news-card,
body:not(.page-home) .reveal.is-visible .vacancy-card,
body:not(.page-home) .reveal.is-visible .life-card,
body:not(.page-home) .reveal.is-visible .bento-card,
body:not(.page-home) .reveal.is-visible .faq-item,
body:not(.page-home) .reveal.is-visible .content-block,
body:not(.page-home) .reveal.is-visible .ps-card,
body:not(.page-home) .reveal.is-visible .price-table tbody tr,
body:not(.page-home) .reveal.is-visible .table1 tbody tr,
body:not(.page-home) .reveal.is-visible .cta-wide,
body:not(.page-home) .reveal.is-visible .promo-banner {
  opacity: 1;
  transform: none;
  filter: none;
}

body:not(.page-home) .reveal.is-visible .ps-stat:nth-child(1),
body:not(.page-home) .reveal.is-visible .ps-plate:nth-child(1),
body:not(.page-home) .reveal.is-visible .ps-aud:nth-child(1),
body:not(.page-home) .reveal.is-visible .ps-step:nth-child(1),
body:not(.page-home) .reveal.is-visible .feature-card:nth-child(1),
body:not(.page-home) .reveal.is-visible .news-card:nth-child(1),
body:not(.page-home) .reveal.is-visible .vacancy-card:nth-child(1),
body:not(.page-home) .reveal.is-visible .bento-card:nth-child(1),
body:not(.page-home) .reveal.is-visible .faq-item:nth-child(1),
body:not(.page-home) .reveal.is-visible .price-table tbody tr:nth-child(1),
body:not(.page-home) .reveal.is-visible .content-block:nth-child(1) { transition-delay: .08s; }

body:not(.page-home) .reveal.is-visible .ps-stat:nth-child(2),
body:not(.page-home) .reveal.is-visible .ps-plate:nth-child(2),
body:not(.page-home) .reveal.is-visible .ps-aud:nth-child(2),
body:not(.page-home) .reveal.is-visible .ps-step:nth-child(2),
body:not(.page-home) .reveal.is-visible .feature-card:nth-child(2),
body:not(.page-home) .reveal.is-visible .news-card:nth-child(2),
body:not(.page-home) .reveal.is-visible .vacancy-card:nth-child(2),
body:not(.page-home) .reveal.is-visible .bento-card:nth-child(2),
body:not(.page-home) .reveal.is-visible .faq-item:nth-child(2),
body:not(.page-home) .reveal.is-visible .price-table tbody tr:nth-child(2),
body:not(.page-home) .reveal.is-visible .content-block:nth-child(2) { transition-delay: .14s; }

body:not(.page-home) .reveal.is-visible .ps-stat:nth-child(3),
body:not(.page-home) .reveal.is-visible .ps-plate:nth-child(3),
body:not(.page-home) .reveal.is-visible .ps-aud:nth-child(3),
body:not(.page-home) .reveal.is-visible .ps-step:nth-child(3),
body:not(.page-home) .reveal.is-visible .feature-card:nth-child(3),
body:not(.page-home) .reveal.is-visible .news-card:nth-child(3),
body:not(.page-home) .reveal.is-visible .vacancy-card:nth-child(3),
body:not(.page-home) .reveal.is-visible .bento-card:nth-child(3),
body:not(.page-home) .reveal.is-visible .faq-item:nth-child(3),
body:not(.page-home) .reveal.is-visible .price-table tbody tr:nth-child(3),
body:not(.page-home) .reveal.is-visible .content-block:nth-child(3) { transition-delay: .18s; }

body:not(.page-home) .reveal.is-visible .ps-stat:nth-child(4),
body:not(.page-home) .reveal.is-visible .ps-plate:nth-child(4),
body:not(.page-home) .reveal.is-visible .ps-aud:nth-child(4),
body:not(.page-home) .reveal.is-visible .ps-step:nth-child(4),
body:not(.page-home) .reveal.is-visible .feature-card:nth-child(4),
body:not(.page-home) .reveal.is-visible .news-card:nth-child(4),
body:not(.page-home) .reveal.is-visible .vacancy-card:nth-child(4),
body:not(.page-home) .reveal.is-visible .bento-card:nth-child(4),
body:not(.page-home) .reveal.is-visible .faq-item:nth-child(4),
body:not(.page-home) .reveal.is-visible .price-table tbody tr:nth-child(4),
body:not(.page-home) .reveal.is-visible .content-block:nth-child(4) { transition-delay: .24s; }

body:not(.page-home) .reveal.is-visible .ps-stat:nth-child(5),
body:not(.page-home) .reveal.is-visible .ps-plate:nth-child(5),
body:not(.page-home) .reveal.is-visible .feature-card:nth-child(5),
body:not(.page-home) .reveal.is-visible .news-card:nth-child(5),
body:not(.page-home) .reveal.is-visible .vacancy-card:nth-child(5),
body:not(.page-home) .reveal.is-visible .bento-card:nth-child(5) { transition-delay: .3s; }

body:not(.page-home) .reveal.is-visible .feature-card:nth-child(6),
body:not(.page-home) .reveal.is-visible .news-card:nth-child(6),
body:not(.page-home) .reveal.is-visible .bento-card:nth-child(6) { transition-delay: .36s; }

body:not(.page-home) .reveal.is-visible .feature-card:nth-child(7),
body:not(.page-home) .reveal.is-visible .news-card:nth-child(7),
body:not(.page-home) .reveal.is-visible .bento-card:nth-child(7) { transition-delay: .42s; }

body:not(.page-home) .reveal.is-visible .feature-card:nth-child(8),
body:not(.page-home) .reveal.is-visible .news-card:nth-child(8),
body:not(.page-home) .reveal.is-visible .bento-card:nth-child(8) { transition-delay: .48s; }

body:not(.page-home) .reveal.is-visible .feature-card:nth-child(n+9),
body:not(.page-home) .reveal.is-visible .news-card:nth-child(n+9),
body:not(.page-home) .reveal.is-visible .bento-card:nth-child(n+9) { transition-delay: .52s; }

@media (prefers-reduced-motion: reduce) {
  body:not(.page-home) .reveal .ps-stat,
  body:not(.page-home) .reveal .ps-plate,
  body:not(.page-home) .reveal .ps-aud,
  body:not(.page-home) .reveal .ps-step,
  body:not(.page-home) .reveal .ps-chart,
  body:not(.page-home) .reveal .feature-card,
  body:not(.page-home) .reveal .news-card,
  body:not(.page-home) .reveal .vacancy-card,
  body:not(.page-home) .reveal .life-card,
  body:not(.page-home) .reveal .bento-card,
  body:not(.page-home) .reveal .faq-item,
  body:not(.page-home) .reveal .content-block,
  body:not(.page-home) .reveal .ps-card,
  body:not(.page-home) .reveal .price-table tbody tr,
  body:not(.page-home) .reveal .table1 tbody tr,
  body:not(.page-home) .reveal .cta-wide,
  body:not(.page-home) .reveal .promo-banner {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ===== Footer ===== */
.site-footer {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(160deg, var(--navy), #1b2643 55%, #1b2643 100%);
  color: rgba(255,255,255,.84);
  padding: 42px 0 24px;
  border-radius: var(--edge-radius) var(--edge-radius) 0 0;
  overflow: hidden;
  margin: var(--section-gap) 0 0;
  z-index: 1;
  isolation: isolate;
}
@media (max-width: 980px) {
  .site-footer {
    border-radius: 28px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 16px);
    max-width: none;
    margin: var(--section-gap) 8px 8px;
    box-shadow: none;
    overflow: hidden;
  }
  html, body {
    overscroll-behavior-y: none;
  }
}

/* PC: видео и подвал на всю ширину; у подвала скругления;
   остальные плашки — с полями по бокам */
@media (min-width: 981px) {
  .site-footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--edge-radius) var(--edge-radius) 0 0;
  }
  .section-news,
  .section-dark,
  .hero-direct + .section-dark {
    width: var(--page-width);
    max-width: var(--page-width);
    margin-left: auto;
    margin-right: auto;
  }
}

.site-footer a { color: var(--cyan-2); }
.site-footer a:hover { color: #fff; }
.site-footer b { color: #fff; }
.footer-logo {
  height: 46px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
  font-size: 14px;
}
.footer-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}
.footer-credit {
  color: rgba(255,255,255,.45) !important;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.85;
  transition: color .2s ease, opacity .2s ease;
}
.footer-credit:hover {
  color: var(--cyan-2) !important;
  opacity: 1;
}
/* Hidden admin entry — invisible corner, not in menu/sitemap */
.admin-gate {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  opacity: 0;
  z-index: 90;
  cursor: default;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.admin-gate:focus {
  outline: none;
}
.admin-hint {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(15, 23, 40, 0.55);
  display: grid;
  place-items: center;
  padding: 24px;
}
.admin-hint-card {
  width: min(420px, 100%);
  background: #fff;
  color: var(--navy);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-hint-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.admin-hint-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}
.site-map-list { columns: 2; column-gap: 28px; }
.site-map-list li { break-inside: avoid; margin-bottom: 10px; }

/* Legal docs + sitemap */
.legal-doc {
  max-width: 920px;
}
.legal-doc h2 {
  margin-top: 0;
}
.legal-doc h3 {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid rgba(48, 72, 112, 0.08);
}
.legal-doc p {
  margin-bottom: 12px;
  line-height: 1.6;
}
.legal-doc ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.legal-doc li {
  line-height: 1.55;
}
.doc-auto h2 {
  margin: 28px 0 12px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--navy);
}
.doc-auto h2:first-child { margin-top: 0; }
.doc-auto h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 800;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.sitemap-group {
  background: rgba(243, 247, 251, 0.9);
  border: 1px solid rgba(48, 72, 112, 0.08);
  border-radius: 20px;
  padding: 18px 18px 14px;
}
.sitemap-group h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--navy);
  border: 0;
  padding: 0;
}
.sitemap-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.sitemap-group a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  border: 1px solid rgba(48, 72, 112, 0.06);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.sitemap-group a:hover {
  border-color: rgba(30, 200, 255, 0.45);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(48, 72, 112, 0.08);
}
@media (max-width: 980px) {
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sitemap-grid { grid-template-columns: 1fr; }
}


.cookie {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 18px;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  /* фон и тень задаёт блок «жидкое стекло» в конце файла */
  color: var(--navy);
  pointer-events: auto;
  isolation: isolate;
}
.cookie[hidden] { display: none !important; }
.cookie > p {
  margin: 0;
  flex: 1 1 200px;
  min-width: 0;
  line-height: 1.4;
}
.cookie .btn,
.cookie #cookieOk,
.cookie #cookieNo {
  flex: 0 0 auto;
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  .cookie {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    padding: 10px 12px;
    border-radius: 16px;
    gap: 8px 6px;
    align-items: stretch;
    font-size: 12px;
  }
  .cookie > p {
    flex: 1 1 100%;
    width: 100%;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
  }
  .cookie > p a {
    font-size: 12px;
  }
  .cookie .btn,
  .cookie #cookieOk,
  .cookie #cookieNo {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 8px 10px;
    min-height: 40px;
    font-size: 13px;
    border-radius: 999px;
  }
}

.mail-pop {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 560px;
  margin: 0 auto;
  z-index: 5500;
  pointer-events: auto;
  isolation: isolate;
  transition: bottom 0.25s ease;
}
.mail-pop[hidden] { display: none !important; }
.mail-pop-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 40, 0.18);
  color: var(--navy);
  border: 1px solid rgba(48, 72, 112, 0.08);
}
.mail-pop-visual {
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 10% 0%, rgba(30, 200, 255, 0.45), transparent 58%),
    linear-gradient(165deg, var(--navy-2) 0%, var(--navy) 70%, var(--navy-3) 100%);
  display: grid;
  place-items: center;
  padding: 12px 8px;
}
.mail-pop-visual img {
  width: min(78px, 86%);
  height: auto;
}
.mail-pop-form {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 12px 42px 12px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #f3f8fc);
}
.mail-pop-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.mail-pop-form h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--navy);
}
.mail-pop-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.mail-pop-form input[type="email"] {
  width: 100%;
  border: 1px solid rgba(48, 72, 112, 0.14);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--navy);
  min-height: 40px;
}
.mail-pop-form input[type="email"]::placeholder {
  color: var(--muted);
}
.mail-pop-form .btn-primary {
  width: auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 8px 18px rgba(30, 200, 255, 0.38);
}
.mail-pop-form .check {
  margin-top: 0;
  font-size: 11px;
  gap: 8px;
}
.mail-pop-form .check input {
  width: 16px;
  height: 16px;
}
.mail-pop-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.mail-pop-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.mail-pop-msg {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}
.mail-pop-err {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #b42318;
}
@media (max-width: 640px) {
  .mail-pop {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
  .mail-pop-card {
    grid-template-columns: 1fr;
  }
  .mail-pop-visual {
    display: none;
  }
  .mail-pop-form {
    padding: 12px 40px 12px 12px;
  }
  .mail-pop-row {
    grid-template-columns: 1fr;
  }
  .mail-pop-form .btn-primary {
    width: 100%;
  }
}

.maintenance-bar {
  display: none !important;
}
.maintenance-page {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(ellipse 120% 70% at 0% 0%, rgba(30, 200, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(48, 72, 112, 0.1), transparent 52%),
    linear-gradient(165deg, #ffffff 0%, #f3f8fc 45%, #e8f4fb 100%);
}
.maintenance-card {
  width: min(520px, 100%);
  text-align: center;
  padding: 36px 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(48, 72, 112, 0.08);
  box-shadow: 0 22px 60px rgba(15, 23, 40, 0.12);
}
.maintenance-card img {
  height: 42px;
  width: auto;
  margin: 0 auto 18px;
  display: block;
}
.maintenance-card h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 4vw, 28px);
  color: var(--navy);
}
.maintenance-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-line;
}
html.is-maintenance,
html.is-maintenance body {
  overflow: hidden !important;
}

.to-top {
  position: fixed;
  right: var(--float-btn-right, 20px);
  /* низ чата + размер кнопки + зазор */
  bottom: calc(
    var(--float-btn-bottom, 20px) + var(--float-btn-size, 60px) + var(--float-btn-gap, 12px) +
      env(safe-area-inset-bottom, 0px)
  );
  width: var(--float-btn-size, 60px);
  height: var(--float-btn-size, 60px);
  border-radius: 50%;
  border: 1px solid var(--lg-rim, rgba(255, 255, 255, 0.72));
  background-color: transparent;
  background-image: linear-gradient(
    180deg,
    var(--lg-tint-top, rgba(255, 255, 255, 0.55)),
    var(--lg-tint-bottom, rgba(255, 255, 255, 0.28))
  );
  -webkit-backdrop-filter: blur(var(--lg-blur, 26px)) saturate(var(--lg-sat, 180%)) brightness(1.04);
  backdrop-filter: blur(var(--lg-blur, 26px)) saturate(var(--lg-sat, 180%)) brightness(1.04);
  color: #1b2643;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  z-index: 5001;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  box-shadow:
    var(--lg-inner, inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.35)),
    0 1px 2px rgba(15, 23, 40, 0.06),
    0 10px 24px -10px rgba(15, 23, 40, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .18s ease, box-shadow .18s ease;
}
.to-top.is-on { opacity: 1; pointer-events: auto; }
.to-top::after {
  content: "";
  width: 18px;
  height: 18px;
  margin: 0;
  border: 0;
  background-color: currentColor;
  background-image: none;
  transform: none;
  box-sizing: border-box;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 15l6-6 6 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 15l6-6 6 6'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 18px 18px;
  mask-size: 18px 18px;
}
@media (min-width: 981px) {
  .to-top,
  body > .to-top {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
}
.to-top:hover {
  transform: translateY(-2px);
  box-shadow:
    var(--lg-inner, inset 0 1px 0 rgba(255, 255, 255, 0.95)),
    0 14px 32px -10px rgba(15, 23, 40, 0.22);
}
@media (max-width: 900px) {
  :root {
    --float-btn-right: 14px;
    --float-btn-bottom: 14px;
    --float-btn-size: 54px;
    --float-btn-gap: 12px;
  }
  .to-top {
    font-size: 0;
  }
}

.search-box {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 14px 36px rgba(15, 23, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}
.search-box input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.42);
  color: var(--navy);
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.search-box input:focus {
  outline: none;
  border-color: rgba(30, 200, 255, 0.55);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(30, 200, 255, 0.16);
}
.search-box input::placeholder {
  color: rgba(48, 72, 112, 0.45);
}
.search-box .btn,
.search-box .btn-primary {
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(90, 216, 255, 0.95), rgba(30, 200, 255, 0.92));
  color: var(--navy);
  font-weight: 800;
  box-shadow:
    0 8px 20px rgba(30, 200, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Header search — separate round pill like logo/expand */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  transition:
    background .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    color .2s ease,
    transform .2s ease;
}
.header-search-btn:hover {
  transform: translateY(-1px);
}
.site-header:not(.is-scrolled):not(.is-solid) .header-search-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
@media (max-width: 980px) {
  .site-header:not(.is-scrolled):not(.is-solid) .header-search-btn,
  .site-header.is-at-top .header-search-btn {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
.site-header:not(.is-scrolled):not(.is-solid) .header-search-btn:hover {
  background: rgba(255, 255, 255, 0.44);
}
.site-header.is-scrolled .header-search-btn,
.site-header.is-solid .header-search-btn {
  color: var(--navy);
}
.site-header.is-scrolled .header-search-btn:hover,
.site-header.is-solid .header-search-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 12px 32px rgba(15, 23, 40, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
/* Поиск в шапке — как меню (стеклянная панель), без окна на весь экран */
.site-search-sheet {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  max-height: min(78vh, 640px);
  z-index: 90;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0;
  isolation: isolate;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
  /* Без общей подложки — только поле / Найти / крестик */
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.site-search-sheet::before {
  content: none !important;
  display: none !important;
}
.site-search-sheet[hidden] {
  display: none !important;
}
.site-search-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.site-header.search-open .header-bar {
  align-items: flex-start;
  justify-content: center;
  position: relative;
  gap: 0;
}
.site-header.search-open .header-logo-group,
.site-header.search-open .brand.header-pill,
.site-header.search-open .header-main,
.site-header.search-open .site-header-collapse {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.site-header.search-open .header-search-btn.header-pill {
  /* Крестик теперь в строке формы — лупу в шапке прячем */
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.site-search-form .site-search-close-inline {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
  color: var(--navy);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.site-search-form .site-search-close-inline:hover {
  background: rgba(255, 255, 255, 0.78);
}
/* search-open: скролл сайта не блокируем */

/* ПК: блокировка скролла только при открытом меню */
@media (min-width: 981px) {
  html.page-scroll-lock,
  html.page-scroll-lock body {
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }
  body.page-scroll-lock {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }
}
body.search-open .to-top,
body.search-open .ntpc-chat-fab,
body.search-open #ntpcChatRoot {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.site-search-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-search-panel:has(.site-search-live:not(:empty)) {
  border-radius: 0;
}

@media (min-width: 981px) {
  .site-header.search-open .header-bar {
    position: relative;
    align-items: flex-start;
    justify-content: center;
    width: var(--page-width);
    margin-left: auto;
    margin-right: auto;
  }
  .site-header.search-open .site-search-sheet {
    position: absolute !important;
    top: 14px !important;
    left: 50% !important;
    right: auto !important;
    width: min(560px, calc(100% - 64px)) !important;
    max-width: min(560px, calc(100% - 64px)) !important;
    margin: 0 !important;
    transform: translate(-50%, -6px) !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .site-header.search-open .site-search-sheet.is-open {
    transform: translate(-50%, 0) !important;
  }
  /* Крестик у правого края центрированной панели */
  .site-header.search-open .header-search-btn.header-pill {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

.site-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--navy);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
/* Убираем системный «кружок» очистки в Safari/Chrome — он мигал при первой букве */
.site-search-form input[type="search"]::-webkit-search-decoration,
.site-search-form input[type="search"]::-webkit-search-cancel-button,
.site-search-form input[type="search"]::-webkit-search-results-button,
.site-search-form input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}
.site-search-form input[type="search"]::placeholder {
  color: rgba(48, 72, 112, 0.45);
}
.site-search-form input[type="search"]:focus {
  outline: none;
  border-color: rgba(30, 200, 255, 0.55);
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 0 0 3px rgba(30, 200, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.site-search-form .site-search-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(90, 216, 255, 0.95), rgba(30, 200, 255, 0.92));
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 8px 20px rgba(30, 200, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.site-search-form .site-search-go-icon {
  display: none;
}
.site-search-form .site-search-go-label {
  display: inline;
}
.site-search-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.site-search-close:hover {
  background: rgba(255, 255, 255, 0.62);
}
.site-search-live {
  margin-top: 8px;
  max-height: min(52vh, 360px);
  overflow: auto;
}
.site-search-live:empty { display: none; }
.site-search-live ul {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: grid;
  gap: 4px;
}
.site-search-live li a {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--navy);
  font-weight: 700;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(15, 23, 40, 0.12);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.site-search-live li a:hover {
  background: #f3f8fc !important;
  color: var(--navy);
}
.site-search-live p {
  margin: 8px 12px 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero-direct-inner,
  .promo-banner,
  .tab-panel.is-active,
  .cta-wide,
  .page-layout,
  .page-hero-inner,
  .cards-bento,
  .feature-grid,
  .cards-grid,
  .info-cards,
  .icon-cards,
  .split,
  .content-block.split,
  .footer-grid { grid-template-columns: 1fr; }
  /* Направления на телефоне: сначала только главные, остальные — по кнопке */
  [data-bento-block] .bento-swipe-hint {
    display: block;
    margin: 6px 0 14px;
  }
  [data-bento-block] .bento-dirs {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  [data-bento-block] .cards-bento--main {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    padding-bottom: 6px;
    margin-right: -12px;
    padding-right: 24px;
    scrollbar-width: none;
  }
  [data-bento-block] .cards-bento--main::-webkit-scrollbar {
    display: none;
  }
  [data-bento-block] .bento-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: center;
    margin: 2px auto 0;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  [data-bento-block] .bento-expand-ico {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
  }
  [data-bento-block].is-bento-open .bento-expand-ico {
    transform: rotate(225deg) translateY(-1px);
  }
  [data-bento-block] .cards-bento--more,
  [data-bento-block] .cards-bento--more[hidden] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: hidden;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 0;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
      max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.35s ease,
      transform 0.4s ease,
      margin-top 0.35s ease;
  }
  [data-bento-block].is-bento-open .cards-bento--more {
    max-height: 1400px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    margin-top: 2px;
  }
  [data-bento-block] .cards-bento--more .bento-card {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    aspect-ratio: 1 / 1;
    scroll-snap-align: none;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition:
      opacity 0.35s ease,
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  [data-bento-block].is-bento-open .cards-bento--more .bento-card {
    opacity: 1;
    transform: none;
  }
  [data-bento-block].is-bento-open .cards-bento--more .bento-card:nth-child(1) { transition-delay: 0.04s; }
  [data-bento-block].is-bento-open .cards-bento--more .bento-card:nth-child(2) { transition-delay: 0.08s; }
  [data-bento-block].is-bento-open .cards-bento--more .bento-card:nth-child(3) { transition-delay: 0.12s; }
  [data-bento-block].is-bento-open .cards-bento--more .bento-card:nth-child(4) { transition-delay: 0.16s; }
  [data-bento-block].is-bento-open .cards-bento--more .bento-card:nth-child(5) { transition-delay: 0.2s; }
  [data-bento-block].is-bento-open .cards-bento--more .bento-card:nth-child(6) { transition-delay: 0.24s; }
  [data-bento-block].is-bento-open .cards-bento--more .bento-card:nth-child(7) { transition-delay: 0.28s; }
  [data-bento-block].is-bento-open .cards-bento--more .bento-card:nth-child(8) { transition-delay: 0.32s; }
  [data-bento-block] .cards-bento--more .bento-card h3 {
    font-size: 14px;
    line-height: 1.25;
  }
  [data-bento-block] .cards-bento--more .bento-card .tag {
    font-size: 10px;
  }
  [data-bento-block] .cards-bento--more .bento-card .bento-short,
  [data-bento-block] .cards-bento--more .bento-card .bento-more {
    display: none;
  }
  .section-dark .cards-bento:not(.cards-bento--more),
  [data-bento-block] .cards-bento--main {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
    padding-bottom: 6px;
    margin-right: -12px; /* чуть вылезает к краю плашки */
    padding-right: 24px;
    scrollbar-width: none;
  }
  .section-dark .cards-bento:not(.cards-bento--more)::-webkit-scrollbar,
  [data-bento-block] .cards-bento--main::-webkit-scrollbar {
    display: none;
  }
  .section-dark .bento-card,
  [data-bento-block] .bento-card {
    flex: 0 0 auto;
    width: min(78vw, 300px);
    max-width: 300px;
    aspect-ratio: 5 / 4;
    scroll-snap-align: start;
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
  }
  .section-dark .bento-card h3,
  [data-bento-block] .bento-card h3 {
    font-size: clamp(18px, 5.2vw, 22px);
  }
  .section-dark .bento-card .bento-short,
  [data-bento-block] .bento-card .bento-short {
    font-size: 14px;
    line-height: 1.35;
  }
  .contacts-panel {
    min-height: 280px;
    padding: 20px !important;
    align-items: flex-end;
  }
  .contacts-panel-card {
    width: 100%;
    max-width: none;
    padding: 18px 18px;
    border-radius: 20px;
  }
  /* Phone: one screen of the website — no extra top paint under status bar */
  /* Hero is the first painted box of the page: it starts at y=0 of the layout
     viewport, so its video/background is what sits under the iOS status bar */
  .hero-direct {
    position: relative;
    top: 0;
    display: block;
    /* Как у плашки «Направления»: по 8px от краёв телефона */
    margin: 0 8px;
    padding: 0;
    width: calc(100% - 16px);
    max-width: none;
    box-sizing: border-box;
    overflow: hidden;
    /* Чуть короче экрана: «Направления» ближе при скролле, но наверху ещё не видно */
    --hero-next-peek: 40px;
    min-height: calc(var(--hero-face-h, 100svh) - var(--hero-next-peek));
    height: calc(var(--hero-face-h, 100svh) - var(--hero-next-peek));
    border-radius: 28px !important;
    transition: none;
    z-index: 1;
    background: #1b2643;
  }
  .hero-direct.is-fullscreen {
    width: calc(100% - 16px);
    max-width: none;
    margin-left: 8px;
    margin-right: 8px;
    border-radius: 28px !important;
  }

  /* Napavleniya + promo: same radius and same side inset from phone edges */
  .hero-direct + .section-dark {
    width: calc(100% - 16px);
    max-width: none;
    margin-top: 16px;
    margin-bottom: 0;
    margin-left: 8px;
    margin-right: 8px;
    /* Equal inner frame on phone too */
    padding: 28px;
    border-radius: 28px !important;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
  .hero-direct + .section-dark > .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .hero-direct + .section-dark + .section {
    padding-top: var(--section-gap);
  }
  /* Promo: same side inset + same radius as Napavleniya */
  .section:has(.promo-banner) {
    margin-top: 0;
    padding: var(--section-gap) 8px 0;
    position: relative;
    z-index: 2;
    background: transparent;
    box-shadow: none;
  }
  .section:has(.promo-banner) + .section {
    padding-top: var(--section-gap);
  }
  .section:has(.promo-banner) > .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .section:has(.promo-banner) .promo-banner,
  .section:has(.promo-banner) .promo-banner--news {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 28px !important;
    box-shadow: none;
    border: 0;
    outline: 1px solid transparent;
    background: linear-gradient(135deg, #16233b, #243556);
    padding: 28px 20px 32px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    isolation: isolate;
  }
  /* Hero: те же боковые поля, что у «Направления» (только телефон) */
  .hero-direct {
    outline: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .hero-direct,
  .hero-direct.is-fullscreen {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    -webkit-mask-image: none !important;
            mask-image: none !important;
  }
  .hero-direct-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    overflow: hidden;
  }
  .hero-bg-video,
  .hero-bg-shade {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 28px;
  }
  .hero-bg-video {
    object-fit: cover;
  }
  /* Mobile: не разбирать hero-home-copy — иначе порядок текста ломается */
  body.page-home .hero-direct-inner > .hero-home-copy {
    display: flex !important;
    flex-direction: column !important;
  }
  .hero-direct-inner > div:first-child {
    display: contents;
  }
  body.page-home .hero-direct-inner > div:first-child.hero-home-copy {
    display: flex !important;
  }
  .hero-kicker { order: 1; width: 100%; }
  .hero-direct-inner h1 { order: 2; }
  .hero-lead { order: 3; }
  .hero-stats {
    order: 4;
    display: grid !important;
    gap: 8px;
  }
  .hero-stats div {
    padding: 10px 8px;
    border-radius: 14px;
  }
  .hero-stats b {
    font-size: 15px;
    margin-bottom: 2px;
  }
  .hero-stats span {
    font-size: 10px;
    line-height: 1.25;
  }
  .hero-panel { order: 5; }
  .hero-actions { order: 6; }
  .hero-direct-inner {
    /* Clears the header row, which itself sits below the status bar */
    --hero-edge-gap: calc(44px + env(safe-area-inset-top, 0px));
    /* Внутренние поля: по бокам как снизу */
    --hero-bottom-gap: 18px;
    --hero-inline-gap: 18px;
    position: absolute !important;
    left: 50%;
    right: auto;
    top: var(--hero-edge-gap) !important;
    bottom: auto !important;
    transform: translateX(-50%);
    /* Видео с полями 8px от экрана — контент с теми же полями, что снизу */
    width: 100%;
    margin: 0 !important;
    height: calc(
      var(--hero-face-h, 100dvh) - var(--hero-edge-gap) - var(--hero-next-peek, 40px)
    );
    max-height: calc(
      var(--hero-face-h, 100dvh) - var(--hero-edge-gap) - var(--hero-next-peek, 40px)
    );
    padding: var(--hero-inline-gap) var(--hero-inline-gap) var(--hero-bottom-gap);
    display: flex !important;
    flex-direction: column;
    gap: var(--hero-inline-gap);
    align-items: stretch;
    justify-content: flex-end;
    z-index: 2;
    box-sizing: border-box;
    overflow: hidden;
  }
  /* Background/video fills the hero box with radius */
  .hero-direct-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    overflow: hidden;
  }
  .hero-bg-video,
  .hero-bg-shade,
  .hero-direct-bg::after {
    top: 0;
  }
  .hero-bg-video {
    border-radius: 28px;
    height: 100%;
  }
  .hero-direct h1 {
    max-width: none;
    width: 100%;
    font-size: clamp(30px, 8.6vw, 40px);
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 0;
    text-align: left;
    white-space: normal;
  }
  .hero-kicker {
    font-size: 10px;
    letter-spacing: .08em;
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
    max-width: 100%;
  }
  .hero-kicker-extra {
    display: none;
  }
  body.page-home .hero-lead {
    max-width: none;
    width: 100%;
  }
  .hero-lead {
    max-width: 34ch;
    width: 100%;
    font-size: 13px;
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    white-space: normal;
    color: rgba(255, 255, 255, 0.78);
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
    width: 100%;
  }
  .hero-actions .btn-light {
    display: none !important;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 16px;
    font-size: 15px;
    box-sizing: border-box;
    border-radius: 999px !important;
  }
  /* На телефоне виджет одного размера; переписка внутри анимируется без скачков высоты */
  .hero-panel {
    order: 5;
    flex: 0 0 auto;
    width: 100%;
    height: 248px;
    min-height: 248px;
    max-height: 248px;
    margin-top: 0;
    padding: 12px 14px 12px;
    border-radius: 22px !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
  }
  .hero-panel-top {
    display: none;
  }
  .hero-ai-bar {
    margin-bottom: 2px;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
  }
  .hero-chat {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    margin-bottom: 8px;
    gap: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    justify-content: flex-end;
    padding: 14px 2px 2px;
    scroll-behavior: smooth;
    -webkit-mask-image: linear-gradient(
      180deg,
      transparent 0,
      #000 16px,
      #000 100%
    );
    mask-image: linear-gradient(
      180deg,
      transparent 0,
      #000 16px,
      #000 100%
    );
  }
  /* Старые сообщения мягко уходят вверх, высота виджета не меняется */
  .hero-chat .hero-msg:nth-last-child(n+4) {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
      opacity .45s ease,
      transform .45s ease,
      max-height .45s ease;
  }
  .hero-typing {
    display: inline-flex;
    margin-bottom: 0;
    height: auto;
    padding: 7px 11px;
    flex: 0 0 auto;
  }
  .hero-chat-cta {
    flex: 0 0 auto;
    margin-top: 0;
    display: flex !important;
    justify-content: center;
    width: 100%;
  }
  .hero-msg {
    position: relative;
    max-width: 88%;
  }
  .hero-bubble {
    white-space: normal;
    font-size: 12px;
    padding: 9px 12px;
    border-radius: 14px;
    line-height: 1.35;
  }
  .hero-avatar {
    width: 24px;
    height: 24px;
  }
  .benefit-grid { grid-template-columns: 1fr; }
  .section-dark,
  .section-news {
    border-radius: 28px;
    overflow: hidden;
  }
  .site-footer {
    border-radius: 28px;
    width: calc(100% - 16px);
    max-width: none;
    margin: var(--section-gap) 8px 8px;
  }
  .video-mask,
  .content-block--video {
    border-radius: 28px;
    min-height: 220px;
    overflow: hidden;
  }
  .video-nav {
    grid-template-columns: auto 1fr auto;
    border-radius: 24px;
  }
  .video-nav [data-video-action="mute"],
  .video-nav [data-video-action="fs"] {
    display: none;
  }
  .content-block { padding: 20px; }

  /* Mobile header: transparent shell pinned to y=0 over the hero.
     Safe area moves only the clickable row, never the shell or the page. */
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-solid {
    top: 0;
    padding: 0;
    margin: 0;
    background: transparent;
  }
  .header-bar {
    /* Сверху и от края видео — одинаково 18px; от экрана по бокам 8+18 */
    width: min(1180px, calc(100% - 52px));
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    background: transparent;
    padding-top: 18px;
    box-sizing: border-box;
  }
  .header-logo-group {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    margin-right: auto;
  }
  .brand.header-pill {
    padding: 6px 10px;
    max-width: 100%;
  }
  .brand-logo {
    height: 40px;
    width: auto;
    max-width: min(168px, 48vw);
  }
  .header-pill {
    border-radius: 999px;
    min-height: 44px;
  }
  .header-search-btn.header-pill {
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 999px;
    order: 3;
  }
  .site-header-collapse.header-pill {
    order: 4;
  }
  .header-logo-group { order: 1; }
  .header-main { order: 2; }
  .header-main {
    display: flex !important;
    flex: 0 0 auto;
    max-width: none !important;
    width: auto;
    padding: 0;
    position: relative;
  }
  .site-header:not(.nav-open) .header-main {
    /* Closed: only the menu button circle, no second pill behind it */
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
  }
  .site-header.is-scrolled .header-main,
  .site-header.is-solid .header-main {
    display: flex !important;
  }
  .site-header.is-scrolled:not(.nav-open) .header-main,
  .site-header.is-solid:not(.nav-open) .header-main {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
  }
  .nav {
    display: none;
  }
  .header-actions .btn-primary,
  .header-actions .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow:
      0 12px 32px rgba(15, 23, 40, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    color: var(--navy);
  }
  .site-header:not(.is-scrolled):not(.is-solid) .nav-toggle {
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header:not(.is-scrolled):not(.is-solid) .brand.header-pill,
  .site-header:not(.is-scrolled):not(.is-solid) .header-search-btn {
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* В самом верху на баннерах — без таблеток; на is-solid оставляем видимые кнопки */
  .site-header.is-at-top:not(.is-solid):not(.nav-open) .brand.header-pill,
  .site-header.is-at-top:not(.is-solid):not(.nav-open):not(.search-open) .header-search-btn,
  .site-header.is-at-top:not(.is-solid):not(.nav-open):not(.search-open) .nav-toggle,
  .site-header.is-at-top:not(.is-solid):not(.nav-open) .site-header-collapse {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .site-header.is-at-top:not(.is-solid):not(.nav-open) .header-search-btn,
  .site-header.is-at-top:not(.is-solid):not(.nav-open) .nav-toggle,
  .site-header.is-at-top:not(.is-solid):not(.nav-open) .site-header-collapse {
    color: #fff;
  }
  .site-header.is-at-top.is-solid:not(.nav-open) .header-search-btn,
  .site-header.is-at-top.is-solid:not(.nav-open) .nav-toggle {
    color: var(--navy);
  }
  /* Открытое меню: лого пропадает, панель по ширине шапки — равные отступы слева и справа */
  .site-header.nav-open .header-bar {
    align-items: flex-start;
    justify-content: center;
    position: relative;
    gap: 0;
  }
  .site-header.nav-open .header-logo-group,
  .site-header.nav-open .brand.header-pill {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .site-header.nav-open .header-search-btn.header-pill {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    flex-shrink: 0;
    order: 2;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
  }
  .site-header.nav-open .site-header-collapse {
    display: none;
  }
  .site-header.nav-open .header-main {
    /* !important: иначе поздний блок стекла мог вернуть position:relative и растянуть шапку */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    /* На всю ширину шапки → одинаковый отступ слева и справа от края сайта */
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(78vh, 640px);
    height: auto;
    /* overflow ломает backdrop-filter на iPhone → скролл у .nav, не у панели */
    overflow: visible !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 54px 14px 14px !important;
    margin: 0 !important;
    z-index: 90;
    border-radius: 22px !important;
    isolation: isolate;
    background-color: rgba(255, 255, 255, 0.48) !important;
    background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.62),
      rgba(255, 255, 255, 0.36)
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      inset 0 -1px 0 rgba(255, 255, 255, 0.35),
      inset 1px 0 0 rgba(255, 255, 255, 0.4),
      inset -1px 0 0 rgba(255, 255, 255, 0.4),
      0 1px 2px rgba(15, 23, 40, 0.06),
      0 18px 44px -12px rgba(15, 23, 40, 0.28) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.08) !important;
    backdrop-filter: blur(40px) saturate(200%) brightness(1.08) !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .site-header.nav-open .header-main::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    border-radius: inherit !important;
    pointer-events: none !important;
    background-image:
      linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 40%),
      linear-gradient(315deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 32%) !important;
    background-color: transparent !important;
    -webkit-mask-image: radial-gradient(
      120% 120% at 50% 50%,
      transparent 42%,
      rgba(0, 0, 0, 0.5) 76%,
      #000 100%
    ) !important;
    mask-image: radial-gradient(
      120% 120% at 50% 50%,
      transparent 42%,
      rgba(0, 0, 0, 0.5) 76%,
      #000 100%
    ) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
  .site-header.nav-open .header-main > * {
    position: relative;
    z-index: 1;
  }
  .site-header.nav-open .nav-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 96;
    background-color: transparent;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52));
    border: 1px solid var(--lg-rim);
    color: var(--navy);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), var(--lg-shadow-soft);
    backdrop-filter: blur(var(--lg-blur-soft)) saturate(var(--lg-sat));
    -webkit-backdrop-filter: blur(var(--lg-blur-soft)) saturate(var(--lg-sat));
  }
  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
  }
  .site-header.nav-open .nav-pill {
    display: block;
    top: 0;
    left: 0;
    height: auto;
    min-height: 44px;
    width: 100%;
    border-radius: 12px;
    background: var(--cyan);
    transition:
      transform .35s cubic-bezier(.22, 1, .36, 1),
      height .35s cubic-bezier(.22, 1, .36, 1),
      width .35s cubic-bezier(.22, 1, .36, 1),
      opacity .2s ease;
  }
  .site-header.nav-open .nav a {
    color: var(--navy);
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.3;
    background: transparent;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
  }
  .site-header.nav-open .nav a:hover,
  .site-header.nav-open .nav a.is-hover {
    background: transparent;
    color: #fff;
  }
  .site-header.nav-open .header-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
    position: static;
    z-index: auto;
    margin-left: 0;
  }
  .site-header.nav-open .header-actions .btn-primary,
  .site-header.nav-open .header-actions .btn-ghost {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
  }
  .site-header.nav-open .header-actions .btn-ghost {
    border-color: rgba(48, 72, 112, 0.14);
    color: var(--navy);
    background: rgba(48, 72, 112, 0.04);
  }
  .site-header:not(.is-scrolled):not(.is-solid).nav-open .header-main {
    background-color: rgba(255, 255, 255, 0.48) !important;
    background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.62),
      rgba(255, 255, 255, 0.36)
    ) !important;
    border-color: rgba(255, 255, 255, 0.78) !important;
    border-radius: 22px !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      inset 0 -1px 0 rgba(255, 255, 255, 0.35),
      0 18px 44px -12px rgba(15, 23, 40, 0.28) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.08) !important;
    backdrop-filter: blur(40px) saturate(200%) brightness(1.08) !important;
  }
  .page-hero-side { justify-content: flex-start; }
  .site-map-list { columns: 1; }
}


.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.search-results a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(48, 72, 112, 0.06);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.search-results a:hover {
  background: rgba(30, 200, 255, 0.16);
}
.footer-grid .footer-links-compact p { margin: 0.2em 0; font-size: 14px; }



/* Панель поиска внутри шапки — без второго стекла */
.site-header.search-open .site-search-panel,
.site-search-sheet .site-search-panel {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
}
.site-header.search-open .site-search-panel::before,
.site-search-sheet .site-search-panel::before {
  content: none !important;
  display: none !important;
}
/* Mobile: панель поиска на всю ширину шапки, как меню */
@media (max-width: 980px) {
  .site-header.search-open .site-search-sheet {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 100 !important;
  }
  .site-header.search-open .header-search-btn.header-pill {
    z-index: 101 !important;
  }
  .site-header.search-open .header-bar {
    align-items: flex-start !important;
    justify-content: center !important;
  }
}

/* Installed home-screen shortcut: safe area on header content, not outer shell */
@media (max-width: 980px) {
  @media (display-mode: standalone), (display-mode: fullscreen) {
    .site-header,
    .site-header.is-scrolled,
    .site-header.is-solid {
      padding: 0 !important;
    }
    .header-bar {
      padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
    }
  }
  html.is-pwa .site-header,
  html.is-pwa .site-header.is-scrolled,
  html.is-pwa .site-header.is-solid {
    padding: 0 !important;
  }
  html.is-pwa .header-bar {
    padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
  }
}


/* Search / chat: square avatar asset inside circle mask */
.site-search-live img.site-search-fav,
.news-preview .avatar-ntpc,
img.avatar-ntpc-circle {
  border-radius: 50%;
  object-fit: cover;
  background: #1ec8ff;
}

.site-search-group {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(30,200,255,.16);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  vertical-align: middle;
}

/* ============================================================
   ЖИДКОЕ СТЕКЛО (как в iOS)
   Один набор настроек на весь сайт: размытие фона, усиление цвета,
   светлый ободок, блик и линза по краю. Меняешь переменные ниже —
   меняется стекло сразу везде.
   ============================================================ */
:root {
  --lg-blur: 26px;
  --lg-blur-soft: 16px;
  --lg-blur-strong: 40px;
  --lg-sat: 180%;
  --lg-bright: 1.06;

  /* Общие размеры плавающих кнопок (стрелка + чат) */
  --float-btn-right: 20px;
  --float-btn-bottom: 20px;
  --float-btn-size: 60px;
  --float-btn-gap: 12px;

  /* Светлое стекло: подложка сверху светлее, снизу плотнее */
  --lg-tint-top: rgba(255, 255, 255, 0.66);
  --lg-tint-bottom: rgba(255, 255, 255, 0.44);
  --lg-rim: rgba(255, 255, 255, 0.72);

  /* Тёмное стекло — для панелей на тёмном фоне */
  --lg-dark-top: rgba(255, 255, 255, 0.16);
  --lg-dark-bottom: rgba(255, 255, 255, 0.06);
  --lg-dark-rim: rgba(255, 255, 255, 0.34);

  /* Сила преломления у кромки */
  --lg-lens-blur: 7px;

  /* Многослойная тень: контактная + мягкая + дальняя */
  --lg-shadow:
    0 1px 2px rgba(15, 23, 40, 0.06),
    0 10px 24px -10px rgba(15, 23, 40, 0.16),
    0 28px 56px -20px rgba(15, 23, 40, 0.22);
  --lg-shadow-soft:
    0 1px 2px rgba(15, 23, 40, 0.05),
    0 8px 20px -10px rgba(15, 23, 40, 0.14);

  /* Внутренние блики: тонкая светлая линия сверху и отсвет снизу */
  --lg-inner:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.38),
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    inset -1px 0 0 rgba(255, 255, 255, 0.42),
    inset 0 10px 20px -14px rgba(255, 255, 255, 0.9),
    inset 0 -14px 24px -18px rgba(15, 23, 40, 0.24);
  --lg-inner-dark:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    inset 0 12px 22px -16px rgba(255, 255, 255, 0.5),
    inset 0 -16px 26px -20px rgba(0, 0, 0, 0.3);
}

/* --- Светлое стекло ------------------------------------------------ */
.site-header.is-scrolled:not(.nav-open) .header-pill,
.site-header.is-solid:not(.nav-open) .header-pill,
.site-header.is-scrolled:not(.nav-open) .header-main,
.site-header.is-solid:not(.nav-open) .header-main,
.site-header.is-scrolled:not(.nav-open) .nav-toggle,
.site-header.is-solid:not(.nav-open) .nav-toggle,
.site-header.is-scrolled:not(.nav-open) .header-search-btn,
.site-header.is-solid:not(.nav-open) .header-search-btn,
.site-header-collapse,
.site-header-puller,
.contacts-panel-card,
.search-box,
.cookie {
  background-color: transparent;
  background-image: linear-gradient(180deg, var(--lg-tint-top), var(--lg-tint-bottom));
  border: 1px solid var(--lg-rim);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)) brightness(var(--lg-bright));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)) brightness(var(--lg-bright));
  box-shadow: var(--lg-inner), var(--lg-shadow);
}

/* Cookie: чуть плотнее, чтобы мелкий текст оставался читаемым */
.cookie {
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82),
    rgba(255, 255, 255, 0.62)
  );
  color: var(--navy);
  font-weight: 600;
}

/* Мелкие элементы: то же стекло, но легче — чтобы не грузить телефон */
.site-header.is-scrolled .btn-ghost,
.site-header.is-solid .btn-ghost,
.site-search-form input[type="search"],
.search-box input,
.site-search-close,
.news-widget-expand {
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
  border-color: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(var(--lg-blur-soft)) saturate(var(--lg-sat));
  backdrop-filter: blur(var(--lg-blur-soft)) saturate(var(--lg-sat));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    var(--lg-shadow-soft);
}

/* --- Тёмное стекло (на тёмном фоне) -------------------------------- */
.hero-panel,
.news-widget,
.news-widget.is-expanded {
  background-color: transparent;
  background-image: linear-gradient(180deg, var(--lg-dark-top), var(--lg-dark-bottom));
  border-color: var(--lg-dark-rim);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)) brightness(1.02);
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)) brightness(1.02);
  box-shadow: var(--lg-inner-dark), var(--lg-shadow);
}

/* Наверху экрана подложки шапки невидимы — и на ПК, и на телефоне.
   Стекло появляется только после прокрутки (или когда открыто меню). */
.site-header.is-at-top:not(.nav-open):not(.search-open) .header-pill,
.site-header.is-at-top:not(.nav-open):not(.search-open) .header-main,
.site-header.is-at-top:not(.nav-open):not(.search-open) .header-search-btn,
.site-header.is-at-top:not(.nav-open):not(.search-open) .nav-toggle,
.site-header.is-at-top:not(.nav-open):not(.search-open) .site-header-collapse,
.site-header:not(.is-scrolled):not(.is-solid):not(.nav-open):not(.search-open) .header-pill,
.site-header:not(.is-scrolled):not(.is-solid):not(.nav-open):not(.search-open) .header-main,
.site-header:not(.is-scrolled):not(.is-solid):not(.nav-open):not(.search-open) .header-search-btn,
.site-header:not(.is-scrolled):not(.is-solid):not(.nav-open):not(.search-open) .nav-toggle,
.site-header:not(.is-scrolled):not(.is-solid):not(.nav-open):not(.search-open) .site-header-collapse {
  background: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.site-header.is-at-top:not(.nav-open):not(.search-open) .header-pill::before,
.site-header.is-at-top:not(.nav-open):not(.search-open) .header-main::before,
.site-header.is-at-top:not(.nav-open):not(.search-open) .brand.header-pill::before,
.site-header:not(.is-scrolled):not(.is-solid):not(.nav-open):not(.search-open) .header-pill::before,
.site-header:not(.is-scrolled):not(.is-solid):not(.nav-open):not(.search-open) .header-main::before,
.site-header:not(.is-scrolled):not(.is-solid):not(.nav-open):not(.search-open) .brand.header-pill::before {
  display: none !important;
}

/* --- Линза по краю: у кромки фон размывается сильнее и светлеет,
       поверх идёт блик по диагонали. Это и даёт эффект стекла. ------- */
.contacts-panel-card,
.search-box,
.hero-panel,
.site-header.is-scrolled:not(.nav-open) .header-main,
.site-header.is-solid:not(.nav-open) .header-main,
.site-header.is-scrolled .brand.header-pill,
.site-header.is-solid .brand.header-pill,
.site-header-collapse {
  position: relative;
  isolation: isolate;
}
/* Панель поиска: без круглой «линзы» — иначе при первой букве мигает круг */
.site-search-panel::before {
  content: none !important;
  display: none !important;
}
/* Куки и «вытянуть шапку» должны оставаться поверх экрана (fixed),
   иначе они встают в поток страницы и появляется пустой скролл под подвалом */
.cookie,
.site-header-puller {
  position: fixed !important;
  isolation: isolate;
}
.contacts-panel-card::before,
.search-box::before,
.cookie::before,
.hero-panel::before,
.site-header.is-scrolled:not(.nav-open) .header-main::before,
.site-header.is-solid:not(.nav-open) .header-main::before,
.site-header.is-scrolled .brand.header-pill::before,
.site-header.is-solid .brand.header-pill::before,
.site-header-collapse::before,
.site-header-puller::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 36%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 30%);
  -webkit-mask-image: radial-gradient(
    115% 115% at 50% 50%,
    transparent 38%,
    rgba(0, 0, 0, 0.55) 74%,
    #000 100%
  );
  mask-image: radial-gradient(
    115% 115% at 50% 50%,
    transparent 38%,
    rgba(0, 0, 0, 0.55) 74%,
    #000 100%
  );
}

/* --- Если браузер не умеет размывать фон: обычная плотная подложка --- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled .header-pill,
  .site-header.is-solid .header-pill,
  .site-header.is-scrolled .header-main,
  .site-header.is-solid .header-main,
  .contacts-panel-card,
  .search-box,
  .cookie {
    background-image: none;
    background-color: rgba(255, 255, 255, 0.96);
  }
  .hero-panel,
  .news-widget {
    background-image: none;
    background-color: rgba(15, 23, 40, 0.72);
  }
  .contacts-panel-card::before,
  .site-search-sheet::before,
  .search-box::before,
  .cookie::before,
  .hero-panel::before,
  .site-header-collapse::before,
  .site-header-puller::before {
    display: none;
  }
}

/* --- Телефоны: размытие мягче, линза тоньше — прокрутка не дёргается --- */
@media (max-width: 980px) {
  :root {
    --lg-blur: 20px;
    --lg-blur-soft: 12px;
    --lg-blur-strong: 30px;
    --lg-lens-blur: 5px;
  }
}

/* --- Если человек просит меньше прозрачности и движения ------------- */
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled .header-pill,
  .site-header.is-solid .header-pill,
  .site-header-collapse,
  .site-header-puller,
  .contacts-panel-card,
  .search-box,
  .cookie {
    background-image: none;
    background-color: rgba(255, 255, 255, 0.97);
  }
  .contacts-panel-card::before,
  .search-box::before,
  .cookie::before,
  .hero-panel::before,
  .site-header-collapse::before,
  .site-header-puller::before {
    display: none;
  }
}



/* === MOBILE NAV-OPEN SAFETY (last) === */
@media (max-width: 980px) {
  .header-bar {
    /* Сверху как от края видео до контента (18px); по бокам те же 8+18 */
    width: min(1180px, calc(100% - 52px));
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    padding-top: 18px;
    box-sizing: border-box;
  }
  .header-logo-group {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: auto;
  }
  /* Одинаковый зазор между лупой, стрелкой и меню */
  .header-search-btn.header-pill,
  .site-header-collapse.header-pill,
  .header-main {
    margin-left: 0;
    flex: 0 0 auto;
  }
  .header-search-btn.header-pill,
  .site-header-collapse.header-pill,
  .nav-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  /* 1) В открытом меню — лого и лупа скрыты, панель по центру на всю ширину шапки */
  .site-header.nav-open .header-search-btn,
  .site-header.nav-open .header-logo-group,
  .site-header.nav-open .brand.header-pill {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
  .site-header.nav-open .header-main {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 100 !important;
  }
  .site-header.nav-open .header-bar {
    align-items: flex-start !important;
    justify-content: center !important;
  }
  .site-header.nav-open .nav-toggle {
    z-index: 101 !important;
  }

  /* 2) Свёрнутое меню: только один круг (кнопка), без второго «стекла» сзади */
  .site-header:not(.nav-open) .header-main,
  .site-header.is-scrolled:not(.nav-open) .header-main,
  .site-header.is-solid:not(.nav-open) .header-main {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
  }
  .site-header:not(.nav-open) .header-main::before,
  .site-header.is-scrolled:not(.nav-open) .header-main::before,
  .site-header.is-solid:not(.nav-open) .header-main::before {
    content: none !important;
    display: none !important;
  }
}


/* === product-story kit === */
.product-story {
  display: grid;
  gap: 22px;
}
.product-story .ps-section {
  margin: 0;
}
.product-story .ps-section-head {
  margin-bottom: 16px;
  max-width: 640px;
}
.product-story .ps-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30,200,255,.14);
  color: var(--navy);
  margin-bottom: 10px;
}
.product-story .ps-section-head h2,
.product-story .ps-intro h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -.02em;
}
.product-story .ps-section-head p,
.product-story .ps-intro p {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}
.product-story .ps-intro {
  padding: 22px 24px;
  border-radius: 22px;
}
.product-story .ps-stats,
.news-story .ps-stats,
.vacancy-story .ps-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.product-story .ps-stat,
.news-story .ps-stat,
.vacancy-story .ps-stat {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(48,72,112,.08);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(34,53,85,.06);
  backdrop-filter: blur(12px);
}
.product-story .ps-stat .n,
.news-story .ps-stat .n,
.vacancy-story .ps-stat .n {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.product-story .ps-stat .l,
.news-story .ps-stat .l,
.vacancy-story .ps-stat .l {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}
.product-story .ps-chart {
  background: rgba(255,255,255,.78);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(48,72,112,.08);
  box-shadow: 0 12px 32px rgba(34,53,85,.07);
}
.product-story .ps-chart h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 17px;
}
.product-story .ps-chart > p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.product-story .ps-bars {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.product-story .ps-bar-row {
  display: grid;
  grid-template-columns: 110px 1fr 52px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.product-story .ps-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(48,72,112,.08);
  overflow: hidden;
}
.product-story .ps-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ad8ff, #1ec8ff);
}
.product-story .ps-plates,
.vacancy-story .ps-plates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product-story .ps-plate,
.vacancy-story .ps-plate {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(48,72,112,.06);
  box-shadow: 0 10px 28px rgba(34,53,85,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-story .ps-plate:hover,
.vacancy-story .ps-plate:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(34,53,85,.1);
}
.product-story .ps-plate-ico,
.vacancy-story .ps-plate-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(30,200,255,.18), rgba(30,200,255,.05));
}
.product-story .ps-plate h3,
.vacancy-story .ps-plate h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--navy);
}
.product-story .ps-plate p,
.vacancy-story .ps-plate p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}
.product-story .ps-steps,
.vacancy-story .ps-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.product-story .ps-step,
.vacancy-story .ps-step {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(48,72,112,.06);
  box-shadow: 0 10px 28px rgba(34,53,85,.05);
}
.product-story .ps-step-num,
.vacancy-story .ps-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  background: var(--navy);
  color: #fff;
  margin-bottom: 12px;
}
.product-story .ps-step h3,
.vacancy-story .ps-step h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--navy);
}
.product-story .ps-step p,
.vacancy-story .ps-step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}
.product-story .ps-audience {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.product-story .ps-aud {
  border-radius: 22px;
  padding: 22px;
  min-height: 168px;
  background: #fff;
  border: 0;
  outline: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}
.product-story .ps-aud svg {
  position: absolute;
  right: -8px;
  top: -8px;
  opacity: .9;
  pointer-events: none;
}
.product-story .ps-aud h3,
.product-story .ps-aud p {
  position: relative;
  z-index: 1;
}
.product-story .ps-aud h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 17px;
}
.product-story .ps-aud p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.product-story .ps-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.product-story .ps-caps {
  display: grid;
  gap: 12px;
}
.product-story .ps-cap {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(48,72,112,.06);
  box-shadow: 0 8px 22px rgba(34,53,85,.04);
}
.product-story .ps-cap-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(30,200,255,.12);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 12px;
}
.product-story .ps-cap h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--navy);
}
.product-story .ps-cap p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}
.product-story .ps-visual {
  background: linear-gradient(160deg, #fff, #e7f6fc);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(30,200,255,.2);
  min-height: 220px;
  display: grid;
  place-items: center;
}
.product-story .ps-card {
  background: #fff;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(48,72,112,.06);
  box-shadow: 0 10px 28px rgba(34,53,85,.05);
}
.product-story .ps-card h2,
.product-story .ps-card h3 {
  color: var(--navy);
  margin: 0 0 10px;
}
.product-story .ps-card p {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.55;
}
.product-story .ps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.product-story .ps-stats--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.product-story .ps-pillars {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.product-story .ps-tech {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.product-story .ps-tech-card,
.product-story a.ps-tech-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f3f7fb;
  border-radius: 18px;
  padding: 16px 16px 18px;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
  box-shadow: none;
}
.product-story a.ps-tech-card:hover {
  border-color: rgba(30, 200, 255, 0.45);
  transform: translateY(-2px);
}
.product-story .ps-tech-card h3 {
  margin: 0;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.3;
}
.product-story .ps-tech-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}
.product-story .ps-tech-card--iskra {
  background: linear-gradient(160deg, rgba(30, 200, 255, 0.18), #f3f7fb 55%);
}
.product-story .ps-kits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.product-story .ps-kit {
  background: #f3f7fb;
  border-radius: 20px;
  padding: 18px 18px 16px;
}
.product-story .ps-kit h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--navy);
}
.product-story .ps-kit ul {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 6px;
}
.product-story .ps-kit li {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}
.product-story .ps-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.product-sheet .product-story .ps-section:has(.ps-facts) {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.product-story .ps-fact {
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 40, 0.05);
  border-radius: 16px;
  padding: 14px 16px 14px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  margin: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.product-story .ps-fact::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--cyan);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
  flex: 0 0 auto;
}
.product-story .ps-fact:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V6z'/%3E%3Cpath d='M8.5 12.5l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
}
.product-story .ps-fact:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E");
}
.product-story .ps-fact:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5'/%3E%3Cpath d='M8.5 13.5L7 21l5-2 5 2-1.5-7.5'/%3E%3C/svg%3E");
}
.product-story .ps-fact:nth-child(4)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='3' width='8' height='18' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}
.product-story .ps-fact:nth-child(5)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h8'/%3E%3Ccircle cx='5' cy='6' r='1.4' fill='%23ffffff' stroke='none'/%3E%3Ccircle cx='5' cy='12' r='1.4' fill='%23ffffff' stroke='none'/%3E%3Ccircle cx='5' cy='18' r='1.4' fill='%23ffffff' stroke='none'/%3E%3C/svg%3E");
}
.product-story .ps-fact:nth-child(6)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h8l4 4v14H7z'/%3E%3Cpath d='M15 3v4h4'/%3E%3Cpath d='M9.5 13.5l2 2 3.5-4'/%3E%3C/svg%3E");
}
.product-story .ps-version-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.product-story .ps-version {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(48,72,112,.06);
  box-shadow: 0 10px 28px rgba(34,53,85,.05);
  display: grid;
  gap: 10px;
}
.product-story .ps-version img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 14px;
}
.product-story .ps-version h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}
.product-story .ps-version p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
}
.product-story .include-list,
.product-story .benefit-grid {
  margin-top: 8px;
}
@media (max-width: 900px) {
  .product-story .ps-stats,
  .news-story .ps-stats,
  .vacancy-story .ps-stats,
  .product-story .ps-plates,
  .vacancy-story .ps-plates,
  .product-story .ps-steps,
  .vacancy-story .ps-steps,
  .product-story .ps-audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-story .ps-split,
  .product-story .ps-version-grid,
  .product-story .ps-stats--4,
  .product-story .ps-pillars,
  .product-story .ps-tech,
  .product-story .ps-kits,
  .product-story .cards-bento--garant,
  .product-story .cards-bento--kits,
  .product-story .ps-facts {
    grid-template-columns: 1fr;
  }
  .product-story .ps-plates,
  .vacancy-story .ps-plates,
  .product-story .ps-pillars,
  .product-story .ps-tech,
  .product-story .ps-kits,
  .product-story .ps-facts {
    grid-template-columns: 1fr 1fr;
  }
  .product-story .ps-bar-row {
    grid-template-columns: 80px 1fr 48px;
  }
}
@media (max-width: 560px) {
  .product-story .ps-plates,
  .vacancy-story .ps-plates,
  .product-story .ps-pillars,
  .product-story .ps-tech,
  .product-story .ps-kits,
  .product-story .cards-bento--garant,
  .product-story .cards-bento--kits,
  .product-story .ps-facts {
    grid-template-columns: 1fr;
  }
  .product-story .ps-stats,
  .news-story .ps-stats,
  .vacancy-story .ps-stats,
  .product-story .ps-stats--4 {
    grid-template-columns: 1fr;
  }
}

/* Vacancy / news story helpers (after shared ps-* so they win) */
.news-story .ps-stat .n,
.vacancy-story .ps-stat .n {
  font-size: clamp(18px, 2.4vw, 24px);
}
.vacancy-story .ps-plate {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 14px;
  align-items: start;
}
.vacancy-story .ps-plate-ico {
  margin-bottom: 0 !important;
  grid-row: 1 / span 2;
}
.vacancy-story .ps-plate h3 {
  margin: 2px 0 4px;
}

/* === frosted matte: header + float btns like Iskra === */
/* Одна матовость со виджетом Искры: сильнее blur, полупрозрачная подложка, линза по краю */
:root {
  --lg-blur: 32px;
  --lg-blur-soft: 20px;
  --lg-blur-strong: 44px;
  --lg-sat: 170%;
  --lg-bright: 1.05;
  --lg-tint-top: rgba(255, 255, 255, 0.42);
  --lg-tint-bottom: rgba(255, 255, 255, 0.22);
  --lg-rim: rgba(255, 255, 255, 0.55);
  --lg-lens-blur: 10px;
}

/* Шапка на телефоне: плотная подложка без размытия (бургер/меню). */
@media (max-width: 980px) {
.site-header.is-scrolled:not(.nav-open) .header-pill,
.site-header.is-solid:not(.nav-open) .header-pill,
.site-header.is-scrolled:not(.nav-open) .nav-toggle,
.site-header.is-solid:not(.nav-open) .nav-toggle,
.site-header.is-scrolled:not(.nav-open) .header-search-btn,
.site-header.is-solid:not(.nav-open) .header-search-btn,
.site-header-collapse,
.site-header-puller,
.site-header.is-scrolled .btn-ghost,
.site-header.is-solid .btn-ghost {
  background-color: rgba(255, 255, 255, 0.94) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.92) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 12px 32px rgba(15, 23, 40, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}
}

/* ПК: лёгкое стекло у шапки и ленты — как на телефоне, без второго размытия и без линзы */
@media (min-width: 981px) {
.site-header.is-scrolled:not(.nav-open) .header-pill,
.site-header.is-solid:not(.nav-open) .header-pill,
.site-header.is-scrolled:not(.nav-open) .header-main,
.site-header.is-solid:not(.nav-open) .header-main,
.site-header.is-scrolled:not(.nav-open) .nav-toggle,
.site-header.is-solid:not(.nav-open) .nav-toggle,
.site-header.is-scrolled:not(.nav-open) .header-search-btn,
.site-header.is-solid:not(.nav-open) .header-search-btn,
.site-header-collapse,
.site-header-puller {
  background-color: rgba(255, 255, 255, 0.52) !important;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.64),
    rgba(255, 255, 255, 0.38)
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
}
.site-header.is-scrolled .btn-ghost,
.site-header.is-solid .btn-ghost {
  background-color: rgba(255, 255, 255, 0.5) !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.news-widget,
.news-widget.is-expanded {
  background-color: rgba(255, 255, 255, 0.08) !important;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.05)
  ) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  isolation: isolate;
}
.news-widget-expand,
.news-preview,
.news-widget-cta,
.hero-panel,
.contacts-panel-card,
.cookie,
.to-top {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.contacts-panel-card,
.cookie,
.to-top {
  background-color: rgba(255, 255, 255, 0.94) !important;
  background-image: none !important;
}
.contacts-panel-card::before,
.search-box::before,
.cookie::before,
.hero-panel::before,
.site-header.is-scrolled:not(.nav-open) .header-main::before,
.site-header.is-solid:not(.nav-open) .header-main::before,
.site-header.is-scrolled .brand.header-pill::before,
.site-header.is-solid .brand.header-pill::before,
.site-header-collapse::before,
.site-header-puller::before,
.to-top::before {
  display: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.hero-direct-bg::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.page-home.hero-offscreen .hero-bg-video {
  visibility: hidden !important;
}
body.page-home.hero-offscreen .hero-iskra-float {
  visibility: hidden;
  pointer-events: none;
}
}

/* Стрелка «вверх» и кнопка чата на телефоне — без размытия */
@media (max-width: 980px) {
.to-top,
.ntpc-chat-fab {
  isolation: isolate;
  background-color: rgba(255, 255, 255, 0.94) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 10px 24px rgba(15, 23, 40, 0.14) !important;
  color: #1b2643 !important;
}
}
.to-top {
  position: fixed !important;
}
.ntpc-chat-fab {
  position: relative;
}

.to-top::before,
.ntpc-chat-fab::before {
  display: none !important;
}

.to-top:hover,
.ntpc-chat-fab:hover {
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.52),
    rgba(255, 255, 255, 0.28)
  ) !important;
}

/* Мобильное меню: та же матовость */
@media (max-width: 980px) {
  :root {
    --lg-blur: 28px;
    --lg-blur-soft: 16px;
    --lg-blur-strong: 36px;
    --lg-lens-blur: 8px;
  }
  .site-header.nav-open .header-main {
    background-color: rgba(255, 255, 255, 0.96) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* Мобильное меню: та же матовость */
@media (max-width: 980px) {
.hero-panel {
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)) brightness(1.02) !important;
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)) brightness(1.02) !important;
}
}

/* === product-story charts kit === */
.product-story .ps-step-arrow { display: none !important; }
.product-story .ps-charts {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
  align-items: stretch;
}
.product-story .ps-chart {
  background: rgba(255,255,255,.9);
  border-radius: 22px;
  padding: 20px 22px;
  border: 1px solid rgba(48,72,112,.08);
  box-shadow: 0 12px 32px rgba(34,53,85,.06);
}
.product-story .ps-chart h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 16px;
}
.product-story .ps-chart > p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.product-story .ps-bars { display: grid; gap: 12px; }
.product-story .ps-bar-row {
  display: grid;
  grid-template-columns: minmax(72px, 110px) 1fr 52px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.product-story .ps-bar-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(48,72,112,.08);
  overflow: hidden;
}
.product-story .ps-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5ad8ff, #1ec8ff);
}
.product-story .ps-ring-wrap {
  display: grid;
  place-items: center;
  min-height: 180px;
  position: relative;
}
.product-story .ps-ring-wrap svg { display: block; }
.product-story .ps-ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.product-story .ps-ring-center .n {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
  line-height: 1;
}
.product-story .ps-ring-center .l {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}
.product-story .ps-line-chart {
  width: 100%;
  height: auto;
  display: block;
}
.product-story .ps-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.product-story .ps-mini {
  background: rgba(243,247,251,.95);
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(48,72,112,.06);
}
.product-story .ps-mini .n {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}
.product-story .ps-mini .n svg {
  display: block;
}
.product-story .ps-mini .l {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 2px;
}
@media (max-width: 900px) {
  .product-story .ps-charts { grid-template-columns: 1fr; }
}


/* float-anchor: no document-flow to-top */
html, body {
  overflow-x: clip;
}
body > .to-top {
  position: fixed !important;
  left: auto !important;
  right: var(--float-btn-right, 20px) !important;
}

/* === MOBILE HEADER FIXES (must win over frosted glass) === */
@media (max-width: 980px) {
  .header-bar {
    width: min(1180px, calc(100% - 52px));
    gap: 8px;
    justify-content: flex-start;
    align-items: center;
    padding-top: 18px;
  }
  .header-logo-group {
    flex: 1 1 auto;
    margin-right: auto;
  }
  .header-search-btn.header-pill,
  .site-header-collapse.header-pill,
  .header-main {
    margin-left: 0 !important;
    flex: 0 0 auto;
  }
  /* Лупа и лого не поверх / из-под открытого меню */
  .site-header.nav-open .header-search-btn,
  .site-header.nav-open .header-logo-group,
  .site-header.nav-open .brand.header-pill {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .site-header.search-open .header-logo-group,
  .site-header.search-open .brand.header-pill,
  .site-header.search-open .header-main,
  .site-header.search-open .site-header-collapse {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .site-header.search-open .header-search-btn {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  /* Только круг бургера — без второго «стекла» */
  .site-header:not(.nav-open) .header-main,
  .site-header.is-scrolled:not(.nav-open) .header-main,
  .site-header.is-solid:not(.nav-open) .header-main {
    background: transparent !important;
    background-image: none !important;
    background-color: transparent !important;
    border: 0 !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
  }
  .site-header:not(.nav-open) .header-main::before {
    content: none !important;
    display: none !important;
  }
  /* Открытое меню: по центру на всю ширину шапки + текст в 2 строки */
  .site-header.nav-open .header-main {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .site-header.nav-open .nav a {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.3 !important;
  }
}


/* === HOME VARIANT: смысл слева, компактная ИСКРА справа (ПК) === */

@media (min-width: 981px) {
  body.page-home .hero-direct-inner {
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(520px, 1.18fr);
    align-items: center;
    gap: clamp(40px, 5vw, 78px);
    width: min(1180px, calc(100% - 64px));
    max-width: 1180px;
    text-align: left;
  }
  body.page-home .hero-direct-inner > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: auto;
    min-width: 0;
  }
  body.page-home .hero-kicker {
    margin-bottom: 20px;
    text-align: left;
  }
  body.page-home .hero-direct h1 {
    max-width: none;
    margin: 0 0 28px;
    font-size: clamp(58px, 6.5vw, 96px);
    line-height: .91;
    text-align: left;
  }
  body.page-home .hero-lead {
    max-width: 390px;
    margin: 0;
    font-size: 18px;
    line-height: 1.48;
    text-align: left;
  }
  body.page-home .hero-panel.hero-ai-showcase {
    justify-self: end;
    width: 100%;
    max-width: 620px;
    min-height: 430px;
    height: 430px;
    align-self: center;
  }
  body.page-home .hero-ai-showcase-grid {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
  }
  body.page-home .hero-ai-workbench {
    width: 100%;
    min-height: 0;
  }
  body.page-home .hero-ai-primary {
    width: 100%;
    min-width: 0;
  }
}

body.page-home .hero-chat-cta.btn-primary {
  width: 100%;
  margin-top: auto;
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(30, 200, 255, 0.32);
}
body.page-home a.hero-chat-cta.btn-primary:hover,
body.page-home a.hero-chat-cta.btn-primary:focus {
  color: var(--navy);
  filter: brightness(1.05);
}

@media (max-width: 980px) {
  /* Текст и виджет у низа видео; зазоры = боковой отступ */
  body.page-home .hero-direct-inner {
    --hero-inline-gap: 18px;
    --hero-bottom-gap: 18px;
    justify-content: flex-start !important;
    gap: 18px !important;
    padding: calc(118px + env(safe-area-inset-top, 0px)) 18px 0 !important;
  }
  body.page-home .hero-iskra-float {
    /* Снизу такой же зазор до края видео, как по бокам */
    margin-bottom: 34px !important;
  }
  body.page-home .hero-kicker {
    text-align: center !important;
    margin-top: 0 !important; /* низ через flex-end, не через auto */
    order: 1 !important;
  }
  body.page-home .hero-home-copy {
    display: flex !important;
    flex-direction: column !important;
    order: 1 !important;
  }
  body.page-home .hero-home-copy .hero-title-row {
    order: 2 !important;
  }
  body.page-home .hero-home-copy .hero-cta-row {
    order: 3 !important;
  }
  body.page-home .hero-direct-inner h1 {
    text-align: center !important;
    order: unset !important;
  }
  body.page-home .hero-direct-inner h1 br {
    display: none;
  }
  body.page-home .hero-lead {
    text-align: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    order: unset !important;
  }
  body.page-home .hero-stats {
    order: 4 !important;
    display: grid !important;
    width: 100% !important;
  }
  body.page-home .hero-panel {
    order: 5 !important;
    margin-top: 0 !important;
  }
  body.page-home .hero-actions {
    order: 6 !important;
    display: none !important;
  }
}

/* === MOBILE SEARCH ADAPT === */
@media (max-width: 980px) {
  .site-header.search-open .header-bar {
    position: relative !important;
    align-items: flex-start !important;
    width: min(1180px, calc(100% - 24px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .site-header.search-open .site-search-sheet {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(72vh, 560px) !important;
    padding: 12px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transform: none !important;
    -webkit-transform: none !important;
  }
  .site-header.search-open .site-search-sheet.is-open {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header.search-open .header-search-btn.header-pill {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .site-header.search-open .site-search-form .site-search-close-inline {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 14px !important;
  }

  .site-header.search-open .site-search-panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  .site-header.search-open .site-search-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .site-header.search-open .site-search-form input[type="search"] {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 48px !important;
    font-size: 16px !important; /* без зума Safari */
    padding: 0 16px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    color: var(--navy) !important;
  }

  .site-header.search-open .site-search-form .site-search-go {
    flex: 0 0 auto !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    font-size: 0 !important;
  }
  .site-header.search-open .site-search-form .site-search-go-label {
    display: none !important;
  }
  .site-header.search-open .site-search-form .site-search-go-icon {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
  }

  .site-header.search-open .site-search-live {
    margin-top: 10px !important;
    max-height: min(42vh, 280px) !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .site-header.search-open .site-search-live li a {
    padding: 14px 14px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
  }
}


/* === PC SEARCH CENTER === */
@media (min-width: 981px) {
  .site-header.search-open .header-bar {
    padding-top: 14px !important;
  }
  .site-header.search-open .site-search-sheet,
  .site-header.search-open .site-search-sheet.is-open {
    position: absolute !important;
    top: 14px !important;
    left: 50% !important;
    right: auto !important;
    width: min(560px, calc(100% - 64px)) !important;
    max-width: min(560px, calc(100% - 64px)) !important;
    transform: translateX(-50%) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .site-header.search-open .site-search-sheet::before {
    content: none !important;
    display: none !important;
  }
  .site-header.search-open .header-search-btn.header-pill {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* === MOBILE SEARCH ICON ROW === */
@media (max-width: 980px) {
  .site-header.search-open .site-search-form {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .site-header.search-open .site-search-form input[type="search"] {
    flex: 1 1 auto !important;
    width: auto !important;
  }
  .site-header.search-open .site-search-form .site-search-go {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
  }
  .site-header.search-open .site-search-go-label {
    display: none !important;
  }
  .site-header.search-open .site-search-go-icon {
    display: block !important;
  }
}

/* === MOBILE SCROLL LOCK GAP FIX === */

/* === HERO CTA ONLY IN ISKRA === */

/* Первый экран: «Получить консультацию» только в виджете Искры */
body.page-home .hero-actions .btn-primary[href="#lead"] {
  display: none !important;
}
@media (max-width: 980px) {
  /* На телефоне кнопка ГАРАНТ в hero-actions скрыта — прячем пустой блок */
  body.page-home .hero-actions {
    display: none !important;
  }
}

/* === SEARCH CLOSE INLINE === */
.site-header.search-open .header-search-btn {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.site-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-search-form .site-search-close-inline {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
  color: var(--navy);
  cursor: pointer;
}
@media (max-width: 980px) {
  .site-header.search-open .site-search-sheet {
    padding: 12px !important;
  }
  .site-search-form .site-search-close-inline {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
}


/* === MOBILE: поиск/меню как плашка видео === */
@media (max-width: 980px) {
  /* Поиск: те же боковые отступы, что у header (26px = 8+18) */
  .site-header.search-open .header-bar {
    width: min(1180px, calc(100% - 52px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 0 !important;
  }

  /* Меню: ширина как у видео (8px от краёв) */
  .site-header.nav-open .header-bar {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 0 !important;
  }

  /* Поиск ниже выреза + без общей подложки */
  .site-header.search-open .site-search-sheet,
  .site-header.search-open .site-search-sheet.is-open {
    top: calc(env(safe-area-inset-top, 0px) + 26px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
  }
  .site-header.search-open .site-search-sheet::before {
    content: none !important;
    display: none !important;
  }

  .site-header.search-open .site-search-form input[type="search"],
  .site-header.search-open .site-search-form .site-search-go,
  .site-header.search-open .site-search-form .site-search-close-inline {
    border-radius: 999px !important;
  }
  .site-header.search-open .site-search-form .site-search-go,
  .site-header.search-open .site-search-form .site-search-close-inline {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
  }
  .site-header.search-open .site-search-form input[type="search"] {
    height: 48px !important;
  }
  .site-header.search-open .site-search-live li a {
    border-radius: 22px !important;
    background: #ffffff !important;
  }

  /* Меню по высоте как видео-плашка — верх вровень с видео */
  .site-header.nav-open .header-main {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: calc(var(--hero-face-h, 100svh) - var(--hero-next-peek, 40px)) !important;
    min-height: calc(var(--hero-face-h, 100svh) - var(--hero-next-peek, 40px)) !important;
    max-height: calc(var(--hero-face-h, 100svh) - var(--hero-next-peek, 40px)) !important;
    border-radius: 28px !important;
    padding: calc(env(safe-area-inset-top, 0px) + 52px) 18px 18px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .site-header.nav-open .nav {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .site-header.nav-open .header-actions {
    flex: 0 0 auto !important;
  }
  .site-header.nav-open .nav-toggle {
    top: calc(env(safe-area-inset-top, 0px) + 18px) !important;
    right: 12px !important;
  }
  /* На внутренних страницах без героя — почти на весь экран */
  body:not(.page-home) .site-header.nav-open .header-main {
    top: calc(env(safe-area-inset-top, 0px) + 8px) !important;
    height: calc(100svh - env(safe-area-inset-top, 0px) - 24px) !important;
    min-height: calc(100svh - env(safe-area-inset-top, 0px) - 24px) !important;
    max-height: calc(100svh - env(safe-area-inset-top, 0px) - 24px) !important;
  }
}

/* === MOBILE: никакого scroll-эффекта шапки === */
@media (max-width: 980px) {
  .site-header-collapse,
  .site-header:not(.is-at-top) .site-header-collapse,
  .site-header.is-scrolled .site-header-collapse,
  .site-header.is-solid .site-header-collapse,
  .site-header-puller {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Прозрачные таблетки ТОЛЬКО когда меню закрыто.
     Важно: .header-main тоже имеет класс header-pill — нельзя трогать его при nav-open,
     иначе на about/news/life/vakansii панель меню становится невидимой. */
  .site-header.is-scrolled:not(.nav-open) .header-pill:not(.header-main),
  .site-header.is-solid:not(.nav-open) .header-pill:not(.header-main),
  .site-header.is-scrolled:not(.nav-open) .brand.header-pill,
  .site-header.is-solid:not(.nav-open) .brand.header-pill,
  .site-header.is-scrolled:not(.nav-open) .nav-toggle,
  .site-header.is-solid:not(.nav-open) .nav-toggle,
  .site-header.is-scrolled:not(.nav-open) .header-search-btn,
  .site-header.is-solid:not(.nav-open) .header-search-btn,
  .site-header.is-scrolled:not(.nav-open) .header-search-btn.header-pill,
  .site-header.is-solid:not(.nav-open) .header-search-btn.header-pill,
  .site-header:not(.nav-open) .brand.header-pill,
  .site-header:not(.nav-open) .nav-toggle,
  .site-header:not(.nav-open) .header-search-btn.header-pill {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .site-header.is-scrolled:not(.nav-open) .header-pill:not(.header-main)::before,
  .site-header.is-solid:not(.nav-open) .header-pill:not(.header-main)::before,
  .site-header.is-scrolled:not(.nav-open) .brand.header-pill::before,
  .site-header.is-solid:not(.nav-open) .brand.header-pill::before,
  .site-header.is-scrolled:not(.nav-open) .nav-toggle::before,
  .site-header.is-solid:not(.nav-open) .nav-toggle::before,
  .site-header.is-scrolled:not(.nav-open) .header-search-btn::before,
  .site-header.is-solid:not(.nav-open) .header-search-btn::before,
  .site-header:not(.nav-open) .brand.header-pill::before,
  .site-header:not(.nav-open) .nav-toggle::before,
  .site-header:not(.nav-open) .header-search-btn::before {
    content: none !important;
    display: none !important;
  }

  /* Иконки: на главной белые, на внутренних тёмные — без «таблетки» */
  .site-header:not(.is-solid) .nav-toggle,
  .site-header.is-scrolled:not(.is-solid) .nav-toggle,
  .site-header:not(.is-solid) .header-search-btn,
  .site-header.is-scrolled:not(.is-solid) .header-search-btn {
    color: #fff !important;
  }
  .site-header.is-solid .nav-toggle,
  .site-header.is-solid .header-search-btn {
    color: var(--navy) !important;
  }

  /* Лого не перекрашивается при скролле на телефоне */
  .site-header:not(.is-solid) .brand-logo--on-light,
  .site-header.is-scrolled:not(.is-solid) .brand-logo--on-light,
  .site-header.is-scrolled .brand-logo--on-light {
    display: none !important;
  }
  .site-header:not(.is-solid) .brand-logo--on-dark,
  .site-header.is-scrolled:not(.is-solid) .brand-logo--on-dark,
  .site-header.is-scrolled .brand-logo--on-dark {
    display: block !important;
    filter: none !important;
  }
  html.has-custom-logo .site-header:not(.is-solid) .brand-logo--on-dark {
    display: none !important;
  }
  html.has-custom-logo .site-header:not(.is-solid) .brand-logo--on-light,
  html.has-custom-logo .site-header.is-scrolled:not(.is-solid) .brand-logo--on-light {
    display: block !important;
    filter: brightness(0) invert(1) !important;
  }
}

/* === MOBILE HEADER: везде как на продуктах — absolute === */
@media (max-width: 980px) {
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-solid,
  .site-header.is-at-top,
  .site-header.is-header-hidden,
  body.page-scroll-lock .site-header,
  body.page-scroll-lock .site-header.is-scrolled,
  body.page-scroll-lock .site-header.is-solid {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .site-header-puller {
    display: none !important;
  }
  /* На телефоне не фиксируем body — из‑за этого была белая щель */
  html.page-scroll-lock,
  body.page-scroll-lock {
    position: static !important;
    top: auto !important;
    overflow: visible !important;
    touch-action: pan-y !important;
    height: auto !important;
    background-color: inherit !important;
  }
}


/* === MOBILE HEADER KILL SCROLL FX === */
@media (max-width: 980px) {
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-solid,
  .site-header.is-at-top,
  html.is-pwa .site-header,
  html.is-pwa .site-header.is-scrolled,
  html.is-pwa .site-header.is-solid {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
}


/* === PC SEARCH NO SHELL === */
@media (min-width: 981px) {
  .site-header.search-open .site-search-sheet,
  .site-header.search-open .site-search-sheet.is-open,
  .site-search-sheet {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
  }
  .site-header.search-open .site-search-sheet::before,
  .site-search-sheet::before {
    content: none !important;
    display: none !important;
  }
  .site-header.search-open .site-search-sheet,
  .site-header.search-open .site-search-sheet.is-open {
    top: 14px !important;
  }
}


/* === SEARCH LIVE OPAQUE === */
.site-header.search-open .site-search-live li a,
.site-search-live li a {
  background: #ffffff !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* === MOBILE: плашки статистики без стекла === */
@media (max-width: 980px) {
  .hero-stats div,
  body.page-home .hero-stats div {
    background: #1b2643 !important;
    background-image: linear-gradient(160deg, #1b2643 0%, #243556 55%, #1e3554 100%) !important;
    background-color: #1b2643 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 40, 0.28) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    isolation: auto !important;
  }
  .hero-stats div::before,
  body.page-home .hero-stats div::before {
    content: none !important;
    display: none !important;
  }
}


/* === NEWS ARTICLE (Yandex-like card) === */
body.page-news-article-body {
  background: #eef2f7;
}
.page-news-article {
  padding-top: 96px;
  padding-bottom: 48px;
}
.news-article-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}
.news-article-card {
  background: #fff;
  border-radius: 32px;
  padding: 36px 44px 40px;
  box-shadow: 0 18px 48px rgba(15, 23, 40, 0.08);
  box-sizing: border-box;
}
.news-article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.news-article-back:hover {
  color: var(--navy);
}
.news-article-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 24px;
  width: 100%;
}
.news-article-date {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  align-self: flex-start;
  gap: 8px;
  line-height: 1.1;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.news-article-date-day {
  font-size: 28px;
}
.news-article-date-month {
  font-size: 16px;
  text-transform: lowercase;
}
.news-article-date-year {
  margin-top: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.news-article-head-main {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
}
.news-article-head-main h1 {
  display: block;
  margin: 0 0 12px;
  width: 100%;
  max-width: none !important;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--navy);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
  -webkit-hyphens: none;
}
.news-article-lead {
  display: block;
  margin: 0;
  width: 100%;
  max-width: 62ch;
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
}
.news-article-cover {
  margin: 0 0 28px;
  border-radius: 24px;
  overflow: hidden;
  background: #dbe7f2;
}
.news-article-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}
.news-article-body {
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
}
.news-article-body > *:first-child { margin-top: 0; }
.news-article-body h2,
.news-article-body h3 {
  margin: 28px 0 12px;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.25;
}
.news-article-body h2 { font-size: 24px; }
.news-article-body h3 { font-size: 19px; }
.news-article-body p {
  margin: 0 0 14px;
}
.news-article-body ul,
.news-article-body ol {
  margin: 0 0 16px;
  padding-left: 1.2em;
}
.news-article-body li {
  margin: 0 0 8px;
}
.news-article-body a {
  color: var(--cyan);
  font-weight: 700;
}
.news-article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}
.news-article-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  background: #e8eef5;
}
.news-article-help {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(48, 72, 112, 0.08);
}
.news-article-help h2 {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--navy);
  font-weight: 800;
}
.news-article-help-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f3f6fa;
  color: var(--navy);
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-sizing: border-box;
  transition: background .18s ease, transform .15s ease;
}
.news-article-help-link:hover {
  background: #e8eef6;
  transform: translateY(-1px);
}
.article-eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.life-article-videos {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(48, 72, 112, 0.08);
}
.life-article-videos h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
}
.life-article-videos .life-video-grid {
  display: grid;
  gap: 16px;
}
.life-article-videos .life-video {
  display: block;
  width: 100%;
  max-height: 480px;
  border-radius: 18px;
  background: #0f1728;
}
.about-article-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  margin: 0 0 24px;
  padding: 20px;
  border-radius: 20px;
  background: #f3f6fa;
  box-sizing: border-box;
}
.about-article-logo img {
  width: min(230px, 70%);
  height: auto;
}
.about-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.about-details-grid > div {
  min-width: 0;
  padding: 17px 18px;
  border-radius: 16px;
  background: #f3f6fa;
  box-sizing: border-box;
}
.about-details-grid .about-details-wide {
  grid-column: 1 / -1;
}
.about-details-grid dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.about-details-grid dd {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.about-article-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.about-consult-text {
  margin-bottom: 16px;
}
@media (max-width: 980px) {
  .page-news-article {
    padding-top: 84px;
    padding-bottom: 28px;
  }
  .news-article-shell {
    width: calc(100% - 16px);
  }
  .news-article-card {
    border-radius: 28px;
    padding: 22px 18px 26px;
  }
  .news-article-head {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .news-article-head-main,
  .news-article-head-main h1,
  .news-article-lead {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }
  .news-article-head-main h1 {
    font-size: clamp(24px, 6.5vw, 30px) !important;
    line-height: 1.25 !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
  .news-article-lead {
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: none !important;
  }
  .news-article-cover {
    border-radius: 20px;
    margin-bottom: 20px;
  }
  .news-article-cover img { max-height: 240px; }
  .news-article-help-link {
    padding: 16px 16px;
    font-size: 15px;
  }
  .article-eyebrow {
    margin-bottom: 7px;
    font-size: 11px;
  }
  .about-details-grid,
  .about-article-links {
    grid-template-columns: 1fr;
  }
  .about-details-grid .about-details-wide {
    grid-column: auto;
  }
  .about-details-grid > div {
    padding: 15px 16px;
  }
  .life-article-videos .life-video {
    border-radius: 16px;
  }
}


.video-consent,
.content-block--video,
.product-sheet .video-player {
  display: none !important;
}


/* Блок консультации на продуктах: ширина как у контента / подвала */
body:has(.page-product) .product-sheet .inner-section:has(.cta-wide),
body:has(.product-hero) .product-sheet .inner-section:has(.cta-wide) {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}
body:has(.page-product) .product-sheet .cta-wide,
body:has(.product-hero) .product-sheet .cta-wide,
.page-product .product-sheet .cta-wide {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 981px) {
  body:has(.page-product) .product-sheet-inner,
  body:has(.product-hero) .product-sheet-inner {
    width: var(--page-width);
    max-width: var(--page-width);
  }
}
@media (max-width: 980px) {
  body:has(.page-product) .product-sheet .inner-section:has(.cta-wide),
  body:has(.product-hero) .product-sheet .inner-section:has(.cta-wide) {
    width: 100%;
    max-width: 100%;
  }
  body:has(.page-product) .site-footer,
  body:has(.product-hero) .site-footer {
    width: calc(100% - 16px);
    margin-left: 8px;
    margin-right: 8px;
  }
}

/* ПК: во всех разделах в шапке без «Оставить заявку» (на телефоне в меню остаётся) */
@media (min-width: 981px) {
  .site-header .header-actions > a.btn-primary {
    display: none !important;
  }
}

/* Full-bleed dark hero + overlapping white sheet (Adfox-style) */
body:has(.product-story),
body:has(.page-product) {
  background: #eef2f7;
  overscroll-behavior-y: auto;
}
html:has(.page-product),
html:has(.product-story) {
  overscroll-behavior-y: auto;
}
.page-product.page-inner,
body:has(.page-product) .page-inner,
body:has(.product-story) .page-inner {
  padding-top: 0;
}
/* Хлебные крошки внутри баннера */
.page-product .page-top,
body:has(.page-product) .page-top,
body:has(.product-story) .page-top {
  display: none;
}
.product-hero .breadcrumbs {
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 18px;
}
.product-hero .breadcrumbs a,
.product-hero .breadcrumbs span {
  color: rgba(255, 255, 255, 0.78);
}
.product-hero .breadcrumbs a::after {
  color: rgba(255, 255, 255, 0.35);
}
.page-product .product-hero,
body:has(.page-product) .product-hero {
  margin-top: 0;
  padding-top: 108px;
}

.page-body--product {
  width: 100%;
  max-width: none;
  padding: 0 0 0;
  margin: 0;
}

/* 1) Banner = FULL-SCREEN photo under transparent header */
.product-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  padding: 108px 0 120px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  overflow: clip;
  overscroll-behavior: auto;
  min-height: min(62vh, 640px);
  border-radius: 0 !important;
  box-shadow: none !important;
  background-color: #0c1424;
  background-image: none;
}
.product-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0c1424;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.product-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(8, 14, 28, 0.62) 0%,
    rgba(12, 20, 36, 0.42) 40%,
    rgba(15, 23, 40, 0.22) 70%,
    rgba(15, 23, 40, 0.1) 100%
  );
}

/* Искра: баннер только линии + синий фон, лёгкая затемнённость слева под текст */
.product-hero--iskra .product-hero-shade {
  background: linear-gradient(
    100deg,
    rgba(8, 14, 28, 0.55) 0%,
    rgba(12, 20, 36, 0.28) 42%,
    rgba(15, 23, 40, 0.08) 70%,
    rgba(15, 23, 40, 0.02) 100%
  );
}
.product-hero--iskra .product-hero-media {
  background-position: right center;
  background-size: cover;
}

.product-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 12px;
  padding-bottom: 8px;
}
.promo-banner--product,
.product-hero .promo-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 28px 40px;
  align-items: center;
  padding: 28px 0 8px;
  margin: 0;
  max-width: none;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
  overflow: visible !important;
  color: #fff;
}
.promo-banner--product h1,
.product-hero .promo-banner h1 {
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 8px 0 14px;
  color: #fff;
}
.promo-banner--product > div > p:not(.eyebrow),
.product-hero .promo-banner > div > p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 38ch;
  margin-bottom: 22px;
}
.promo-banner--product .btn-primary,
.product-hero .promo-banner .btn-primary {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 10px 28px rgba(30, 200, 255, 0.35);
  font-weight: 800;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.btn-label-short {
  display: none;
}
.btn-hero-primary,
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.btn-hero-primary {
  background: var(--cyan);
  color: #fff !important;
  border: 0;
  box-shadow: 0 10px 28px rgba(30, 200, 255, 0.35);
}
.btn-hero-primary:hover {
  filter: brightness(1.06);
  color: #fff !important;
}
.btn-hero-ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.72);
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.hero-win {
  background: #fff;
  color: var(--navy);
  border-radius: 22px;
  padding: 16px 16px 14px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
  max-width: 380px;
  width: 100%;
  justify-self: end;
}
.hero-win-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.hero-win-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}
.hero-win-dots i:nth-child(1) { background: #ff5f57; }
.hero-win-dots i:nth-child(2) { background: #febc2e; }
.hero-win-dots i:nth-child(3) { background: #28c840; }
.hero-win-q {
  margin: 0 0 10px;
  background: #e8f4fb;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  color: #1b2643;
  line-height: 1.3;
}
.hero-win-a {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  color: #1b2643;
}
.hero-win-cite {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 650;
  color: #5a6b86;
}
.promo-banner .hero-win p,
.product-hero .hero-win p,
.promo-banner .hero-win-q,
.promo-banner .hero-win-a,
.product-hero .hero-win-q,
.product-hero .hero-win-a {
  color: #1b2643;
  margin-bottom: 0;
}
.promo-banner .hero-win-q,
.product-hero .hero-win-q {
  margin-bottom: 10px;
}
.promo-banner .hero-win-cite,
.product-hero .hero-win-cite {
  color: #5a6b86;
  margin-bottom: 0;
}

.promo-banner-copy,
.hero-win {
  opacity: 1;
  transform: none;
  animation: none;
}

/* Old right-side image card hidden — image is the full hero background */
.promo-banner--product .promo-visual,
.product-hero .promo-visual,
.promo-visual--hero-bg {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 2) Soft page area under hero + big overlapping sheet */
.product-sheet {
  position: relative;
  z-index: 2;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -88px;
  padding: 0 0 56px;
  background: #e8eef5;
  border-radius: 48px 48px 0 0;
  box-shadow: 0 -12px 48px rgba(15, 23, 40, 0.14);
}
.product-sheet-inner {
  padding-top: 36px;
  padding-bottom: 8px;
  display: grid;
  gap: 20px;
}

/* Story stack: each block = white plaque */
.product-sheet .product-story,
body:has(.product-story) .product-story {
  display: grid;
  gap: 18px;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Intro + stats: отдельные карточки, скругление со всех сторон (ПК и телефон) */
.product-sheet .product-story .ps-intro,
body:has(.product-story) .product-story .ps-intro {
  background: #fff;
  border: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 40, 0.05);
  padding: 28px;
  border-radius: 28px;
  margin: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
}
.product-sheet .product-story .ps-intro.glass {
  background: #fff;
}
.product-sheet .product-story .ps-intro:not(:has(+ .ps-stats)) {
  border-radius: 28px;
  padding-bottom: 28px;
}
.product-sheet .product-story .ps-intro + .ps-stats {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(15, 23, 40, 0.05);
  padding: 20px 28px;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.product-sheet .product-story .ps-intro + .ps-stats.ps-stats--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.product-sheet .product-story .ps-stats {
  border-radius: 28px;
}
.product-sheet .product-story .ps-stat {
  border-radius: 18px;
}
.product-sheet .product-story .ps-intro h2 {
  font-size: clamp(26px, 3.2vw, 34px);
}
.ps-intro--sps .ps-garant-feats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.ps-garant-feat {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.ps-garant-feat-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--cyan);
  color: var(--navy);
}
.ps-garant-feat:nth-child(2) .ps-garant-feat-ico {
  background: var(--navy);
  color: #fff;
}
.ps-garant-feat:nth-child(3) .ps-garant-feat-ico {
  background: #e41518;
  color: #fff;
}
.ps-garant-feat:nth-child(4) .ps-garant-feat-ico {
  background: var(--cyan-2);
  color: var(--navy);
}
.ps-garant-feat:nth-child(5) .ps-garant-feat-ico {
  background: var(--navy);
  color: var(--cyan);
}
.ps-garant-feat h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.ps-garant-feat p {
  margin: 0 !important;
  font-size: 14px !important;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
}
@media (max-width: 980px) {
  .ps-intro--sps .ps-garant-feats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.product-sheet .product-story .ps-tag {
  background: rgba(30, 200, 255, 0.14);
  color: var(--navy);
}

.product-sheet .product-story .ps-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.product-sheet .product-story .ps-stat {
  background: #f3f7fb;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  backdrop-filter: none;
  padding: 16px 18px;
}
.product-sheet .product-story .ps-stat .n {
  font-size: 22px;
  color: var(--navy);
}
.product-sheet .product-story .ps-stat .l {
  color: var(--muted);
}

/* Each section = its own white plaque */
.product-sheet .product-story .ps-section {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  margin: 0;
  border-top: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 40, 0.05);
}
.product-sheet .product-story .ps-section:first-of-type {
  border-top: 0;
  padding-top: 28px;
}
.product-sheet .product-story .ps-section.ps-section--dirs {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #1e3554 100%);
  color: #fff;
  box-shadow: none;
}
.product-sheet .product-story .ps-section.ps-section--dirs.ps-section--kits {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #1e3554 100%);
}
.product-sheet .product-story .ps-section.ps-section--dirs .ps-section-head h2 {
  color: #fff;
}
.product-sheet .product-story .ps-section.ps-section--dirs .ps-section-head p {
  color: rgba(255, 255, 255, 0.7);
}
.product-sheet .product-story .ps-section.ps-section--dirs .ps-tag {
  background: rgba(30, 200, 255, 0.22);
  color: #fff;
}
.product-sheet .product-story .ps-section-head {
  margin-bottom: 18px;
}
.product-sheet .product-story .ps-section-head h2 {
  font-size: clamp(24px, 3vw, 30px);
}

.product-sheet .product-story .ps-plates {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.product-sheet .product-story .ps-plate {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 22px;
  border: 0;
  background: #f3f7fb;
  box-shadow: none;
  min-height: 168px;
}
.product-sheet .product-story .ps-plate:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 40, 0.08);
  background: #eef6fb;
}
.product-sheet .product-story .ps-plate-ico {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 200, 255, 0.16);
}
.product-sheet .product-story .ps-plate h3 {
  font-size: 20px;
  max-width: calc(100% - 56px);
  margin-bottom: 10px;
}
.product-sheet .product-story .ps-plate p {
  font-size: 15px;
  max-width: 36ch;
}
.product-sheet .product-story .ps-plates--brand .ps-plate {
  background: linear-gradient(155deg, #1b2643 0%, #243556 68%, #4a243c 88%, #c41a1c 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 340px;
  aspect-ratio: 5 / 4;
  padding: 22px 22px 20px;
}
.product-sheet .product-story .ps-plates--brand .ps-plate:hover {
  box-shadow: 0 16px 36px rgba(48, 72, 112, 0.28);
}
.product-sheet .product-story .ps-plates--brand .ps-plate:hover:not(.is-banner) {
  background: linear-gradient(155deg, #243556 0%, #2c3d5e 68%, #5a2a44 88%, #e41518 100%);
}
.product-sheet .product-story .ps-plates--brand .ps-plate.is-banner::before {
  content: none;
}
.product-sheet .product-story .ps-plates--brand .ps-plate h3 {
  color: #fff;
  max-width: none;
  text-shadow: 0 1px 10px rgba(15, 23, 40, 0.45);
}
.product-sheet .product-story .ps-plates--brand .ps-plate p {
  color: rgba(255, 255, 255, 0.92);
  max-width: none;
  text-shadow: 0 1px 8px rgba(15, 23, 40, 0.4);
}
.product-sheet .product-story .ps-plates--brand .ps-plate-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.product-sheet .product-story .ps-plates--brand .ps-plate-shade {
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(15, 23, 40, 0.16) 42%,
    rgba(15, 23, 40, 0.4) 100%
  );
}
.product-sheet .product-story .ps-plates--brand .ps-plate:not(.is-banner) .ps-plate-banner {
  display: none;
}
.product-sheet .product-story .ps-plates--brand .ps-plate-copy {
  position: relative;
  z-index: 2;
}
.product-sheet .product-story .ps-pillars .ps-plate h3,
.product-sheet .product-story .ps-pillars .ps-plate p {
  max-width: none;
}

.product-sheet .product-story .ps-steps,
.product-sheet .product-story .ps-audience {
  gap: 14px;
}
.product-sheet .product-story .ps-audience {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.product-sheet .product-story .ps-aud {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  gap: 0;
  padding: 0;
  min-height: 0;
  aspect-ratio: 7 / 5;
  background: var(--navy);
  color: #fff;
  border: 0;
  outline: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.product-sheet .product-story .ps-aud-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: #dce8f2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.product-sheet .product-story .ps-aud-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 28px 16px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 40, 0.16) 50%, rgba(15, 23, 40, 0.4) 100%);
}
.product-sheet .product-story .ps-aud h3 {
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.22;
}
.product-sheet .product-story .ps-aud p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}
.product-sheet .product-story .ps-step-num {
  background: var(--cyan);
  color: var(--navy);
}

.product-sheet .product-story .ps-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.product-sheet .product-story .ps-chart {
  background: #f3f7fb;
  border: 0;
  border-radius: 22px;
  box-shadow: none;
}
.product-sheet .product-story .ps-chart:last-child {
  background: linear-gradient(160deg, #1b2643, #243556);
  color: #fff;
}
.product-sheet .product-story .ps-chart:last-child h3,
.product-sheet .product-story .ps-chart:last-child > p,
.product-sheet .product-story .ps-chart:last-child .ps-bar-row,
.product-sheet .product-story .ps-chart:last-child .ps-mini .n,
.product-sheet .product-story .ps-chart:last-child .ps-mini .l,
.product-sheet .product-story .ps-chart:last-child .ps-ring-center .n,
.product-sheet .product-story .ps-chart:last-child .ps-ring-center .l {
  color: #fff;
}
.product-sheet .product-story .ps-chart:last-child > p,
.product-sheet .product-story .ps-chart:last-child .ps-bar-row,
.product-sheet .product-story .ps-chart:last-child .ps-mini .l,
.product-sheet .product-story .ps-chart:last-child .ps-ring-center .l {
  color: rgba(255, 255, 255, 0.72);
}
.product-sheet .product-story .ps-chart:last-child .ps-bar-track {
  background: rgba(255, 255, 255, 0.14);
}

.product-sheet .product-story .ps-cap {
  grid-template-columns: 40px 1fr auto;
  cursor: pointer;
  border: 0;
  background: #f3f7fb;
  box-shadow: none;
  border-radius: 18px;
  transition: background .18s ease;
}
.product-sheet .product-story .ps-cap::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  align-self: start;
  margin-top: 4px;
  transition: transform .2s ease;
}
.product-sheet .product-story .ps-cap.is-open {
  background: #eef7fc;
}
.product-sheet .product-story .ps-cap.is-open::after {
  transform: rotate(180deg);
}
.product-sheet .product-story .ps-cap:not(.is-open) p {
  display: none;
}
.product-sheet .product-story .ps-cap.is-open p {
  display: block;
  grid-column: 2 / -1;
}
.product-sheet .product-story .ps-visual {
  background: linear-gradient(160deg, #e8f6fc, #d5eef9);
  border: 0;
}

.product-sheet .ps-section--faq,
.product-story .ps-section--faq {
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 40, 0.05);
  border-radius: 28px;
  padding: 28px;
}
.product-story .ps-faq,
.ps-section--faq .ps-faq {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(48, 72, 112, 0.08);
}
.product-story .ps-faq-item,
.ps-section--faq .ps-faq-item {
  border-bottom: 1px solid rgba(48, 72, 112, 0.08);
}
.product-story .ps-faq-q,
.ps-section--faq .ps-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
}
.product-story .ps-faq-q::after,
.ps-section--faq .ps-faq-q::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.product-story .ps-faq-item.is-open .ps-faq-q::after,
.ps-section--faq .ps-faq-item.is-open .ps-faq-q::after {
  transform: rotate(180deg);
}
.product-story .ps-faq-a,
.ps-section--faq .ps-faq-a {
  display: none;
  padding: 0 4px 18px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
  max-width: 70ch;
}
.product-story .ps-faq-item.is-open .ps-faq-a,
.ps-section--faq .ps-faq-item.is-open .ps-faq-a {
  display: block;
}

.product-sheet .related-section .related-head {
  margin-bottom: 18px;
}

/* Единый блок «Консультация» — тот же, что на всём сайте (читаемый текст) */
.product-sheet .cta-wide,
.product-sheet .inner-section .cta-wide,
[data-cta="consult"].cta-wide {
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 18px 48px rgba(15, 23, 40, 0.1);
  margin: 0;
}
.product-sheet .cta-wide .cta-wide-copy .eyebrow,
[data-cta="consult"] .cta-wide-copy .eyebrow {
  color: rgba(48, 72, 112, 0.45);
}
.product-sheet .cta-wide .cta-wide-copy h2,
[data-cta="consult"] .cta-wide-copy h2 {
  color: var(--navy);
}
.product-sheet .cta-wide .cta-wide-copy p,
[data-cta="consult"] .cta-wide-copy p {
  color: var(--muted);
}
.product-sheet .cta-wide .btn-dark,
.product-sheet .cta-wide .btn-primary,
[data-cta="consult"] .btn-dark,
[data-cta="consult"] .btn-primary {
  background: var(--cyan);
  color: var(--navy);
  border: 0;
  font-weight: 800;
}

.product-sheet .inner-section:has(.cta-wide) {
  background: transparent;
  padding: 0;
  box-shadow: none;
}

/* Hide leftover "Подробности" heads if any remain */
.product-sheet > .section-head:not(.related-head),
.product-sheet-inner > .section-head:not(.related-head) {
  display: none;
}

@media (max-width: 980px) {
  .page-product.page-inner,
  body:has(.page-product) .page-inner,
  body:has(.product-story) .page-inner {
    padding-top: 0;
    overflow-x: clip;
  }
  .product-sheet-inner {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }
  .page-product .product-hero,
  body:has(.page-product) .product-hero {
    padding-top: 88px;
  }
  /* На телефоне: баннер со скруглением; текст прижат к низу, с отступом от белой плашки */
  .product-hero {
    width: calc(100% - 16px);
    max-width: none;
    margin: 8px auto 0;
    padding: 88px 0 66px;
    min-height: min(72vh, 560px);
    border-radius: 28px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
  }
  .product-hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  .product-hero-media,
  .product-hero-shade {
    border-radius: 28px;
    transform: none;
  }
  .product-hero .breadcrumbs {
    margin-bottom: 10px;
  }
  .promo-banner--product,
  .product-hero .promo-banner {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 16px;
    max-width: none;
    margin: 0;
    align-items: end;
  }
  .hero-win {
    justify-self: stretch;
    max-width: none;
  }
  .product-hero .hero-cta {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
  }
  .product-hero .hero-cta .btn-hero-primary,
  .product-hero .hero-cta .btn-hero-ghost {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
  }
  .promo-banner--product h1,
  .product-hero .promo-banner h1 {
    font-size: clamp(28px, 8vw, 36px);
    margin: 6px 0 12px;
  }
  .promo-banner--product > div > p:not(.eyebrow),
  .product-hero .promo-banner > div > p:not(.eyebrow) {
    font-size: 15px;
    max-width: none;
    margin-bottom: 18px;
  }
  .promo-banner--product .btn-primary,
  .product-hero .promo-banner .btn-primary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .promo-banner--product .promo-visual,
  .product-hero .promo-visual,
  .promo-visual--hero-bg {
    display: none !important;
  }
  .product-sheet {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: -48px;
    border-radius: 28px 28px 0 0;
    padding-bottom: 28px;
    overflow: visible;
    box-sizing: border-box;
  }
  .product-sheet-inner,
  .product-sheet-inner.container {
    padding-top: 18px;
    gap: 12px;
    width: auto !important;
    max-width: none !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    min-width: 0;
    box-sizing: border-box;
  }
  .product-sheet .product-story {
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }
  .product-sheet .product-story .ps-intro {
    border-radius: 22px !important;
    padding: 18px 16px 18px;
    overflow: hidden;
  }
  .product-sheet .product-story .ps-intro h2 {
    font-size: clamp(22px, 6vw, 26px);
  }
  .product-sheet .product-story .ps-intro p {
    font-size: 14px;
    line-height: 1.5;
  }
  .product-sheet .product-story .ps-intro + .ps-stats {
    border-radius: 22px !important;
    padding: 16px;
    margin: 0 !important;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .product-sheet .product-story .ps-stat {
    padding: 16px 16px 18px;
  }
  .product-sheet .product-story .ps-stat .n {
    font-size: 18px;
  }
  .product-sheet .product-story .ps-stat .l {
    margin-top: 6px;
    padding-bottom: 2px;
  }
  .product-sheet .product-story .ps-section,
  .product-sheet .ps-section--faq,
  .product-story .ps-section--faq {
    border-radius: 22px;
    padding: 18px 16px;
    overflow: visible;
    max-width: 100%;
  }
  .product-sheet .product-story .ps-section-head {
    margin-bottom: 14px;
  }
  .product-sheet .product-story .ps-section-head h2 {
    font-size: clamp(20px, 5.5vw, 24px);
  }
  .product-sheet .product-story .ps-section-head p {
    font-size: 14px;
  }
  .product-sheet .product-story .ps-plates,
  .product-sheet .product-story .ps-charts,
  .product-sheet .product-story .ps-stats,
  .product-sheet .product-story .ps-steps,
  .product-sheet .product-story .ps-split,
  .product-sheet .product-story .ps-version-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .product-sheet .product-story .ps-plate {
    min-height: 0;
    padding: 18px 16px;
  }
  .product-sheet .product-story .ps-plate h3 {
    font-size: 17px;
    max-width: calc(100% - 48px);
  }
  .product-sheet .product-story .ps-plate p {
    font-size: 14px;
    max-width: none;
  }
  .product-sheet .product-story .ps-plate-ico {
    width: 38px;
    height: 38px;
    top: 14px;
    right: 14px;
  }
  .product-sheet .product-story .ps-chart {
    padding: 16px;
  }
  .related-section,
  .product-sheet .related-section {
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    min-width: 0;
    max-width: 100%;
  }
  .product-sheet .cta-wide,
  .product-sheet .inner-section .cta-wide {
    border-radius: 22px;
    grid-template-columns: 1fr;
  }
  .product-sheet .ps-card,
  .product-sheet .ps-card.glass {
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
  }
  /* Таблицы на телефоне — карточки, без горизонтального съезда */
  .product-sheet .table1__forscroll {
    overflow: visible;
    margin-top: 4px;
    border-radius: 0;
  }
  .product-sheet .price-table,
  .product-sheet .table1,
  .product-sheet .legacy-content table {
    min-width: 0 !important;
    width: 100% !important;
    display: block;
    border: 0;
    background: transparent;
    border-radius: 0;
  }
  .product-sheet .price-table thead,
  .product-sheet .table1 thead,
  .product-sheet .legacy-content table thead {
    display: none;
  }
  .product-sheet .price-table tbody,
  .product-sheet .table1 tbody,
  .product-sheet .legacy-content table tbody {
    display: grid;
    gap: 10px;
  }
  .product-sheet .price-table tr,
  .product-sheet .table1 tr,
  .product-sheet .legacy-content table tr {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f3f7fb;
    border: 1px solid rgba(48, 72, 112, 0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: visible;
  }
  .product-sheet .price-table td,
  .product-sheet .table1 td,
  .product-sheet .legacy-content table td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .product-sheet .price-table td:first-child,
  .product-sheet .table1 td:first-child {
    font-weight: 800;
    font-size: 15px;
    color: var(--navy);
  }
  .product-sheet .price-table td.td--price,
  .product-sheet .table1 td.td--price {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
  }
  .product-sheet .price-table td:last-child,
  .product-sheet .table1 td:last-child {
    font-size: 18px;
    font-weight: 800;
    color: var(--cyan);
  }
  .product-sheet .list {
    padding-left: 18px;
  }
  .product-sheet .list li {
    margin-bottom: 8px;
  }
  .product-sheet .ps-actions {
    display: grid;
  }
  .product-sheet .ps-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .product-sheet .content-block--video,
  .product-sheet .video-player,
  .product-sheet .video-consent {
    display: none !important;
  }
}

/* Life videos */
.life-video,
video.life-video {
  width: 100%;
  max-height: 480px;
  border-radius: 18px;
  background: #0f1728;
  display: block;
  object-fit: contain;
}
.news-card.has-video {
  position: relative;
}
.news-card.has-video::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(34,53,85,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/14px 14px no-repeat;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.vacancy-search-filters,
.vacancy-search .news-filters {
  margin: 18px 0 0;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.hero-direct-bg.is-photo .hero-bg-video { display: none !important; }
.hero-direct-bg.is-photo .hero-bg-image { display: block !important; }

/* === FINAL MOBILE HEADER (must win) === */
@media (max-width: 980px) {
  html body .site-header,
  html body .site-header.is-scrolled,
  html body .site-header.is-solid,
  html body header.site-header,
  html.is-pwa body .site-header,
  html.is-pwa body .site-header.is-solid {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    transform: none !important;
  }
}

/* === MOBILE LAYOUT POLISH 2026-08 === */
@media (max-width: 980px) {
  .product-sheet .product-story .ps-stat,
  .news-story .ps-stat,
  .vacancy-story .ps-stat {
    padding: 16px 16px 18px !important;
    box-sizing: border-box;
  }
  .product-sheet .product-story .ps-intro {
    padding: 18px 16px 20px !important;
  }
  .product-sheet .product-story .ps-intro p {
    margin-bottom: 0 !important;
  }
  .product-sheet .product-story .ps-section,
  .product-sheet .ps-section--faq {
    padding: 18px 16px 20px !important;
  }
  .product-sheet .product-story .ps-plate {
    padding: 18px 16px 20px !important;
  }
  .product-sheet .product-story .ps-chart {
    padding: 16px 16px 18px !important;
  }
  .product-hero .product-hero-inner {
    width: 100% !important;
    max-width: 100% !important;
  }
  .related-section .cards-bento,
  .cards-bento--related {
    gap: 10px;
    margin: 0 -2px;
    padding: 0 2px 8px;
  }
  .related-section .bento-card,
  .cards-bento--related .bento-card {
    width: min(168px, 52vw);
    min-width: 148px;
  }
  .related-section .bento-card h3,
  .cards-bento--related .bento-card h3 {
    font-size: 14px !important;
  }
  .page-inner .container,
  .inner-section > .container {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }
  .promo-banner {
    border-radius: 22px;
    overflow: hidden;
  }
  .cta-wide {
    grid-template-columns: 1fr !important;
    border-radius: 22px;
    overflow: hidden;
  }
  .cta-wide-copy {
    padding: 20px 18px 22px !important;
  }
  .cta-wide-media {
    min-height: 160px;
  }
  .contacts-panel {
    min-height: 280px;
    padding: 18px !important;
  }
  .contacts-panel-card {
    width: 100%;
    max-width: 100%;
    padding: 20px 18px 22px !important;
  }
  .news-card,
  .vacancy-card {
    border-radius: 20px;
  }
  .news-filters,
  .topic-filters {
    flex-wrap: wrap;
    gap: 8px;
  }
  .product-sheet .table1__forscroll,
  .product-sheet .legacy-content {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .product-story .ps-bar-row {
    grid-template-columns: 64px 1fr 44px !important;
    gap: 8px !important;
    font-size: 12px !important;
  }
}

/* === SOLID PAGES MOBILE HEADER: без подложек + стеклянное меню === */
@media (max-width: 980px) {
  /* about / news / life / vakansii: лого, поиск, бургер — без белых таблеток */
  .site-header.is-solid:not(.nav-open) .brand.header-pill,
  .site-header.is-solid:not(.nav-open) .nav-toggle,
  .site-header.is-solid:not(.nav-open) .header-search-btn,
  .site-header.is-solid:not(.nav-open) .header-search-btn.header-pill,
  .site-header.is-solid:not(.nav-open) .header-main,
  .site-header.is-solid:not(.nav-open) .header-pill:not(.header-main) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .site-header.is-solid:not(.nav-open) .brand.header-pill::before,
  .site-header.is-solid:not(.nav-open) .nav-toggle::before,
  .site-header.is-solid:not(.nav-open) .header-search-btn::before,
  .site-header.is-solid:not(.nav-open) .header-main::before {
    content: none !important;
    display: none !important;
  }
  .site-header.is-solid:not(.nav-open) .nav-toggle,
  .site-header.is-solid:not(.nav-open) .header-search-btn {
    color: var(--navy) !important;
  }
  .site-header.is-solid:not(.nav-open) .brand-logo--on-light {
    display: block !important;
  }
  .site-header.is-solid:not(.nav-open) .brand-logo--on-dark {
    display: none !important;
  }

  /* Открытое меню — стекло, как на остальных страницах */
  .site-header.is-solid.nav-open {
    position: absolute !important;
    z-index: 300 !important;
  }
  .site-header.is-solid.nav-open .header-main {
    background-color: rgba(255, 255, 255, 0.48) !important;
    background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.62),
      rgba(255, 255, 255, 0.36)
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      inset 0 -1px 0 rgba(255, 255, 255, 0.35),
      inset 1px 0 0 rgba(255, 255, 255, 0.4),
      inset -1px 0 0 rgba(255, 255, 255, 0.4),
      0 1px 2px rgba(15, 23, 40, 0.06),
      0 18px 44px -12px rgba(15, 23, 40, 0.28) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.08) !important;
    backdrop-filter: blur(40px) saturate(200%) brightness(1.08) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .site-header.is-solid.nav-open .header-main::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    border-radius: inherit !important;
    pointer-events: none !important;
    background-image:
      linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 40%),
      linear-gradient(315deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 32%) !important;
    background-color: transparent !important;
    -webkit-mask-image: radial-gradient(
      120% 120% at 50% 50%,
      transparent 42%,
      rgba(0, 0, 0, 0.5) 76%,
      #000 100%
    ) !important;
    mask-image: radial-gradient(
      120% 120% at 50% 50%,
      transparent 42%,
      rgba(0, 0, 0, 0.5) 76%,
      #000 100%
    ) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
  .site-header.is-solid.nav-open .nav {
    display: flex !important;
  }
  .site-header.is-solid.nav-open .nav a {
    color: var(--navy) !important;
  }
  .site-header.is-solid.nav-open .nav a:hover,
  .site-header.is-solid.nav-open .nav a.is-hover {
    color: var(--navy) !important;
    background: rgba(48, 72, 112, 0.06) !important;
  }
  .site-header.is-solid.nav-open .header-actions {
    display: grid !important;
  }
  .site-header.is-solid.nav-open .header-actions .btn-primary,
  .site-header.is-solid.nav-open .header-actions .btn-ghost {
    display: flex !important;
  }
  .site-header.is-solid.nav-open .nav-toggle {
    color: var(--navy) !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
}

/* === MOBILE SITEWIDE FIX 2026-08-12 === */
@media (max-width: 980px) {
  html, body {
    overflow-x: clip;
    max-width: 100%;
  }

  /* Никакого 100vw на телефоне — из‑за него всё съезжает */
  .product-hero,
  .product-sheet,
  body:has(.page-product) .product-hero,
  .page-product .product-hero {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .product-hero {
    width: calc(100% - 16px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-inner,
  .page-product.page-inner,
  body:has(.product-story) .page-inner,
  body:has(.page-product) .page-inner {
    overflow-x: clip;
    max-width: 100%;
  }

  .product-sheet,
  .product-sheet-inner,
  .product-sheet .product-story,
  .product-sheet .inner-section,
  .product-sheet .ps-section,
  .product-sheet .ps-section--faq,
  .related-section,
  .product-sheet .related-section {
    overflow: visible !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .product-sheet-inner,
  .product-sheet-inner.container {
    width: auto !important;
    max-width: none !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .product-story .ps-section-head,
  .product-sheet .ps-section-head {
    max-width: 100% !important;
  }
  .product-sheet .ps-section-head,
  .product-sheet .ps-section-head p,
  .product-sheet .product-story p,
  .product-sheet .ps-card,
  .product-sheet .ps-card.glass,
  .legacy-content,
  .legacy-content p {
    max-width: 100% !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
    box-sizing: border-box;
  }

  .product-sheet .ps-card,
  .product-sheet .ps-card.glass,
  .product-sheet .product-story .ps-intro,
  .product-sheet .product-story .ps-plate {
    overflow: visible !important;
    width: 100%;
    max-width: 100% !important;
  }

  /* Тарифы: одна колонка, текст не режется */
  .product-sheet .price-table,
  .product-sheet .table1,
  .product-sheet .legacy-content table,
  .product-sheet .price-table tbody,
  .product-sheet .table1 tbody,
  .product-sheet .price-table tr,
  .product-sheet .table1 tr,
  .product-sheet .price-table td,
  .product-sheet .table1 td,
  .product-sheet .price-table .td--price,
  .product-sheet .table1 .td--price {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  .product-sheet .price-table tr,
  .product-sheet .table1 tr {
    display: flex !important;
    flex-direction: column !important;
  }

  /* «Смотрите также» — горизонтальный скролл везде */
  .related-section .cards-bento,
  .cards-bento--related,
  .product-sheet .related-section .cards-bento,
  .product-sheet .cards-bento--related {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px !important;
    padding-right: 28px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    scrollbar-width: none;
  }
  .related-section .cards-bento::-webkit-scrollbar,
  .cards-bento--related::-webkit-scrollbar {
    display: none !important;
  }
  .related-section .bento-card,
  .cards-bento--related .bento-card,
  .product-sheet .related-section .bento-card {
    flex: 0 0 auto !important;
    width: min(160px, 58vw) !important;
    min-width: 148px !important;
    max-width: 180px !important;
    scroll-snap-align: start;
  }
  .related-section .bento-swipe-hint {
    display: block !important;
  }

  /* Внутренние страницы (о нас, новости, жизнь, вакансии) */
  .page-inner:not(:has(.product-hero)) {
    padding-top: 76px;
  }
  .page-inner .container,
  .page-body > .container,
  .inner-section > .container {
    width: auto !important;
    max-width: none !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  .promo-banner,
  .promo-banner--news,
  .inner-ydx,
  .page-hero-inner,
  .cta-wide,
  .contacts-panel {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .promo-banner h1,
  .promo-banner h2,
  .promo-banner p,
  .page-hero-inner h1,
  .page-lead {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .news-card,
  .vacancy-card,
  .news-search,
  .vacancy-search,
  .search-box {
    max-width: 100%;
    box-sizing: border-box;
  }
  .news-filters,
  .topic-filters {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

/* === FINAL: solid pages no white pills + glass menu (2026-08-12) === */
@media (max-width: 980px) {
  .site-header.is-solid:not(.nav-open) .brand.header-pill,
  .site-header.is-solid:not(.nav-open) .nav-toggle,
  .site-header.is-solid:not(.nav-open) .header-search-btn,
  .site-header.is-solid:not(.nav-open) .header-search-btn.header-pill {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .site-header.is-solid:not(.nav-open) .brand.header-pill::before,
  .site-header.is-solid:not(.nav-open) .nav-toggle::before,
  .site-header.is-solid:not(.nav-open) .header-search-btn::before {
    display: none !important;
    content: none !important;
  }
  .site-header.is-solid.nav-open .header-main {
    background-color: rgba(255, 255, 255, 0.48) !important;
    background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.62),
      rgba(255, 255, 255, 0.36)
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.08) !important;
    backdrop-filter: blur(40px) saturate(200%) brightness(1.08) !important;
  }
}

/* === UNIFIED HEADER FROM HOME 2026-08-12 === */
/* Все страницы кроме главной: шапка = как на главной (ПК + телефон) */

@media (max-width: 980px) {
  /* Закрытая шапка: без белых подложек везде (как на главной) */
  body:not(.page-home) .site-header:not(.nav-open) .brand.header-pill,
  body:not(.page-home) .site-header:not(.nav-open) .nav-toggle,
  body:not(.page-home) .site-header:not(.nav-open) .header-search-btn,
  body:not(.page-home) .site-header:not(.nav-open) .header-search-btn.header-pill,
  body:not(.page-home) .site-header:not(.nav-open) .header-main,
  body:not(.page-home) .site-header.is-solid:not(.nav-open) .brand.header-pill,
  body:not(.page-home) .site-header.is-solid:not(.nav-open) .nav-toggle,
  body:not(.page-home) .site-header.is-solid:not(.nav-open) .header-search-btn,
  body:not(.page-home) .site-header.is-scrolled:not(.nav-open) .brand.header-pill,
  body:not(.page-home) .site-header.is-scrolled:not(.nav-open) .nav-toggle,
  body:not(.page-home) .site-header.is-scrolled:not(.nav-open) .header-search-btn {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  body:not(.page-home) .site-header:not(.nav-open) .brand.header-pill::before,
  body:not(.page-home) .site-header:not(.nav-open) .nav-toggle::before,
  body:not(.page-home) .site-header:not(.nav-open) .header-search-btn::before,
  body:not(.page-home) .site-header:not(.nav-open) .header-main::before {
    content: none !important;
    display: none !important;
  }

  /* На страницах с тёмным баннером — белые иконки (как главная); на светлых — тёмные */
  body:not(.page-home) .site-header:not(.is-solid):not(.nav-open) .nav-toggle,
  body:not(.page-home) .site-header:not(.is-solid):not(.nav-open) .header-search-btn {
    color: #fff !important;
  }
  body:not(.page-home) .site-header.is-solid:not(.nav-open) .nav-toggle,
  body:not(.page-home) .site-header.is-solid:not(.nav-open) .header-search-btn {
    color: var(--navy) !important;
  }

  /* Открытое меню — то же стекло, что на главной */
  body:not(.page-home) .site-header.nav-open .header-main,
  body:not(.page-home) .site-header.is-solid.nav-open .header-main,
  body:not(.page-home) .site-header.is-scrolled.nav-open .header-main {
    background-color: rgba(255, 255, 255, 0.48) !important;
    background-image: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.62),
      rgba(255, 255, 255, 0.36)
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.95),
      inset 0 -1px 0 rgba(255, 255, 255, 0.35),
      inset 1px 0 0 rgba(255, 255, 255, 0.4),
      inset -1px 0 0 rgba(255, 255, 255, 0.4),
      0 1px 2px rgba(15, 23, 40, 0.06),
      0 18px 44px -12px rgba(15, 23, 40, 0.28) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.08) !important;
    backdrop-filter: blur(40px) saturate(200%) brightness(1.08) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  body:not(.page-home) .site-header.nav-open .header-main::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    border-radius: inherit !important;
    pointer-events: none !important;
    background-image:
      linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 40%),
      linear-gradient(315deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 32%) !important;
    background-color: transparent !important;
    -webkit-mask-image: radial-gradient(
      120% 120% at 50% 50%,
      transparent 42%,
      rgba(0, 0, 0, 0.5) 76%,
      #000 100%
    ) !important;
    mask-image: radial-gradient(
      120% 120% at 50% 50%,
      transparent 42%,
      rgba(0, 0, 0, 0.5) 76%,
      #000 100%
    ) !important;
  }
  body:not(.page-home) .site-header.nav-open .nav a {
    color: var(--navy) !important;
  }
  body:not(.page-home) .site-header.nav-open .nav a:hover,
  body:not(.page-home) .site-header.nav-open .nav a.is-hover {
    color: var(--navy) !important;
    background: rgba(48, 72, 112, 0.06) !important;
  }
  body:not(.page-home) .site-header.nav-open .nav-toggle {
    color: var(--navy) !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
}

/* === MAP MOBILE FIX 2026-08-12 === */
/* iPhone/Safari: iframe карты часто пустой — на мобилке показываем картинку карты */
.section-map,
.section-map.reveal,
.section-map.reveal-up,
.section-map.reveal.is-visible,
.section-map.reveal-up.is-visible {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  will-change: auto !important;
}
.home-map,
.home-map-frame {
  transform: none !important;
  filter: none !important;
  -webkit-transform: none !important;
}
.home-map-frame {
  position: relative;
  min-height: 280px;
  isolation: isolate;
  overflow: hidden;
  background: #e8f1f8;
}
.home-map-static {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  text-decoration: none;
  color: inherit;
}
.home-map-static img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-map-static-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #1b2643;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(48, 72, 112, 0.18);
  white-space: nowrap;
  pointer-events: none;
}
.home-map-frame iframe,
.home-map-iframe {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 280px !important;
  border: 0 !important;
  background: #e8f1f8;
  z-index: 1;
}
.home-map-frame:not(.is-live) iframe,
.home-map-frame:not(.is-live) .home-map-iframe {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.home-map-frame.is-live .home-map-static {
  display: none !important;
}
@media (max-width: 980px) {
  .home-map-frame {
    height: 320px !important;
    min-height: 280px !important;
  }
  .home-map-static {
    display: block !important;
  }
  .home-map-frame iframe,
  .home-map-iframe {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .section-map .container {
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* === HERO VIDEO MOBILE FIX 2026-08-13 === */
/* iPhone: transform/filter на <video> часто даёт чёрный/застывший кадр */
@media (max-width: 980px) {
  .hero-direct-bg {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .hero-bg-video,
  .hero-bg-video.is-looping {
    transform: none !important;
    -webkit-transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    border-radius: 0 !important;
    z-index: 0;
  }
  .hero-bg-image {
    z-index: 0;
  }
  .hero-bg-shade {
    z-index: 1;
  }
}

/* === TO-TOP ALL MOBILE PAGES 2026-08-12 === */
@media (max-width: 980px) {
  body > .to-top,
  .to-top {
    position: fixed !important;
    right: var(--float-btn-right, 14px) !important;
    left: auto !important;
    bottom: calc(
      var(--float-btn-bottom, 14px) + var(--float-btn-size, 54px) + var(--float-btn-gap, 12px) +
        env(safe-area-inset-bottom, 0px)
    ) !important;
    z-index: 5001 !important;
    display: grid !important;
    visibility: visible;
  }
  body > .to-top.is-on,
  .to-top.is-on {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }
}

/* === INNER PAGES: MOBILE WIDTH MATCHES HEADER 2026-08-13 === */
@media (max-width: 980px) {
  /* Главная остаётся без изменений. На остальных страницах внешний край
     текстовых разделов совпадает с краями мобильной шапки: 26px с каждой стороны. */
  body:not(.page-home) .page-inner > .container,
  body:not(.page-home) .page-top > .container,
  body:not(.page-home) .page-hero > .container,
  body:not(.page-home) .page-body.container,
  body:not(.page-home) .product-sheet-inner,
  body:not(.page-home) .product-sheet-inner.container,
  body:not(.page-home) .product-hero {
    width: calc(100% - 52px) !important;
    max-width: none !important;
    margin-left: 26px !important;
    margin-right: 26px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Внутри уже выровненных блоков повторный боковой отступ не нужен. */
  body:not(.page-home) .product-hero > .container,
  body:not(.page-home) .product-hero-inner.container,
  body:not(.page-home) .product-sheet-inner > .container,
  body:not(.page-home) .product-story .inner-section > .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body:not(.page-home) .inner-ydx,
  body:not(.page-home) .page-main,
  body:not(.page-home) .page-main--full,
  body:not(.page-home) .product-story {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* PRODUCT HERO: на телефоне фон шире, а текст остаётся на линии шапки.
   Баннер — 8px от экрана; контент — 26px (8px + 18px внутри). */
@media (max-width: 980px) {
  body:not(.page-home) .product-hero {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  body:not(.page-home) .product-hero > .container,
  body:not(.page-home) .product-hero-inner.container {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box !important;
  }
}

/* ABOUT / NEWS / LIFE / VACANCIES: единый мобильный фон, включая верх Safari. */
@media (max-width: 980px) {
  /* Фон за скруглением плашки = цвет края градиента (без белых уголков). */
  html.page-soft-shell {
    min-height: 100%;
    background: #edf8fc !important;
    color-scheme: light;
  }

  /* iPhone/Safari: системная строка над голубой плашкой всегда белая. */
  body.page-about::before,
  body.page-life::before,
  body.page-news::before {
    content: "";
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top, 0px);
    background: #ffffff;
    pointer-events: none;
  }

  html.page-soft-shell body.page-soft {
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 30px 30px 0 0;
    background-color: #edf8fc !important;
    background-image:
      radial-gradient(ellipse 120% 70% at 0% 0%, rgba(30, 200, 255, 0.18), transparent 55%),
      radial-gradient(ellipse 90% 60% at 100% 8%, rgba(48, 72, 112, 0.10), transparent 52%),
      radial-gradient(ellipse 80% 50% at 85% 100%, rgba(90, 216, 255, 0.14), transparent 50%),
      linear-gradient(165deg, #edf8fc 0%, #f3f8fc 38%, #e8f4fb 68%, #eef3f9 100%) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
  }

  /* Вакансии: все блоки реально ограничены шириной экрана. */
  body.page-vacancies .page-body,
  body.page-vacancies .inner-ydx,
  body.page-vacancies .news-story,
  body.page-vacancies .vacancy-search,
  body.page-vacancies .news-feed,
  body.page-vacancies .news-card,
  body.page-vacancies .vacancy-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.page-vacancies .news-feed {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.page-vacancies .vacancy-search {
    padding: 18px 16px;
    overflow: hidden;
  }

  body.page-vacancies .vacancy-search-row {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  body.page-vacancies .vacancy-search-row input[type="search"] {
    width: 100%;
    min-width: 0;
  }

  body.page-vacancies .vacancy-search-row #vacancySearchReset:not([hidden]) {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  body.page-vacancies #vacancySearchReset[hidden] {
    display: none !important;
  }

  body.page-vacancies .vacancy-search-filters {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-right: 0;
    padding: 2px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body.page-vacancies .news-card-copy {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  body.page-vacancies .news-card time,
  body.page-vacancies .news-card h3,
  body.page-vacancies .news-card p,
  body.page-vacancies .vacancy-card * {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.page-vacancies .news-card time {
    justify-self: start;
  }
}

/* === FINAL: one rhythm between major content blocks (desktop + mobile) ===
   Internal card/grid spacing stays compact; only neighbouring page sections
   use the shared --section-gap value. */
.inner-ydx > .inner-section,
.product-sheet-inner > .inner-section {
  margin-top: 0;
  margin-bottom: 0;
}

.content-blocks,
.news-story,
.vacancy-story,
.product-story,
.product-sheet .product-story,
body:has(.product-story) .product-story,
.product-sheet-inner,
.product-sheet-inner.container {
  gap: var(--section-gap);
}

.content-blocks > .section-head,
.news-story > .section-head,
.news-story > .news-filters,
.news-story > .vacancy-search,
.news-story > .vacancy-open,
.vacancy-story > .section-head,
.vacancy-story > .news-filters,
.vacancy-story > .vacancy-search,
.vacancy-story > .vacancy-open,
.product-story > .section-head,
.product-sheet-inner > .related-section {
  margin-top: 0;
  margin-bottom: 0;
}

/* Corporate life cards: the copy must stay readable over every photo/video. */
body.page-life [data-life-feed] .news-card-copy {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(48, 72, 112, 0.08);
  box-shadow: 0 -10px 28px rgba(15, 23, 40, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}

/* === ИСКРА: рекламная AI-презентация на первом экране === */
.hero-ai-showcase {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  height: auto;
  padding: 20px 22px 18px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(14, 29, 58, .86), rgba(37, 69, 112, .72)) !important;
  border: 1px solid rgba(161, 216, 255, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 30px 80px rgba(6, 14, 30, .34);
}
.hero-ai-showcase::before { opacity: .42; }
.hero-ai-showcase-glow {
  position: absolute;
  z-index: -1;
  inset: -45% -18% auto 34%;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 200, 255, .3), rgba(30, 200, 255, 0) 68%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-ai-window-controls {
  position: relative;
  z-index: 3;
  top: auto;
  left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  pointer-events: none;
  flex: 0 0 auto;
}
.hero-ai-window-controls i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(222, 233, 248, .68);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .28), 0 1px 3px rgba(5, 13, 29, .18);
}
.hero-ai-showcase-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  flex: 0 0 auto;
}
.hero-ai-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  margin-left: 0;
}
.hero-ai-brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  padding: 4px;
  object-fit: contain;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 22px rgba(4, 14, 32, .24);
  box-sizing: border-box;
}
.hero-ai-brand span { display: grid; gap: 1px; min-width: 0; }
.hero-ai-brand b { font-size: 18px; line-height: 1.1; letter-spacing: .08em; }
.hero-ai-brand small { color: rgba(255, 255, 255, .66); font-size: 11px; font-weight: 700; }
.hero-ai-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(116, 224, 176, .28);
  border-radius: 999px;
  background: rgba(7, 24, 44, .3);
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}
.hero-ai-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48dfa0;
  box-shadow: 0 0 0 4px rgba(72, 223, 160, .13), 0 0 14px rgba(72, 223, 160, .62);
}
.hero-ai-showcase-grid {
  position: relative;
  z-index: 1;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
}
.hero-ai-pitch {
  display: none !important;
}
.hero-ai-eyebrow {
  margin: 0 0 9px;
  color: #61cef4;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-ai-pitch h2 {
  margin: 0 0 12px;
  max-width: 14ch;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 800;
}
.hero-ai-pitch > p:not(.hero-ai-eyebrow) {
  margin: 0;
  max-width: 39ch;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}
.hero-ai-benefits { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.hero-ai-benefits span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .8);
  font-size: 10px;
  font-weight: 700;
}
.hero-ai-workbench {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(239, 247, 253, .91));
  box-shadow: 0 22px 50px rgba(7, 18, 38, .25);
  color: var(--navy);
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-ai-question { padding: 12px 14px; border-radius: 16px; background: #eef5fb; border: 1px solid rgba(48, 72, 112, .07); flex: 0 0 auto; }
.hero-ai-question span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-ai-question p { margin: 0; color: var(--navy); font-size: 14px; line-height: 1.38; font-weight: 800; }
.hero-ai-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
  padding: 0;
  list-style: none;
  flex: 0 0 auto;
}
.hero-ai-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #718097;
  font-size: 9px;
  line-height: 1.2;
  font-weight: 800;
  transition: color .35s ease, transform .35s ease;
}
.hero-ai-steps i {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 2px solid #c6d4e1;
  border-radius: 50%;
  box-sizing: border-box;
  transition: border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.hero-ai-steps li.is-active { color: #1678a5; transform: translateY(-1px); }
.hero-ai-steps li.is-active i { border-color: #1ec8ff; box-shadow: 0 0 0 4px rgba(30, 200, 255, .12); }
.hero-ai-steps li.is-active i::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #1ec8ff;
  animation: iskra-process-spin .8s linear infinite;
}
.hero-ai-steps li.is-done { color: #246e57; }
.hero-ai-steps li.is-done i { border-color: #42c991; background: #42c991; }
.hero-ai-steps li.is-done i::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5 9.5 17 19 7.5'/%3E%3C/svg%3E") center / 10px 10px no-repeat;
}
@keyframes iskra-process-spin { to { transform: rotate(360deg); } }
.hero-ai-result {
  padding: 12px 14px;
  border: 1px solid rgba(30, 200, 255, .18);
  border-radius: 16px;
  background: #fff;
  opacity: .08;
  transform: translateY(10px);
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1);
}
.hero-ai-showcase.is-complete .hero-ai-result { opacity: 1; transform: translateY(0); }
.hero-ai-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  color: #15825b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-ai-result-head b {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #42c991;
  color: #fff;
  font-size: 11px;
}
.hero-ai-result > p { margin: 0; color: #34425b; font-size: 11px; line-height: 1.42; font-weight: 650; }
.hero-ai-sources { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.hero-ai-sources span {
  padding: 5px 7px;
  border-radius: 999px;
  background: #eaf6fb;
  color: #24769b;
  font-size: 8px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .35s ease, transform .35s ease;
}
.hero-ai-sources span.is-visible { opacity: 1; transform: translateY(0); }
.hero-ai-showcase-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  flex: 0 0 auto;
}
.hero-ai-primary {
  min-width: 230px;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(100deg, #1ec8ff, #6adcff) !important;
  color: var(--navy) !important;
  box-shadow: 0 12px 28px rgba(30, 200, 255, .24) !important;
  transition: transform .25s ease, box-shadow .4s ease, filter .25s ease;
}
.hero-ai-showcase.is-complete .hero-ai-primary {
  box-shadow: 0 14px 38px rgba(30, 200, 255, .52) !important;
  animation: iskra-cta-pulse 1.8s ease-in-out 1;
}
.hero-ai-more { color: rgba(255, 255, 255, .76); font-size: 12px; font-weight: 800; text-decoration: none; }
.hero-ai-more:hover { color: #fff; }
@keyframes iskra-cta-pulse { 50% { transform: translateY(-2px); filter: brightness(1.08); } }

@media (max-width: 980px) {
  body.page-home .hero-panel.hero-ai-showcase {
    height: 348px !important;
    min-height: 348px !important;
    max-height: 348px !important;
    padding: 13px !important;
    border-radius: 22px !important;
  }
  .hero-ai-window-controls { gap: 5px; margin-bottom: 8px; }
  .hero-ai-window-controls i { width: 7px; height: 7px; }
  .hero-ai-showcase-head { margin-bottom: 8px; }
  .hero-ai-brand { margin-left: 0; gap: 8px; }
  .hero-ai-brand img { width: 34px; height: 34px; border-radius: 11px; }
  .hero-ai-brand b { font-size: 14px; }
  .hero-ai-brand small { font-size: 9px; }
  .hero-ai-online { padding: 6px 8px; font-size: 9px; }
  .hero-ai-workbench { min-height: 0; padding: 10px; border-radius: 17px; }
  .hero-ai-question { padding: 9px 11px; border-radius: 12px; }
  .hero-ai-question span { margin-bottom: 3px; font-size: 8px; }
  .hero-ai-question p { font-size: 12px; line-height: 1.34; }
  .hero-ai-steps { gap: 5px; margin: 8px 0; }
  .hero-ai-steps li { gap: 4px; font-size: 8px; }
  .hero-ai-steps i { width: 15px; height: 15px; }
  .hero-ai-steps li.is-active i::after { inset: 2px; }
  .hero-ai-result { padding: 9px 11px; border-radius: 12px; }
  .hero-ai-result-head { margin-bottom: 4px; font-size: 8px; }
  .hero-ai-result-head b { width: 16px; height: 16px; font-size: 9px; }
  .hero-ai-result > p { font-size: 10px; line-height: 1.36; }
  .hero-ai-sources { gap: 4px; margin-top: 6px; }
  .hero-ai-sources span { padding: 3px 6px; font-size: 7px; }
  .hero-ai-showcase-actions { margin-top: 10px; }
  .hero-ai-primary {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
  .hero-ai-more { display: none; }
}

@media (max-width: 380px), (max-height: 760px) and (max-width: 980px) {
  body.page-home .hero-panel.hero-ai-showcase {
    height: 318px !important;
    min-height: 318px !important;
    max-height: 318px !important;
  }
  .hero-ai-showcase-head { margin-bottom: 6px; }
  .hero-ai-workbench { padding: 8px; }
  .hero-ai-question { padding: 7px 9px; }
  .hero-ai-question p { font-size: 11px; }
  .hero-ai-result > p { font-size: 9px; }
  .hero-ai-showcase-actions { margin-top: 8px; }
  .hero-ai-primary { min-height: 36px; padding-block: 8px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ai-steps li, .hero-ai-steps i, .hero-ai-result, .hero-ai-sources span, .hero-ai-primary {
    transition: none !important;
    animation: none !important;
  }
}

/* === PERF: меньше blur на телефоне (скролл без лагов) === */
@media (max-width: 980px) {
  .cookie.glass,
  .news-card.glass,
  .glass-card,
  .bot-promo-card,
  .consult-card,
  .footer-glass,
  .modal-glass,
  .page-banner-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* === FOOTER: один вид как на главной (все страницы, ПК + телефон) === */
.site-footer {
  position: relative;
  z-index: 2;
}
@media (max-width: 980px) {
  body .site-footer {
    border-radius: 28px !important;
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin: var(--section-gap) 8px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    box-shadow: none !important;
  }
  body .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}
@media (min-width: 981px) {
  body .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: var(--edge-radius) var(--edge-radius) 0 0 !important;
  }
  body .site-footer .footer-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* === MOBILE NAV: все пункты видны (в т.ч. Вакансии) === */
@media (max-width: 980px) {
  .site-header.nav-open .nav {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 6px;
  }
  .site-header.nav-open .header-actions {
    flex: 0 0 auto !important;
  }
}


/* === HOME: заголовок сверху, крупная ИСКРА снизу === */
body.page-home .hero-iskra-float {
  justify-self: stretch;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  border-radius: 0;
}
@media (min-width: 981px) {
  body.page-home .hero-iskra-float {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }
}
body.page-home .hero-iskra-float iframe {
  display: none;
}

.lead-doc-back {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #1b2643;
  color: #fff !important;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 40, 0.22);
  white-space: nowrap;
}
.lead-doc-back:hover {
  color: #fff !important;
  filter: brightness(1.06);
}
html.has-lead-doc-back .to-top {
  display: none !important;
}

/* ===== Product page intro: photo → sheet → banner. Header + widget after it. ===== */
@keyframes productIntroCopyIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes productIntroWinIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

body.page-product:not(.product-intro-done):not(.product-intro-skip):not(.product-intro-ui-in) .site-header,
body.page-product:not(.product-intro-done):not(.product-intro-skip):not(.product-intro-ui-in) .site-header.is-scrolled,
body.page-product:not(.product-intro-done):not(.product-intro-skip):not(.product-intro-ui-in) .site-header.is-solid,
body.page-product:not(.product-intro-done):not(.product-intro-skip):not(.product-intro-ui-in) .site-header.is-at-top,
body.page-product:not(.product-intro-done):not(.product-intro-skip):not(.product-intro-ui-in) .site-header.is-header-hidden,
html body.product-intro-lock:not(.product-intro-ui-in) .site-header,
html body.product-intro-lock:not(.product-intro-ui-in) .site-header.is-scrolled,
html body.product-intro-lock:not(.product-intro-ui-in) .site-header.is-solid,
html body.product-intro-lock:not(.product-intro-ui-in) .site-header.is-at-top,
html body.product-intro-lock:not(.product-intro-ui-in) .site-header.is-header-hidden,
html body.product-intro-lock:not(.product-intro-ui-in) .site-header-puller {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-18px) !important;
}

html body.page-product.product-intro-lock .site-header,
html body.page-product.product-intro-ui-in .site-header,
html body.page-product.product-intro-done .site-header,
html body.page-product.product-intro-skip .site-header {
  transition:
    opacity .9s ease,
    transform 1s cubic-bezier(.22, 1, .36, 1),
    visibility .9s !important;
}

html body.product-intro-ui-in .site-header,
html body.product-intro-ui-in .site-header.is-scrolled,
html body.product-intro-ui-in .site-header.is-solid,
html body.product-intro-ui-in .site-header.is-at-top,
html body.product-intro-done .site-header,
html body.product-intro-skip .site-header {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

body.page-product:not(.product-intro-done):not(.product-intro-skip):not(.product-intro-ui-in) .hero-win,
html body.product-intro-lock:not(.product-intro-ui-in) .hero-win,
html body.product-intro-full:not(.product-intro-ui-in) .hero-win,
html body.product-intro-plate:not(.product-intro-ui-in) .hero-win,
html body.product-intro-settled:not(.product-intro-ui-in) .hero-win {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(16px);
  animation: none !important;
}

html body.page-product .hero-win {
  transition:
    opacity .9s cubic-bezier(.22, 1, .36, 1),
    transform .95s cubic-bezier(.22, 1, .36, 1),
    visibility .9s;
}

html body.product-intro-ui-in .hero-win {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  animation: productIntroWinIn .9s cubic-bezier(.22, 1, .36, 1) both;
}
html body.product-intro-done .hero-win {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  animation: none;
}

/* Белая плашка СПС не должна мелькать на фото, пока идёт заставка. */
body.page-product:not(.product-intro-done):not(.product-intro-skip):not(.product-intro-ui-in) .ps-intro--sps,
html body.product-intro-lock:not(.product-intro-ui-in) .ps-intro--sps,
html body.product-intro-full:not(.product-intro-ui-in) .ps-intro--sps,
html body.product-intro-plate:not(.product-intro-ui-in) .ps-intro--sps {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
}
html body.page-product .ps-intro--sps-hero {
  transition:
    opacity .9s cubic-bezier(.22, 1, .36, 1),
    transform .95s cubic-bezier(.22, 1, .36, 1),
    visibility .9s;
}
html body.product-intro-ui-in .ps-intro--sps,
html body.product-intro-done .ps-intro--sps,
html body.product-intro-skip .ps-intro--sps {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.product-intro-lock .cookie,
body.product-intro-lock .to-top,
body.product-intro-lock .ntpc-chat,
body.product-intro-lock .mail-pop,
body.page-product:not(.product-intro-done):not(.product-intro-skip) .cookie,
body.page-product:not(.product-intro-done):not(.product-intro-skip) .to-top,
body.page-product:not(.product-intro-done):not(.product-intro-skip) .ntpc-chat,
body.page-product:not(.product-intro-done):not(.product-intro-skip) .mail-pop {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (min-width: 981px) {
  html:has(body.product-intro-lock),
  body.product-intro-lock {
    overflow: hidden;
  }
  html:has(body.product-intro-done),
  html:has(body.product-intro-skip),
  html:has(body.page-product):not(:has(body.product-intro-lock)),
  body.product-intro-done,
  body.product-intro-skip,
  body.page-product:not(.product-intro-lock) {
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }
}

body.product-intro-lock .product-hero.reveal,
body.product-intro-full .product-hero,
body.product-intro-plate .product-hero,
body.product-intro-settled .product-hero,
body.product-intro-lock .product-sheet .reveal {
  opacity: 1 !important;
  filter: none !important;
}
body.product-intro-lock .product-hero.reveal,
body.product-intro-settled .product-hero,
body.product-intro-lock .product-sheet .reveal {
  transform: none !important;
}
body.product-intro-full .product-hero,
body.product-intro-plate .product-hero {
  min-height: 100dvh !important;
  height: 100dvh !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
  justify-content: flex-end;
}
body.product-intro-lock .product-hero-media,
body.product-intro-settled .product-hero-media,
body.product-intro-done .product-hero-media {
  transition: transform 1.35s cubic-bezier(.22, 1, .36, 1);
}
body.product-intro-full .product-hero-media,
body.product-intro-plate .product-hero-media,
body.product-intro-full .product-hero-shade,
body.product-intro-plate .product-hero-shade {
  border-radius: 0 !important;
}
body.product-intro-full .product-hero-media,
body.product-intro-plate .product-hero-media {
  transform: scale(1.08);
  transform-origin: center center;
}
body.product-intro-settled .product-hero-media,
body.product-intro-done .product-hero-media {
  transform: none;
}
body.product-intro-full .product-hero-shade {
  opacity: 0;
  transition: opacity .8s ease;
}
body.product-intro-plate .product-hero-shade,
body.product-intro-settled .product-hero-shade,
body.product-intro-done .product-hero-shade {
  opacity: 1;
  transition: opacity .8s ease;
}

body.product-intro-full .product-hero .breadcrumbs,
body.product-intro-full .product-hero .promo-banner-copy,
body.product-intro-full .product-hero .promo-banner > div:not(.hero-win):not(.promo-visual),
body.product-intro-full .product-hero .hero-cta,
body.product-intro-plate .product-hero .breadcrumbs,
body.product-intro-plate .product-hero .promo-banner-copy,
body.product-intro-plate .product-hero .promo-banner > div:not(.hero-win):not(.promo-visual),
body.product-intro-plate .product-hero .hero-cta {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: none;
  animation: none !important;
  pointer-events: none !important;
}
body.product-intro-settled .product-hero .breadcrumbs,
body.product-intro-settled .product-hero .promo-banner-copy,
body.product-intro-settled .product-hero .promo-banner > div:not(.hero-win):not(.promo-visual),
body.product-intro-settled .product-hero .hero-cta {
  visibility: visible !important;
  pointer-events: auto !important;
  animation: productIntroCopyIn .65s cubic-bezier(.16, 1, .3, 1) both;
}
body.product-intro-done .product-hero .breadcrumbs,
body.product-intro-done .product-hero .promo-banner-copy,
body.product-intro-done .product-hero .promo-banner > div:not(.hero-win):not(.promo-visual),
body.product-intro-done .product-hero .hero-cta,
body.product-intro-skip .product-hero .breadcrumbs,
body.product-intro-skip .product-hero .promo-banner-copy,
body.product-intro-skip .product-hero .promo-banner > div:not(.hero-win):not(.promo-visual),
body.product-intro-skip .product-hero .hero-cta {
  animation: none;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}

body.product-intro-full .product-sheet {
  transform: translate3d(0, 110%, 0);
  transition: none;
}
body.product-intro-plate .product-sheet {
  transform: translate3d(0, 0, 0);
  margin-top: calc(-1 * min(42vh, 390px)) !important;
  transition:
    transform 1.05s cubic-bezier(.16, 1, .3, 1),
    margin-top 1.2s cubic-bezier(.22, 1, .36, 1);
}
body.product-intro-settled .product-sheet,
body.product-intro-done .product-sheet {
  transform: none;
  margin-top: -88px !important;
  transition: margin-top 1.15s cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 981px) {
  body.product-intro-full .product-hero,
  body.product-intro-plate .product-hero {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: calc(50dvh - 8.5rem) !important;
    padding-bottom: 0 !important;
  }
  body.product-intro-full .product-hero-inner,
  body.product-intro-plate .product-hero-inner {
    width: var(--page-width);
    max-width: var(--page-width);
    margin-left: auto;
    margin-right: auto;
    padding-top: 0;
    padding-bottom: 0;
  }
  body.product-intro-settled .product-hero {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 108px !important;
    padding-bottom: 120px !important;
    transition:
      height 1.15s cubic-bezier(.22, 1, .36, 1),
      min-height 1.15s cubic-bezier(.22, 1, .36, 1),
      padding-top 1.15s cubic-bezier(.22, 1, .36, 1),
      padding-bottom 1.15s cubic-bezier(.22, 1, .36, 1);
  }
}

@media (max-width: 980px) {
  body.product-intro-full .product-hero,
  body.product-intro-plate .product-hero {
    min-height: 100dvh !important;
    height: 100dvh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    justify-content: flex-end;
  }
  body.product-intro-full .product-hero-inner,
  body.product-intro-plate .product-hero-inner {
    justify-content: flex-end;
    padding-top: 12px;
  }
  body.product-intro-plate .product-sheet {
    margin-top: calc(-1 * min(44vh, 320px)) !important;
  }
  body.product-intro-settled .product-sheet,
  body.product-intro-done .product-sheet {
    margin-top: -48px !important;
  }

  /* Сильнее правил с боковым отступом: на интро баннер на весь экран, фон страницы белый */
  html:has(body.product-intro-lock),
  html:has(body.product-intro-full),
  html:has(body.product-intro-plate) {
    background-color: #ffffff !important;
  }
  html body.page-product.product-intro-full .product-hero,
  html body.page-product.product-intro-plate .product-hero,
  html body:not(.page-home).product-intro-full .product-hero,
  html body:not(.page-home).product-intro-plate .product-hero {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    min-height: 100svh !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.product-intro-full .product-hero,
  body.product-intro-plate .product-hero,
  body.product-intro-settled .product-hero,
  body.product-intro-full .product-sheet,
  body.product-intro-plate .product-sheet,
  body.product-intro-settled .product-sheet,
  body.product-intro-full .product-hero-media,
  body.product-intro-plate .product-hero-media,
  body.product-intro-full .product-hero-shade,
  html body.page-product .site-header,
  html body.page-product .hero-win {
    transition: none !important;
    animation: none !important;
  }
}

@media (scripting: none) {
  body.page-product .site-header,
  body.page-product .hero-win {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    height: auto !important;
    max-height: none !important;
    padding: 16px 16px 14px !important;
    margin: 0 !important;
  }
}


/* ===== PC homepage: no appear-animations while scrolling ===== */
@media (min-width: 981px) {
  body.page-home .reveal,
  body.page-home .reveal-left,
  body.page-home .reveal-right,
  body.page-home .reveal-up,
  body.page-home .reveal-scale,
  body.page-home .reveal-stack,
  body.page-home .home-features .feature-card,
  body.page-home .home-faq .faq-item,
  body.page-home .home-bot-promo .bot-promo {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
  body.page-home .home-bot-promo.is-visible .bot-promo-page,
  body.page-home .home-bot-promo.is-visible .bot-promo-page-body,
  body.page-home .home-bot-promo.is-visible .bot-promo-fake-fab,
  body.page-home .home-bot-promo.is-visible .bot-promo-click,
  body.page-home .home-bot-promo.is-visible .bot-promo-fake-chat {
    animation: none !important;
    will-change: auto !important;
  }
  body.page-home .home-map-frame iframe {
    display: none;
  }
  body.page-home .home-map-frame.is-live iframe {
    display: block;
  }

  /* ПК: стекло только у шапки и окна ленты; карточки внутри без второго размытия */
  .site-header.is-scrolled:not(.nav-open) .header-pill,
  .site-header.is-solid:not(.nav-open) .header-pill,
  .site-header.is-scrolled:not(.nav-open) .header-main,
  .site-header.is-solid:not(.nav-open) .header-main,
  .site-header.is-scrolled:not(.nav-open) .nav-toggle,
  .site-header.is-solid:not(.nav-open) .nav-toggle,
  .site-header.is-scrolled:not(.nav-open) .header-search-btn,
  .site-header.is-solid:not(.nav-open) .header-search-btn,
  .site-header-collapse,
  .site-header-puller {
    -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
    backdrop-filter: blur(12px) saturate(140%) !important;
  }
  .news-widget,
  .news-widget.is-expanded {
    -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
    backdrop-filter: blur(16px) saturate(140%) !important;
  }
  .site-header.is-scrolled .btn-ghost,
  .site-header.is-solid .btn-ghost,
  .contacts-panel-card,
  .cookie,
  .to-top,
  .news-widget-expand,
  .news-preview,
  .news-widget-cta,
  .hero-panel {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

/* Cyan corner glow on all navy plaques */
.section-dark,
.product-sheet .product-story .ps-section.ps-section--dirs,
.product-sheet .product-story .ps-plates--brand .ps-plate,
.product-sheet .product-story .ps-aud,
.product-sheet .product-story .ps-chart:last-child,
.site-footer {
  position: relative;
  isolation: isolate;
}
.section-dark::after,
.product-sheet .product-story .ps-section.ps-section--dirs::after,
.product-sheet .product-story .ps-plates--brand .ps-plate::after,
.product-sheet .product-story .ps-aud::after,
.product-sheet .product-story .ps-chart:last-child::after,
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 22% 20% at 100% 100%,
    rgba(30, 200, 255, 0.38) 0%,
    rgba(30, 200, 255, 0.1) 38%,
    transparent 68%
  );
}
.section-dark > *,
.product-sheet .product-story .ps-section.ps-section--dirs > *,
.product-sheet .product-story .ps-plates--brand .ps-plate > *,
.product-sheet .product-story .ps-chart:last-child > *,
.site-footer > * {
  position: relative;
  z-index: 1;
}
.product-sheet .product-story .ps-plates--brand .ps-plate-banner {
  position: absolute;
  z-index: 0;
}
.product-sheet .product-story .ps-plates--brand .ps-plate-shade {
  position: absolute;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(15, 23, 40, 0.16) 42%,
    rgba(15, 23, 40, 0.4) 100%
  );
}
.product-sheet .product-story .ps-plates--brand .ps-plate-copy {
  z-index: 2;
}
.product-sheet .product-story .ps-section.ps-section--dirs .ps-feat-swipe-hint,
.product-sheet .product-story .ps-section.ps-section--dirs .ps-aud-swipe-hint {
  color: rgba(255, 255, 255, 0.78);
}
.product-sheet .product-story .ps-aud::after {
  z-index: 1;
}

@media (max-width: 980px) {
  .product-sheet .product-story .ps-section.ps-section--dirs,
  .product-sheet .product-story .ps-section.ps-section--dirs.ps-section--kits {
    isolation: auto;
    overflow: visible !important;
    contain: none;
  }
  .product-sheet .product-story .ps-section.ps-section--dirs::after {
    z-index: 0;
  }
}

/* ПК: плашка возможностей справа от текста ГАРАНТ, наверху баннера.
   Белый фон страницы снова со скруглением. Телефон — как было. */
.ps-intro--sps-hero { display: none; }
@media (min-width: 981px) {
  .ps-intro--sps-hero { display: block; }
  .ps-intro--sps-sheet { display: none; }
  body:has(.ps-intro--sps-hero) .promo-banner--product {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    align-items: start;
    gap: 24px 28px;
    padding-top: 8px;
    padding-bottom: 28px;
  }
  body:has(.ps-intro--sps-hero) .promo-visual { display: none; }
  .ps-intro.ps-intro--sps-hero {
    margin: 0;
    padding: 16px 16px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px) saturate(1.35);
    -webkit-backdrop-filter: blur(18px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
      0 16px 40px rgba(15, 23, 40, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  .ps-intro--sps-hero .ps-garant-feats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .ps-intro--sps-hero .ps-garant-feat {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }
  .ps-intro--sps-hero .ps-garant-feat-ico {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }
  .ps-intro--sps-hero .ps-garant-feat-ico svg {
    width: 16px;
    height: 16px;
  }
  .ps-intro--sps-hero .ps-garant-feat h3 {
    font-size: 14px;
    margin-bottom: 2px;
  }
  .ps-intro--sps-hero .ps-garant-feat p {
    font-size: 12px !important;
    line-height: 1.35;
  }
}
@media (max-width: 980px) {
  .ps-intro--sps-hero { display: none !important; }
  .ps-intro--sps-sheet { display: block; }
}

/* Телефон: «Кому это пригодится?» — горизонтальный скролл */
@media (max-width: 980px) {
  .ps-aud-swipe-hint {
    display: block;
    color: var(--muted);
  }
  .product-sheet .product-story .ps-audience {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-right: -8px;
    padding-right: 16px;
    scrollbar-width: none;
  }
  .product-sheet .product-story .ps-audience::-webkit-scrollbar {
    display: none;
  }
  .product-sheet .product-story .ps-audience .ps-aud {
    flex: 0 0 auto !important;
    width: min(248px, 78vw);
    min-width: 220px;
    scroll-snap-align: start;
  }
}

/* Телефон: «Что умеет ИСКРА?» — одна карточка в ряд, как новость: фото сверху, текст снизу, без стекла */
@media (max-width: 980px) {
  .ps-feat-swipe-hint {
    display: block;
    color: var(--muted);
  }
  .product-sheet .product-story .ps-plates--brand {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-right: 0;
    padding-right: 0;
    scrollbar-width: none;
  }
  .product-sheet .product-story .ps-plates--brand::-webkit-scrollbar {
    display: none;
  }
  .product-sheet .product-story .ps-plates--brand .ps-plate {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    overflow: visible !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .product-sheet .product-story .ps-plates--brand .ps-plate::after {
    display: none !important;
  }
  .product-sheet .product-story .ps-plates--brand .ps-plate.is-banner::before {
    display: none !important;
  }
  .product-sheet .product-story .ps-plates--brand .ps-plate-shade {
    display: none;
  }
  .product-sheet .product-story .ps-plates--brand .ps-plate-banner {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .product-sheet .product-story .ps-plates--brand .ps-plate:not(.is-banner) .ps-plate-banner {
    display: none;
  }
  .product-sheet .product-story .ps-plates--brand .ps-plate-copy {
    position: relative;
    z-index: 2;
    padding: 16px 2px 8px;
    background: none;
  }
  .product-sheet .product-story .ps-plates--brand .ps-plate h3 {
    font-size: 18px;
    max-width: none;
    margin: 0 0 8px;
    color: #fff;
  }
  .product-sheet .product-story .ps-plates--brand .ps-plate p {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
  }
}

/* Телефон: роли «Кому помогаем» — один ряд со свайпом */
@media (max-width: 980px) {
  [data-directions-block] .tabs-row,
  [data-directions-tabs] {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    margin-right: -16px;
    padding-right: 16px;
  }
  [data-directions-tabs]::-webkit-scrollbar {
    display: none;
  }
  [data-directions-tabs] .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 14px;
  }
}

@media (min-width: 981px) {
  .product-story .cards-bento--garant .bento-card {
    aspect-ratio: 4 / 5;
  }
  .product-story .cards-bento--kits .bento-card {
    aspect-ratio: 3 / 4;
  }
  .product-story .cards-bento--garant .bento-card.is-hover,
  .product-story .cards-bento--kits .bento-card.is-hover {
    aspect-ratio: auto;
    grid-column: auto;
  }
  .product-story .cards-bento--garant .bento-card-text,
  .product-story .cards-bento--kits .bento-card-text {
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 40, 0.16) 48%, rgba(15, 23, 40, 0.4) 100%);
    justify-content: flex-end;
    padding-top: 48px;
  }
  .product-story .cards-bento--garant .bento-card.is-hover .bento-card-text,
  .product-story .cards-bento--kits .bento-card.is-hover .bento-card-text {
    position: relative;
    padding-top: 18px;
    justify-content: flex-start;
  }
}

/* Телефон: баннер Искры — как у ГАРАНТ: текст слева, кнопки в один ряд */
@media (max-width: 980px) {
  .product-hero--iskra .product-hero-media {
    background-position: center center !important;
  }
  .product-hero--iskra .product-hero-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    align-items: flex-start;
    text-align: left;
  }
  .product-hero--iskra .breadcrumbs {
    justify-content: flex-start;
  }
  .product-hero--iskra .promo-banner,
  .product-hero--iskra .promo-banner--product {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
    text-align: left;
  }
  .product-hero--iskra .promo-banner-copy {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    text-align: left;
  }
  .product-hero--iskra .promo-banner-copy h1,
  .product-hero--iskra .promo-banner-copy p {
    max-width: none !important;
    margin-left: 0;
    margin-right: 0;
  }
  .product-hero--iskra .hero-cta {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: 8px;
  }
  .product-hero--iskra .hero-cta .btn-hero-primary,
  .product-hero--iskra .hero-cta .btn-hero-ghost {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding: 0 8px;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.25;
  }
  .product-hero--iskra .btn-label-full {
    display: none;
  }
  .product-hero--iskra .btn-label-short {
    display: inline;
  }
}

