/**
 * AI Volga — BEM layout & components
 * Namespace: aiv- (block prefix)
 */

:root {
  --aiv-color-primary: #003366;
  --aiv-color-accent: #00aa91;
  --aiv-color-secondary: #0050a0;
  --aiv-color-text: #111827;
  --aiv-color-muted: #6b7280;
  --aiv-color-border: #e5e7eb;
  --aiv-color-surface: #f9fafb;
  --aiv-font: "Inter", system-ui, -apple-system, sans-serif;
  --aiv-container: 80rem;
  --aiv-radius: 1rem;
  --aiv-radius-lg: 1.25rem;
  --aiv-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  /* Карточки в слайдерах: компактная тень, чтобы не упиралась в overflow у трека */
  --aiv-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05);
  --aiv-shadow-card-hover: 0 3px 10px -2px rgba(0, 0, 0, 0.07);
  --aiv-shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  /* Вертикальные отступы контентных секций главной (единый ритм) */
  --aiv-home-section-pad-y: 5rem;
  --aiv-home-section-pad-y-lg: 7.5rem;
}

/*
 * Резерв под классический скроллбар на десктопе (меньше сдвиг при открытии меню).
 * На узких экранах отключаем: иначе полоса справа — контент уже вьюпорта (особенно в эмуляторе).
 */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  scrollbar-gutter: auto;
}

@media (min-width: 48rem) {
  html {
    scrollbar-gutter: stable;
  }
}

/* ——— Base ——— */
.aiv-body {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: #fff;
  color: var(--aiv-color-text);
  font-family: var(--aiv-font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.aiv-body ::selection {
  background: #dbeafe;
  color: #0050a0;
}

/* i18n (aligned with main.css behaviour) */
.lang-en .i18n-ru,
.lang-ru .i18n-en {
  display: none !important;
}

/* ——— Skip link ——— */
.aiv-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aiv-skip-link:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  clip: auto;
  overflow: visible;
  white-space: normal;
  border-radius: 0.5rem;
  background: var(--aiv-color-primary);
  color: #fff;
  text-decoration: none;
}

/* ——— Page shell ——— */
.aiv-page {
  background: #fff;
  overflow-x: visible;
  overflow-y: visible;
  flex: 1;
}

.aiv-page--article {
  min-height: 50vh;
}

.aiv-container {
  max-width: var(--aiv-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 40rem) {
  .aiv-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 64rem) {
  .aiv-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ——— Section ——— */
.aiv-section {
  position: relative;
}

.aiv-section--about {
  padding-top: 6rem;
  padding-bottom: 3rem;
  background: #fff;
}

@media (min-width: 64rem) {
  .aiv-section--about {
    padding-top: 8rem;
    padding-bottom: 6rem;
  }
}

.aiv-section--culture {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: rgba(249, 250, 251, 0.8);
}

@media (min-width: 64rem) {
  .aiv-section--culture {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.aiv-section--benefits {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: #fff;
}

@media (min-width: 64rem) {
  .aiv-section--benefits {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.aiv-section--careers {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: rgba(249, 250, 251, 0.8);
}

@media (min-width: 64rem) {
  .aiv-section--careers {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* ——— Section heading ——— */
.aiv-section-head {
  margin-bottom: 2.5rem;
}

@media (min-width: 64rem) {
  .aiv-section-head {
    margin-bottom: 3.5rem;
  }
}

/* Страница Markets: зазор под шапкой «Industries / Markets» до сетки карточек */
.aiv-section--home-markets>.aiv-container>.aiv-section-head {
  margin-bottom: 3rem;
}

@media (min-width: 64rem) {
  .aiv-section--home-markets>.aiv-container>.aiv-section-head {
    margin-bottom: 4.5rem;
  }
}

.aiv-section-head__eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--aiv-color-accent);
  font-weight: 600;
  letter-spacing: 0.025em;
}

.aiv-section-head__title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  line-height: 1.25;
}

@media (min-width: 64rem) {
  .aiv-section-head__title {
    font-size: 2.25rem;
  }
}

.aiv-section-head__line {
  margin-top: 0.75rem;
  width: 3rem;
  height: 2px;
  border-radius: 9999px;
  background: var(--aiv-color-accent);
}

/* ——— Split layout (two columns) ——— */
.aiv-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 64rem) {
  .aiv-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4rem;
  }
}

.aiv-split--gap-wide {
  gap: 2rem;
}

@media (min-width: 64rem) {
  .aiv-split--gap-wide {
    gap: 4rem;
  }
}

.aiv-split__col {
  min-width: 0;
}

.aiv-split__col--stack-first {
  order: 1;
}

.aiv-split__col--stack-second {
  order: 2;
}

@media (min-width: 64rem) {
  .aiv-split__col--lg-first {
    order: 1;
  }

  .aiv-split__col--lg-second {
    order: 2;
  }
}

/* ——— Typography blocks ——— */
.aiv-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.aiv-stack--tight {
  gap: 1.25rem;
}

.aiv-title-hero {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  line-height: 1.1;
}

@media (min-width: 64rem) {
  .aiv-title-hero {
    font-size: 3rem;
  }
}

.aiv-title-page {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  line-height: 1.2;
}

.aiv-title-page--upper {
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.aiv-rule--spaced {
  margin-top: 1rem;
}

@media (min-width: 64rem) {
  .aiv-title-page {
    font-size: 3rem;
  }
}

.aiv-eyebrow {
  color: var(--aiv-color-accent);
  font-weight: 600;
  letter-spacing: 0.025em;
}

.aiv-eyebrow--block {
  display: block;
  margin-bottom: 0.75rem;
}

.aiv-eyebrow--hero-gap {
  margin-bottom: 1.5rem;
}

.aiv-rule {
  margin-top: 0.75rem;
  width: 3rem;
  height: 2px;
  border-radius: 9999px;
  background: var(--aiv-color-accent);
}

/* Accent paragraph row (vertical bar) */
.aiv-accent-text {
  display: flex;
  gap: 1rem;
}

.aiv-accent-text__bar {
  margin-top: 0.5rem;
  width: 4px;
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 9999px;
  background: rgba(0, 170, 145, 0.4);
}

.aiv-accent-text__body {
  margin: 0;
  color: var(--aiv-color-muted);
  line-height: 1.625;
  text-align: justify;
}

.aiv-accent-text__body--strong {
  color: var(--aiv-color-primary);
  font-weight: 600;
}

.aiv-accent-text__title {
  margin: 0;
  font-weight: 600;
  color: var(--aiv-color-primary);
}

.aiv-accent-text__text {
  margin: 0.25rem 0 0;
  color: var(--aiv-color-muted);
  line-height: 1.625;
  text-align: justify;
}

/* Ссылки из расширенных редакторов (ACF WYSIWYG) и тела записи */
.aiv-accent-text__body a,
.aiv-accent-text__body--strong a,
.aiv-accent-text__text a,
.aiv-checklist__text a,
.aiv-lead a,
.aiv-text-intro a,
.aiv-news-hero__lead a,
.aiv-page--article .entry-content a,
.aiv-article-section .entry-content a {
  color: #00aa91;
  font-weight: 600;
  text-decoration: none;
}

.aiv-accent-text__body a:hover,
.aiv-accent-text__body--strong a:hover,
.aiv-accent-text__text a:hover,
.aiv-checklist__text a:hover,
.aiv-lead a:hover,
.aiv-text-intro a:hover,
.aiv-news-hero__lead a:hover,
.aiv-page--article .entry-content a:hover,
.aiv-article-section .entry-content a:hover {
  color: #008f7a;
  text-decoration: underline;
}

.aiv-link {
  color: var(--aiv-color-accent);
  font-weight: 600;
  text-decoration: none;
}

.aiv-link:hover {
  text-decoration: underline;
}

.aiv-link--muted {
  color: var(--aiv-color-primary);
  text-decoration: underline;
}

.aiv-link--muted:hover {
  color: var(--aiv-color-accent);
}

/* ——— Media (image column) ——— */
.aiv-media {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

@media (min-width: 64rem) {
  .aiv-media {
    min-height: 0;
    height: 100%;
  }
}

.aiv-media__glow {
  position: absolute;
  inset: -2.5rem;
  border-radius: 9999px;
  background: rgba(219, 234, 254, 0.4);
  filter: blur(48px);
  pointer-events: none;
}

.aiv-media__frame {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--aiv-radius-lg);
  box-shadow: var(--aiv-shadow-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  outline: 1px solid #e5e7eb;
}

@media (min-width: 64rem) {
  .aiv-media__frame {
    min-height: 0;
    height: 100%;
  }
}

.aiv-media__frame--soft {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

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

/* ——— Benefits ——— */
.aiv-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.aiv-benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--aiv-radius-lg);
  background: #f9fafb;
  box-shadow: var(--aiv-shadow);
  outline: 1px solid #f3f4f6;
  transition: box-shadow 0.3s, outline-color 0.3s;
}

.aiv-benefit-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  outline-color: rgba(0, 51, 102, 0.15);
}

.aiv-benefit-card__icon-wrap {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aiv-color-primary);
}

.aiv-benefit-card__label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.375;
  color: var(--aiv-color-primary);
}

.aiv-benefit-card__icon-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.aiv-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aiv-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #4b5563;
  line-height: 1.625;
}

.aiv-checklist__item+.aiv-checklist__item {
  margin-top: 0.75rem;
}

.aiv-checklist__icon {
  margin-top: 0.375rem;
  flex-shrink: 0;
  color: var(--aiv-color-accent);
}

.aiv-checklist__text {
  min-width: 0;
}

.aiv-checklist__text > p:first-child {
  margin-top: 0;
}

.aiv-checklist__text > p:last-child {
  margin-bottom: 0;
}

/* Product child: specifications checklist in two columns (static layout). */
.aiv-checklist.aiv-checklist--cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  row-gap: 0.75rem;
}

@media (max-width: 47.9375rem) {
  .aiv-checklist.aiv-checklist--cols-2 {
    grid-template-columns: 1fr;
  }
}

.aiv-checklist.aiv-checklist--cols-2 .aiv-checklist__item + .aiv-checklist__item {
  margin-top: 0;
}

/* ——— Header (site chrome) ——— */
.aiv-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  background: transparent;
}

/* На мобилке шапка не «стеклянная»: иначе текст страницы просвечивает под aiv-header__inner */
@media (max-width: 47.99rem) {
  .aiv-header {
    background: #fff;
    box-shadow: var(--aiv-shadow);
  }

  .aiv-header--scrolled {
    background: #fff;
    backdrop-filter: none;
  }
}

.aiv-header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--aiv-shadow);
  backdrop-filter: blur(12px);
}

.aiv-header--scrolled .aiv-header__inner {
  padding: 1rem 1rem;
}

.aiv-header__inner {
  max-width: var(--aiv-container);
  margin: 0 auto;
  padding: 1.75rem 1rem;
  transition: all 0.3s ease;
}

@media (min-width: 40rem) {
  .aiv-header__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .aiv-header--scrolled .aiv-header__inner {
    padding: 1rem 1.5rem;
  }
}

@media (min-width: 64rem) {
  .aiv-header__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .aiv-header--scrolled .aiv-header__inner {
    padding: 1rem 2rem;
  }
}

.aiv-header__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.aiv-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.aiv-header__logo-img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

.aiv-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 48rem) {
  .aiv-nav {
    display: flex;
  }
}

.aiv-nav__link {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--aiv-color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.aiv-nav__link:hover {
  color: var(--aiv-color-accent);
}

.aiv-nav__group {
  position: relative;
}

.aiv-nav__trigger {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--aiv-color-primary);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s;
}

.aiv-nav__trigger:hover {
  color: var(--aiv-color-accent);
}

.aiv-nav__chevron {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.aiv-nav__group:hover .aiv-nav__chevron {
  transform: rotate(180deg);
}

.aiv-nav__dropdown {
  position: absolute;
  left: 0;
  margin-top: 1rem;
  width: fit-content;
  border-radius: 0.75rem;
  border: 1px solid #f3f4f6;
  background: #fff;
  padding: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.aiv-nav__group:hover .aiv-nav__dropdown {
  opacity: 1;
  visibility: visible;
}

.aiv-nav__dropdown-link {
  display: block;
  padding: 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  color: var(--aiv-color-primary);
  text-decoration: none;
  transition: background 0.15s;
}

.aiv-nav__dropdown-link:hover {
  background: #f9fafb;
}

.aiv-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid #e5e7eb;
}

.aiv-header__lang {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s;
}

.aiv-header__lang:hover {
  color: var(--aiv-color-accent);
}

.aiv-header__lang-label {
  text-transform: uppercase;
}

.aiv-header__cta {
  display: inline-block;
  background: var(--aiv-color-primary);
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: var(--aiv-shadow);
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
}

.aiv-header__cta:hover {
  background: var(--aiv-color-secondary);
}

.aiv-header__mobile-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .aiv-header__mobile-tools {
    display: none;
  }
}

.aiv-header__menu-btn {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  color: var(--aiv-color-primary);
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 48rem) {
  .aiv-header__menu-btn {
    display: none;
  }
}

/* Мобильное меню: на всю ширину экрана; открытие — body.aiv-menu-open */
.aiv-nav-mobile {
  box-sizing: border-box;
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.2s ease;
  pointer-events: none;
}

body.aiv-menu-open .aiv-nav-mobile {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

@media (min-width: 48rem) {
  .aiv-nav-mobile {
    display: none !important;
  }
}

body.aiv-menu-open {
  overflow: hidden;
}

.aiv-nav-mobile__inner {
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Прокрутка только у списка ссылок; кнопка остаётся внизу панели */
.aiv-nav-mobile__links {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: 5.25rem;
  padding-bottom: 1rem;
}

.aiv-nav-mobile__section {
  margin-bottom: 1.5rem;
}

.aiv-nav-mobile__section:not(.aiv-nav-mobile__section--open) .aiv-nav-mobile__sub {
  display: none;
}

.aiv-nav-mobile__section--open .aiv-nav-mobile__sub {
  display: grid;
}

.aiv-nav-mobile__link {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  display: block;
}

.aiv-nav-mobile__section:has(.aiv-nav-mobile__sub)>.aiv-nav-mobile__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-right: 10px;
}

.aiv-nav-mobile__section:has(.aiv-nav-mobile__sub)>.aiv-nav-mobile__link::after {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.aiv-nav-mobile__section--open:has(.aiv-nav-mobile__sub)>.aiv-nav-mobile__link::after {
  transform: rotate(45deg);
  margin-top: 0.15rem;
}

.aiv-nav-mobile__sub {
  display: grid;
  gap: 0.5rem;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.aiv-nav-mobile__sublink {
  font-size: 0.875rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  text-decoration: none;
  padding: 0.25rem 0;
}

.aiv-nav-mobile__cta {
  display: block;
  flex-shrink: 0;
  width: 100%;
  margin-top: 1rem;
  text-align: center;
  background: var(--aiv-color-primary);
  color: #fff;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.25;
}

/* icon helpers inside header */
.aiv-icon-menu,
.aiv-icon-close {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.5rem;
  height: 1.5rem;
}

.aiv-hidden {
  display: none !important;
}

/* ——— CTA modal (Get Started) ——— */
body.aiv-cta-modal-open {
  overflow: hidden;
}

.aiv-cta-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.aiv-cta-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.aiv-cta-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 51, 102, 0.48);
  backdrop-filter: blur(5px);
}

.aiv-cta-modal__panel {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 28rem;
  margin: auto;
  background: #fff;
  border-radius: var(--aiv-radius-lg);
  box-shadow: var(--aiv-shadow-lg);
  padding: 2.25rem 1.75rem 1.75rem;
  outline: 1px solid var(--aiv-color-border);
  transform: translateY(0.5rem) scale(0.98);
  transition: transform 0.28s ease;
}

.aiv-cta-modal.is-open .aiv-cta-modal__panel {
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .aiv-cta-modal,
  .aiv-cta-modal__panel {
    transition: none;
  }

  .aiv-cta-modal__panel {
    transform: none;
  }
}

.aiv-cta-modal__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--aiv-color-primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.aiv-cta-modal__close:hover {
  background: var(--aiv-color-surface);
  color: var(--aiv-color-accent);
}

.aiv-cta-modal__accent {
  width: 2.5rem;
  height: 3px;
  border-radius: 999px;
  background: var(--aiv-color-accent);
  margin-bottom: 1rem;
}

.aiv-cta-modal__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--aiv-color-accent);
}

.aiv-cta-modal__title {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--aiv-color-primary);
  letter-spacing: -0.02em;
}

@media (min-width: 40rem) {
  .aiv-cta-modal__title {
    font-size: 1.5rem;
  }
}

.aiv-cta-modal__lead {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--aiv-color-muted);
}

.aiv-cta-modal__success {
  margin: 1rem 0 0;
  padding: 1rem 1.125rem;
  border-radius: 0.75rem;
  background: rgba(0, 170, 145, 0.1);
  outline: 1px solid rgba(0, 170, 145, 0.35);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--aiv-color-primary);
  white-space: pre-wrap;
}

.aiv-cta-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.aiv-cta-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aiv-cta-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.aiv-cta-form__row--half {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

@media (min-width: 30rem) {
  .aiv-cta-form__row--half {
    grid-template-columns: 1fr 1fr;
  }
}

.aiv-cta-form__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--aiv-color-primary);
}

.aiv-cta-form__req {
  color: var(--aiv-color-accent);
}

.aiv-cta-form__input,
.aiv-cta-form__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--aiv-color-border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--aiv-color-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.aiv-cta-form__textarea {
  min-height: 5rem;
  resize: vertical;
}

.aiv-cta-form__input:focus,
.aiv-cta-form__textarea:focus {
  outline: none;
  border-color: var(--aiv-color-accent);
  box-shadow: 0 0 0 3px rgba(0, 170, 145, 0.2);
}

.aiv-cta-form__error {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #b91c1c;
}

.aiv-cta-form__row--consent {
  margin-top: 0.125rem;
}

.aiv-cta-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--aiv-color-muted);
}

.aiv-cta-form__consent-check {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--aiv-color-primary);
}

.aiv-cta-form__consent-label :where(p) {
  margin: 0;
}

.aiv-cta-form__consent-label a {
  color: var(--aiv-color-primary);
  text-decoration: underline;
}

.aiv-cta-form__consent-label a:hover {
  color: var(--aiv-color-accent);
}

.aiv-cta-form__submit {
  margin-top: 0.25rem;
}

.aiv-cta-form__submit .aiv-btn {
  width: 100%;
  justify-content: center;
}

.aiv-cta-form__submit .aiv-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ——— Footer ——— */
.aiv-footer {
  margin-top: auto;
  background: var(--aiv-color-surface);
  border-top: 1px solid #f3f4f6;
}

.aiv-footer__inner {
  max-width: var(--aiv-container);
  margin: 0 auto;
  padding: 6rem 1rem 0;
}

@media (min-width: 40rem) {
  .aiv-footer__inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.aiv-footer__top {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding-bottom: 6rem;
}

@media (min-width: 64rem) {
  .aiv-footer__top {
    flex-direction: row;
    gap: 0;
  }
}

.aiv-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .aiv-footer__brand {
    width: 44%;
    flex-shrink: 0;
  }
}

.aiv-footer__logo {
  height: 4rem;
  width: auto;
  margin-bottom: 24px;
  object-fit: contain;
  align-self: flex-start;
}

.aiv-footer__tagline {
  margin: 0;
  max-width: 24rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--aiv-color-muted);
  line-height: 1.625;
  text-align: justify;
}

.aiv-footer__social {
  display: flex;
  gap: 1rem;
}

.aiv-footer__social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--aiv-shadow);
  transition: transform 0.2s;
}

.aiv-footer__social-link:hover {
  transform: scale(1.05);
}

.aiv-footer__social-link--in {
  background: var(--aiv-color-primary);
}

.aiv-footer__social-link--mail {
  background: var(--aiv-color-accent);
}

.aiv-footer__social-link--web {
  background: var(--aiv-color-secondary);
}

.aiv-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}

@media (min-width: 40rem) {
  .aiv-footer__cols {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2.5rem 1.5rem;
  }

  .aiv-footer__cols > div:not(:last-child) {
    flex: 1 1 0;
    min-width: 0;
  }

  .aiv-footer__cols > div:last-child {
    flex: 0 0 auto;
  }

  /* Один блок меню — не сжимать в «узкую auto-колонку». */
  .aiv-footer__cols > div:only-child {
    flex: 1 1 auto;
  }
}

@media (min-width: 64rem) {
  .aiv-footer__cols {
    flex: 1;
  }
}

.aiv-footer__col-title {
  margin: 0 0 1.25rem;
  font-size: 11px;
  font-weight: 900;
  color: var(--aiv-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

a.aiv-footer__col-title {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  transition: color 0.2s;
}

a.aiv-footer__col-title:hover {
  color: var(--aiv-color-accent);
}

.aiv-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aiv-footer__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--aiv-color-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.aiv-footer__link:hover {
  color: var(--aiv-color-accent);
}

.aiv-footer__bottom {
  border-top: 1px solid #f3f4f6;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .aiv-footer__bottom {
    flex-direction: row;
  }
}

.aiv-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.aiv-footer__legal a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.aiv-footer__legal a:hover {
  color: var(--aiv-color-primary);
}

.aiv-footer__domain {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--aiv-color-accent);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* Main content area from shell */
#main-content.aiv-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ——— Home / index ——— */
.aiv-hero {
  position: relative;
  padding-top: 6rem;
  padding-bottom: var(--aiv-home-section-pad-y);
  background: #fff;
}

@media (min-width: 64rem) {
  .aiv-hero {
    padding-top: 11rem;
    padding-bottom: var(--aiv-home-section-pad-y-lg);
  }
}

.aiv-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: linear-gradient(#e5eaf0 1px, transparent 1px),
    linear-gradient(90deg, #e5eaf0 1px, transparent 1px);
  background-size: 48px 48px;
}

.aiv-hero__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom right, #fff, #fff, rgba(239, 246, 255, 0.6));
}

.aiv-hero__inner {
  position: relative;
  z-index: 1;
}

.aiv-title-mega {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  line-height: 1.1;
}

@media (min-width: 64rem) {
  .aiv-title-mega {
    font-size: 3.75rem;
  }
}

.aiv-stack--hero {
  gap: 1.5rem;
}

@media (min-width: 64rem) {
  .aiv-stack--hero {
    gap: 2rem;
  }
}

.aiv-media--hero {
  min-height: 240px;
}

.aiv-media--hero .aiv-media__frame {
  min-height: 240px;
}

.aiv-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--aiv-color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: var(--aiv-shadow);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}

.aiv-btn:hover {
  background: #00254d;
}

.aiv-btn--ghost {
  align-self: flex-start;
  padding: 0.75rem 0;
  margin-top: 0;
  background: transparent;
  color: var(--aiv-color-primary);
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.aiv-btn--ghost:hover {
  background: transparent;
  color: var(--aiv-color-accent);
}

.aiv-btn--ghost .aiv-btn__icon--back {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transform: rotate(180deg);
  transition: transform 0.2s;
}

.aiv-btn--ghost:hover .aiv-btn__icon--back {
  transform: rotate(180deg) translateX(-4px);
}

.aiv-btn--outline {
  background: #fff;
  color: var(--aiv-color-primary);
  border: 2px solid var(--aiv-color-primary);
  box-shadow: none;
}

.aiv-btn--outline:hover {
  background: var(--aiv-color-surface);
  color: var(--aiv-color-primary);
}

.aiv-btn__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.aiv-metrics {

  background: var(--aiv-color-primary);
}



.aiv-metrics__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 48rem) {
  .aiv-metrics__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.aiv-metrics__cell {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--aiv-color-primary);
}

.aiv-metrics__value {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
}

.aiv-metrics__label {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Главная: единая вертикальная сетка секций (как в макете) */
.aiv-section--home-about {
  padding-top: var(--aiv-home-section-pad-y);
  padding-bottom: var(--aiv-home-section-pad-y);
  background: #fff;
}

@media (min-width: 64rem) {
  .aiv-section--home-about {
    padding-top: var(--aiv-home-section-pad-y-lg);
    padding-bottom: var(--aiv-home-section-pad-y-lg);
  }
}

.aiv-section--home-markets {
  padding-top: var(--aiv-home-section-pad-y);
  padding-bottom: var(--aiv-home-section-pad-y);
  background: rgba(249, 250, 251, 0.8);
}

@media (min-width: 64rem) {
  .aiv-section--home-markets {
    padding-top: var(--aiv-home-section-pad-y-lg);
    padding-bottom: var(--aiv-home-section-pad-y-lg);
  }
}

.aiv-section--home-news {
  padding-top: var(--aiv-home-section-pad-y);
  padding-bottom: var(--aiv-home-section-pad-y);
  background: #fff;
}

@media (min-width: 64rem) {
  .aiv-section--home-news {
    padding-top: var(--aiv-home-section-pad-y-lg);
    padding-bottom: var(--aiv-home-section-pad-y-lg);
  }
}

.aiv-block-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 0;
  margin-bottom: 3.5rem;
}

/* Подзаголовок внутри колонки/стека — без глобального margin-bottom секции */
div.aiv-block-head {
  margin-bottom: 0;
}

/* Шапка секции (Markets, News, …) */
header.aiv-block-head {
  margin-bottom: 3.5rem;
}

@media (min-width: 48rem) {
  .aiv-block-head {
    flex-direction: row;
    align-items: flex-end;
  }
}

/* Заголовок + .aiv-rule под ним (не в одну строку с линией справа на md+) */
.aiv-block-head--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 48rem) {
  .aiv-block-head--stack {
    flex-direction: column;
    align-items: flex-start;
  }
}

.aiv-block-head--stack .aiv-rule {
  margin-top: 0;
}

.aiv-block-head .aiv-link-more {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
}

@media (min-width: 48rem) {
  .aiv-block-head .aiv-link-more {
    align-self: auto;
  }
}

.aiv-block-head__title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.aiv-block-head__eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--aiv-color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.aiv-block-head .aiv-section-head__line {
  margin-top: 0.75rem;
}

.aiv-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--aiv-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.2s;
}

.aiv-link-more:hover {
  color: var(--aiv-color-accent);
}

.aiv-link-more:hover .aiv-link-more__icon {
  transform: translateX(4px);
}

.aiv-link-more__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.aiv-market-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .aiv-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .aiv-market-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.aiv-market-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--aiv-radius-lg);
  background: #fff;
  box-shadow: var(--aiv-shadow);
  outline: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, outline-color 0.3s;
}

.aiv-market-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  outline-color: rgba(0, 51, 102, 0.2);
}

.aiv-market-card__icon-wrap {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.aiv-market-card:hover .aiv-market-card__icon-wrap {
  transform: scale(1.1);
}

.aiv-market-card__icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aiv-market-card__icon--svg {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--aiv-color-primary);
}

.aiv-market-card__title {
  margin: 0 0 0.5rem;
  flex: 1;
  font-weight: 700;
  color: var(--aiv-color-primary);
  line-height: 1.375;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.aiv-market-card:hover .aiv-market-card__title {
  color: var(--aiv-color-accent);
}

.aiv-market-card__text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: #9ca3af;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aiv-market-card__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--aiv-color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.aiv-market-card__foot-icon {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.2s;
}

.aiv-market-card:hover .aiv-market-card__foot-icon {
  transform: translateX(2px);
}

.aiv-swiper-wrap {
  position: relative;
  overflow: visible;
  padding-bottom: 3rem;
}

/* Внешняя оболочка слайдера (на всю ширину контейнера, без внутренних отступов) */
.aiv-swiper-stage,
.js-swiper-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.js-swiper-stage {
  display: block;
}

/* Внутренний рельс = ровно область .swiper; стрелки привязаны к краям трека */
.aiv-swiper-rail {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.aiv-swiper-rail .js-swiper-prev,
.aiv-swiper-rail .js-swiper-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: var(--aiv-color-muted);
  box-shadow: var(--aiv-shadow);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* Центр круга на границе трека: половина над слайдами, половина в отступе контейнера */
.aiv-swiper-rail .js-swiper-prev {
  left: 0;
  transform: translate(-50%, -50%);
}

.aiv-swiper-rail .js-swiper-next {
  right: 0;
  transform: translate(50%, -50%);
}

.aiv-swiper-rail .js-swiper-prev:hover,
.aiv-swiper-rail .js-swiper-next:hover {
  background: var(--aiv-color-primary);
  color: #fff;
  border-color: var(--aiv-color-primary);
}

.aiv-swiper-rail .js-swiper-prev-icon {
  transform: rotate(180deg);
}

.aiv-swiper {
  width: 100%;
  min-width: 0;
  margin: 0;
  /* Внутри clip-слайдера: отступы под тень (нижний — с запасом под blur) */
  padding: 0.375rem 0.375rem 1.25rem;
  box-sizing: border-box;
}

.js-news-swiper.aiv-swiper {
  box-sizing: border-box;
}

/*
 * Swiper bundle: .swiper-wrapper { height: 100% }, .swiper-slide { height: 100% }.
 * На странице body/main — flex-колонка с flex:1, из-за чего процентная высота
 * «прилипает» к main и растягивает слайдер на тысячи пикселей. Явно height: auto.
 */
.js-news-swiper.swiper,
.js-cards-swiper.swiper {
  height: auto;
}

.js-news-swiper .swiper-wrapper,
.js-cards-swiper .swiper-wrapper {
  height: auto;
}

.aiv-news-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: visible;
  border-radius: var(--aiv-radius-lg);
  background: #fff;
  box-shadow: var(--aiv-shadow-card);
  outline: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s;
}

.aiv-news-card:hover {
  box-shadow: var(--aiv-shadow-card-hover);
}

.aiv-news-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: var(--aiv-radius-lg) var(--aiv-radius-lg) 0 0;
}

.aiv-news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.aiv-news-card:hover .aiv-news-card__img {
  transform: scale(1.05);
}

.aiv-news-card__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}

.aiv-news-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 10px;
  font-weight: 700;
  color: var(--aiv-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--aiv-shadow);
}

.aiv-news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.aiv-news-card__date {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--aiv-color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.aiv-news-card__title {
  margin: 0;
  font-weight: 700;
  color: var(--aiv-color-primary);
  line-height: 1.375;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.aiv-news-card:hover .aiv-news-card__title {
  color: var(--aiv-color-accent);
}

.aiv-news-card__excerpt {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--aiv-color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aiv-news-card__more {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.aiv-news-card:hover .aiv-news-card__more {
  color: var(--aiv-color-accent);
}

.aiv-news-card__more-icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.aiv-news-card:hover .aiv-news-card__more-icon {
  transform: translateX(2px);
}

.js-news-swiper .swiper-slide,
.js-cards-swiper .swiper-slide {
  height: auto;
  overflow: visible;
}

.js-news-swiper .swiper-slide {
  box-sizing: border-box;
}

.js-swiper-pagination.swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 1.5rem;
  text-align: center;
}

.js-swiper-pagination .swiper-pagination-bullet {
  background: #d1d5db;
  opacity: 1;
}

.js-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--aiv-color-accent);
  opacity: 1;
}

/* ——— Inner pages (shared) ——— */
.aiv-section--page-intro {
  padding-top: 6rem;
  padding-bottom: 2.5rem;
  background: #fff;
}

@media (min-width: 64rem) {
  .aiv-section--page-intro {
    padding-top: 8rem;
    padding-bottom: 6rem;
  }
}

.aiv-section--page-block {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background: #fff;
}

@media (min-width: 64rem) {
  .aiv-section--page-block {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.aiv-section--muted {
  background: rgba(249, 250, 251, 0.8);
}

.aiv-section--pad-xl {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.aiv-lead {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--aiv-color-muted);
  text-align: justify;
}

.aiv-lead > p:first-child,
.aiv-text-intro > p:first-child,
.aiv-feature-line__text > p:first-child {
  margin-top: 0;
}

.aiv-lead > p:last-child,
.aiv-text-intro > p:last-child,
.aiv-feature-line__text > p:last-child {
  margin-bottom: 0;
}


.aiv-split--products {
  grid-template-columns: 1fr;
}

@media (min-width: 64rem) {
  .aiv-split--products {
    grid-template-columns: 3fr 2fr;
  }

  /* Узкая колонка картинки — только блок Overview (Products) */
  .aiv-split--products.aiv-split--products-overview {
    grid-template-columns: 2fr 1fr;
  }
}

.aiv-split--narrow {
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .aiv-split--narrow {
    gap: 4rem;
  }
}

.aiv-media__glow--lg-only {
  display: none;
}

@media (min-width: 64rem) {
  .aiv-media__glow--lg-only {
    display: block;
  }
}

.aiv-media__frame--ratio {
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
}

.aiv-keyfeatures-intro {
  margin-bottom: 1.25rem;
}

.aiv-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .aiv-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.aiv-feature-tile {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
}

.aiv-feature-tile__icon {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(0, 51, 102, 0.1);
  color: var(--aiv-color-primary);
}

.aiv-feature-tile__icon-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.aiv-feature-tile__icon-img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
  display: block;
}

.aiv-feature-tile__title {
  margin: 0;
  font-weight: 600;
  color: var(--aiv-color-primary);
  line-height: 1.375;
}

.aiv-feature-tile__text {
  margin: 0.125rem 0 0;
  font-size: 0.875rem;
  color: var(--aiv-color-muted);
  line-height: 1.375;
}

.aiv-section-title {
  margin: 0 0 0.75rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  text-transform: uppercase;
  letter-spacing: -0.025em;
}

.aiv-section-title__rule {
  margin-bottom: 2.5rem;
}

.aiv-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
}

.aiv-breadcrumb__link {
  font-weight: 600;
  color: var(--aiv-color-accent);
  text-decoration: none;
}

.aiv-breadcrumb__link:hover {
  text-decoration: underline;
}

.aiv-breadcrumb__sep {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: #d1d5db;
}

.aiv-breadcrumb__current {
  color: #9ca3af;
}

.aiv-tech-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  /* hidden обрезает box-shadow по нижней границе карточки */
  overflow: hidden;
  border-radius: var(--aiv-radius-lg);
  background: #fff;
  box-shadow: var(--aiv-shadow-card);
  outline: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s;
}

.aiv-tech-card:hover {
  box-shadow: var(--aiv-shadow-card-hover);
}

.aiv-tech-card__bar {
  height: 4px;
  width: 100%;
  flex-shrink: 0;
  border-radius: var(--aiv-radius-lg) var(--aiv-radius-lg) 0 0;
  background: var(--aiv-color-primary);
  transition: background 0.2s;
}

.aiv-tech-card:hover .aiv-tech-card__bar:not(.aiv-tech-card__bar--accent) {
  background: var(--aiv-color-accent);
}

.aiv-tech-card__bar--accent {
  background: var(--aiv-color-accent);
}

.aiv-tech-card:hover .aiv-tech-card__bar--accent {
  background: var(--aiv-color-accent);
}

.aiv-tech-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.75rem;
}

.aiv-tech-card__title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  line-height: 1.375;
  transition: color 0.2s;
}

.aiv-tech-card:hover .aiv-tech-card__title {
  color: var(--aiv-color-accent);
}

.aiv-tech-card__excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--aiv-color-muted);
}

.aiv-tech-card__foot {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.aiv-tech-card:hover .aiv-tech-card__foot {
  color: var(--aiv-color-accent);
}

.aiv-tech-card__foot-icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.aiv-tech-card:hover .aiv-tech-card__foot-icon {
  transform: translateX(2px);
}

.js-cards-swiper .swiper-slide {
  padding: 0;
  box-sizing: border-box;
}

/* News listing */
.aiv-news-hero {
  position: relative;
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: #fff;
}

.aiv-news-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: linear-gradient(#e5eaf0 1px, transparent 1px),
    linear-gradient(90deg, #e5eaf0 1px, transparent 1px);
  background-size: 48px 48px;
}

.aiv-news-hero__fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, #fff, #fff, rgba(239, 246, 255, 0.4));
}

.aiv-news-hero__inner {
  position: relative;
  z-index: 1;
}

.aiv-news-hero__lead {
  margin: 1.5rem 0 0;
  max-width: 42rem;
  line-height: 1.625;
  color: var(--aiv-color-muted);
}

.aiv-news-filters {
  position: sticky;
  top: 4rem;
  z-index: 20;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #f3f4f6;
  backdrop-filter: blur(8px);
}

.aiv-news-filters__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.aiv-news-filter {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background: #f3f4f6;
  color: #6b7280;
  transition: background 0.2s, color 0.2s;
}

.aiv-news-filter:hover {
  background: #e5e7eb;
}

.aiv-news-filter--active {
  background: var(--aiv-color-primary);
  color: #fff;
}

.aiv-news-filter--active:hover {
  background: var(--aiv-color-secondary);
  color: #fff;
}

.aiv-section--news-grid {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: rgba(249, 250, 251, 0.6);
}

.aiv-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 40rem) {
  .aiv-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .aiv-articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.aiv-news-list-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--aiv-radius-lg);
  background: #fff;
  box-shadow: var(--aiv-shadow);
  outline: 1px solid #f3f4f6;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, outline-color 0.3s;
}

.aiv-news-list-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  outline-color: rgba(0, 51, 102, 0.1);
}

.aiv-news-list-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}

.aiv-news-list-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.aiv-news-list-card:hover .aiv-news-list-card__img {
  transform: scale(1.05);
}

.aiv-news-list-card__grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  pointer-events: none;
}

.aiv-news-list-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 10px;
  font-weight: 700;
  color: var(--aiv-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--aiv-shadow);
}

.aiv-news-list-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.aiv-news-list-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--aiv-color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.aiv-news-list-card__meta-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.aiv-news-list-card__title {
  margin: 0;
  flex: 1;
  font-weight: 700;
  color: var(--aiv-color-primary);
  line-height: 1.375;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.aiv-news-list-card:hover .aiv-news-list-card__title {
  color: var(--aiv-color-accent);
}

.aiv-news-list-card__excerpt {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--aiv-color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aiv-news-list-card__more {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.aiv-news-list-card:hover .aiv-news-list-card__more {
  color: var(--aiv-color-accent);
}

.aiv-news-list-card__more-icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
}

.aiv-news-list-card:hover .aiv-news-list-card__more-icon {
  transform: translateX(2px);
}

/* Product / inner content */
.aiv-features-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 4rem;
}

@media (min-width: 48rem) {
  .aiv-features-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.aiv-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 48rem) {
  .aiv-model-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.aiv-model-card__thumb {
  margin-bottom: 0.75rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: var(--aiv-shadow);
  outline: 1px solid #e5e7eb;
}

.aiv-model-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.aiv-model-card:hover .aiv-model-card__img {
  transform: scale(1.05);
}

.aiv-model-card__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--aiv-color-primary);
  line-height: 1.375;
}

.aiv-model-card__meta {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

.aiv-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--aiv-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.2s;
}

.aiv-back-link:hover {
  color: var(--aiv-color-accent);
}

.aiv-back-link__icon {
  width: 1rem;
  height: 1rem;
  transform: rotate(180deg);
  transition: transform 0.2s;
}

.aiv-back-link:hover .aiv-back-link__icon {
  transform: rotate(180deg) translateX(-4px);
}

.aiv-subhead {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  line-height: 1.25;
}

@media (min-width: 64rem) {
  .aiv-subhead {
    font-size: 1.875rem;
  }
}

.aiv-subhead__rule--sm {
  width: 2.5rem;
  margin-bottom: 1rem;
}

.aiv-caption {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
  font-style: italic;
  color: #9ca3af;
}

/* Article page (JS-rendered) */
.aiv-article-hero {
  position: relative;
  width: 100%;
  height: 40vh;
  overflow: hidden;
}

@media (min-width: 64rem) {
  .aiv-article-hero {
    height: 55vh;
  }
}

.aiv-article-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.aiv-article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.3), transparent);
  pointer-events: none;
}

.aiv-article-hero__tag-wrap {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--aiv-container);
  padding: 6rem 1rem 0;
}

@media (min-width: 40rem) {
  .aiv-article-hero__tag-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.aiv-article-hero__tag {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: var(--aiv-color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--aiv-shadow);
}

.aiv-article-hero__bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--aiv-container);
  padding: 0 1rem 2.5rem;
}

.aiv-article-hero__title {
  margin: 0;
  max-width: 48rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

@media (min-width: 40rem) {
  .aiv-article-hero__title {
    font-size: 1.875rem;
  }
}

@media (min-width: 64rem) {
  .aiv-article-hero__title {
    font-size: 2.25rem;
  }
}

.aiv-article-hero__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.aiv-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 64rem) {
  .aiv-article-layout {
    grid-template-columns: 1fr 340px;
  }
}

.aiv-article-section h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
}

.aiv-article-section p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.625;
  color: #4b5563;
  text-align: justify;
}

/* Gutenberg: тело статьи как в статике (отступы, картинки, заголовки, цитата). */
.aiv-article-section--wpcontent .entry-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

.aiv-article-section--wpcontent .entry-content > * + * {
  margin-top: 1.5rem;
}

.aiv-article-section--wpcontent .entry-content > * + h2,
.aiv-article-section--wpcontent .entry-content > * + .wp-block-heading {
  margin-top: 2.5rem;
}

.aiv-article-section--wpcontent .entry-content .wp-block-heading,
.aiv-article-section--wpcontent .entry-content h2 {
  margin: 3rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
}

.aiv-article-section--wpcontent .entry-content .wp-block-heading:first-child,
.aiv-article-section--wpcontent .entry-content h2:first-child {
  margin-top: 0;
}

/* figure задаёт высоту — тогда у img object-fit / object-position реально обрезают кадр */
.aiv-article-section--wpcontent .entry-content .wp-block-image {
  position: relative;
  margin: 32px 0 0 !important;
  width: 100%;
  height: 16rem;
  max-height: min(16rem, 70vw);
  overflow: hidden;
  border-radius: var(--aiv-radius-lg);
  box-shadow: var(--aiv-shadow-lg);
  outline: 1px solid #f3f4f6;
  
}

.aiv-article-section--wpcontent .entry-content .wp-block-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Первая цитата в теле = бывший лид (.aiv-article-excerpt): крупнее, цвет заголовка. */
.aiv-article-section--wpcontent .entry-content > .wp-block-quote:first-of-type {
  margin: 0 0 2.5rem;
  padding: 0 0 0 1.25rem;
  border-left: 4px solid var(--aiv-color-accent);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--aiv-color-primary);
  line-height: 1.325;
  text-align: justify;

}

.aiv-article-section--wpcontent .entry-content > .wp-block-quote:first-of-type p {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  line-height: inherit;
  text-align: inherit;
}

.aiv-article-section--wpcontent .entry-content > .wp-block-quote:first-of-type p + p {
  margin-top: 1rem;
}

/* Остальные цитаты верхнего уровня — обычный текст статьи. */
.aiv-article-section--wpcontent .entry-content > .wp-block-quote:not(:first-of-type) {
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 4px solid var(--aiv-color-accent);
  font-size: 1.0625rem;
  line-height: 1.625;
  color: #4b5563;
}

.aiv-article-section--wpcontent .entry-content > .wp-block-quote:not(:first-of-type) p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.625;
  color: #4b5563;
  text-align: justify;
}

.aiv-article-section--wpcontent .entry-content > .wp-block-quote:not(:first-of-type) p + p {
  margin-top: 1rem;
}

.aiv-article-section--wpcontent .entry-content .wp-block-quote .wp-block-quote {
  margin-top: 1rem;
  padding-left: 0;
  border-left: 0;
  font-size: 1em;
  font-weight: 400;
  color: #4b5563;
}

.aiv-article-section--wpcontent .entry-content .wp-block-quote .wp-block-quote p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.625;
  color: #4b5563;
  text-align: justify;
}

.aiv-article-section--wpcontent .entry-content .wp-block-quote .wp-block-quote p + p {
  margin-top: 1rem;
}

.aiv-article-section__figure {
  margin-top: 2rem;
  border-radius: var(--aiv-radius-lg);
  overflow: hidden;
  box-shadow: var(--aiv-shadow-lg);
  outline: 1px solid #f3f4f6;
}

.aiv-article-section__figure img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.aiv-article-cta {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--aiv-radius-lg);
  background: var(--aiv-color-primary);
  color: #fff;
}

.aiv-article-cta__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.aiv-article-cta__text {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: justify;
}

.aiv-article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--aiv-color-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.aiv-article-cta__btn:hover {
  background: #008f7a;
}

.aiv-sidebar-card {
  border-radius: var(--aiv-radius-lg);
  padding: 1.5rem;
  background: #f9fafb;
  outline: 1px solid #f3f4f6;
}

.aiv-sidebar-card__title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
}

.aiv-sidebar-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.aiv-sidebar-row+.aiv-sidebar-row {
  margin-top: 0.75rem;
}

.aiv-sidebar-row__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--aiv-color-accent);
}

.aiv-sidebar-row__label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.aiv-sidebar-row__value {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--aiv-color-primary);
}

.aiv-related-link {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.aiv-related-link__thumb {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  outline: 1px solid #f3f4f6;
}

.aiv-related-link__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.aiv-related-link:hover .aiv-related-link__thumb img {
  transform: scale(1.05);
}

.aiv-related-link__date {
  margin: 0 0 0.25rem;
  font-size: 10px;
  font-weight: 700;
  color: var(--aiv-color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.aiv-related-link__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--aiv-color-primary);
  line-height: 1.375;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.aiv-related-link:hover .aiv-related-link__title {
  color: var(--aiv-color-accent);
}

.aiv-more-articles-card {
  display: block;
  overflow: hidden;
  border-radius: var(--aiv-radius-lg);
  background: #fff;
  outline: 1px solid #f3f4f6;
  box-shadow: var(--aiv-shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s;
}

.aiv-more-articles-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.aiv-more-articles-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.aiv-more-articles-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.aiv-more-articles-card:hover .aiv-more-articles-card__media img {
  transform: scale(1.05);
}

.aiv-more-articles-card__body {
  padding: 1.25rem;
}

.aiv-more-articles-card__date {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--aiv-color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.aiv-more-articles-card__title {
  margin: 0;
  font-weight: 700;
  color: var(--aiv-color-primary);
  line-height: 1.375;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aiv-more-articles-card__foot {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aiv-article-notfound {
  padding: 10rem 1rem 5rem;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.aiv-article-notfound__title {
  margin: 0 0 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--aiv-color-primary);
}

.aiv-article-loading {
  padding-top: 10rem;
  text-align: center;
  color: var(--aiv-color-muted);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.aiv-sidebar-related__title {
  margin-top: 2rem;
}

.aiv-related-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aiv-breadcrumb__back-icon {
  display: inline;
  vertical-align: middle;
  margin-right: 0.25rem;
}

/* ——— Tech / market / product subpages (BEM only, no utility classes) ——— */
.aiv-section--tech-hero {
  padding-top: 8rem;
  padding-bottom: 3.5rem;
  background: #fff;
}

.aiv-section--product-hero {
  padding-top: 8rem;
  background: #fff;
}

@media (min-width: 64rem) {
  .aiv-section--product-hero .aiv-split:not(.aiv-split--align-center)>.aiv-split__col:last-child {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
}

.aiv-section--block-06 {
  padding-top: 6rem;
}

.aiv-section--block-06-muted {
  padding-top: 6rem;
  background: rgba(249, 250, 251, 0.8);
}

.aiv-section--block-06-muted .aiv-lead {
  margin-bottom: 2.5rem;
}

.aiv-section--split-pad {
  background: #fff;
}

@media (min-width: 64rem) {

}

.aiv-section--split-muted {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: rgba(249, 250, 251, 0.8);
}

.aiv-section--industries-band {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  background: rgba(249, 250, 251, 0.8);
}

@media (min-width: 64rem) {
  .aiv-section--industries-band {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }
}

/* Дочерние страницы (product / technology / market): шаг секций как у block-06 / block-06-muted. */
.aiv-page--child .aiv-section--tech-hero {
  padding-bottom: 0;
}

.aiv-page--child .aiv-section--split-pad {
  padding-top: 6rem;
  padding-bottom: 0;
  background: #fff;
}

.aiv-page--child .aiv-section--split-muted {
  padding-top: 6rem;
  padding-bottom: 0;
  background: rgba(249, 250, 251, 0.8);
}

.aiv-page--child .aiv-section--industries-band {
  padding-top: 6rem;
  padding-bottom: 0;
  background: rgba(249, 250, 251, 0.8);
}

.aiv-section--stub {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.aiv-text-intro {
  margin: 0.75rem 0 0;
  color: var(--aiv-color-muted);
  line-height: 1.625;
}

.aiv-split--align-start {
  align-items: flex-start;
}

.aiv-split--align-center {
  align-items: center;
}

.aiv-split--gap-panel {
  gap: 2.5rem;
}

@media (min-width: 64rem) {
  .aiv-split--gap-panel {
    gap: 3.5rem;
  }
}

.aiv-split--gap-hero {
  gap: 2rem;
}

@media (min-width: 64rem) {
  .aiv-split--gap-hero {
    gap: 4rem;
  }
}

/* Full-width text column when no image sibling (technology / market child blocks; market hero). */
.aiv-split--single-col {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 64rem) {
  .aiv-split.aiv-split--single-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

.aiv-split--gap-product {
  gap: 4rem;
}

.aiv-split__col--stack-v {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.aiv-split__col--stack-caption {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aiv-stack--gap-8 {
  gap: 2rem;
}

.aiv-stack--gap-6 {
  gap: 1.5rem;
}

.aiv-accent-text__bar--offset-sm {
  margin-top: 0.375rem;
}

.aiv-feature-line {
  display: flex;
  gap: 1rem;
}

.aiv-feature-line__bar {
  margin-top: 0.5rem;
  width: 4px;
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 9999px;
  background: rgba(0, 170, 145, 0.4);
}

.aiv-feature-line__title {
  margin: 0;
  font-weight: 600;
  color: var(--aiv-color-primary);
}

.aiv-feature-line__text {
  margin: 0.25rem 0 0;
  color: var(--aiv-color-muted);
  line-height: 1.625;
  text-align: justify;
}

.aiv-tech-figure {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.aiv-tech-figure__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--aiv-radius-lg);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  outline: 1px solid #f3f4f6;
  padding: 15px;
}

.aiv-tech-figure__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Market child split blocks: fill frame; technology keeps contain above. */
.aiv-page--market-child .aiv-tech-figure__frame {
  padding: 0;
}

.aiv-page--market-child .aiv-tech-figure__img {
  object-fit: cover;
}

.aiv-market-hero-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  min-height: 280px;
  height: 100%;
}

.aiv-market-hero-aside__glow {
  display: none;
}

@media (min-width: 64rem) {
  .aiv-market-hero-aside__glow {
    display: block;
    position: absolute;
    inset: -2.5rem;
    border-radius: 9999px;
    background: rgba(219, 234, 254, 0.4);
    filter: blur(48px);
    pointer-events: none;
  }
}

.aiv-market-hero-aside__frame {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--aiv-radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  outline: 1px solid #e5e7eb;
}

.aiv-market-hero-aside__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aiv-product-hero-visual {
  position: relative;
}

.aiv-product-hero-visual__glow {
  display: none;
}

@media (min-width: 64rem) {
  .aiv-product-hero-visual__glow {
    display: block;
    position: absolute;
    inset: -2.5rem;
    border-radius: 9999px;
    background: rgba(219, 234, 254, 0.4);
    filter: blur(48px);
    pointer-events: none;
  }
}

.aiv-product-hero-visual__frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 15px;
  border-radius: var(--aiv-radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  outline: 1px solid #e5e7eb;
  background: #f3f4f6;
}

.aiv-product-hero-visual__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aiv-checklist {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 4rem;
  row-gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {


}

@media (max-width: 600px) {
  .aiv-metrics__value {
    font-size: 20px;
  }

  .js-swiper-pagination.swiper-pagination {
    margin-top: 0rem;
  }


}

.aiv-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--aiv-color-muted);
  line-height: 1.625;
}

.aiv-checklist__icon {
  margin-top: 0.375rem;
  flex-shrink: 0;
  color: var(--aiv-color-accent);
}

.aiv-checklist__text {
  min-width: 0;
}

.aiv-inline-figure {
  border-radius: var(--aiv-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
  outline: 1px solid #e5e7eb;
}

.aiv-inline-figure__img {
  display: block;
  width: 100%;
  height: auto;
}

/* Опциональный сине‑оттенок (класс с ACF «Blue tint») */
img.aiv-img--blue-tint {
  filter: sepia(0.18) saturate(1.08) hue-rotate(178deg) brightness(0.96) contrast(1.04);
}

@media (prefers-reduced-motion: reduce) {
  img.aiv-img--blue-tint {
    filter: none;
  }
}

.aiv-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 48rem) {
  .aiv-model-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.aiv-model-item {
  min-width: 0;
}

.aiv-model-item__thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 0.75rem;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: var(--aiv-shadow);
  outline: 1px solid #e5e7eb;
}

.aiv-model-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.aiv-model-item:hover .aiv-model-item__img {
  transform: scale(1.05);
}

.aiv-model-item__title {
  margin: 0;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.375;
  color: var(--aiv-color-primary);
}

.aiv-model-item__meta {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

.aiv-market-grid--subnav {
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .aiv-market-grid--subnav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .aiv-market-grid--subnav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 10px 0;
  }
}

.aiv-industries-head {
  margin-bottom: 3.5rem;
}

.aiv-industries-head__eyebrow {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--aiv-color-accent);
}

/* ——— Mobile: плотнее вертикальный ритм между секциями ——— */
@media (max-width: 47.99rem) {
  :root {
    --aiv-home-section-pad-y: 2.75rem;
    /* Запас под фиксированную шапку + safe area (вырез / статус-бар) */
    --aiv-page-top-safe: calc(6.75rem + env(safe-area-inset-top, 0px));
  }

  html {
    scroll-padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
  }

  .aiv-hero {
    padding-top: var(--aiv-page-top-safe);
  }

  .aiv-split {
    gap: 1.5rem;
  }

  .aiv-stack {
    gap: 1.5rem;
  }

  .aiv-stack--tight {
    gap: 1rem;
  }

  .aiv-section--about {
    padding-top: 3.25rem;
    padding-bottom: 2rem;
  }

  .aiv-section--culture,
  .aiv-section--benefits,
  .aiv-section--careers {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .aiv-section-head {
    margin-bottom: 1.5rem;
  }

  .aiv-section--home-markets > .aiv-container > .aiv-section-head {
    margin-bottom: 1.75rem;
  }

  .aiv-block-head {
    margin-bottom: 2rem;
    gap: 1rem;
  }

  header.aiv-block-head {
    margin-bottom: 2rem;
  }

  .aiv-section-title__rule {
    margin-bottom: 1.5rem;
  }

  .aiv-section--page-intro {
    padding-top: var(--aiv-page-top-safe);
    padding-bottom: 1.75rem;
  }

  .aiv-section--page-block {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .aiv-section--pad-xl {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .aiv-split--narrow {
    gap: 1.75rem;
  }

  .aiv-news-hero {
    padding-top: var(--aiv-page-top-safe);
    padding-bottom: 2.5rem;
  }

  .aiv-news-filters {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .aiv-section--news-grid {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .aiv-articles-grid {
    gap: 1.5rem;
  }

  .aiv-section--tech-hero {
    padding-top: var(--aiv-page-top-safe);
    padding-bottom: 2rem;
  }

  .aiv-section--product-hero {
    padding-top: var(--aiv-page-top-safe);
  }

  .aiv-section--block-06,
  .aiv-section--block-06-muted {
    padding-top: 2.75rem;
  }

  .aiv-section--block-06-muted .aiv-lead {
    margin-bottom: 1.5rem;
  }

 

  .aiv-section--split-muted {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .aiv-section--industries-band {
    padding-top: 1.75rem;
    padding-bottom: 0.75rem;
  }

  .aiv-page--child .aiv-section--tech-hero {
    padding-bottom: 0;
  }

  .aiv-page--child .aiv-section--split-pad,
  .aiv-page--child .aiv-section--split-muted {
    padding-top: 2.75rem;
    padding-bottom: 0;
  }

  .aiv-page--child .aiv-section--industries-band {
    padding-top: 2.75rem;
    padding-bottom: 0;
  }

  .aiv-section--stub {
    padding-top: var(--aiv-page-top-safe);
    padding-bottom: 2.5rem;
  }

  .aiv-industries-head {
    margin-bottom: 2rem;
  }

  .aiv-footer__inner {
    padding-top: 3.5rem;
  }

  .aiv-footer__top {
    gap: 2.5rem;
    padding-bottom: 3rem;
  }

  .aiv-swiper-wrap {
    padding-bottom: 2rem;
  }

  .aiv-metrics__cell {
    padding: 1.75rem 1rem;
  }

  .aiv-article-notfound {
    padding-top: var(--aiv-page-top-safe);
    padding-bottom: 3rem;
  }

  .aiv-article-loading {
    padding-top: var(--aiv-page-top-safe);
  }

  .aiv-article-hero__tag-wrap {
    padding-top: var(--aiv-page-top-safe);
  }
}

/* -------------------------------------------------------------------------- */
/* Scroll / motion — появление блоков при скролле (см. initScrollMotion)    */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .aiv-motion {
    opacity: 0;
    transform: translate3d(0, 2.65rem, 0) scale(0.94);
  }

  .aiv-accent-text__body p.aiv-motion {
    transform: translate3d(0, 1.35rem, 0);
  }

  @keyframes aiv-scroll-reveal-p {
    0%,
    24% {
      opacity: 0;
      transform: translate3d(0, 1.35rem, 0);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes aiv-scroll-reveal {
    0%,
    24% {
      opacity: 0;
      transform: translate3d(0, 2.65rem, 0) scale(0.94);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  .aiv-motion--in {
    animation: aiv-scroll-reveal 1.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--aiv-motion-i, 0) * 0.13s);
  }

  .aiv-accent-text__body p.aiv-motion.aiv-motion--in {
    animation: aiv-scroll-reveal-p 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--aiv-motion-i, 0) * 0.13s);
  }

  footer.aiv-footer.aiv-motion {
    transform: translate3d(0, 2.85rem, 0);
    opacity: 0;
  }

  @keyframes aiv-footer-rise {
    from {
      opacity: 0;
      transform: translate3d(0, 2.85rem, 0);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  footer.aiv-footer.aiv-motion--in {
    animation: aiv-footer-rise 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0s;
  }

  @keyframes aiv-header-in {
    0%,
    18% {
      opacity: 0;
      transform: translate3d(0, -0.85rem, 0);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  .aiv-header[data-site-header] {
    animation: aiv-header-in 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes aiv-hero-inner-in {
    0%,
    16% {
      opacity: 0;
      transform: translate3d(0, 1.85rem, 0) scale(0.96);
    }

    100% {
      opacity: 1;
      transform: none;
    }
  }

  .aiv-hero .aiv-hero__inner {
    animation: aiv-hero-inner-in 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aiv-motion,
  .aiv-motion--in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
