:root {
  --blue: #2e8bd6;
  --blue-deep: #1552b8;
  --blue-soft: #dceffb;
  --blue-pale: #eef7fd;
  --orange: #ff9b12;
  --orange-soft: #ffe0aa;
  --ink: #1a1a18;
  --muted: #56616f;
  --cream: #f2efe8;
  --paper: #fbfcff;
  --line: rgba(26, 26, 24, 0.12);
  --shadow: 0 22px 70px rgba(12, 30, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 16px 40px;
  background: rgba(251, 252, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: 0 10px 30px rgba(21, 82, 184, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: none;
}

.brand strong,
.footer-brand strong {
  color: #111111;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-block;
  border-radius: 50%;
  background: url("assets/depesh-favicon-circle.svg") center / cover no-repeat, var(--blue);
  flex: 0 0 auto;
}

/* Логотип в шапке — как в дашборде, в 2 раза крупнее (круг + чёрный «Depesh») */
.site-header .brand-mark {
  width: 72px;
  height: 72px;
}
.site-header .brand strong {
  font-size: 40px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand span {
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 8px;
  color: #27435c;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--blue-soft);
  outline: none;
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 132px 40px 76px;
  background: #195dc2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 47, 111, 0.88) 0%, rgba(22, 86, 190, 0.62) 38%, rgba(22, 86, 190, 0.08) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(251, 252, 255, 0.96) 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero h1 {
  font-size: 42px;
  font-weight: 900;
}

.hero-lead {
  max-width: 610px;
  margin: 18px 0 0;
  font-size: 17px;
  font-weight: 600;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

.button-primary {
  background: var(--orange);
  color: #271500;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 28px;
}

.status-panel {
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(22, 64, 118, 0.08);
}

.status-kicker,
.tag {
  display: inline-flex;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 850;
}

.status-panel strong {
  display: block;
  margin-top: 10px;
  color: var(--blue-deep);
  font-size: 52px;
  line-height: 1;
}

.status-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(300px, 1fr);
  column-gap: 52px;
  row-gap: 18px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin: 0;
}

.section h2 {
  font-size: 29px;
  font-weight: 900;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.material-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 18px;
}

.material-card {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.material-card-featured {
  min-height: 620px;
}

.cover {
  position: relative;
  display: flex;
  min-height: 320px;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.cover::before,
.cover::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.cover::before {
  width: 300px;
  height: 300px;
  right: -94px;
  bottom: -96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
}

.cover::after {
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 14px);
}

.cover-guide {
  background: var(--blue-deep);
}

.cover-event {
  background: #2f5fca;
}

.cover-report {
  background: #114156;
}

.cover-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.cover strong {
  max-width: 330px;
  font-size: 38px;
  line-height: 1.04;
}

.cover span:last-child {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  font-weight: 750;
}

.card-body {
  min-height: 220px;
  padding: 24px;
}

.card-body h3 {
  margin: 12px 0 10px;
  font-size: 24px;
  line-height: 1.18;
}

.card-body p {
  margin: 0;
  color: var(--muted);
}

.event-band {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 52px;
  padding: 76px max(24px, calc((100vw - 1180px) / 2));
  background: var(--blue-pale);
}

.event-copy {
  max-width: 480px;
}

.event-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-list article {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px 20px;
  align-items: start;
  min-height: 112px;
  padding: 22px;
  border: 1px solid rgba(46, 139, 214, 0.2);
  border-radius: 8px;
  background: #fff;
}

.event-list time {
  color: var(--orange);
  font-weight: 900;
}

.event-list h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.event-list span {
  grid-column: 2;
  color: var(--muted);
}

.test-site-band {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 58px max(24px, calc((100vw - 1180px) / 2));
  background: #102436;
  color: #fff;
}

.test-site-band p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.test-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.button-light {
  background: #fff;
  color: var(--blue-deep);
}

.desk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.desk-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(22, 64, 118, 0.08);
}

.desk-grid span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.desk-grid h3 {
  margin: 54px 0 10px;
  font-size: 24px;
  line-height: 1.16;
}

.desk-grid p {
  margin: 0;
  color: var(--muted);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: pipeline;
}

.pipeline li {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pipeline span {
  color: var(--orange);
  font-size: 28px;
  font-weight: 900;
}

.pipeline h3 {
  margin: 42px 0 10px;
  font-size: 24px;
}

.pipeline p {
  margin: 0;
  color: var(--muted);
}

.adapter-band {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(340px, 1.2fr);
  gap: 44px;
  padding: 76px max(24px, calc((100vw - 1180px) / 2));
  background: #fff;
}

.adapter-band h2 {
  max-width: 520px;
}

.adapter-band p {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.adapter-list {
  display: grid;
  gap: 14px;
}

.adapter-list article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 112px;
  padding: 22px;
  border: 1px solid rgba(46, 139, 214, 0.22);
  border-radius: 8px;
  background: var(--blue-pale);
}

.adapter-list strong {
  color: var(--blue-deep);
  font-size: 18px;
}

.adapter-list span {
  color: var(--muted);
}

.safety-band {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: start;
  padding: 76px max(24px, calc((100vw - 1180px) / 2));
  background: #102436;
  color: #fff;
}

.safety-band p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  background: var(--cream);
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer address {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-style: normal;
}

.site-footer a {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 850;
  text-decoration: none;
}

.site-footer address a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.foot-ic {
  flex: 0 0 auto;
  display: inline-block;
}

@media (max-width: 920px) {
  .site-header {
    position: sticky;
    padding: 12px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding: 72px 24px 58px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(15, 47, 111, 0.92), rgba(22, 86, 190, 0.58)),
      linear-gradient(180deg, rgba(0, 0, 0, 0) 70%, rgba(251, 252, 255, 0.96) 100%);
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 19px;
  }

  .intro-grid,
  .material-grid,
  .desk-grid,
  .pipeline,
  .test-site-band,
  .event-band,
  .adapter-band,
  .safety-band,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .material-card,
  .material-card-featured {
    min-height: 0;
  }

  .cover {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .brand strong,
  .footer-brand strong {
    font-size: 18px;
  }

  .nav-links a {
    padding: 7px 9px;
    font-size: 13px;
  }

  .hero {
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 32px, 1180px);
    padding: 56px 0;
  }

  .section h2 {
    font-size: 34px;
  }

  .cover strong {
    font-size: 31px;
  }

  .event-list article {
    grid-template-columns: 1fr;
  }

  .event-list span {
    grid-column: auto;
  }

  .test-actions {
    justify-content: flex-start;
  }

  .adapter-list article {
    grid-template-columns: 1fr;
  }

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

  .site-footer address {
    justify-content: flex-start;
  }
}

/* Info button (i) в голубом кружке + модал о системе */
.info-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #7fc0ee;
  color: #0d2233;
  font-size: 20px;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  flex: 0 0 auto;
}
.info-btn:hover {
  background: #5aa9e0;
}
.info-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 16, 30, 0.72);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.info-modal-overlay.open {
  display: flex;
}
.info-modal {
  background: #141a22;
  border: 1px solid #263041;
  border-radius: 14px;
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 28px 32px;
  color: #e6edf3;
  font-size: 13px;
  line-height: 1.7;
  position: relative;
}
.info-modal h2 {
  color: #7fc0ee;
  font-size: 18px;
  margin: 0 0 12px;
}
.info-modal h3 {
  color: #7fc0ee;
  font-size: 14px;
  margin: 18px 0 6px;
  border-bottom: 1px solid #263041;
  padding-bottom: 4px;
}
.info-modal p {
  margin: 0 0 8px;
}
.info-modal table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.info-modal th,
.info-modal td {
  text-align: left;
  padding: 5px 8px;
  border-bottom: 1px solid #263041;
  font-size: 12px;
  vertical-align: top;
}
.info-modal th {
  color: #7fc0ee;
}
.info-modal .info-meta {
  margin-top: 16px;
  color: #8b949e;
  font-size: 11px;
}
.info-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: 0;
  color: #e6edf3;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* ============ v2: лента + рубрики + новый хедер ============ */
.site-header{position:sticky;top:0;flex-wrap:wrap;gap:12px 18px;min-height:auto;padding:12px 28px}
.brand{align-items:center;gap:12px}
.site-header .brand-mark{width:52px;height:52px}
.brand-word{display:inline-flex;align-items:center;gap:8px}
.site-header .brand strong{font-size:26px}
.brand-word>span{padding-left:8px;border-left:1px solid var(--line);color:var(--blue-deep);font-weight:700;font-size:18px}
.clock{align-self:center;font-variant-numeric:tabular-nums;color:var(--muted);font-size:14px;white-space:nowrap}
.rubric-nav{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.rubric-nav a{padding:7px 13px;border:1px solid var(--blue-soft);border-radius:999px;background:#fff;color:var(--blue-deep);font-weight:700;font-size:13px;text-decoration:none}
.rubric-nav a:hover{background:var(--blue-soft)}
.nav-links{margin-left:auto;gap:14px;font-size:14px}

.layout{display:grid;grid-template-columns:340px 1fr;gap:24px;max-width:1340px;margin:0;padding:22px 28px 64px;align-items:start}
.feed{position:sticky;top:92px;max-height:calc(100vh - 120px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.feed-title{margin:0 0 10px;font-size:16px}
.feed-list{list-style:none;margin:0;padding:0}
.feed-item{padding:9px 0;border-bottom:1px solid var(--line);cursor:pointer;display:flex;flex-direction:column;gap:2px}
.feed-item:last-child{border-bottom:0}
.feed-item:hover .feed-h{color:var(--blue-deep)}
.feed-date{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.feed-h{font-size:13px;line-height:1.35;font-weight:650}
.feed-r{font-size:11px;color:var(--blue)}

.content .hero{min-height:auto;padding:30px 34px;border-radius:14px;display:block;overflow:hidden}
.content .hero::after{display:none}
.hero-content{color:#fff;max-width:none}
.hero-content .hero-lead{color:rgba(255,255,255,.92)}

.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.pub-card{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden;cursor:pointer;transition:transform .12s,box-shadow .12s}
.pub-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.pub-cover{height:120px;position:relative;display:flex;flex-direction:column;justify-content:flex-end;padding:12px;color:#fff}
.pub-cover strong{font-size:15px}
.pub-cover .pub-logo{position:absolute;top:10px;left:12px;font-family:Georgia,serif;font-style:italic;font-weight:700;opacity:.92}
.pub-culture{background:linear-gradient(135deg,#7b3fe4,#b06ab3)}
.pub-sport{background:linear-gradient(135deg,#1552b8,#2e8bd6)}
.pub-home{background:linear-gradient(135deg,#e0862f,#f0b429)}
.pub-travel{background:linear-gradient(135deg,#1b9e77,#3fb9a5)}
.pub-body{padding:12px 14px}
.pub-body h3{margin:6px 0;font-size:16px;line-height:1.25;color:var(--ink)}
.pub-body p{margin:0;color:var(--muted);font-size:13px}
.rubric-head{padding:6px 0 4px}
.rubric-head .button{align-self:flex-start;margin-bottom:8px}
.empty{color:var(--muted);padding:24px;text-align:center}

@media (max-width:960px){
  .layout{grid-template-columns:1fr;padding:16px 18px 48px}
  .feed{position:static;max-height:320px}
  .card-grid{grid-template-columns:1fr}
  .nav-links{margin-left:0}
  .rubric-nav{width:100%}
}

/* ==== правки хедера (v3): плотность, рубрики-кнопки, часы, Today, адаптив ==== */
.site-header{align-items:center;gap:12px 16px}
/* Depesh / Today / часы — по одной горизонтальной оси */
.brand,.brand-word,.clock{align-self:center}
.brand-word{align-items:center}
.brand-word>span{font-size:21px}            /* Today +15% */
.clock{font-size:13px;font-weight:600;color:#8a8f98} /* -10%, полужирный, серый */
/* правая навигация — плотнее */
.nav-links{gap:6px}
.nav-links a{min-height:32px;padding:6px 9px;font-size:13px}
/* рубрики — тонкий брендовый контур, лёгкий фон при наведении, свободнее */
.rubric-nav{gap:12px}
.rubric-nav a{border:1px solid var(--blue);color:var(--blue-deep);background:transparent;font-weight:700}
.rubric-nav a:hover{background:var(--blue-soft)}

/* v4: блок рубрик — между часами и ссылками (сдвинут вправо, ссылки следом) */
.rubric-nav{margin-left:auto}
.nav-links{margin-left:20px}

/* ==== адаптивность ==== */
@media (max-width:1200px){
  .nav-links{gap:5px}
  .nav-links a{padding:5px 8px;font-size:12px}
}
@media (max-width:960px){
  .site-header{padding:10px 18px;gap:10px 12px}
  .site-header .brand-mark{width:46px;height:46px}
  .site-header .brand strong{font-size:24px}
  .brand-word>span{font-size:19px}
  .rubric-nav a{padding:6px 11px;font-size:12px}
}
@media (max-width:640px){
  .site-header{padding:8px 12px}
  .site-header .brand-mark{width:40px;height:40px}
  .site-header .brand strong{font-size:21px}
  .brand-word>span{font-size:17px}
  .clock{width:100%;order:5;font-size:12px}
  .rubric-nav{width:100%;order:6;justify-content:center}
  .nav-links{width:100%;order:7;justify-content:center;flex-wrap:wrap}
  .layout{padding:14px 12px 40px}
  .content .hero{padding:22px 18px}
  .hero h1{font-size:32px}
  .hero-lead{font-size:16px}
  .section h2{font-size:24px}
  .section-heading{grid-template-columns:1fr}
}

/* Пайплайн/Desk: колонки шире, текст переносится (не влезал) */
.desk-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}
.desk-grid article{min-width:0;min-height:auto;padding:20px}
.desk-grid h3{margin:14px 0 8px;font-size:20px}
.desk-grid p{overflow-wrap:anywhere}
/* v5: пайплайн 01–06 в одну строку, компактные карточки */
.pipeline{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.pipeline li{min-width:0;min-height:auto;padding:13px 12px}
.pipeline span{font-size:18px}
.pipeline h3{margin:8px 0 5px;font-size:13.5px;line-height:1.2}
.pipeline p{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
@media (max-width:1080px){ .pipeline{grid-template-columns:repeat(3,1fr)} }
@media (max-width:760px){ .desk-grid,.pipeline{grid-template-columns:1fr} }
