/* ============================================================================
   TECHNOLOGY — дизайн-система «T1 Energy» (refero e79b761d)
   Подключается ТОЛЬКО к technology.html; всё заскоплено в body.tpage,
   поэтому остальные страницы сайта не затрагиваются.

   Суть системы: светлый холст, текст сверхлёгким начертанием, плоские
   поверхности без теней, щедрые скругления (80px у медиа, 100px у кнопок),
   квадратный маркер 4×4 перед каждым лейблом секции.

   ЦВЕТ — ФИРМЕННЫЙ FILITAL, не палитра референса: роли T1 Energy переложены
   на наши токены один в один (vellum→светлая база, carbon→навы, onyx→футер-навы).
   Монохром референса нарушен ровно в одном месте — главный CTA красный #ED1C24,
   как требует правило бренда «красный только на CTA».
   ============================================================================ */

body.tpage {
  /* Цвет — токены сайта (см. :root в styles.css) */
  --vellum:  #f4f6fa;   /* холст — светлая база «Синего монолита» */
  --paper:   #ffffff;   /* поднятые поверхности */
  --carbon:  #142757;   /* навы: текст, рамки, залитые поверхности, пилюля шапки */
  --onyx:    #0e1c40;   /* футер и hero — самый глубокий слой */
  --mercury: #5a6478;   /* второстепенный текст */
  --accent:  #ED1C24;   /* только главный CTA */

  --tfont: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Ритм */
  --tmax: 1200px;
  --tgut: clamp(20px, 5vw, 48px);
  --tsec: clamp(60px, 8vw, 120px);

  background: var(--vellum);
  color: var(--carbon);
  font-family: var(--tfont);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .01em;
}
body.tpage::before { display: none; }   /* aurora базовой темы выключена */

body.tpage .t-wrap {
  width: 100%; max-width: var(--tmax);
  margin-inline: auto; padding-inline: var(--tgut);
}
body.tpage .t-sec { padding-block: var(--tsec); }
body.tpage .t-sec--tight { padding-block: clamp(40px, 5vw, 60px); }

/* ----------------------------------------------------------------- шапка
   Шапка и мобильное меню — БЕЗ переопределений: работает базовый стиль сайта
   из styles.css, как на главной (сплошная навы-полоса во всю ширину, капс-пункты,
   красный CTA). Здесь только то, что ломается из-за светлого холста страницы. */

/* шрифт шапки/мобменю — фирменный Manrope, как на главной. Без этого они
   наследуют Inter страницы: строка шире, CTA переносится на две строки,
   а логотип ужимается до нулевой ширины */
body.tpage .nav,
body.tpage .mobile-menu { font-family: var(--font); }
body.tpage .brand { flex: none; }          /* страховка: логотип не сжимаем */

/* бургер и трубка берут color по наследству от body (на этой странице он навы)
   и пропадают на навы-полосе — возвращаем bone-white базовой темы */
body.tpage .nav__burger { color: var(--text); }

/* авто-скрытие при скролле вниз (класс .js-nav-autohide на <header> включает логику
   в script.js). Возврат — скролл вверх или движение мыши к верхнему краю. */
body.tpage .nav {
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform .35s var(--ease);
  will-change: transform;
}
body.tpage .nav.nav--hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  body.tpage .nav { transition: none; }
}

/* -------------------------------------------------------------- типографика */
body.tpage .t-label {                     /* ■ ЛЕЙБЛ СЕКЦИИ */
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; line-height: 1.3; font-weight: 400;
  text-transform: uppercase; letter-spacing: .12em; color: var(--carbon);
  margin-bottom: 24px;
}
body.tpage .t-label::before {
  content: ""; width: 4px; height: 4px; background: var(--carbon); flex: none;
}
body.tpage .t-label--on-dark, body.tpage .t-label--on-dark::before { color: var(--paper); }
body.tpage .t-label--on-dark::before { background: var(--paper); }

body.tpage .t-display {
  font-size: clamp(2rem, 5.2vw, 52px);
  line-height: 1; letter-spacing: .01em; font-weight: 300; color: var(--carbon);
  max-width: 22ch;
}
body.tpage .t-display--on-dark { color: var(--paper); max-width: 20ch; }
body.tpage .t-h {
  font-size: clamp(1.5rem, 3.2vw, 32px);
  line-height: 1.2; letter-spacing: .01em; font-weight: 400; color: var(--carbon);
  max-width: 26ch;
}
body.tpage .t-sub {
  font-size: 22px; line-height: 1.3; letter-spacing: .01em; font-weight: 400; color: var(--carbon);
  max-width: 30ch;
}
body.tpage .t-body {
  font-size: 16px; line-height: 1.4; letter-spacing: .01em; color: var(--carbon); max-width: 62ch;
}
body.tpage .t-body + .t-body { margin-top: 16px; }
body.tpage .t-body--muted { color: var(--mercury); }
body.tpage .t-body--wide { max-width: 78ch; }
body.tpage .t-body--sp { margin-top: 24px; }
body.tpage .t-note { font-size: 14px; line-height: 1.3; color: var(--mercury); max-width: 78ch; }

/* ------------------------------------------------------------------- кнопки */
/* главный CTA — фирменный красный (единственная хроматика страницы) */
body.tpage .t-btn {
  display: inline-flex; align-items: center;
  padding: 18px 22px; border-radius: 100px;
  font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: .01em;
  background: var(--accent); border: 1px solid var(--accent); color: var(--paper);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .16s ease-out;
}
body.tpage .t-btn:hover { background: #d5161d; border-color: #d5161d; color: var(--paper); }
body.tpage .t-btn:active { transform: scale(.98); }
/* вторичное действие — обводка навы (на светлом) и белая (на тёмном) */
body.tpage .t-btn--ghost { background: transparent; border-color: var(--carbon); color: var(--carbon); }
body.tpage .t-btn--ghost:hover { background: var(--carbon); border-color: var(--carbon); color: var(--paper); }
body.tpage .t-btn--ghost-dark { background: transparent; border-color: var(--paper); color: var(--paper); }
body.tpage .t-btn--ghost-dark:hover { background: var(--paper); border-color: var(--paper); color: var(--carbon); }
body.tpage .t-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ------------------------------------------------------------------- медиа */
/* радиус 80px, без рамок и теней — «портал» в производство */
body.tpage .t-media { margin: 0; border-radius: 80px; overflow: hidden; }
body.tpage .t-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
body.tpage .t-media--square img { aspect-ratio: 1; }
/* чертёж — изолированный объект на светлой поверхности, не кроп.
   Исходник вертикальный (528×1700), поэтому слот портретный, иначе половина карточки пустая */
body.tpage .t-media--draw { background: var(--paper); }
body.tpage .t-media--draw img { object-fit: contain; aspect-ratio: 3 / 4; padding: clamp(16px, 3vw, 32px); }

/* ---------------------------------------------------------- медиа-заглушки */
/* Реальные фото/видео ещё не отобраны — слот честно показывает, что здесь будет.
   Геометрия та же, что у боевого медиа: 80px радиус, без тени и рамки-«фрейма». */
body.tpage .t-slot {
  display: grid; place-content: center; justify-items: center; gap: 8px;
  border-radius: 80px; background: var(--paper);
  border: 1px dashed rgba(50, 45, 42, .38);
  padding: 24px; text-align: center; margin: 0;
  aspect-ratio: 4 / 3; width: 100%;
}
body.tpage .t-slot__kind {
  font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: .12em;
  color: var(--carbon); display: flex; align-items: center; gap: 8px;
}
body.tpage .t-slot__kind::before { content: ""; width: 4px; height: 4px; background: var(--carbon); flex: none; }
body.tpage .t-slot__what { font-size: 14px; line-height: 1.3; color: var(--mercury); max-width: 30ch; }
body.tpage .t-slot--square { aspect-ratio: 1; }
body.tpage .t-slot--wide { aspect-ratio: 16 / 9; }

/* hero-слот: полноэкранный, тёмная поверхность — постер под видео */
/* hero — самый глубокий слой (onyx), чтобы шапка-пилюля (carbon) читалась поверх */
body.tpage .t-hero {
  position: relative; min-height: min(86svh, 720px);
  display: flex; align-items: flex-end;
  background: var(--onyx); overflow: hidden;
}
body.tpage .t-hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* ⚠ отступление от референса («no darkening overlay»): за 11 секунд кадр уходит
   от тёмного цеха к светлому верстаку, и белый заголовок на нём пропадает.
   Затемнение — навы (фирменное), только снизу, где лежит текст. */
body.tpage .t-hero__scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top,
    rgba(14, 28, 64, .88) 0%, rgba(14, 28, 64, .62) 34%,
    rgba(14, 28, 64, .28) 62%, rgba(14, 28, 64, .12) 100%);
}
body.tpage .t-hero__slot {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px;
  text-align: center; padding: 24px;
}
body.tpage .t-hero__slot .t-slot__kind { color: var(--paper); }
body.tpage .t-hero__slot .t-slot__kind::before { background: var(--paper); }
body.tpage .t-hero__slot .t-slot__what { color: rgba(255, 255, 255, .6); }
body.tpage .t-hero .t-wrap { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 60px); }
body.tpage .t-hero .t-actions { margin-top: 24px; }

/* пара медиа в две колонки */
body.tpage .t-pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
}

/* ------------------------------------------------------------ сплит-секция */
body.tpage .t-split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 96px); align-items: center;
}
body.tpage .t-split--rev > .t-split__media { order: 2; }
body.tpage .t-split--top { align-items: start; }
body.tpage .t-split__body > * + * { margin-top: 24px; }
body.tpage .t-split__body .t-label { margin-bottom: 0; }

/* ---------------------------------------------------------------- строки */
body.tpage .t-rows { list-style: none; padding: 0; margin: 0; }
body.tpage .t-rows li {
  padding-block: 24px; border-top: 1px solid var(--carbon);
  font-size: 22px; line-height: 1.3; font-weight: 400; color: var(--carbon);
}
body.tpage .t-rows li:last-child { border-bottom: 1px solid var(--carbon); }

/* строка-число */
body.tpage .t-figs { margin-top: 48px; }
body.tpage .t-fig {
  display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(16px, 3vw, 48px); align-items: baseline;
  padding-block: 36px; border-top: 1px solid var(--carbon);
}
body.tpage .t-fig:last-child { border-bottom: 1px solid var(--carbon); }
body.tpage .t-fig__n {
  font-size: clamp(2rem, 5.2vw, 52px); line-height: 1; letter-spacing: .01em;
  font-weight: 300; color: var(--carbon); font-variant-numeric: tabular-nums;
}
body.tpage .t-fig__l { font-size: 22px; line-height: 1.3; color: var(--carbon); }
body.tpage .t-fig__d { font-size: 14px; line-height: 1.3; color: var(--mercury); }

/* -------------------------------------------------------------------- теги */
body.tpage .t-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
body.tpage .t-tag {
  padding: 12px 22px; border-radius: 100px; border: 1px solid var(--carbon);
  font-size: 14px; line-height: 1.3; color: var(--carbon);
}

/* врезка: то же сверхлёгкое начертание, но на ступень ниже дисплея —
   абзац длинный, в 32px он забивал соседнюю колонку */
body.tpage .t-quote {
  font-size: clamp(1.15rem, 1.9vw, 24px); line-height: 1.3; letter-spacing: .01em;
  font-weight: 300; color: var(--carbon); max-width: 34ch;
}

/* ----------------------------------------------------------- палитра отделок */
body.tpage .t-palgroup--first { margin-top: 48px; }
body.tpage .t-palgroup + .t-palgroup { margin-top: 60px; }
body.tpage .t-palgroup h3 {
  font-size: 22px; line-height: 1.3; font-weight: 400; color: var(--carbon);
  padding-bottom: 16px; border-bottom: 1px solid var(--carbon);
}
body.tpage .t-pal {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: 36px;
}
/* группы из трёх стоят на той же сетке из шести, но чип не растягивается:
   иначе орб раздувается до 350px и перестаёт читаться как свотчик */
body.tpage .t-pal--3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
body.tpage .t-pal--3 > * { grid-column: span 2; max-width: 180px; }
/* орбы вместо плашек; hairline обязателен — иначе RAL 9016 (белый) исчезает на vellum */
body.tpage .t-pal__chip {
  aspect-ratio: 1; border-radius: 100px; border: 1px solid rgba(50, 45, 42, .2);
}
body.tpage .t-pal__name { margin-top: 16px; font-size: 14px; line-height: 1.3; color: var(--carbon); }
body.tpage .t-pal__code { margin-top: 4px; font-size: 12px; line-height: 1.3; letter-spacing: .12em; color: var(--mercury); }
body.tpage .t-palnote { margin-top: 60px; }

/* ------------------------------------------------------------ закрывающий блок */
body.tpage .t-close { background: var(--carbon); padding-block: clamp(60px, 8vw, 120px); }
body.tpage .t-close .t-display { color: var(--paper); }

/* -------------------------------------------------------------------- футер */
/* общий футер-«луч» из styles.css; здесь только фон страницы */
body.tpage .footer { --f-bg: var(--onyx); }
body.tpage .footer__bottom { border-top-color: rgba(255, 255, 255, .16); }

/* ------------------------------------------------------------------- cookie */
body.tpage .cookie { background: var(--carbon); border: 0; border-radius: 16px; }
body.tpage .cookie p { color: var(--paper); font-size: 14px; }
body.tpage .cookie p a { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ адаптив */
@media (max-width: 1000px) {
  body.tpage .t-split,
  body.tpage .t-split--rev { grid-template-columns: minmax(0, 1fr); }
  body.tpage .t-split--rev > .t-split__media { order: 0; }
  body.tpage .t-fig { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.tpage .t-pair { grid-template-columns: minmax(0, 1fr); }
  body.tpage .t-pal, body.tpage .t-pal--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.tpage .t-pal--3 > * { grid-column: span 1; }
}
@media (max-width: 560px) {
  body.tpage .t-slot, body.tpage .t-slot--square, body.tpage .t-slot--wide { border-radius: 40px; }
  body.tpage .t-pal, body.tpage .t-pal--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.tpage .t-rows li, body.tpage .t-fig__l, body.tpage .t-sub, body.tpage .t-palgroup h3 { font-size: 19px; }
}
