/* ===== Айдентика T5 Технологис ===== */
:root {
  --t5-ink:      #0e1130;
  --t5-ink-soft: #191d44;
  --t5-accent:   #5965ff;
  --t5-accent-2: #9b5cff;
  --t5-page:     #f3f4fa;
  --t5-line:     #e6e8f4;
  --t5-text:     #14172b;
  --t5-muted:    #6b7196;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}
* { scroll-behavior: smooth; }
body {
  background: var(--t5-page);
  color: var(--t5-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== Навбар ===== */
.t5-navbar {
  background: var(--t5-ink);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding-top: .6rem; padding-bottom: .6rem;
}
.t5-logo {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  font-weight: 800; font-size: 1rem; letter-spacing: .5px; color: #fff;
  background: linear-gradient(135deg, var(--t5-accent), var(--t5-accent-2));
  box-shadow: 0 6px 18px rgba(89,101,255,.35);
}
.t5-logo-sm { width: 32px; height: 32px; font-size: .85rem; border-radius: 9px; }
.t5-brand-name { color: #eef0fb; font-weight: 600; font-size: 1.05rem; }
.t5-nav-link {
  color: #c3c7e6; text-decoration: none; font-size: .92rem; font-weight: 500;
}
.t5-nav-link:hover { color: #fff; }
.t5-domain { font-family: var(--mono); font-size: .82rem; color: #aab0d4; text-decoration: none; }
.t5-domain:hover { color: #fff; }

/* ===== Hero главной ===== */
.t5-hero {
  background: linear-gradient(135deg, var(--t5-ink), var(--t5-ink-soft));
  color: #eef0fb; padding: 3rem 0 3.4rem; position: relative; overflow: hidden;
}
.t5-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(89,101,255,.35), transparent 70%);
}
.t5-hero-inner { position: relative; z-index: 1; }
.t5-date-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em;
  color: #b7bce0; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: .35rem .8rem; border-radius: 100px; margin-bottom: 1.1rem;
}
.t5-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #46e0a0;
  box-shadow: 0 0 0 0 rgba(70,224,160,.6); animation: t5pulse 2.2s infinite;
}
@keyframes t5pulse {
  0% { box-shadow: 0 0 0 0 rgba(70,224,160,.5); }
  70% { box-shadow: 0 0 0 9px rgba(70,224,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(70,224,160,0); }
}
.t5-hero-title {
  font-weight: 800; font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -.02em; line-height: 1.06; margin-bottom: .9rem;
}
.t5-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: #c7cbe8;
  max-width: 640px; margin-bottom: 1.4rem;
}
.t5-hero-intro {
  font-size: .96rem; color: #9aa0cc; max-width: 620px; line-height: 1.6;
}

/* ===== Featured (геро-карточки) ===== */
.t5-featured { margin-top: -2.2rem; position: relative; z-index: 3; }
.t5-feat-card {
  display: block; border-radius: 18px; overflow: hidden; height: 100%;
  text-decoration: none; color: #fff; position: relative;
  min-height: 230px; box-shadow: 0 18px 40px rgba(20,23,55,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.t5-feat-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(20,23,55,.28); }
.t5-feat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.t5-feat-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,17,48,.05) 30%, rgba(14,17,48,.92) 100%);
}
.t5-feat-body { position: relative; z-index: 2; padding: 1.3rem; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; }
.t5-feat-source {
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase;
  letter-spacing: .06em; color: #b9c0ff; margin-bottom: .4rem;
}
.t5-feat-title { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.t5-feat-big { min-height: 480px; }
.t5-feat-big .t5-feat-title { font-size: 1.5rem; }

/* ===== Секции ===== */
.t5-section { padding: 2.6rem 0 1rem; }
.t5-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.4rem; gap: 1rem;
}
.t5-section-title {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em;
  display: flex; align-items: center; gap: .6rem;
}
.t5-section-title::before {
  content: ""; width: 5px; height: 22px; border-radius: 3px;
  background: linear-gradient(var(--t5-accent), var(--t5-accent-2));
}
.t5-section-link { font-size: .88rem; font-weight: 600; color: var(--t5-accent); text-decoration: none; }
.t5-section-link:hover { text-decoration: underline; }

/* ===== Карточка новости ===== */
.t5-card {
  background: #fff; border: 1px solid var(--t5-line); border-radius: 16px;
  height: 100%; overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.t5-card:hover { transform: translateY(-4px); border-color: #d6d9ef; box-shadow: 0 16px 38px rgba(28,33,80,.13); }
.t5-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; width: 100%; height: 100%; }
.t5-thumb-wrap { position: relative; aspect-ratio: 16/9; background: #e9ebf6; overflow: hidden; }
.t5-thumb { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.t5-card:hover .t5-thumb { transform: scale(1.04); }
.t5-card .card-body { display: flex; flex-direction: column; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }
.t5-meta { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.t5-source {
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--t5-accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%;
}
.t5-date { font-family: var(--mono); font-size: .74rem; color: #9197b8; white-space: nowrap; }
.t5-title { font-size: 1.05rem; font-weight: 700; line-height: 1.34; color: var(--t5-text); margin-bottom: .5rem; }
.t5-summary { font-size: .9rem; line-height: 1.55; color: #565d7d; margin-bottom: .8rem; flex: 1; }
.t5-more { font-weight: 600; font-size: .85rem; color: var(--t5-accent); }

/* ===== Пагинатор ===== */
.t5-pager { margin: 2rem 0 1rem; }
.t5-pager .pagination { --bs-pagination-color: var(--t5-text); flex-wrap: wrap; gap: .25rem; }
.t5-pager .page-link {
  border: 1px solid var(--t5-line); border-radius: 10px; color: var(--t5-text);
  min-width: 42px; text-align: center; font-weight: 600;
}
.t5-pager .page-link:hover { background: #eceef9; color: var(--t5-text); }
.t5-pager .page-item.active .page-link { background: var(--t5-accent); border-color: var(--t5-accent); color: #fff; }
.t5-pager .page-item.disabled .page-link { color: #b7bbd2; background: #fff; }
.t5-pager-info { text-align: center; font-family: var(--mono); font-size: .78rem; color: var(--t5-muted); margin-top: .4rem; }

/* ===== Страница статьи ===== */
.t5-article { max-width: 760px; padding: 1.6rem 0 2rem; }
.t5-back {
  display: inline-flex; align-items: center; gap: .35rem; font-weight: 600;
  font-size: .88rem; color: var(--t5-accent); text-decoration: none; margin-bottom: 1.2rem;
}
.t5-back:hover { text-decoration: underline; }
.t5-article-meta {
  font-family: var(--mono); font-size: .78rem; color: var(--t5-muted);
  display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-bottom: .7rem;
}
.t5-article-meta .t5-source { max-width: none; }
.t5-article h1 {
  font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.2; letter-spacing: -.01em; margin-bottom: 1.1rem;
}
.t5-article-hero {
  width: 100%; border-radius: 16px; margin-bottom: 1.4rem;
  aspect-ratio: 16/9; object-fit: cover; background: #e9ebf6;
}
.t5-article-body p { font-size: 1.06rem; line-height: 1.72; color: #2b2f48; margin-bottom: 1.05rem; }
.t5-note {
  background: #eef0ff; border: 1px solid #d9ddff; border-left: 3px solid var(--t5-accent);
  border-radius: 12px; padding: .85rem 1.1rem; color: #3a3f66; font-size: .9rem; margin: 1.2rem 0;
}
.t5-source-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--t5-accent); color: #fff; border: none; border-radius: 11px;
  padding: .65rem 1.15rem; font-weight: 600; text-decoration: none; margin-top: .6rem;
}
.t5-source-btn:hover { background: #4753f0; color: #fff; }

/* ===== Подвал ===== */
.t5-footer { background: var(--t5-ink); color: #9aa0cc; padding: 2.6rem 0 1.6rem; margin-top: 3rem; }
.t5-footer-about { font-size: .88rem; line-height: 1.6; color: #9aa0cc; }
.t5-footer-h { color: #eef0fb; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.t5-footer-link { display: block; color: #9aa0cc; text-decoration: none; font-size: .9rem; margin-bottom: .5rem; }
.t5-footer-link:hover { color: #fff; }
.t5-footer-hr { border-color: rgba(255,255,255,.08); margin: 1.8rem 0 1.2rem; }
.t5-footer-copy { font-size: .85rem; }

/* ===== Статус ===== */
.t5-status { text-align: center; color: var(--t5-muted); padding: 3.5rem 1rem; }

:focus-visible { outline: 2px solid var(--t5-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .t5-card, .t5-thumb, .t5-pulse, .t5-feat-card { transition: none; animation: none; } }
