/* ==========================================================================
   Аритин — главная 2026.

   Повторяет утверждённый макет demo/index.html: главный баннер с консолью
   агента, показатели, услуги строками, финальный блок с контактами.
   Классы с префиксом hp- — чтобы не пересекаться с блоками из blocks.css.
   Подключается в partials/head.php последним (только для главной).
   ========================================================================== */

:root {
  --hp-ink: #0a1a33;
  --hp-muted: #4c5f79;
  --hp-muted-2: #7a8aa2;

  --hp-line: rgba(10, 26, 51, .10);
  --hp-line-soft: rgba(10, 26, 51, .06);
  --hp-line-light: rgba(255, 255, 255, .14);
  --hp-line-light-soft: rgba(255, 255, 255, .08);

  --hp-deep-grad: linear-gradient(168deg, #050f26 0%, #071c3c 46%, #0a2a55 78%, #123f7d 100%);
}

/* ---------- Стеклянные поверхности ---------- */
.hp-glass {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 22px 54px -40px rgba(6, 20, 44, .5), inset 0 1px 0 rgba(255, 255, 255, .9);
}

/* Зеркальный блик: свет сверху-слева + мягкое отражение снизу. */
.hp-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, .2) 26%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(0deg, rgba(10, 26, 51, .07) 0%, rgba(10, 26, 51, 0) 30%);
}

.hp-deep {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 32px 70px -46px rgba(2, 12, 32, .9);
}
/* Тот же зеркальный блик, что и у светлого стекла. */
.hp-deep::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .06) 28%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(0deg, rgba(2, 12, 32, .22) 0%, rgba(2, 12, 32, 0) 32%);
}

/* ---------- Кнопки ---------- */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.hp-btn .fa-solid { font-size: 12px; }

.hp-btn--light {
  background: #fff;
  color: var(--blue-900, #071c3c);
  box-shadow: 0 18px 40px -26px rgba(2, 12, 32, .8);
}
.hp-btn--light:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 48px -26px rgba(2, 12, 32, .85);
}

.hp-btn--outline {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .26);
  color: #eaf2ff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.hp-btn--outline:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .4);
}

.hp-btn--deep {
  background: linear-gradient(160deg, #2a5b96, #123f7d);
  color: #f2f8ff;
  box-shadow: 0 20px 44px -30px rgba(2, 12, 32, .9);
}
.hp-btn--deep:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 52px -30px rgba(2, 12, 32, .95);
}

/* ==========================================================================
   1. Главный баннер
   ========================================================================== */
.hp-hero {
  position: relative;
  padding: 58px 0 78px;
  overflow: hidden;
  color: #eaf2ff;
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(64% 58% at 92% -6%, rgba(58, 122, 190, .34) 0%, rgba(58, 122, 190, 0) 62%),
    radial-gradient(52% 46% at 4% 104%, rgba(28, 72, 132, .38) 0%, rgba(28, 72, 132, 0) 66%),
    var(--hp-deep-grad);
}

.hp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(86% 78% at 62% 26%, #000 0%, transparent 88%);
  mask-image: radial-gradient(86% 78% at 62% 26%, #000 0%, transparent 88%);
}

/* Сгенерированная подложка баннера: свет и «нейросеть» справа, текст слева не задет. */
.hp-hero__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--hp-hero-media, none);
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .48;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(100deg, transparent 14%, rgba(0, 0, 0, .28) 50%, #000 88%);
  mask-image: linear-gradient(100deg, transparent 14%, rgba(0, 0, 0, .28) 50%, #000 88%);
}

.hp-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, .10);
}

.hp-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 48px;
  align-items: center;
}

.hp-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #1857a3;
}
.hp-eyebrow--light { color: rgba(214, 232, 255, .62); }

.hp-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 700;
  color: #f4f8ff;
  text-align: left;
}
.hp-hero h1 .accent {
  background: linear-gradient(96deg, #ffffff 0%, #a9d9f3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hp-hero__lead {
  margin-top: 24px;
  max-width: 44ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.62;
  color: rgba(214, 230, 250, .76);
}

.hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hp-hero__spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hp-hero__spec li { list-style: none; }
.hp-hero__spec .k {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(196, 219, 244, .48);
}
.hp-hero__spec b {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -.01em;
  color: rgba(238, 246, 255, .92);
}

/* ---------- Консоль агента ---------- */
.hp-console {
  position: relative;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
}

.hp-console__topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(111, 205, 240, 0), rgba(111, 205, 240, .55), rgba(111, 205, 240, 0));
}

.hp-console__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hp-line-light-soft);
}

.hp-console__mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #eaf6ff;
}
.hp-console__mark svg { height: 16px; width: auto; display: block; }

.hp-console__id { min-width: 0; }
.hp-console__id b {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #f2f8ff;
}
.hp-console__id small {
  display: block;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: rgba(196, 219, 244, .52);
}

.hp-console__state {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(220, 238, 255, .7);
}

.hp-console__body { padding: 20px 20px 18px; }

.hp-console__label {
  display: block;
  margin-bottom: 8px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(196, 219, 244, .45);
}

.hp-console__query {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(236, 245, 255, .92);
}

.hp-console__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--hp-line-light-soft);
  border-bottom: 1px solid var(--hp-line-light-soft);
}
.hp-console__kpis > div {
  padding: 0 14px;
  border-left: 1px solid var(--hp-line-light-soft);
}
.hp-console__kpis > div:first-child { padding-left: 0; border-left: 0; }
.hp-console__kpis > div:last-child { padding-right: 0; }
.hp-console__kpis b {
  display: block;
  font-size: clamp(15px, 1.35vw, 17.5px);
  font-weight: 650;
  letter-spacing: -.025em;
  color: #f2f8ff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.hp-console__kpis span {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.35;
  color: rgba(196, 219, 244, .5);
}

.hp-console__note {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(196, 219, 244, .54);
}

.hp-console__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 20px;
  border-top: 1px solid var(--hp-line-light-soft);
  background: rgba(255, 255, 255, .028);
}
.hp-console__file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 11.5px;
  color: rgba(226, 240, 255, .8);
}
.hp-console__file .fa-solid { font-size: 12px; opacity: .6; }
.hp-console__file b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-console__meta {
  flex: none;
  font-size: 10.5px;
  letter-spacing: .02em;
  color: rgba(196, 219, 244, .45);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Секции
   ========================================================================== */
.hp-section { padding: 84px 0; }
.hp-section--tight { padding: 60px 0; }
.hp-section--last { padding: 84px 0 92px; }

/* ==========================================================================
   2. Показатели
   ========================================================================== */
.hp-metrics {  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 4px;
  border-radius: 18px;
}
.hp-metric {
  padding: 24px 26px;
  border-left: 1px solid var(--hp-line-soft);
}
.hp-metric:first-child { border-left: 0; }
.hp-metric b {
  display: block;
  font-size: clamp(26px, 2.7vw, 35px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
  color: var(--blue-800, #0a2a55);
  font-variant-numeric: tabular-nums;
}
.hp-metric span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--hp-muted);
}

/* ==========================================================================
   Тёмная полоса: показатели и экосистема на глубоком синем.
   ========================================================================== */
.hp-stage {
  position: relative;
  isolation: isolate;
  margin: 128px 0 0;
  padding: 104px 0 92px;
  overflow: hidden;
  color: #eaf2ff;
  background: #061530;
}

/* Мягкое свечение и растворение краёв в фоне страницы. */
.hp-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      #e9eef8 0%,
      #061530 1.2%,
      #061530 92%,
      rgba(233, 238, 248, .55) 98%,
      #e9eef8 100%),
    radial-gradient(70% 58% at 82% 8%, rgba(58, 122, 190, .30) 0%, rgba(58, 122, 190, 0) 64%),
    radial-gradient(60% 50% at 6% 96%, rgba(28, 72, 132, .34) 0%, rgba(28, 72, 132, 0) 66%);
}

/* Внутри полосы секции не дублируют внешние отступы. */
.hp-stage .hp-section { padding: 0; }
.hp-stage .hp-section + .hp-section { margin-top: 58px; }

.hp-stage .hp-head h2 { color: #f4f9ff; }
.hp-stage .hp-head p { color: rgba(224, 238, 255, .78); }
.hp-stage .hp-eyebrow { color: #9ccdf2; }

/* Показатели — тёмное стекло на синем фоне. */
.hp-stage .hp-metrics {
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 40px 80px -52px rgba(2, 12, 32, .9), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.hp-stage .hp-glass::before {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .08) 28%, rgba(255, 255, 255, 0) 54%),
    linear-gradient(0deg, rgba(2, 12, 32, .12) 0%, rgba(2, 12, 32, 0) 34%);
}
.hp-stage .hp-metric { border-left-color: rgba(255, 255, 255, .12); }
.hp-stage .hp-metric b { color: #f2f9ff; }
.hp-stage .hp-metric span { color: rgba(214, 232, 255, .72); }

/* Карточки экосистемы — молочное стекло поверх баннера. */
.hp-stage .hp-bento__card {
  background: rgba(255, 255, 255, .78);
  border-color: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  backdrop-filter: blur(28px) saturate(165%);
  box-shadow: 0 34px 70px -46px rgba(2, 12, 32, .9), inset 0 1px 0 rgba(255, 255, 255, 1);
}
.hp-stage .hp-bento__lead {
  border: 1px solid rgba(255, 255, 255, .24);
  background:
    radial-gradient(70% 130% at 96% -10%, rgba(58, 122, 190, .45) 0%, rgba(58, 122, 190, 0) 62%),
    rgba(6, 22, 50, .55);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 44px 90px -60px rgba(2, 12, 32, 1);
}

/* ==========================================================================
   3. Услуги
   ========================================================================== */
.hp-srv-head {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  gap: 48px;
  align-items: end;
}
.hp-srv-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: -.045em;
  font-weight: 700;
  color: var(--blue-950, #050f26);
  text-align: left;
}
.hp-srv-head p {
  margin: 0;
  padding-bottom: 4px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--hp-muted);
}

/* Услуги — открытые колонки с акцентной линией сверху (без карточек). */
.hp-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 44px;
}

.hp-col {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 26px;
  color: inherit;
  transition: transform .2s ease;
}
.hp-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hp-line);
}
.hp-col::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 2px;
  background: linear-gradient(90deg, #1857a3, #6fcdf0);
  transition: width .3s ease;
}
.hp-col:hover::after { width: 92px; }
.hp-col:hover { transform: translateY(-2px); }

.hp-col__num {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .1em;
  color: var(--blue-600, #1857a3);
  font-variant-numeric: tabular-nums;
}
.hp-col h3 {
  margin: 12px 0 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.22;
  color: var(--blue-950, #050f26);
  text-align: left;
}
.hp-col p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--hp-muted);
}
.hp-col__meta {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--hp-muted-2);
}
.hp-col__link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-700, #103c78);
}
.hp-col__link .fa-solid { font-size: 10px; transition: transform .2s ease; }
.hp-col:hover .hp-col__link .fa-solid { transform: translateX(3px); }

/* ==========================================================================
   4. Финальный блок
   ========================================================================== */
.hp-closing {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 56px;
  align-items: center;
  padding: 52px;
  overflow: hidden;
  border-radius: 24px;
  color: #eaf2ff;
  background:
    radial-gradient(70% 120% at 96% -10%, rgba(58, 122, 190, .3) 0%, rgba(58, 122, 190, 0) 60%),
    var(--hp-deep-grad);
  box-shadow: 0 60px 120px -70px rgba(4, 16, 38, .9);
}

.hp-closing::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(90% 120% at 20% 0%, #000 0%, transparent 80%);
  mask-image: radial-gradient(90% 120% at 20% 0%, #000 0%, transparent 80%);
}

.hp-closing__copy { position: relative; z-index: 1; }
.hp-closing h2 {
  margin: 16px 0 14px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 700;
  color: #f6faff;
  text-align: left;
}
.hp-closing p {
  max-width: 44ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(214, 230, 250, .72);
}
.hp-closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hp-contact {
  position: relative;
  z-index: 1;
  padding: 8px 8px 4px;
  border-radius: 16px;
}

.hp-contact__row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  gap: 14px;
  align-items: center;
  padding: 15px 14px;
  border-radius: 10px;
  color: inherit;
  transition: background .18s ease;
}
.hp-contact__row + .hp-contact__row { box-shadow: inset 0 1px 0 var(--hp-line-light-soft); }
.hp-contact__row:hover { background: rgba(255, 255, 255, .05); }
.hp-contact__row--static:hover { background: none; }

.hp-contact__row > .fa-solid { font-size: 14px; color: rgba(196, 219, 244, .6); }
.hp-contact__body small {
  display: block;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(196, 219, 244, .45);
}
.hp-contact__body b {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -.01em;
  color: #f1f7ff;
}
.hp-contact__go { font-size: 11px; opacity: .35; }

.hp-contact__note {
  padding: 14px 14px 16px;
  border-top: 1px solid var(--hp-line-light-soft);
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(196, 219, 244, .45);
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1080px) {
  .hp-hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hp-console { max-width: 560px; }
  .hp-closing { grid-template-columns: 1fr; gap: 32px; padding: 42px 34px; }
  .hp-contact { max-width: 520px; }
}

@media (max-width: 920px) {
  .hp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-metric:nth-child(3) { border-left: 0; }
  .hp-metric:nth-child(n+3) { border-top: 1px solid var(--hp-line-soft); }
  .hp-srv-head { grid-template-columns: 1fr; gap: 16px; align-items: start; }
  .hp-srv { grid-template-columns: 36px minmax(0, 1fr) 34px; gap: 14px; }
  .hp-srv__meta { display: none; }
}

@media (max-width: 720px) {
  .hp-hero { padding: 36px 0 60px; border-radius: 0 0 20px 20px; }
  .hp-hero h1 { font-size: clamp(31px, 8.6vw, 44px); }
  .hp-hero__lead { margin-top: 18px; }
  .hp-hero__actions .hp-btn { flex: 1; }
  .hp-hero__spec { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
  .hp-hero__spec li:last-child { grid-column: span 2; }
  .hp-console__body { padding: 18px 16px 16px; }
  .hp-console__head { padding: 16px; }
  .hp-console__state { display: none; }
  .hp-console__kpis { grid-template-columns: 1fr; padding: 4px 0; }
  .hp-console__kpis > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-left: 0;
    border-top: 1px solid var(--hp-line-light-soft);
  }
  .hp-console__kpis > div:first-child { border-top: 0; }
  .hp-console__kpis b { font-size: 15px; }
  .hp-console__kpis span { margin-top: 0; max-width: 46%; text-align: right; }
  .hp-console__foot { padding: 12px 16px; flex-wrap: wrap; }
  .hp-section, .hp-section--last { padding: 52px 0; }
  .hp-section--tight { padding: 44px 0; }
  .hp-metric { padding: 18px; }
  .hp-metric b { font-size: 22px; }
  .hp-srv-head h2 { font-size: clamp(25px, 7.2vw, 32px); }
  .hp-srv { padding: 16px 14px; grid-template-columns: 30px minmax(0, 1fr) 30px; }
  .hp-srv__main b { font-size: 15.5px; }
  .hp-srv__main small { font-size: 12.5px; }
  .hp-srv__arrow { width: 30px; height: 30px; }
  .hp-closing { padding: 30px 20px; border-radius: 20px; }
  .hp-closing__actions .hp-btn { width: 100%; }
  .hp-contact__row { padding: 13px 10px; }
  .hp-btn { height: 46px; padding: 0 20px; font-size: 14px; }
}

/* ==========================================================================
   Главная: шапка «плавает» над баннером, баннер уходит под неё
   ========================================================================== */
body.page-home header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 14px 0;
}

body.page-home .hp-hero { padding-top: 128px; }

/* Пока страница не прокручена — шапка тёмная стеклянная, как в макете. */
body.page-home header.site-header:not(.scrolled) .nav {
  color: #eef5ff;
  background: rgb(255 255 255 / 8%);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 24px 54px -34px rgb(2 12 32 / 0%), inset 0 1px 0 rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
body.page-home header.site-header:not(.scrolled) .logo,
body.page-home header.site-header:not(.scrolled) .logo-text { color: #eef5ff; }
body.page-home header.site-header:not(.scrolled) .logo-mark { --logo-1: #eef5ff; --logo-2: #9fd8f5; }
body.page-home header.site-header:not(.scrolled) .nav-links > a,
body.page-home header.site-header:not(.scrolled) .nav-links > .nav-item > a { color: rgba(232, 242, 255, .78); }
body.page-home header.site-header:not(.scrolled) .nav-links > a:hover,
body.page-home header.site-header:not(.scrolled) .nav-links > .nav-item > a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
body.page-home header.site-header:not(.scrolled) .nav-phone { color: #eaf2ff; border-right-color: rgba(255, 255, 255, .22); }
body.page-home header.site-header:not(.scrolled) .mess img {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 4px 12px -6px rgba(2, 12, 32, .6);
}
body.page-home header.site-header:not(.scrolled) .btn-ghost {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .26);
  color: #eaf2ff;
}
body.page-home header.site-header:not(.scrolled) .burger,
body.page-home header.site-header:not(.scrolled) .burger span,
body.page-home header.site-header:not(.scrolled) .burger span::before,
body.page-home header.site-header:not(.scrolled) .burger span::after { color: #eef5ff; background: #eef5ff; }
body.page-home header.site-header:not(.scrolled) .burger { background: transparent; border-color: rgba(255, 255, 255, .3); }

/* ==========================================================================
   Заголовки внутренних секций главной
   ========================================================================== */
.hp-head { margin-bottom: 36px; max-width: 820px; }
.hp-head h2 {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 700;
  color: var(--blue-950, #050f26);
  text-align: left;
}
.hp-head p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--hp-muted);
}

/* ==========================================================================
   Экосистема — bento: крупная акцентная карточка + обычные
   ========================================================================== */
.hp-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Акцентная карточка на всю ширину: синий градиент, крупный заголовок. */
.hp-bento__lead {
  position: relative;
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: center;
  padding: 34px 38px;
  overflow: hidden;
  border-radius: 20px;
  color: #eaf2ff;
  background:
    radial-gradient(70% 130% at 96% -10%, rgba(58, 122, 190, .38) 0%, rgba(58, 122, 190, 0) 62%),
    var(--hp-deep-grad);
  box-shadow: 0 44px 90px -60px rgba(4, 16, 38, .9);
  transition: transform .22s ease, box-shadow .22s ease;
}
.hp-bento__lead::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(90% 130% at 15% 0%, #000 0%, transparent 82%);
  mask-image: radial-gradient(90% 130% at 15% 0%, #000 0%, transparent 82%);
}
.hp-bento__lead > * { position: relative; z-index: 1; }
.hp-bento__lead:hover { transform: translateY(-2px); box-shadow: 0 50px 100px -60px rgba(4, 16, 38, 1); }

.hp-bento__lead h3 {
  margin: 14px 0 0;
  font-size: clamp(26px, 2.9vw, 40px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.06;
  color: #f6faff;
  text-align: left;
}
.hp-bento__lead p {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(214, 230, 250, .74);
}
.hp-bento__points { display: grid; gap: 12px; }
.hp-bento__points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(226, 240, 255, .9);
  list-style: none;
}
.hp-bento__points .fa-solid {
  margin-top: 4px;
  font-size: 11px;
  color: #6fcdf0;
}

/* Верхняя строка карточки: категория / иконка + стрелка */
.hp-bento__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hp-bento__lead .hp-bento__top { justify-content: flex-start; }
.hp-bento__cat {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(214, 232, 255, .6);
}
.hp-bento__icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(10, 42, 85, .1);
  background: rgba(24, 87, 163, .07);
  color: var(--blue-700, #103c78);
  font-size: 14px;
}
.hp-bento__go {
  flex: none;
  font-size: 12px;
  color: var(--hp-muted-2);
  transition: transform .2s ease, color .2s ease;
}
.hp-bento__lead .hp-bento__go { display: none; }

/* Обычные карточки */
.hp-bento__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 26px;
  border-radius: 18px;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease;
}
.hp-bento__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 34px 70px -46px rgba(6, 20, 44, .55), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hp-bento__card:hover .hp-bento__go { transform: translate(2px, -2px); color: var(--blue-700, #103c78); }
.hp-bento__card h3 {
  margin: 6px 0 0;
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.28;
  color: var(--blue-950, #050f26);
  text-align: left;
}
.hp-bento__card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--hp-muted);
}
.hp-bento__site {
  margin-top: auto;
  padding-top: 12px;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--hp-muted-2);
}

/* ==========================================================================
   Сценарии — тёмная полоса со ссылками
   ========================================================================== */
.hp-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 44px;
  align-items: center;
  padding: 38px 42px;
  overflow: hidden;
  border-radius: 20px;
  color: #eaf2ff;
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(58, 122, 190, .32) 0%, rgba(58, 122, 190, 0) 62%),
    var(--hp-deep-grad);
  box-shadow: 0 40px 84px -58px rgba(4, 16, 38, .9);
}
.hp-band::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 130% at 0% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(80% 130% at 0% 0%, #000 0%, transparent 78%);
}
.hp-band > * { position: relative; z-index: 1; }

.hp-band h2 {
  margin: 12px 0 0;
  font-size: clamp(23px, 2.3vw, 32px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.12;
  color: #f6faff;
  text-align: left;
}
.hp-band__text {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(214, 230, 250, .68);
}

.hp-band__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 32px;
}
.hp-band__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px;
  font-weight: 550;
  color: rgba(232, 242, 255, .86);
  transition: color .18s ease, border-color .18s ease;
}
.hp-band__list a:hover { color: #fff; border-bottom-color: rgba(111, 205, 240, .6); }
.hp-band__list .fa-solid { font-size: 10px; opacity: .45; transition: transform .2s ease, opacity .2s ease; }
.hp-band__list a:hover .fa-solid { opacity: 1; transform: translateX(2px); }

/* ==========================================================================
   Карточки кейсов и блога
   ========================================================================== */
.hp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.hp-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.hp-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease;
}
.hp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 34px 70px -46px rgba(6, 20, 44, .55), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hp-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(10, 42, 85, .08);
}
.hp-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.hp-card:hover .hp-card__media img { transform: scale(1.03); }
.hp-card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  padding: 20px 22px 22px;
}
.hp-card h3 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.3;
  color: var(--blue-950, #050f26);
  text-align: left;
}
.hp-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--hp-muted);
}
.hp-card__more {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-700, #103c78);
}
.hp-card__more .fa-solid { font-size: 10px; transition: transform .2s ease; }
.hp-card:hover .hp-card__more .fa-solid { transform: translateX(3px); }

/* Кейсы — горизонтальные карточки: медиа слева, текст справа. */
.hp-cards--rows { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hp-cards--rows .hp-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: stretch;
}
.hp-cards--rows .hp-card__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 196px;
}
.hp-cards--rows .hp-card__body {
  justify-content: center;
  padding: 28px 32px;
}
.hp-cards--rows .hp-card h3 { font-size: 20px; }
.hp-cards--rows .hp-card p { font-size: 13.5px; }
.hp-cards--rows .hp-card__more { padding-top: 16px; }

/* Кейсы — крупные медиа-карточки со стеклянной подписью снизу. */
.hp-cards--media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hp-card--media {
  position: relative;
  display: block;
  min-height: 460px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background: #0a2350;
  box-shadow: 0 40px 90px -60px rgba(4, 16, 38, .9);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hp-card--media:hover {
  transform: translateY(-2px);
  box-shadow: 0 50px 100px -60px rgba(4, 16, 38, 1);
}
.hp-card__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.hp-card--media:hover .hp-card__photo { transform: scale(1.04); }
.hp-card--media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 14, 34, .05) 0%, rgba(4, 14, 34, .18) 46%, rgba(4, 14, 34, .55) 100%);
}

.hp-card__arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  font-size: 13px;
  color: #fff;
  transition: background .2s ease, transform .2s ease;
}
.hp-card--media:hover .hp-card__arrow { background: rgba(255, 255, 255, .26); transform: translate(1px, -1px); }

.hp-card__overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.hp-card__overlay h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
  color: #fff;
  text-align: left;
}
.hp-card__overlay p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(240, 247, 255, .82);
}
.hp-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-top: 6px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-900, #071c3c);
  transition: background .2s ease;
}
.hp-card--media:hover .hp-card__cta { background: #f2f7ff; }

/* ==========================================================================
   Вопросы
   ========================================================================== */
.hp-faq {
  display: grid;
  gap: 10px;
  max-width: 940px;
}
.hp-faq__item {
  border-radius: 14px;
  padding: 0 22px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 16px 40px -34px rgba(6, 20, 44, .5), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: background .18s ease;
}
.hp-faq__item[open] { background: rgba(255, 255, 255, .8); }
.hp-faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.4;
  color: var(--blue-950, #050f26);
  list-style: none;
}
.hp-faq__item summary::-webkit-details-marker { display: none; }
.hp-faq__item summary .fa-solid {
  flex: none;
  margin-top: 5px;
  font-size: 11px;
  color: var(--hp-muted-2);
  transition: transform .22s ease;
}
.hp-faq__item[open] summary .fa-solid { transform: rotate(180deg); }
.hp-faq__a {
  padding: 14px 0 18px;
  border-top: 1px solid var(--hp-line-soft);
  font-size: 14px;
  line-height: 1.7;
  color: var(--hp-muted);
}

/* ---------- Адаптив новых блоков ---------- */
@media (max-width: 1080px) {
  .hp-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .hp-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-bento__lead { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 30px 30px; }
  .hp-band { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-cards--rows .hp-card { grid-template-columns: 280px minmax(0, 1fr); }
}

@media (max-width: 920px) {
  .hp-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-bento__lead { grid-column: span 2; }
  .hp-cards, .hp-cards--2 { grid-template-columns: 1fr; }
  .hp-cards--media { grid-template-columns: 1fr; }
  .hp-cards--rows .hp-card { grid-template-columns: 1fr; }
  .hp-cards--rows .hp-card__media { min-height: 0; aspect-ratio: 16 / 9; }
  .hp-cards--rows .hp-card__body { padding: 20px 22px 22px; }
}

@media (max-width: 720px) {
  body.page-home .hp-hero { padding-top: 104px; }
  .hp-head { margin-bottom: 24px; }
  .hp-cols { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; }
  .hp-col h3 { font-size: 18px; }
  .hp-bento { grid-template-columns: 1fr; }
  .hp-bento__lead { grid-column: span 1; padding: 26px 22px; }
  .hp-bento__card { padding: 20px 18px 22px; }
  .hp-band { padding: 26px 22px; }
  .hp-band__list { grid-template-columns: 1fr; gap: 0; }
  .hp-card__body { padding: 16px 18px 18px; }
  .hp-card--media { min-height: 400px; }
  .hp-card__overlay { left: 12px; right: 12px; bottom: 12px; padding: 18px 18px 16px; }
  .hp-card__overlay h3 { font-size: 18px; }
  .hp-card__cta { height: 44px; font-size: 13.5px; }
  .hp-faq__item { padding: 0 16px; }
  .hp-faq__item summary { padding: 15px 0; font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero, .hp-btn, .hp-card, .hp-col, .hp-bento__card, .hp-bento__lead { transition: none; }
  .hp-card:hover, .hp-col:hover, .hp-bento__card:hover, .hp-bento__lead:hover { transform: none; }
  .hp-card:hover .hp-card__media img { transform: none; }
  .hp-col:hover::after { width: 46px; }
}

