:root {
  color-scheme: light;
  --bg: #f8f8f8;
  --paper: #ffffff;
  --ink: #0b0b0d;
  --muted: #5d5d63;
  --soft: #ededed;
  --line: #dedede;
  --red: #e51b20;
  --red-dark: #c41518;
  --blue: #229ed9;
  --radius: 5px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.wrap {
  width: min(1160px, calc(100% - 80px));
  margin: 0 auto;
}

/* ===== Шапка и подвал — копия core247.kz =====
   Разметка и правила повторяют сайт на Тильде: меню компьютера (#coremenu),
   мобильное меню Тильды (блок T280) и подвал. Числа — из стилей сайта, а не
   на глаз. Всё живёт под .c24-hdr / .c24-mob / .c24-ftr, чтобы не задеть блог.
   Внутри — условия Тильды: размер блока без учёта полей (content-box),
   нулевые отступы у div/p/a/img, картинки строчные. Без них те же правила
   дают другие размеры. */
:is(.c24-hdr, .c24-mob, .c24-ftr) {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: normal;
  color: #333;
}

:is(.c24-hdr, .c24-mob, .c24-ftr),
:is(.c24-hdr, .c24-mob, .c24-ftr) *,
:is(.c24-hdr, .c24-mob, .c24-ftr) *::before,
:is(.c24-hdr, .c24-mob, .c24-ftr) *::after {
  box-sizing: content-box;
}

:where(.c24-hdr, .c24-mob, .c24-ftr) :where(div, span, p, a, img, nav, footer, section, button) {
  margin: 0;
  padding: 0;
  border: 0;
}

:is(.c24-hdr, .c24-mob, .c24-ftr) img {
  display: inline;
  max-width: none;
}

/* --- Меню компьютера (от 1082px; уже — мобильное меню, как у сайта) --- */
.c24-hdr__nav {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* На ширине 1082–1104px скрытый список «Компания» выходит за правый край
     и давал горизонтальную прокрутку; вниз списки видны как прежде. */
  overflow-x: clip;
}

.c24-hdr .contant1170 {
  width: 1200px;
  display: flex;
  margin: auto;
  align-items: center;
  justify-content: space-between;
}

.c24-hdr .container-nav {
  max-width: 1200px;
  margin: 0 auto;
}

.c24-hdr .container-nav a {
  text-decoration: none;
  color: #464646;
}

.c24-hdr .logo {
  margin-left: 30px;
}

.c24-hdr .top-bar {
  background-color: #464646;
  color: white;
  justify-content: space-between;
  padding: 0.9em 2em 0.5em 2em;
  border-radius: 0 0 15px 15px;
  font-size: 16px;
  min-height: 30px;
  display: flex;
  position: relative;
  z-index: 99999;
  margin-bottom: -15px;
}

.c24-hdr .contact-info a,
.c24-hdr .login a {
  color: white !important;
  text-decoration: none;
}

.c24-hdr .contact-info a {
  padding-right: 5px;
  padding-left: 5px;
}

.c24-hdr .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0 0 0;
  background-color: #f8f8f8;
  color: #464646 !important;
  width: 100%;
  position: relative;
  transition: top 0.3s;
}

/* После 100px прокрутки меню прилипает к верху (скрипт в app.js). Место
   в потоке держит .navbar-slot, поэтому страница при этом не прыгает. */
.c24-hdr .navbar.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.c24-hdr nav a {
  color: #464646 !important;
}

.c24-hdr .menu-horizontal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.c24-hdr .menu-horizontal > li {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.c24-hdr .linkpadding {
  padding: 10px 20px;
}

.c24-hdr .links {
  height: 70px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  padding-right: 10px;
}

/* Место под стрелку. На сайте её картинка лежит на svgshare.com и не
   загружается (404), поэтому посетитель видит пустоту — повторяем пустоту. */
.c24-hdr .icon-dropdown {
  width: 10px;
  height: 10px;
  background-repeat: no-repeat;
  margin-left: 5px;
  margin-top: 4px;
}

.c24-hdr .submenu {
  position: absolute;
  left: 0;
  top: 100%;
  /* Прячем через display, а не только прозрачностью (как на сайте): иначе
     браузер тянет иконки пунктов с хранилища клиента на каждой странице.
     Проявление 0.3s сохраняют allow-discrete и @starting-style. */
  display: none;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease, display 0.3s allow-discrete;
  z-index: 1000;
  margin-top: 0.5em;
  padding: 0.5em 0 !important;
  background-color: #fff;
  min-width: 290px;
  border-radius: 5px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}

.c24-hdr .menu-horizontal > li:hover .submenu,
.c24-hdr .menu-horizontal > li:focus-within .submenu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .c24-hdr .menu-horizontal > li:hover .submenu,
  .c24-hdr .menu-horizontal > li:focus-within .submenu {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.c24-hdr .submenu li {
  white-space: nowrap;
  list-style-type: none;
}

.c24-hdr .submenu li a {
  padding: 5px;
  display: flex;
  align-items: center;
  color: #464646;
  text-decoration: none;
  width: 90%;
  margin: auto;
  border-radius: 5px;
}

.c24-hdr .submenu li a:hover {
  background-color: #f2f2f2;
}

.c24-hdr .extra-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.c24-hdr .extra-menu li {
  margin: 0 5px;
}

.c24-hdr .extra-menu li a {
  text-decoration: none;
  color: #464646;
  display: flex;
  align-items: center;
}

.c24-hdr .extra-menu li a:hover {
  text-decoration: underline;
}

.c24-hdr .redbtn_top {
  padding: 5px 20px !important;
  background-color: #e51b20 !important;
  border-radius: 10px;
  color: #fff !important;
  margin-left: 10px;
  margin-top: 2px;
}

/* «Услуги» и «Решения»: лист во всю ширину под шапкой. Открывает скрипт
   по наведению, отступ сверху — 150px, у прилипшего меню — 90px. */
.c24-hdr .menu {
  display: none;
  z-index: 9999;
}

.c24-hdr .menu.active {
  display: block;
}

.c24-hdr .full-menu,
.c24-hdr .full-product-menu {
  position: fixed;
  top: 150px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 20px;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}

.c24-hdr .services-menu,
.c24-hdr .product-menu {
  background-color: #fff;
  min-height: 585px;
  padding: 10px 0;
  margin: auto;
  width: 1175px;
}

.c24-hdr .tabs,
.c24-hdr .tabs-products {
  width: 100%;
  padding: 0;
  margin: 0 auto;
  position: relative;
}

.c24-hdr .tabs section,
.c24-hdr .tabs-products section {
  display: none;
  padding: 5px;
  background: white;
  position: absolute;
  top: 0;
  left: 220px;
  min-width: 250px;
  max-width: 915px;
  margin-left: 140px;
  animation: c24-scale 0.7s ease-in-out;
}

.c24-hdr .tabs input,
.c24-hdr .tabs-products input {
  display: none;
}

.c24-hdr .tabs label,
.c24-hdr .tabs-products label {
  display: block;
  width: 235px;
  padding: 9px 9px 9px 15px;
  color: #464646;
  background: #ffffff;
  cursor: pointer;
  margin: 0;
  font-size: 16px;
}

.c24-hdr .tabs input:checked + label,
.c24-hdr .tabs-products input:checked + label {
  color: #555;
  background: #f8f8f8;
  border-radius: 12px;
  font-weight: 600;
}

.c24-hdr .tabs a,
.c24-hdr .tabs-products a {
  text-decoration: none;
  color: #464646;
}

#c24-tab1:checked ~ #c24-content1,
#c24-tab2:checked ~ #c24-content2,
#c24-tab3:checked ~ #c24-content3,
#c24-tab4:checked ~ #c24-content4,
#c24-tab5:checked ~ #c24-content5,
#c24-tab6:checked ~ #c24-content6,
#c24-tab7:checked ~ #c24-content7,
#c24-tab8:checked ~ #c24-content8,
#c24-tab9:checked ~ #c24-content9,
#c24-tab-prod1:checked ~ #c24-content-prod1,
#c24-tab-prod2:checked ~ #c24-content-prod2,
#c24-tab-prod3:checked ~ #c24-content-prod3,
#c24-tab-prod4:checked ~ #c24-content-prod4,
#c24-tab-prod5:checked ~ #c24-content-prod5,
#c24-tab-prod6:checked ~ #c24-content-prod6 {
  display: block;
}

@keyframes c24-scale {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.005);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.c24-hdr .content_menu {
  display: flex;
  flex-wrap: wrap;
}

.c24-hdr .content_menu a {
  text-decoration: none;
  color: #464646 !important;
}

.c24-hdr .menu_fulltext {
  font-size: 24px;
  color: #464646;
  font-weight: 600;
  margin: 0;
}

.c24-hdr .menu_buttomtext {
  font-size: 14px;
  color: #464646;
  margin-bottom: 34px;
}

.c24-hdr .menu_item {
  background-color: #f8f8f8;
  border-radius: 12px;
  width: 350px;
  margin-right: 15px;
  margin-bottom: 15px;
  padding: 14px;
  min-height: 115px;
}

.c24-hdr .menu_item p {
  margin-top: 11px;
  font-size: 14px;
}

.c24-hdr .menu_item_top {
  display: flex;
  align-items: center;
}

.c24-hdr .menu_item_top p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.c24-hdr .menu_item_top img {
  padding-right: 10px;
}

.c24-hdr .menu-redbtn {
  padding: 14px 45px;
  background-color: #e51b20;
  border-radius: 13px;
  color: #fff !important;
}

.c24-hdr .menu-redbtn:hover {
  background-color: #a31012;
  transition: 0.3s;
}

.c24-hdr .redmsb {
  color: #e51b20 !important;
}

.c24-hdr .menu_item.menu_item--cta {
  background-color: #e51b20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 115px;
  cursor: pointer;
}

.c24-hdr .menu_item--cta .menu_item_top {
  justify-content: center;
  width: 100%;
}

.c24-hdr .menu_item--cta .menu_item_top p {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.c24-hdr .menu_item--cta .menu_item_top svg {
  margin-left: 10px;
  flex-shrink: 0;
}

.c24-hdr .content_menu a:hover .menu_item--cta {
  background-color: #c41518;
}

.c24-hdr .icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: #f2f2f2;
  margin-right: 10px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 5px;
  background-size: 60%;
}

.c24-hdr .icon-learning { background-image: url("https://storage.yandexcloud.net/core247-website-static/menu/new/menu-learning.svg"); }
.c24-hdr .icon-start { background-image: url("https://storage.yandexcloud.net/core247-website-static/menu/new/menu-start.svg"); }
.c24-hdr .icon-upgrade { background-image: url("https://storage.yandexcloud.net/core247-website-static/menu/new/devops.svg"); }
.c24-hdr .icon-kazdevops { background-image: url("https://storage.yandexcloud.net/core247-website-static/menu/new/KazDevOps.svg"); }
.c24-hdr .icon-cncf { background-image: url("https://storage.yandexcloud.net/core247-website-static/menu/cncf-men.svg"); }
.c24-hdr .icon-about { background-image: url("https://storage.yandexcloud.net/core247-website-static/menu/new/menu-about.svg"); }
.c24-hdr .icon-review { background-image: url("https://storage.yandexcloud.net/core247-website-static/menu/new/menu-review.svg"); }
.c24-hdr .icon-partner2 { background-image: url("https://storage.yandexcloud.net/core247-website-static/menu/new/menu-partner.svg"); }

/* --- Мобильное меню (до 1081px) — как блок T280 на сайте --- */
.c24-mob {
  display: none;
}

.c24-mob__bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0);
}

/* после 20px прокрутки подложка становится белой, как у сайта */
.c24-mob.is-scrolled .c24-mob__bar {
  background-color: #fff;
}

.c24-mob__logo {
  display: block;
  margin-right: auto;
  transition: opacity 0.2s ease-in-out;
}

.c24-mob__logo:hover {
  opacity: 0.8;
}

.c24-mob__logo img {
  display: block;
  height: 50px;
}

.c24-mob__burger {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  height: 20px;
  background: transparent;
  cursor: pointer;
}

.c24-mob__burger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #000;
  transition: 0.25s ease-in-out;
}

.c24-mob__burger span:nth-child(1) {
  top: 0;
}

.c24-mob__burger span:nth-child(2),
.c24-mob__burger span:nth-child(3) {
  top: 8px;
}

.c24-mob__burger span:nth-child(4) {
  top: 16px;
}

@media (hover: hover) {
  .c24-mob__burger:hover span:nth-child(1) {
    transform: translateY(1px);
  }

  .c24-mob__burger:hover span:nth-child(4) {
    transform: translateY(-1px);
  }
}

.c24-mob.is-open .c24-mob__bar {
  /* Замок прокрутки делает body контейнером для «липкой» шапки, и в середине
     страницы она уезжала за экран вместе с крестиком. Пока меню открыто —
     прибиваем полосу к экрану, как у Тильды. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ebebeb;
}

.c24-mob.is-open .c24-mob__burger span:nth-child(1),
.c24-mob.is-open .c24-mob__burger span:nth-child(4) {
  top: 8px;
  width: 0;
  left: 50%;
}

.c24-mob.is-open .c24-mob__burger span:nth-child(2) {
  transform: rotate(45deg);
}

.c24-mob.is-open .c24-mob__burger span:nth-child(3) {
  transform: rotate(-45deg);
}

.c24-mob__wrapper {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  overflow-y: auto;
  padding: 0 20px;
  background-color: #ebebeb;
}

.c24-mob.is-open .c24-mob__wrapper {
  display: block;
  animation: c24-fade 0.3s ease-in-out;
}

.c24-mob__menu {
  padding-top: 80px;
  text-align: center;
}

.c24-mob__list {
  list-style: none;
  margin: 0;
  padding: 20px 0;
}

.c24-mob__list > li + li {
  margin-top: 20px;
}

.c24-mob__link {
  display: block;
  width: 100%;
  background: none;
  font: 300 30px/1.17 "Manrope", sans-serif;
  color: #464646;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.c24-mob__sub {
  margin-top: 20px;
  padding: 3px 20px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  animation: c24-fade 0.2s ease-in-out;
}

.c24-mob__sub[hidden] {
  display: none;
}

.c24-mob__sub ul,
.c24-mob__soc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c24-mob__sub li + li {
  margin-top: 16px;
}

.c24-mob__sub a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #000;
  text-decoration: none;
}

.c24-mob__bottom {
  padding: 40px 0 20px;
}

.c24-mob__soc {
  margin-top: 20px;
}

.c24-mob__soc li {
  display: inline-block;
  /* 3px как у Тильды + половина пробела (3,2px), который у неё стоит между
     пунктами: шаг иконок тот же — 39,2px */
  margin: 0 4.6px;
}

@keyframes c24-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* пока открыто меню, страница под ним не прокручивается */
html.c24-lock,
html.c24-lock body {
  overflow: hidden;
}

@media (max-width: 1081px) {
  .c24-hdr {
    display: none;
  }

  .c24-mob {
    display: block;
    position: sticky;
    top: 0;
    z-index: 990;
    height: 80px;
  }
}

/* --- Подвал --- */
.c24-ftr {
  background-color: #272727;
  margin-top: 40px;
}

.c24-ftr .footer {
  color: white;
  display: flex;
  justify-content: space-between;
  padding: 30px;
  font-family: "Manrope", sans-serif;
  border-radius: 5px 5px 0 0;
}

.c24-ftr .footer div {
  flex: 1;
}

.c24-ftr .footer a {
  color: white !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 5px;
}

.c24-ftr .footer a:hover {
  color: #c5c5c5 !important;
  transition: 0.5s;
}

.c24-ftr .footer .navigation {
  display: flex;
  flex-direction: column;
}

.c24-ftr .contact {
  font-weight: 600;
}

.c24-ftr .contact-icons a {
  padding-right: 10px;
}

.c24-ftr .contact-icons {
  display: flex;
  flex-wrap: wrap;
  width: 150px !important;
}

.c24-ftr .address,
.c24-ftr .contact {
  margin-bottom: 10px;
}

.c24-ftr .address-title,
.c24-ftr .contact {
  padding-bottom: 10px;
}

.c24-ftr .reviews a {
  height: 50px !important;
}

.c24-ftr .reviews {
  padding-left: 20px;
}

.c24-ftr .cluth {
  height: 55px;
}

.c24-ftr .tlf {
  height: 40px;
  padding-top: 5px;
  padding-bottom: 10px;
}

.c24-ftr .cncf {
  height: 35px;
}

@media (max-width: 500px) {
  .c24-ftr .footer {
    flex-wrap: wrap;
    padding-bottom: 100px;
  }

  .c24-ftr .conctact_div {
    min-width: 100%;
  }

  .c24-ftr .address_div {
    min-width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .c24-ftr .reviews {
    min-width: 100%;
    padding-left: 0;
    flex-direction: column;
    display: flex;
  }

  .c24-ftr .tlf {
    height: 50px;
  }

  .c24-ftr .cncf {
    padding-top: 10px;
  }

  .c24-ftr .contact-icons img {
    width: 48px;
  }

  .c24-ftr .footer a {
    padding-bottom: 10px;
  }

  .c24-ftr .contact-icons {
    width: 60% !important;
  }
}

@media (min-width: 980px) {
  .c24-ftr .footer {
    max-width: 1200px;
    margin: auto;
    max-height: 300px;
  }
}

.app {
  min-height: 58vh;
}

.hero {
  padding: 104px 0 48px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 34px;
  color: #151515;
  font-size: 16px;
}

.breadcrumbs a:hover {
  color: var(--red);
}

.hero h1,
.article h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 78px auto 48px;
}

.filter {
  min-height: 36px;
  border: 1px solid #101010;
  border-radius: 999px;
  background: transparent;
  color: #111;
  padding: 0 20px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.filter:hover,
.filter.is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 84px 39px;
  padding-bottom: 96px;
}

.post-card {
  display: block;
  min-width: 0;
}

.post-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #171717;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Плашка рубрики поверх обложки — как в ленте на core247.kz. */
.post-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card:hover .post-card__image img {
  transform: scale(1.035);
}

.post-card h2 {
  margin: 22px 0 9px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

.post-card p {
  margin: 0;
  color: #4d4d4d;
  font-size: 15px;
  line-height: 1.52;
}

.post-card time {
  display: block;
  margin-top: 15px;
  color: #828282;
  font-size: 12px;
}

.empty-state,
.error-state {
  width: min(720px, 100%);
  margin: 42px auto 120px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 30px;
  text-align: center;
}

.empty-state h2,
.error-state h2 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.2;
}

.empty-state p,
.error-state p {
  margin: 0;
  color: var(--muted);
}

.article {
  padding: 62px 0 40px;
}

.article__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 26px;
  color: #606060;
  font-size: 14px;
}

.article__preview-badge {
  border: 1px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.article__dek {
  width: min(760px, 100%);
  margin: 24px auto 0;
  color: #454545;
  text-align: center;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.article__author {
  width: min(760px, 100%);
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.article__author-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 16px;
}

.article__author-title {
  color: #8a8a8a;
  font-size: 14px;
}

.article__cover {
  position: relative;
  width: min(920px, 100%);
  margin: 56px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #171717;
}

.article__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #171717;
}

.article__body {
  width: min(760px, 100%);
  margin: 58px auto 0;
  color: #1c1c1f;
  font-size: 18px;
  line-height: 1.78;
}

.article__body blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--red);
  color: #2b2b2f;
  font-size: 20px;
  line-height: 1.6;
}

.article__body blockquote p {
  margin: 0;
}

.article__body .article-video {
  position: relative;
  margin: 28px 0;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.article__body .article-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Картинки в тексте: бэкенд рисует их как figure.article-media, подпись —
   alt картинки. Без своих правил браузер ставил отступ 40px слева и набирал
   подпись шрифтом основного текста. */
.article__body figure {
  margin: 28px 0;
}

.article__body figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Картинка статьи крупно — по нажатию (app.js). Поверх всего, включая шапку. */
.article__body img:not(a img, .article-cta img) {
  cursor: zoom-in;
}

.c24-zoom {
  position: fixed;
  /* не inset: его не знает Safari до 14.1 — слой остался бы без размеров */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  background: rgba(11, 11, 13, 0.95);
  cursor: zoom-out;
}

.c24-zoom[hidden] {
  display: none;
}

.c24-zoom__scroll {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: auto;
  padding: 60px 24px 16px;
}

/* margin: auto ставит картинку по центру, а когда она шире экрана — не даёт
   обрезать её слева: прокрутка начинается с левого края. Белая подложка —
   для графиков с прозрачным фоном. */
.c24-zoom__img {
  margin: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  background: #fff;
}

.c24-zoom__caption {
  margin: 0;
  padding: 0 24px 20px;
  color: #d6d6da;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.c24-zoom__caption:empty {
  display: none;
}

.c24-zoom__close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* пока картинка открыта, страница под ней не прокручивается */
html.c24-zoom-lock,
html.c24-zoom-lock body {
  overflow: hidden;
}

/* На телефоне «во весь экран» почти ничего не прибавляет: показываем картинку
   в её настоящую ширину (не шире 1000px) и даём листать пальцем. */
@media (max-width: 640px) {
  .c24-zoom__scroll {
    padding: 60px 12px 12px;
  }

  .c24-zoom__img {
    flex: none;
    width: min(var(--c24-zoom-width, 100%), 1000px);
    max-width: none;
    max-height: none;
  }
}

.article__body h2,
.article__body h3 {
  margin: 44px 0 14px;
  line-height: 1.22;
  font-weight: 800;
  /* переход по оглавлению: заголовок не должен уехать под липкую шапку
     (прилипшее меню — 90px, на телефоне 80px) */
  scroll-margin-top: 110px;
}

.article__body h2 {
  font-size: 30px;
}

.article__body h3 {
  font-size: 24px;
}

.article__body p {
  margin: 0 0 20px;
}

.article__body ul,
.article__body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.article__body li + li {
  margin-top: 8px;
}

.article__body a {
  color: var(--red);
  border-bottom: 1px solid rgba(217, 39, 46, 0.35);
}

.article__body blockquote {
  margin: 34px 0;
  border-left: 4px solid var(--red);
  padding: 4px 0 4px 22px;
  color: #3d3d42;
  font-weight: 600;
}

.article-table-wrap {
  width: min(920px, calc(100vw - 64px));
  margin: 34px 0;
  margin-left: 50%;
  overflow-x: auto;
  border-top: 1px solid rgba(23, 23, 23, 0.14);
  border-bottom: 1px solid rgba(23, 23, 23, 0.14);
  transform: translateX(-50%);
}

.article__body table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: #1c1c1f;
  font-size: 16px;
  line-height: 1.45;
}

.article__body th,
.article__body td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  text-align: left;
  vertical-align: top;
}

.article__body th {
  background: #f5f5f5;
  color: #141416;
  font-weight: 800;
}

.article__body tr:last-child td {
  border-bottom: 0;
}

.article__body pre {
  margin: 0 0 24px;
  padding: 18px 20px;
  overflow-x: auto;
  background: #0d1117;
  color: #c9d1d9;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.article__body pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.article__body code {
  padding: 2px 6px;
  background: rgba(23, 23, 23, 0.07);
  border-radius: 5px;
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.article-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: clamp(24px, 4vw, 56px);
  width: min(1080px, calc(100vw - 64px));
  margin: 46px 0;
  margin-left: 50%;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 120px 100%,
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 86px,
    var(--red);
  color: #fff;
  padding: clamp(26px, 4vw, 46px);
  transform: translateX(-50%);
}

.article-cta--footer {
  margin-top: 38px;
  margin-bottom: 8px;
}

.article-cta__content {
  min-width: 0;
  align-self: center;
}

.article-cta__label {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-cta h2,
.article__body .article-cta h2 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0;
}

.article-cta p,
.article__body .article-cta p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.45;
}

.article-cta__button,
.article__body .article-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 28px;
  border: 0;
  border-radius: 10px;
  background: #000;
  color: #fff;
  padding: 0 34px;
  font-size: 18px;
  font-weight: 800;
  transition: transform 0.16s ease, background 0.16s ease;
}

.article-cta__button:hover {
  background: #171717;
  transform: translateY(-1px);
}

.article-cta__visual {
  position: relative;
  align-self: center;
  justify-self: center;
  display: grid;
  width: min(220px, 100%);
  aspect-ratio: 1 / 1;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 38%, transparent 39%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0 58%, transparent 59%),
    conic-gradient(from 0deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.32));
}

.article-cta__visual::before {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 18px;
  background: #4767e8;
  transform: rotate(8deg);
}

.article-cta__visual span {
  position: relative;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0;
}

.article-cta__visual--art {
  background: none;
}

.article-cta__visual--art::before {
  display: none;
}

.article-cta__art {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 220px;
}

.article__sources {
  width: min(760px, 100%);
  margin: 40px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.article__sources h2,
.related h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.article__sources a {
  display: block;
  color: var(--red);
  word-break: break-word;
}

.article__sources a + a {
  margin-top: 10px;
}

.article__back {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  /* По центру статьи: ширина по содержимому плюс поля auto по бокам. */
  width: fit-content;
  margin: 40px auto 0;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 0 18px;
  transition: background 0.16s ease, color 0.16s ease;
}

.article__back:hover {
  background: #000;
  color: #fff;
}

.related {
  width: min(1160px, calc(100% - 80px));
  margin: 0 auto 100px;
}

.related .blog-grid {
  padding-bottom: 0;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 39px;
  margin-top: 78px;
}

.skeleton-grid div {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #ececec, #f7f7f7, #ececec);
  background-size: 240% 100%;
  animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
  to {
    background-position: -240% 0;
  }
}

@media (max-width: 960px) {
  .wrap,
  .related {
    width: min(100% - 40px, 720px);
  }

  .hero {
    padding-top: 70px;
  }

  .filters {
    margin-top: 48px;
  }

  .blog-grid,
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 58px 28px;
  }

  .article-cta {
    grid-template-columns: minmax(0, 1fr) 150px;
    width: min(100vw - 40px, 720px);
    padding: 30px;
  }

  .article-cta__visual {
    width: 148px;
  }
}

@media (max-width: 640px) {
  .wrap,
  .related {
    width: min(100% - 28px, 520px);
  }

  .hero {
    padding: 48px 0 30px;
  }

  .article-cta {
    grid-template-columns: 1fr;
    width: min(100vw - 28px, 520px);
    gap: 24px;
    border-radius: 10px;
    padding: 24px;
  }

  .article-cta__visual {
    justify-self: start;
    width: 118px;
  }

  .article-cta__button,
  .article__body .article-cta__button {
    width: 100%;
    min-height: 54px;
    padding: 0 20px;
    font-size: 16px;
  }

  .breadcrumbs {
    margin-bottom: 26px;
    font-size: 14px;
  }

  .hero h1,
  .article h1 {
    /* На телефоне фиксированные 40px разворачивали длинный заголовок в стену
       текста — размер тянется от ширины экрана. Длинные технические слова
       (pg_dump) переносим, иначе строка выпирает за край. */
    font-size: clamp(25px, 6.8vw, 38px);
    line-height: 1.14;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    margin: 38px -14px 34px;
    padding: 0 14px 4px;
  }

  .filter {
    flex: 0 0 auto;
  }

  .blog-grid,
  .skeleton-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .post-card h2 {
    font-size: 23px;
  }

  .article {
    padding-top: 46px;
  }

  .article__dek {
    font-size: 18px;
  }

  .article__cover {
    margin-top: 38px;
    aspect-ratio: 16 / 9;
  }

  .article__body {
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.72;
  }

  .article__body h2 {
    font-size: 25px;
  }

}

/* Карточка автора — как на прежней площадке: фото, должность, биография, ссылки. */
.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 26px 0 34px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.author-card__photo {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  object-fit: cover;
}

.author-card__name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.author-card__title {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.author-card__bio {
  margin: 8px 0 0;
  color: #4a4a50;
  font-size: 14px;
  line-height: 1.5;
}

.author-card__links {
  margin: 10px 0 0;
  font-size: 14px;
}

.author-card__links a {
  color: var(--red);
}

.author-card__links a:hover {
  text-decoration: underline;
}

.author-card__sep {
  margin: 0 8px;
  color: var(--line);
}

@media (max-width: 640px) {
  .author-card {
    flex-direction: column;
  }
}

/* Отступ якоря оглавления под шапку: на планшете и телефоне она ниже. */
@media (max-width: 1081px) {
  .article__body h2,
  .article__body h3 {
    scroll-margin-top: 100px;
  }
}

/* Уведомление о cookie — как на прежней площадке: сообщение и крестик,
   выбор запоминаем, чтобы не мозолило глаза на каждой статье. */
.cookie-note {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 400px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  color: #14161a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-note[hidden] {
  display: none;
}

.cookie-note p {
  margin: 0;
}

.cookie-note a {
  color: inherit;
  text-decoration: underline;
}

.cookie-note__close {
  flex: none;
  border: 0;
  background: none;
  padding: 0 2px;
  font-size: 18px;
  line-height: 1;
  color: #14161a;
  cursor: pointer;
}

@media (max-width: 600px) {
  .cookie-note {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }
}
