/* ============================================================
   Брендбук · концепция 02 — «Потоки»
   По бренд-буку 2025: Inter + Raleway, только синяя палитра
   (navy #19286d · гос-синий #0068b4 · cyan #00a6ca · стальной #296695).
   Тёмный navy-фасад с тремя потоками знака, восемь операторских
   функций нумерованным списком, реальные показатели с диаграммой.
   Контент — с действующего fincenter.kz.
   ============================================================ */

:root {
  --navy: #19286d;
  --navy-deep: #111c52;
  --gov-blue: #0068b4;
  --cyan: #00a6ca;
  --steel: #296695;
  --ink: #17203a;
  --muted: #5a6780;
  --line: #d7e0ec;
  --bg: #f5f8fc;
  --shell: 1180px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Raleway", var(--sans);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header.is-stuck { box-shadow: 0 2px 16px rgba(25, 40, 109, 0.1); }

.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 66px;
}

.logo img { width: 172px; height: auto; }

.nav { display: flex; gap: 2px; margin-left: auto; }

.nav a {
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--gov-blue); border-bottom-color: var(--cyan); }

.header-tools { display: flex; align-items: center; gap: 14px; }

.header-lang { font-size: 13.5px; font-weight: 600; color: var(--steel); }
.header-lang:hover { color: var(--gov-blue); }

.btn-lk {
  padding: 9px 18px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.btn-lk:hover { background: var(--gov-blue); }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.menu-btn span { height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: sticky;
  top: 66px;
  z-index: 49;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.drawer-inner { display: flex; flex-direction: column; padding-block: 12px 20px; }
.drawer-inner > a { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.drawer-meta { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- Hero: navy-фасад с потоками знака ---------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding-block: 72px 64px;
  overflow: hidden;
}

.hero-streams {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Три потока знака: одна толщина, один наклон */
.hero-streams span {
  position: absolute;
  top: -20%;
  height: 140%;
  width: 120px;
  transform: skewX(-22deg);
}

.hero-streams span:nth-child(1) { right: 26%; background: rgba(0, 104, 180, 0.35); }
.hero-streams span:nth-child(2) { right: 14%; background: rgba(0, 166, 202, 0.28); }
.hero-streams span:nth-child(3) { right: 2%; background: rgba(41, 102, 149, 0.4); }

.hero .shell { position: relative; }

.hero-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 20px;
  font-size: 14.5px;
  font-weight: 600;
}

.hero-brand span {
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.hero h1 {
  font-family: var(--head);
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 21ch;
}

.hero-lead {
  margin-top: 18px;
  max-width: 56ch;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn-solid {
  padding: 13px 26px;
  background: var(--cyan);
  color: #06264a;
  font-weight: 700;
  font-size: 15px;
  transition: filter 0.15s ease;
}

.btn-solid:hover { filter: brightness(1.08); }

.btn-line {
  padding: 13px 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* Сводка фактов внизу hero */

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  max-width: 900px;
}

.hero-facts dd {
  font-family: var(--head);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-facts dd em { font-style: normal; font-size: 0.55em; font-weight: 700; color: var(--cyan); }

.hero-facts dt {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 26ch;
}

/* ---------- Заголовки секций ---------- */

section { padding-block: 60px; }

.sect-head { margin-bottom: 32px; max-width: 560px; }

.sect-head h2 {
  font-family: var(--head);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.sect-head p { margin-top: 10px; font-size: 15px; color: var(--muted); }

.sect-head--row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  max-width: none;
}

.more-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gov-blue);
  white-space: nowrap;
}

.sect-head--row .more-link { margin-top: 0; }

.more-link:hover { text-decoration: underline; }

/* ---------- Восемь функций ---------- */

.functions { border-bottom: 1px solid var(--line); }

.fn-list {
  list-style: none;
  counter-reset: fn;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
}

.fn-list li {
  counter-increment: fn;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0 18px 64px;
  border-top: 1px solid var(--line);
}

.fn-list li::before {
  content: "0" counter(fn);
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--head);
  font-size: 22px;
  font-weight: 800;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.fn-list strong { font-size: 16.5px; font-weight: 700; color: var(--navy); }

.fn-list span { font-size: 14px; color: var(--muted); }

/* ---------- Результаты: диаграмма ---------- */

.results { background: var(--bg); border-bottom: 1px solid var(--line); }

.results-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: start;
}

.results .sect-head { margin-bottom: 0; }

.results .sect-head strong { color: var(--gov-blue); font-weight: 600; }

.chart-row { margin-bottom: 22px; }

.chart-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.chart-year {
  font-family: var(--head);
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.chart-note { font-size: 13px; color: var(--muted); text-align: right; }

.chart-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 5px;
}

.chart-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, var(--gov-blue), var(--cyan));
}

.chart-bar b {
  font-family: var(--head);
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.chart-src { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* ---------- Аудитории ---------- */

.audiences { border-bottom: 1px solid var(--line); }

.aud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.aud-grid a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 22px 30px;
  border-right: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.15s ease;
}

.aud-grid a:last-child { border-right: 0; }

/* Поток знака появляется при наведении */
.aud-grid a::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -20%;
  height: 140%;
  width: 26px;
  background: var(--cyan);
  transform: skewX(-22deg);
  opacity: 0;
  transition: opacity 0.15s ease, right 0.15s ease;
}

.aud-grid a:hover { background: var(--bg); }
.aud-grid a:hover::after { opacity: 1; right: 10px; }

.aud-grid strong {
  font-family: var(--head);
  font-size: 19px;
  font-weight: 800;
  color: var(--navy);
}

.aud-grid span { font-size: 13.5px; color: var(--muted); max-width: 24ch; }

/* ---------- Новости ---------- */

.news-list { list-style: none; border-top: 1px solid var(--line); }

.news-list li { border-bottom: 1px solid var(--line); }

.news-list a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding-block: 17px;
  align-items: baseline;
}

.news-list time { font-size: 13px; color: var(--steel); font-variant-numeric: tabular-nums; }

.news-list span {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.news-list a:hover span { color: var(--gov-blue); }

/* ---------- Контакт ---------- */

.contact {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.contact::after {
  content: "";
  position: absolute;
  right: 6%;
  top: -20%;
  height: 140%;
  width: 90px;
  background: rgba(0, 166, 202, 0.16);
  transform: skewX(-22deg);
  pointer-events: none;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}

.contact h2 { font-family: var(--head); font-size: 24px; font-weight: 800; }

.contact p { margin-top: 6px; max-width: 52ch; font-size: 14.5px; color: rgba(255, 255, 255, 0.75); }

.contact-side { text-align: right; flex-shrink: 0; }

.contact-phone {
  font-family: var(--head);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.contact-phone:hover { color: var(--cyan); }

.contact-links {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.contact-links a { color: var(--cyan); }
.contact-links a:hover { text-decoration: underline; }

/* ---------- Футер ---------- */

.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-block: 48px 40px;
}

.footer-col { display: flex; flex-direction: column; gap: 9px; }

.footer-col h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
}

.footer-social { display: flex; gap: 16px; }
.footer-social a:hover { color: #fff; }

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
  .results-grid { grid-template-columns: 1fr; gap: 36px; }
  .aud-grid { grid-template-columns: 1fr 1fr; }
  .aud-grid a:nth-child(2n) { border-right: 0; }
  .aud-grid a:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .header-lang { display: none; }
}

@media (max-width: 720px) {
  section { padding-block: 46px; }
  .hero { padding-block: 52px 48px; }

  .hero-streams span { width: 60px; }
  .hero-streams span:nth-child(1) { right: 18%; }
  .hero-streams span:nth-child(2) { right: 8%; }
  .hero-streams span:nth-child(3) { right: -2%; }

  .hero-facts { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }

  .fn-list { grid-template-columns: 1fr; column-gap: 0; }

  .aud-grid { grid-template-columns: 1fr; }
  .aud-grid a { border-right: 0; border-bottom: 1px solid var(--line); }
  .aud-grid a:last-child { border-bottom: 0; }

  .news-list a { grid-template-columns: 1fr; gap: 4px; }

  .contact-row { flex-direction: column; align-items: flex-start; }
  .contact-side { text-align: left; }
  .contact-links { justify-content: flex-start; }

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

  .btn-lk { display: none; }
}
