/* ============================================================
   КОМПЛЕКСНЫЕ ИНФОСИСТЕМЫ — Design System v2
   Inspired by: BrainboxAI.com
   Style: Bold B2B, geometric sans-serif, alternating light/dark
   Colors: #EBEBEB bg, #1A1A1A dark, #2D7FF0 blue accent
   Font: Barlow (headings bold) + Barlow (body regular)
   ============================================================ */

/* ---- GOOGLE FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400&display=swap');

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
  --bg: #F5F7FA;
  --bg-white: #FCFDFE;
  --dark: #1A1A1A;
  --dark-mid: #2B2B2B;
  --dark-card: #242424;
  --red: #2D7FF0;
  --red-hover: #1E63CC;
  --ai-cyan: #3AD0FF;
  --ai-violet: #B071FF;
  --ai-grad: linear-gradient(135deg, #3AD0FF 0%, #7C5CFF 52%, #B071FF 100%);
  --white: #FFFFFF;
  --text-main: #1A1A1A;
  --text-mid: #5A5A5A;
  --text-light: #8A8A8A;
  --border: rgba(0, 0, 0, 0.1);
  --border-dark: rgba(255, 255, 255, 0.1);

  --font: 'Barlow', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --container: 1320px;
  --section-gap: 128px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

/* ---- UTILITIES ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 56px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

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

.section--dark {
  background: var(--dark);
  color: var(--white);
}

.section--darker {
  background: #111111;
  color: var(--white);
}

.section--white {
  background: var(--white);
}

/* ---- REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- TYPOGRAPHY ---- */
.display-title {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-title strong {
  color: var(--red);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.section-title--light {
  color: var(--white);
}

.section-title strong,
.section-title b {
  font-weight: 900;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
  display: block;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.4);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  border: none;
  white-space: nowrap;
}

.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--red:hover {
  background: var(--red-hover);
  transform: translateX(3px);
}

.btn--outline-dark {
  background: transparent;
  border: 1.5px solid var(--dark);
  color: var(--dark);
}

.btn--outline-dark:hover {
  background: var(--dark);
  color: var(--white);
}

.btn--outline-light {
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
}

.btn--outline-light:hover {
  background: var(--white);
  color: var(--dark);
}

.btn--arrow::after {
  content: '→';
  transition: transform 0.25s;
}

.btn--arrow:hover::after {
  transform: translateX(4px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ---- FIXED CTA TAB ---- */
.fixed-cta {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  background: var(--red);
  color: var(--white);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: translateY(-50%) rotate(180deg);
  padding: 20px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, padding 0.2s;
}

.fixed-cta:hover {
  background: var(--red-hover);
  padding: 24px 10px;
}

/* ---- LOGO ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__mark {
  width: 36px;
  height: 36px;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo__img {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.logo__text {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- HEADER ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 247, 250, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 auto;
}

.nav__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  padding: 10px 16px;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease-out);
}

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

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__caret {
  font-size: 9px;
  opacity: 0.5;
  transition: transform 0.2s;
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown:hover .nav__caret {
  transform: rotate(180deg);
}

/* Выделенный пункт меню «ИИ» (трекер 3.1.5) */
.nav__link--ai {
  margin-left: 8px;
  padding: 7px 8px 7px 14px;
  color: var(--white);
  background: var(--ai-grad);
  border-radius: 100px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(45, 127, 240, 0.3);
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav__link--ai:hover {
  color: var(--white);
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(45, 127, 240, 0.42);
}

.nav__link--ai::after {
  display: none;
}

.nav__badge {
  margin-left: 7px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  line-height: 1.5;
}

/* Приметная плашка ИИ в hero (трекер 3.1.5) */
.hero__ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-bottom: 28px;
  padding: 7px 16px 7px 12px;
  background: var(--ai-grad);
  border: 1px solid transparent;
  border-radius: 100px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.45);
  transition: box-shadow 0.2s, transform 0.2s;
}

.hero__ai-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(124, 92, 255, 0.58);
}

.hero__ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2D7FF0;
  box-shadow: 0 0 8px #2D7FF0;
  animation: aiPulseDot 2s ease-in-out infinite;
}

.hero__ai-mark {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  /* знак сам залит фирменным градиентом и на градиентной плашке
     сливался с фоном — делаем его белым */
  filter: brightness(0) invert(1);
}

.hero__ai-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ai-grad);
  font-size: 12px;
  transition: transform 0.2s;
}

.hero__ai-pill:hover .hero__ai-arrow {
  transform: translateX(2px);
}

@keyframes aiPulseDot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.nav__sub {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 0;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s var(--ease-out);
}

.nav__dropdown:hover .nav__sub {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nav__sub-link {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  transition: background 0.15s, color 0.15s;
}

.nav__sub-link:hover {
  background: var(--bg);
  color: var(--red);
}

.header__cta {
  flex-shrink: 0;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  transition: background 0.2s;
}

.header__cta:hover {
  background: var(--red-hover);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
  background: #cfe0f0;
  display: flex;
  flex-direction: column;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: #16283F url('img/hero-home.jpg?v=2d06dbf2') center 46% / cover no-repeat;
  transform: none !important;
}

/* Расфокус фотографии под текстом: мелкие детали кадра перестают спорить
   с буквами, при этом сам снимок не темнеет. Справа маска сходит на нет —
   там фотография остаётся резкой. */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 34%, transparent 66%);
  mask-image: linear-gradient(100deg, #000 0%, #000 34%, transparent 66%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
      rgba(9, 18, 32, 0.78) 0%,
      rgba(9, 18, 32, 0.62) 34%,
      rgba(9, 18, 32, 0.30) 62%,
      rgba(9, 18, 32, 0) 88%);
}

.hero__wave {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 1;
  display: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 96px;
  max-width: 760px;
}

.hero__title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.hero__title strong {
  font-weight: 700;
  display: block;
}

/* ---- PRODUCTS SECTION ---- */
.products-intro {
  padding: var(--section-gap) 0 60px;
  background: var(--bg);
}

.products-intro__header {
  max-width: 700px;
  margin-bottom: 84px;
}

.products-intro__title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: 28px;
}

.products-intro__title strong {
  font-weight: 800;
}

/* Сменяемое слово в заголовке (трекер 3.1.3) */
.word-rotator {
  display: inline-block;
  position: relative;
  min-width: 7.2em;
  /* резерв под самое длинное слово, чтобы не было «прыжка» */
  text-align: left;
}

.word-rotator strong {
  display: inline-block;
  color: var(--red);
  transition: opacity 0.7s var(--ease-in-out), transform 0.7s var(--ease-in-out);
}

.word-rotator strong.is-out {
  opacity: 0;
  transform: translateY(-0.25em);
}

/* На десктопе держим «Ваши объекты — слово» в одну строку */
@media (min-width: 769px) {
  .products-intro__title {
    white-space: nowrap;
    width: max-content;
    max-width: none;
  }
}

/* На мобильном разрешаем перенос, резерв ширины не нужен */
@media (max-width: 768px) {
  .word-rotator {
    min-width: 0;
  }
}

.products-intro__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
}

.products-intro__text a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.product-card {
  display: block;
  padding: 52px 44px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: pointer;
}

.product-card:last-child {
  border-right: none;
}

.product-card--featured {
  background: var(--red);
}

.product-card:hover:not(.product-card--featured) {
  background: var(--white);
}

.product-card--featured:hover {
  background: var(--red-hover);
}

.product-card__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-light);
  margin-bottom: 48px;
}

.product-card--featured .product-card__num {
  color: rgba(255, 255, 255, 0.5);
}

.product-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card--featured .product-card__label {
  color: rgba(255, 255, 255, 0.8);
}

.product-card__label-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.product-card--featured .product-card__label-icon {
  color: #fff;
}

.product-card__label-icon svg {
  width: 100%;
  height: 100%;
}

.product-card__title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.product-card--featured .product-card__title {
  color: var(--white);
}

.product-card__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 48px;
}

.product-card--featured .product-card__text {
  color: rgba(255, 255, 255, 0.75);
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  padding: 10px 18px;
  transition: all 0.25s;
}

.product-card__cta:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.product-card--featured .product-card__cta {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.product-card--featured .product-card__cta:hover {
  background: var(--white);
  color: var(--red);
  border-color: var(--white);
}

/* product card image area */
.product-card__visual {
  height: 200px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card--featured .product-card__visual {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.1);
}

/* ---- IMPACT SECTION (Stats) ---- */
.impact {
  background: var(--bg);
  padding: var(--section-gap) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.impact__world {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 820px;
  height: 470px;
  background: radial-gradient(ellipse 80% 90% at 50% 30%, #D8D8D8 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
}

.impact__heading {
  font-size: clamp(60px, 10vw, 120px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--dark);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.impact__heading span {
  color: var(--red);
  display: block;
}

.impact__sub {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 400px;
  margin: 0 auto 60px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.impact__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.impact__stat {
  background: var(--bg);
  padding: 40px 36px;
  text-align: left;
}

.impact__stat-icon {
  width: 36px;
  height: 36px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.impact__stat-icon svg {
  width: 100%;
  height: 100%;
}

.impact__stat-num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.impact__stat-num sup {
  color: var(--red);
  font-size: 0.6em;
  vertical-align: super;
}

.impact__stat-label {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 400;
}

/* Trusted logos */
.trusted {
  padding: 64px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.trusted__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 36px;
}

.trusted__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Восемь названий занимают около 970 px, а контейнер даёт 1208 — при прежнем
     зазоре 56 px ряд не помещался и рвался на две строки. Зазор и кегль сделаны
     текучими: на широких экранах ряд идёт одной линией, на узких переносится. */
  gap: clamp(18px, 2.1vw, 28px);
  flex-wrap: wrap;
  filter: grayscale(1);
  opacity: 0.4;
}

.trusted__logo {
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dark);
}

/* ---- DARK STATS SECTION ---- */
.dark-stats {
  background: var(--dark);
  padding: var(--section-gap) 0;
}

.dark-stats__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.dark-stats__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: var(--white);
  max-width: 560px;
  line-height: 1.2;
}

.dark-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.dark-stat-card {
  background: var(--dark-card);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 200px;
}

.dark-stat-card__content {}

.dark-stat-card__num {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.dark-stat-card__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 240px;
  line-height: 1.5;
}

.dark-stat-card__visual {
  width: 200px;
  height: 140px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  opacity: 0.6;
}

/* ---- INDUSTRIES ---- */
.industries {
  background: var(--bg);
  padding: var(--section-gap) 0;
}

.industries__header {
  margin-bottom: 48px;
}

.industries__list {
  border-top: 1px solid var(--border);
}

.industry-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}

.industry-row:hover {
  padding-left: 12px;
}

.industry-row:hover .industry-row__arrow {
  opacity: 1;
  transform: none;
  color: var(--red);
}

.industry-row__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-light);
}

.industry-row__label {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s;
}

.industry-row:hover .industry-row__label {
  color: var(--red);
}

.industry-row__products {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.industry-row__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: var(--white);
  color: var(--text-mid);
  border: 1px solid var(--border);
}

.industry-row__arrow {
  width: 20px;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s;
  font-size: 18px;
  margin-left: 16px;
}

/* ---- PARTNER SECTION ---- */
.partner {
  background: var(--bg);
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border);
}

.partner__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.partner__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.partner__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 36px;
}

.partner__benefits {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.partner-benefit {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.partner-benefit__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  flex-shrink: 0;
  padding-top: 2px;
  width: 28px;
}

.partner-benefit__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.partner-benefit__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ---- DEMO FORM ---- */
.demo-section {
  background: var(--dark);
  padding: var(--section-gap) 0;
}

.demo-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.demo-section__title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.demo-section__title strong {
  font-weight: 800;
}

.demo-section__text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 40px;
}

.demo-contacts {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: color 0.2s;
}

.demo-contact:hover {
  color: var(--white);
}

.demo-contact__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  width: 80px;
  flex-shrink: 0;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.form__group {
  display: flex;
  flex-direction: column;
}

.form__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  padding: 16px 20px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: none;
  margin-top: -1px;
}

.form__input {
  padding: 12px 20px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font);
  font-size: 15px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
  margin-top: -1px;
}

.form__input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

.form__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__input option {
  background: var(--dark);
}

.form__submit {
  margin-top: 0;
  padding: 20px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.form__submit:hover {
  background: var(--red-hover);
}

.form__submit-arrow {
  font-size: 18px;
}

.form__privacy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  padding: 12px 20px;
}

.form__privacy a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: underline;
}

/* ---- FOOTER ---- */
.footer {
  background: #111111;
  color: var(--white);
  padding: 72px 0 32px;
}

.footer__top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer .logo__text {
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.footer .logo__mark {
  background: var(--red);
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 20px;
  max-width: 200px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer__col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  padding: 7px 0;
  transition: color 0.2s;
}

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

.footer__address {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  margin-top: 8px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.03em;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* ---- PAGE BANNER (inner pages) ---- */
.page-banner {
  background: #6F8CA0;
  padding: 130px 0 80px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #4A6A80 0%, #6F8CA0 50%, #8FA8BC 100%);
}

.page-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 60%);
}

.page-banner__content {
  position: relative;
  z-index: 1;
}

.page-banner__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  display: block;
}

.page-banner__title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 24px;
}

.page-banner__title strong {
  font-weight: 800;
}

.page-banner__sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
}

/* ---- FEATURE BLOCK (inner pages) ---- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.feature-block:last-child {
  border-bottom: none;
}

.feature-block--reverse> :first-child {
  order: 2;
}

.feature-block--reverse> :last-child {
  order: 1;
}

.feature-block__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}

.feature-block__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.feature-block__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 28px;
}

.feature-block__list {
  list-style: none;
  margin-bottom: 36px;
  border-top: 1px solid var(--border);
}

.feature-block__list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  font-size: 14px;
  color: var(--text-main);
}

.feature-block__list li::before {
  content: '→';
  color: var(--red);
  flex-shrink: 0;
}

.feature-visual {
  background: var(--white);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ---- CONTACTS PAGE ---- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-info__item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info__item:first-child {
  border-top: 1px solid var(--border);
}

.contact-info__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 10px;
}

.contact-info__value {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s;
}

a.contact-info__value:hover {
  color: var(--red);
}

.contact-info__sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---- MODALS ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  padding: 60px 48px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.3s var(--ease-out);
}

.modal-overlay.active .modal {
  transform: none;
}

.modal__icon {
  font-size: 40px;
  margin-bottom: 24px;
}

.modal__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.modal__text {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Номер обращения: тот же, что у лида в CRM. Выделен, чтобы его
   заметили и записали — по нему поддержка находит заявку. */
.modal__ticket {
  font-size: 15px;
  color: var(--text-mid);
  margin: -18px 0 30px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.modal__ticket b {
  color: var(--dark);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }

  .products-grid .product-card:nth-child(2) {
    border-right: none;
  }

  .impact__stats {
    grid-template-columns: 1fr;
  }

  .dark-stats__grid {
    grid-template-columns: 1fr;
  }

  /* minmax(0, 1fr), а не 1fr: у 1fr минимум колонки равен минимальной ширине
     содержимого, поэтому длинная строка внутри распирала колонку шире экрана
     и вся страница получала горизонтальную прокрутку. */
  .partner__grid,
  .demo-section__inner,
  .contacts-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-block--reverse> :first-child {
    order: 0;
  }

  .feature-block--reverse> :last-child {
    order: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 60px;
  }

  .nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header__inner {
    padding: 0 20px;
    gap: 0;
  }

  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--bg);
    padding: 24px 20px;
    z-index: 99;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }

  .nav.mobile-open .nav__link {
    font-size: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav.mobile-open .nav__link--ai {
    align-self: flex-start;
    margin: 12px 0;
    padding: 12px 18px;
    font-size: 16px;
    border-bottom: none;
  }

  .nav__sub {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }

  .hero__content {
    padding: 60px 20px 72px;
  }

  /* Нижняя граница clamp у заголовка — 42px, и на узких экранах слово
     «Автоматизированные» получалось шире окна: 413px против 335px доступных,
     хвост уходил за край. Пересчитано от ширины окна. */
  .hero__title {
    font-size: clamp(28px, 8.5vw, 44px);
  }

  /* Переносы в разметке расставлены под широкий экран. На телефоне они рвут
     строку раньше времени — пусть текст переносится сам. Перед каждым <br>
     в разметке стоит пробел: без него скрытие переноса склеивало соседние
     слова в один неразрывный кусок шире экрана. */
  .hero__title br {
    display: none;
  }

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

  .products-grid .product-card {
    border-right: none;
  }

  .impact__heading {
    font-size: 60px;
  }

  .industry-row {
    grid-template-columns: 50px 1fr;
    gap: 16px;
  }

  .industry-row__products {
    display: none;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .fixed-cta {
    display: none;
  }

  .dark-stats__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SHARED FORM FIELD (used across all pages)
   ============================================================ */
.form-field {
  width: 100%;
  padding: 16px 18px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--dark);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.form-field:focus {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-field::placeholder {
  color: var(--text-light);
}

.form-field option {
  background: white;
  color: var(--dark);
}

/* Section with dark bg form field adjustments */
.section--dark .form-field,
.demo-section .form-field {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.section--dark .form-field:focus,
.demo-section .form-field:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.section--dark .form-field::placeholder,
.demo-section .form-field::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   FOOTER STYLES
   ============================================================ */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 52px 0 0;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.footer .logo .logo__text {
  color: var(--white);
}

.footer .logo .logo__mark {
  background: rgba(255, 255, 255, 0.12);
}

.footer__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 16px;
  max-width: 240px;
  line-height: 1.6;
}

.footer__nav {
  display: grid;
  /* Эластичные колонки: на узких экранах ужимаются, а не переносятся
     всей сеткой под логотип, растягивая подвал вдвое. */
  grid-template-columns: repeat(4, minmax(118px, 160px));
  gap: clamp(20px, 3vw, 40px);
}

.footer__col {}

.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 9px;
  transition: color 0.2s;
  text-decoration: none;
}

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

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s;
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .footer__top {
    flex-direction: column;
    gap: 40px;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
/* KIS-CTA-shadow: контраст белого текста на синих кнопках */
.btn--red,.header__cta,.fixed-cta{text-shadow:0 1px 1px rgba(4,12,40,.22);}


/* ---- СВЕТЛЫЙ ПОДВАЛ (трекер 2.4) ---- */
/* Вертикаль: у первого (тёмного) блока подвала остался margin-bottom:64px —
   он и раздувал зазор между колонками и реквизитами. Плотность ссылок чуть
   выше: у длинных колонок каждый пиксель множится на десять строк. */
.footer__top{margin-bottom:0;}
.footer__link{padding:4px 0;margin-bottom:4px;}
.footer{background:var(--bg-white);color:var(--text-main);border-top:1px solid var(--border);}
.footer .logo .logo__text,.footer .logo__text{color:var(--text-main);}
.footer__tagline{color:var(--text-mid);}
.footer__col-title{color:var(--text-light);}
.footer__link{color:var(--text-mid);}
.footer__link:hover{color:var(--red);}
.footer__address{color:var(--text-mid);}
.footer__bottom{color:var(--text-mid);border-top:1px solid var(--border);}
.footer__legal a{color:var(--text-light);}
.footer__legal a:hover{color:var(--red);}


/* ---- HERO SCROLL INDICATOR ---- */
.hero__scroll{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);z-index:3;display:flex;flex-direction:column;align-items:center;gap:9px;color:rgba(255,255,255,0.72);font-size:10.5px;font-weight:600;letter-spacing:0.22em;text-transform:uppercase;text-decoration:none;transition:color .2s;}
.hero__scroll:hover{color:#fff;}
.hero__scroll-chevron{width:18px;height:18px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);animation:heroScrollBounce 1.8s var(--ease-in-out) infinite;}
@keyframes heroScrollBounce{0%,100%{transform:rotate(45deg) translate(-3px,-3px);opacity:.5;}50%{transform:rotate(45deg) translate(3px,3px);opacity:1;}}
@media (prefers-reduced-motion: reduce){.hero__scroll-chevron{animation:none;}}

/* ============================================================
   ЮР. ТРЕБОВАНИЯ РФ (трекер R-L)
   ============================================================ */
.footer__requisites {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-light);
}

.footer__requisites b {
  color: var(--text-mid);
  font-weight: 600;
}

/* Cookie-баннер (R-L3) */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 300;
  max-width: 720px;
  margin: 0 auto;
  background: var(--dark);
  color: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

.cookie-bar__text {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  min-width: 220px;
}

.cookie-bar__text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-bar__btn {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-bar__btn:hover {
  background: var(--red-hover);
}

/* Чекбокс согласия на обработку ПДн (R-L2) */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 18px;
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.55;
}

.form-consent span {
  /* Текст одним блоком: переносится внутри себя и не распирает форму
     на узких экранах (раньше куски текста были flex-элементами с gap). */
  min-width: 0;
}

.form-consent input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--red);
}

/* На тёмной полосе демо серый текст согласия тонул — осветляем. */
.demo-section .form-consent {
  color: rgba(255, 255, 255, 0.55);
}

.form-consent a {
  color: var(--red);
}

/* ---- Переключатель языка RU/EN (трекер R-M8) ---- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 11px;
  margin-left: 12px;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.lang-switch:hover {
  border-color: var(--dark);
  color: var(--dark);
}

/* ---- Контраст линейных иконок на тёмных блоках (иконный проход) ---- */
.ai-card__icon,
.ai-cap-card__icon,
.ai-arch__option-icon {
  color: var(--red);
}

/* Значок Copilot в бейдже ИИ-блоков (градиентный, покрупнее точки) */
.ai-badge__mark {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

/* Сообщение об ошибке отправки формы */
.form-error {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(214, 43, 43, 0.08);
  border: 1px solid rgba(214, 43, 43, 0.35);
  color: #C42121;
  font-size: 14px;
  line-height: 1.5;
}

/* Honeypot: приманка для ботов — человек это поле не видит */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   FAQ — вопросы и ответы
   ============================================================ */
.faq-hero {
  padding: 150px 0 56px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.faq-hero__title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.faq-hero__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 640px;
}

.faq-hero__lead a {
  color: var(--red);
  border-bottom: 1px solid rgba(45, 127, 240, 0.35);
}

.faq-body {
  padding: 72px 0 var(--section-gap);
}

.faq-group {
  max-width: 860px;
  margin: 0 auto 56px;
}

.faq-group__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item__q {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
  position: relative;
  transition: color 0.2s;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__q:hover {
  color: var(--red);
}

/* «плюс», превращающийся в «минус» */
.faq-item__q::before,
.faq-item__q::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--red);
  transition: transform 0.25s var(--ease-out);
}

.faq-item__q::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-item__q::after {
  transform: rotate(0deg);
}

.faq-item[open] .faq-item__q {
  color: var(--red);
}

.faq-item__a {
  padding: 0 44px 26px 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-mid);
  animation: faqReveal 0.3s var(--ease-out);
}

.faq-item__a strong {
  color: var(--text-main);
  font-weight: 600;
}

@keyframes faqReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

.faq-cta {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px;
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.faq-cta__title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.faq-cta__text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
}

.faq-cta .btn {
  margin: 0 auto;
}

@media (max-width: 768px) {
  .faq-hero {
    padding: 120px 0 40px;
  }

  .faq-item__q {
    font-size: 16px;
    padding-right: 36px;
  }

  .faq-cta {
    padding: 32px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__a {
    animation: none;
  }
}

/* ============================================================
   КЕЙСЫ ВНЕДРЕНИЯ
   ============================================================ */
.cases-hero {
  padding: 150px 0 64px;
  background: var(--dark);
  color: var(--white);
}

.cases-hero .section-label {
  color: rgba(255, 255, 255, 0.45);
}

.cases-hero__title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.cases-hero__lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 680px;
  margin-bottom: 56px;
}

.cases-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cases-hero__stat {
  background: var(--dark);
  padding: 28px 24px;
}

.cases-hero__num {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cases-hero__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.cases-body {
  padding: 96px 0 var(--section-gap);
}

.case {
  max-width: 1000px;
  margin: 0 auto 96px;
  padding-bottom: 96px;
  border-bottom: 1px solid var(--border);
}

.case:last-of-type {
  border-bottom: none;
}

.case__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.case__title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.case__meta strong {
  color: var(--text-main);
  font-weight: 600;
}

.case__intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 760px;
}

.case__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin: 40px 0;
}

.case-stat {
  background: var(--bg-white);
  padding: 26px 22px;
}

.case-stat__num {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.case-stat__label {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.4;
}

.case__cols {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.case__sub {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}

.case__sub--light {
  color: rgba(255, 255, 255, 0.45);
}

.case__sub span {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.case__task-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.case__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-mid);
}

.case__systems {
  list-style: none;
  columns: 1;
}

.case__systems li {
  font-size: 15px;
  color: var(--text-mid);
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.case__systems li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

.case__effect {
  background: var(--dark);
  color: var(--white);
  padding: 36px 40px;
  margin-bottom: 28px;
}

.case__effects {
  list-style: none;
  display: grid;
  gap: 14px;
}

.case__effects li {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 28px;
  position: relative;
}

.case__effects li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--ai-cyan);
  font-weight: 700;
}

.case__effects strong {
  color: var(--white);
  font-weight: 700;
}

.case__note {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mid);
  padding-left: 18px;
  border-left: 3px solid var(--red);
}

.case__note strong {
  color: var(--text-main);
}

/* сводка */
.case-sum {
  max-width: 1000px;
  margin: 0 auto 64px;
  border-top: 2px solid var(--dark);
  padding-top: 36px;
}

.case-sum__title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.case-sum__row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.case-sum__k {
  font-weight: 600;
  font-size: 16px;
}

.case-sum__v {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
}

@media (max-width: 1024px) {

  .cases-hero__stats,
  .case__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .case__cols {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-sum__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .cases-hero {
    padding: 120px 0 48px;
  }

  .case {
    margin-bottom: 64px;
    padding-bottom: 64px;
  }

  .case__effect {
    padding: 26px 22px;
  }
}

/* ============================================================
   СЕРТИФИКАТЫ И СОВМЕСТИМОСТЬ
   ============================================================ */

/* ---- Hero ---- */
.certs-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
}

.certs-hero__glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(58, 208, 255, 0.16) 0%, rgba(176, 113, 255, 0.10) 40%, transparent 70%);
  pointer-events: none;
}

.certs-hero .container {
  position: relative;
  z-index: 1;
}

.certs-hero .section-label {
  color: rgba(255, 255, 255, 0.45);
}

.certs-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: end;
}

.certs-hero__title {
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.certs-hero__lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 560px;
}

.certs-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.certs-hero__stat {
  background: var(--dark);
  padding: 24px 22px;
}

.certs-hero__num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: var(--ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.certs-hero__slabel {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Реестр ---- */
.reg {
  padding: 88px 0 0;
  background: var(--bg);
}

.reg__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  padding: 48px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 4px solid #7C5CFF;
}

.reg__kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}

.reg__title {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
  background: var(--ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reg__text {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 22px;
}

.reg__link {
  display: inline-flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.reg__benefits {
  display: grid;
  gap: 20px;
  align-content: start;
}

.reg-benefit {
  padding-left: 20px;
  border-left: 2px solid var(--border);
  transition: border-color 0.25s;
}

.reg-benefit:hover {
  border-left-color: var(--red);
}

.reg-benefit__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.reg-benefit__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ---- Сертификаты ---- */
.certs-body {
  padding: 88px 0 0;
  background: var(--bg);
}

.certs-body__head {
  max-width: 640px;
  margin-bottom: 48px;
}

.certs-body__title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.certs-body__lead {
  font-size: 16px;
  color: var(--text-mid);
}

.cert-sect {
  margin-bottom: 64px;
}

.cert-sect__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-main);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.cert-sect__title span {
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

/* превью документа */
.cert-card__shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #EDF1F6;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 1 / 0.72;
}

.cert-card__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease-out);
}

.cert-card:hover .cert-card__shot img {
  transform: scale(1.04);
}

.cert-card__shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 28, 52, 0) 55%, rgba(15, 28, 52, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.cert-card:hover .cert-card__shot::after {
  opacity: 1;
}

.cert-card__zoom {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(8px);
  z-index: 2;
  padding: 9px 20px;
  background: var(--white);
  color: var(--dark);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.cert-card:hover .cert-card__zoom {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.cert-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 22px;
  border-top: 1px solid var(--border);
}

.cert-card__vendor {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.cert-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.cert-card__num {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.cert-card__text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.cert-card__extra {
  font-size: 12.5px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.cert-card__pdf {
  margin-top: auto;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-main);
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.cert-card__pdf:hover {
  color: var(--red);
}

/* ---- Стек совместимости ---- */
.stack {
  padding: 88px 0 var(--section-gap);
  background: var(--bg);
}

.stack__head {
  max-width: 640px;
  margin-bottom: 36px;
}

.stack__title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.stack__lead {
  font-size: 16px;
  color: var(--text-mid);
}

.stack__table {
  border-top: 2px solid var(--dark);
}

.stack-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.stack-row__k {
  font-size: 15px;
  font-weight: 700;
}

.stack-row__v {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* ---- Лайтбокс ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 72px;
  background: rgba(10, 14, 22, 0.94);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: lbFade 0.2s var(--ease-out);
}

.lightbox[hidden] {
  display: none;
}

@keyframes lbFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-height: 100%;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  width: auto;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.lightbox__cap {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.lightbox__title {
  font-weight: 600;
}

.lightbox__pdf {
  color: var(--ai-cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(58, 208, 255, 0.4);
}

.lightbox__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lightbox__close {
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  line-height: 1;
  border-radius: 50%;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 72px;
  font-size: 30px;
  line-height: 1;
}

.lightbox__nav--prev {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox__nav:hover {
  transform: translateY(-50%) scale(1.05);
}

/* ---- Адаптив ---- */
@media (max-width: 1024px) {
  .certs-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }

  .reg__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }

  .stack-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .certs-hero {
    padding: 120px 0 56px;
  }

  .certs-hero__stats {
    grid-template-columns: 1fr;
  }

  .reg,
  .certs-body,
  .stack {
    padding-top: 56px;
  }

  .reg__inner {
    padding: 24px 20px;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox__nav {
    width: 40px;
    height: 56px;
    font-size: 24px;
  }

  .lightbox__img {
    max-height: calc(100vh - 200px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .cert-card,
  .cert-card__shot img,
  .lightbox {
    transition: none;
    animation: none;
  }
}

/* ============================================================
   ШАПКА — исправление переносов в меню
   Пунктов стало девять, и на экранах уже < 1400 px содержимое
   перестаёт помещаться: пункты переносились на две-три строки.
   ============================================================ */

/* Ничего в шапке не переносится по словам */
.nav__link,
.header__cta,
.lang-switch,
.logo__text {
  white-space: nowrap;
}

.header__inner {
  gap: 8px;
}

.nav {
  flex-wrap: nowrap;
}

/* Ниже 1400 px ужимаем пункты, чтобы уместить всё в одну строку */
/* Отступы подобраны так, чтобы девять пунктов, переключатель языка и кнопка
   В меню пять пунктов, поэтому отступы вернулись к комфортным. */
.header__inner {
    padding: 0 32px;
  }

  .nav__link {
    padding: 10px 17px;
    font-size: 13.5px;
    letter-spacing: 0.03em;
  }

  .nav__link::after {
    left: 17px;
    right: 17px;
  }

  .header__cta {
    padding: 13px 22px;
  }

/* На ноутбучных ширинах слегка ужимаем. */
@media (max-width: 1200px) {
  .nav__link {
    padding: 10px 12px;
    font-size: 13px;
  }

  .nav__link::after {
    left: 12px;
    right: 12px;
  }

  .header__cta {
    padding: 12px 16px;
    font-size: 12px;
  }
}

@media (max-width: 1200px) {
  .header__inner {
    padding: 0 20px;
  }

  .nav__link {
    padding: 10px 8px;
    font-size: 12.5px;
  }

  .nav__link::after {
    left: 8px;
    right: 8px;
  }

  .nav__badge {
    display: none;
  }

  .header__cta {
    padding: 11px 14px;
    font-size: 12px;
  }

  .logo__text {
    font-size: 12px;
  }
}

/* На планшетах девять пунктов в строку не помещаются — уходим в бургер */
@media (max-width: 900px) {

  .nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header__inner {
    justify-content: space-between;
    gap: 12px;
  }

  .lang-switch {
    margin-left: auto;
  }
}

/* Раскрытое бургер-меню работает и на планшетах (правила ниже дублируют
   мобильные, которые заданы только в @media 768px). */
@media (max-width: 900px) {
  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--bg);
    padding: 24px 20px;
    z-index: 99;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }

  .nav.mobile-open .nav__link {
    font-size: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.03em;
  }

  .nav.mobile-open .nav__link::after {
    display: none;
  }

  .nav.mobile-open .nav__link--ai {
    align-self: flex-start;
    margin: 12px 0;
    padding: 12px 18px;
    font-size: 16px;
    border-bottom: none;
  }

  .nav.mobile-open .nav__badge {
    display: inline-flex;
  }

  .nav.mobile-open .nav__sub {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }

  .nav.mobile-open .nav__dropdown {
    width: 100%;
  }
}

/* ============================================================
   ШАПКА ВНУТРЕННИХ СТРАНИЦ
   Первый экран внутренних страниц был пустым: заголовок на голом фоне.
   Добавлены мягкое фирменное свечение, техническая сетка и знак ГАУС —
   всё деликатно, чтобы не спорить с текстом.
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* мягкое свечение в фирменных цветах */
.page-hero::before {
  content: "";
  position: absolute;
  top: -55%;
  right: -12%;
  width: 900px;
  height: 900px;
  background:
    radial-gradient(circle,
      rgba(58, 208, 255, 0.13) 0%,
      rgba(124, 92, 255, 0.09) 38%,
      rgba(176, 113, 255, 0.05) 58%,
      transparent 72%);
  pointer-events: none;
  z-index: -2;
}

/* тонкая инженерная сетка, затухающая к центру */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 26, 26, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 82% 25%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 70% at 82% 25%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: -2;
}

/* содержимое всегда поверх декора */
.page-hero>* {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .page-hero::before {
    width: 520px;
    height: 520px;
    top: -40%;
    right: -30%;
  }

  .page-hero::after {
    background-size: 52px 52px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .page-hero::before,
  .page-hero::after {
    transition: none;
  }
}

/* ============================================================
   ПЕРВЫЙ ЭКРАН С ФОТОГРАФИЕЙ
   Приём промышленных сайтов: снимок во всю ширину, текст поверх
   с плотным затемнением слева. Фотография у каждого раздела своя,
   путь задаётся на странице через --hero-photo.
   ============================================================ */
.page-hero--photo {
  background-color: #16283F;
  background-image: var(--hero-photo);
  background-size: cover;
  /* кадрирование у каждого снимка своё — задаётся на странице через --hero-pos */
  background-position: var(--hero-pos, center 52%);
  background-repeat: no-repeat;
  border-bottom: none;
  color: var(--white);
}

.page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(100deg,
      rgba(9, 18, 32, 0.78) 0%,
      rgba(9, 18, 32, 0.60) 40%,
      rgba(9, 18, 32, 0.26) 74%,
      rgba(9, 18, 32, 0.06) 100%);
  z-index: -1;
}

/* фотография сама по себе выразительна — сетку убираем */
.page-hero--photo::after {
  display: none;
}

.page-hero--photo .p-hero__label,
.page-hero--photo .news-hero__label {
  color: rgba(255, 255, 255, 0.55);
}

.page-hero--photo .p-hero__title,
.page-hero--photo .news-hero__title {
  color: var(--white);
}

.page-hero--photo .p-hero__sub,
.page-hero--photo .news-hero__sub {
  color: rgba(255, 255, 255, 0.76);
  max-width: 560px;
}

/* хлебные крошки */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.crumbs a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.crumbs a:hover {
  color: var(--red);
  border-bottom-color: currentColor;
}

.crumbs__sep {
  opacity: 0.5;
}

.crumbs [aria-current] {
  color: var(--text-main);
  font-weight: 600;
}

.page-hero--photo .crumbs {
  color: rgba(255, 255, 255, 0.5);
}

.page-hero--photo .crumbs a:hover {
  color: var(--ai-cyan);
}

.page-hero--photo .crumbs [aria-current] {
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

@media (max-width: 768px) {
  .page-hero--photo {
    background-position: 62% 52%;
  }

  .page-hero--photo::before {
    background: linear-gradient(to bottom,
        rgba(9, 18, 32, 0.74) 0%,
        rgba(9, 18, 32, 0.64) 55%,
        rgba(9, 18, 32, 0.56) 100%);
  }
}

/* ---------- Материалы: списки PDF-документов ---------- */

.mat-list {
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: 2px;
}

.mat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
  transition: background 0.15s;
}

.mat-row:last-child {
  border-bottom: none;
}

.mat-row:hover {
  background: var(--white);
}

.mat-row::after {
  content: '↓';
  font-size: 14px;
  color: var(--text-light);
  flex-shrink: 0;
}

.mat-row:hover::after {
  color: var(--red);
}

.mat-row__badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 3px 6px;
}

.mat-row__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.mat-row__size {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.mat-group {
  margin-bottom: 44px;
}

.mat-group:last-child {
  margin-bottom: 0;
}

.mat-group__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.mat-group__head .section-label {
  margin-bottom: 0;
}

.mat-group__count {
  font-size: 12px;
  color: var(--text-light);
}

.mat-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.mat-strip__all {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}

.mat-strip__all:hover {
  color: var(--red-hover);
}

@media (max-width: 640px) {
  .mat-row {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .mat-row__name {
    flex: 1 1 70%;
  }

  .mat-row__size {
    margin-left: 34px;
  }
}

/* ---------- Материалы: карточки документов с обложками ---------- */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--dark);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.doc-card:hover {
  box-shadow: 0 18px 44px rgba(15, 28, 52, 0.12);
  transform: translateY(-3px);
}

.doc-card__cover {
  position: relative;
  display: block;
  background: #EDF1F6;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.doc-card__cover--tall {
  aspect-ratio: 1 / 0.72;
}

.doc-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s var(--ease-out);
}

.doc-card:hover .doc-card__cover img {
  transform: scale(1.04);
}

.doc-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 28, 52, 0) 55%, rgba(15, 28, 52, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.doc-card:hover .doc-card__cover::after {
  opacity: 1;
}

.doc-card__open {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(8px);
  z-index: 2;
  padding: 9px 20px;
  background: var(--white);
  color: var(--dark);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.doc-card:hover .doc-card__open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.doc-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 18px 20px 20px;
  border-top: 1px solid var(--border);
}

.doc-card__kind {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.doc-card__kind span {
  color: var(--text-light);
  letter-spacing: 0.06em;
}

.doc-card__title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 1024px) {
  .doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }
}

/* ==== ПОДВАЛ 3.0: единая типографика и ритм ==== */
/* Метрики подвала в одном месте. Ранее они складывались из двух блоков
   разных лет (тёмный подвал 2023 + светлый 2.4) и спорили друг с другом. */

.footer {
  padding: 56px 0 0;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 40px;
  margin-bottom: 0;
  flex-wrap: nowrap;
}

.footer__brand {
  flex-shrink: 0;
  max-width: 250px;
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 230px;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  column-gap: clamp(32px, 4.5vw, 72px);
  row-gap: 28px;
}

.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer__link {
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 4px 0;
  margin: 0;
}

.footer__requisites {
  /* Симметрия вокруг разделителей: без нижнего отступа последняя строка
     реквизитов ложилась прямо на черту перед копирайтом. */
  margin-top: 0;
  padding: 16px 0;
  gap: 6px;
  font-size: 12px;
  line-height: 1.6;
}

.footer__bottom {
  padding: 14px 0 22px;
  font-size: 12px;
}

@media (max-width: 1120px) {
  .footer__top {
    flex-wrap: wrap;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .footer__nav {
    grid-template-columns: repeat(2, minmax(0, max-content));
    column-gap: 56px;
  }
}

@media (max-width: 440px) {
  .footer__nav {
    grid-template-columns: 1fr;
  }
}

/* Карточка-article: вся площадь ведёт на PDF (растянутая ссылка),
   ссылка на DOCX-версию лежит поверх и кликается отдельно. */
.doc-card__main {
  color: inherit;
  text-decoration: none;
}

.doc-card__main::after {
  content: "";
  position: absolute;
  inset: 0;
}

.doc-card__alt {
  position: relative;
  z-index: 2;
  font-size: 12.5px;
  margin-top: 2px;
}

.doc-card__alt a {
  color: var(--red);
  font-weight: 600;
}

.doc-card__alt a:hover {
  color: var(--red-hover);
}

/* Плашка «Открыть PDF» декоративная: у неё z-index выше растянутой ссылки,
   и она перехватывала клик — пропускаем клики сквозь неё. */
.doc-card__open {
  pointer-events: none;
}

/* ---------- Материалы: вкладки групп ---------- */

.mat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.mat-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-mid);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.mat-tab span {
  margin-left: 7px;
  font-weight: 600;
  color: var(--text-light);
}

.mat-tab:hover {
  color: var(--dark);
  border-color: rgba(0, 0, 0, 0.22);
}

.mat-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.mat-tab.active span {
  color: rgba(255, 255, 255, 0.65);
}

.mat-pane {
  display: none;
}

.mat-pane.active {
  display: block;
}
