/* ===== Блог crocos.kz (Figma: «Блог / Desktop 1920 (сетка 1760)», 04.12.2026)
   Подключается после /assets/crocos2024/styles/cr-article.css. Всё внутри main.cr.cb, страницу статьи не трогает.
   На сайте шаблон стоит внутри .ch-wrap (1375 px): раскладка считается от ширины main (container queries). ===== */
.cr.cb{
  --cb-ink: #070A25; --cb-text: #3A4160; --cb-muted: #5B6180; --cb-subtle: #8F9CBB;
  --cb-accent: #0066FF; --cb-accent-soft: #E5EFFF; --cb-surface: #F7F9FF; --cb-ph: #EEF3FF; --cb-line: #E6EBF5;
  --cb-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --cb-container: 1760px; --cb-gutter: clamp(16px, 4.1667cqi, 80px);
  --cb-ease: cubic-bezier(.16, 1, .3, 1);
  container-type: inline-size;
  display: block; width: 100%; min-width: 0; padding: 0 0 clamp(64px, 6.25cqi, 120px);
  background: #fff; color: var(--cb-ink);
  font-family: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-variation-settings: 'CRSV' 1;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.cr.cb h1, .cr.cb h2, .cr.cb p{ margin: 0; }
.cr.cb a, .cr.cb a:hover{ color: inherit; text-decoration: none; }
.cr.cb img{ max-width: 100%; }
.cr.cb .cb-wrap{ width: min(var(--cb-container), 100% - 2 * var(--cb-gutter)); max-width: none; margin-inline: auto; padding: 0; }
.ch .cr.cb .cb-wrap{ width: 100%; }

/* --- крошки, заголовок --- */
.cr.cb .cr-crumbs{ padding-top: 40px; gap: 8px; color: var(--cb-subtle); font-size: 14px; line-height: 20px; }
.cr.cb .cr-crumbs a{ color: var(--cb-subtle); transition: color .2s; }
.cr.cb .cr-crumbs a:hover{ color: var(--cb-accent); }
.cr.cb .cr-crumbs [aria-current]{ color: var(--cb-ink); }
.cr.cb .cb-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: clamp(32px, 3.33cqi, 64px); }
.cr.cb .cb-h1{ flex: 1 1 auto; max-width: 1062px; font-size: clamp(34px, 3.75cqi, 72px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.cr.cb .cb-lead{ flex: 0 1 520px; color: var(--cb-text); font-size: clamp(16px, .9cqi + 2px, 19px); line-height: 1.53; }

/* --- рубрики --- */
.cr.cb .cb-cats{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 2.5cqi, 48px); padding: 0; list-style: none; }
.cr.cb .cb-cat{ display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 100px; background: var(--cb-surface); color: var(--cb-ink); font-size: 15px; line-height: 19px; white-space: nowrap; transition: background-color .2s, color .2s; }
.cr.cb .cb-cat:hover{ background: var(--cb-accent-soft); }
.cr.cb .cb-cat.is-active{ background: var(--cb-accent); color: #fff; }

/* --- метки, просмотры, автор --- */
.cr.cb .cb-chip{ display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 100px; background: var(--cb-surface); color: var(--cb-ink); font-size: 13px; line-height: 16px; white-space: nowrap; }
.cr.cb .cb-chip--main{ padding: 5px 10px; background: var(--cb-accent); color: #fff; }
.cr.cb .cb-views{ display: inline-flex; align-items: center; gap: 6px; color: var(--cb-subtle); font-size: 14px; line-height: 20px; white-space: nowrap; }
.cr.cb .cb-views svg{ width: 16px; height: 16px; flex: none; }
.cr.cb .cb-author{ display: flex; flex-direction: column; min-width: 0; }
.cr.cb .cb-author__n{ font-size: 15px; font-weight: 600; line-height: 23px; }
.cr.cb .cb-author__r{ color: var(--cb-subtle); font-size: 14px; line-height: 20px; }

/* --- главная статья --- */
.cr.cb .cb-feat{ display: flex; align-items: center; gap: 48px; margin-top: clamp(40px, 4.17cqi, 80px); color: var(--cb-ink); }
.cr.cb .cb-feat__img{ position: relative; flex: 0 1 1165px; min-width: 0; aspect-ratio: 1165 / 560; overflow: hidden; border-radius: 28px; background: var(--cb-ph); }
.cr.cb .cb-feat__img img, .cr.cb .cb-card__img img{ display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--cb-ease); }
.cr.cb .cb-feat:hover .cb-feat__img img{ transform: scale(1.03); }
.cr.cb .cb-feat__text{ flex: 0 0 547px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.cr.cb .cb-feat__top{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cr.cb .cb-feat__t{ font-size: clamp(26px, 1.875cqi, 36px); font-weight: 800; line-height: 1.06; letter-spacing: -.022em; transition: color .2s; }
.cr.cb .cb-feat:hover .cb-feat__t{ color: var(--cb-accent); }
.cr.cb .cb-feat__x{ color: var(--cb-muted); font-size: 17px; line-height: 26px; }
.cr.cb .cb-go{ display: inline-flex; margin-top: 12px; border-radius: 16px; }
.cr.cb .cb-go__a{ display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px 0 0 16px; background: var(--cb-accent); color: #fff; font-size: 18px; transition: width .3s var(--cb-ease); }
.cr.cb .cb-go__l{ display: flex; align-items: center; height: 56px; padding: 0 24px; border-radius: 0 16px 16px 0; background: var(--cb-ink); color: #fff; font-family: var(--cb-mono); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cr.cb .cb-feat:hover .cb-go__a{ width: 68px; }

/* --- сетка карточек --- */
.cr.cb .cb-grid{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 96px 40px; margin-top: 72px; }
.cr.cb .cb-card{ display: flex; flex-direction: column; gap: 16px; min-width: 0; color: var(--cb-ink); }
.cr.cb .cb-card__img{ display: block; aspect-ratio: 410 / 456; overflow: hidden; border-radius: 20px; background: var(--cb-ph); }
.cr.cb .cb-card:hover .cb-card__img img{ transform: scale(1.04); }
.cr.cb .cb-card__meta{ display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.cr.cb .cb-card__t{ font-size: clamp(20px, 1.25cqi, 24px); font-weight: 700; line-height: 1.25; letter-spacing: -.0125em; transition: color .2s; }
.cr.cb .cb-card:hover .cb-card__t{ color: var(--cb-accent); }
.cr.cb .cb-card__x{ color: var(--cb-muted); font-size: 15px; line-height: 23px; }
.cr.cb .cb-card__foot{ display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding: 16px 0; border-top: 1px solid var(--cb-line); }
.cr.cb .cb-read{ position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; padding-bottom: 6px; font-size: 16px; font-weight: 500; line-height: 22px; }
.cr.cb .cb-read::after{ content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cb-ink); transform-origin: left; transition: background-color .2s, transform .4s var(--cb-ease); }
.cr.cb .cb-read svg{ width: 16px; height: 16px; color: var(--cb-accent); transition: transform .3s var(--cb-ease); }
.cr.cb .cb-card:hover .cb-read::after{ background: var(--cb-accent); }
.cr.cb .cb-card:hover .cb-read svg{ transform: translate(2px, -2px); }
.cr.cb .cb-empty{ grid-column: 1 / -1; color: var(--cb-muted); }

/* --- пагинация (разметка pdoPage: nav.cr-pager > .cr-pager__item) --- */
.cr.cb .cb-nav:empty{ display: none; }
.cr.cb .cr-pager{ display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 72px; }
.cr.cb .cr-pager__item{ display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: 48px; padding: 0 8px; border: 1px solid var(--cb-line); border-radius: 12px; background: var(--cb-surface); color: var(--cb-ink); font-size: 16px; font-weight: 500; line-height: 22px; transition: border-color .2s, background-color .2s, color .2s; }
.cr.cb a.cr-pager__item:hover{ border-color: var(--cb-accent); color: var(--cb-accent); }
.cr.cb .cr-pager__item.is-active{ border-color: var(--cb-accent); background: var(--cb-accent); color: #fff; }
.cr.cb .cr-pager__skip{ border-color: transparent; background: none; }

/* --- CTA (как на страницах услуг) --- */
.cr.cb .cb-cta{ position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 80px; margin-top: 120px; padding: 80px; border-radius: 40px; background: linear-gradient(90deg, #0059F2 0%, #408CFF 100%); color: #fff; }
.cr.cb .cb-cta__rings{ position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.cr.cb .cb-cta__glow{ position: absolute; right: 13%; top: -87px; z-index: -1; width: 520px; height: 520px; border-radius: 50%; background: rgba(153, 204, 255, .45); filter: blur(70px); pointer-events: none; }
.cr.cb .cb-cta__field{ position: absolute; left: 0; top: 0; bottom: 0; z-index: -1; width: 48%; margin: 0; overflow: hidden; white-space: pre; color: #fff; opacity: .14; font-family: var(--cb-mono); font-size: 14px; font-weight: 500; line-height: 24px; letter-spacing: 10px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.cr.cb .cb-cta__field div{ animation: cb-rise 30s linear infinite; }
@keyframes cb-rise{ to{ transform: translateY(-50%); } }
.cr.cb .cb-cta__text{ flex: 0 1 1021px; display: flex; flex-direction: column; gap: 24px; }
.cr.cb .cb-cta__h{ font-size: clamp(30px, 1.56rem + 2.18cqi, 64px); font-weight: 800; line-height: 1; }
.cr.cb .cb-cta__lead{ color: rgba(255, 255, 255, .92); font-size: clamp(18px, 1rem + .38cqi, 24px); line-height: 1.4; }
.cr.cb .cb-cta__btns{ display: flex; flex: none; align-items: center; gap: 10px; margin-left: auto; }
.cr.cb .cb-btn{ display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 28px; border-radius: 16px; font-size: 16px; font-weight: 500; line-height: 1.25; white-space: nowrap; cursor: pointer; transition: background-color .2s, transform .2s; }
.cr.cb .cb-btn svg{ width: 20px; height: 20px; flex: none; }
.cr.cb .cb-btn--white{ background: #fff; color: var(--cb-ink); }
.cr.cb .cb-btn--white svg{ color: var(--cb-accent); }
.cr.cb .cb-btn--glass{ padding: 24px 40px; border: 1px solid var(--cb-accent-soft); background: #1F6BFF; color: #fff; font-size: 18px; backdrop-filter: blur(12px); }
.cr.cb .cb-btn:hover{ transform: translateY(-2px); }
.cr.cb .cb-btn--white:hover{ background: var(--cb-accent-soft); color: var(--cb-ink); }
.cr.cb .cb-btn--glass:hover{ background: #0059F2; color: #fff; }
.cr.cb :focus-visible{ outline: 2px solid var(--cb-accent); outline-offset: 3px; }

/* --- появление при прокрутке (cr-blog.js ставит .has-fx; без JS всё видно) --- */
.cr.cb.has-fx .cb-fx{ opacity: 0; transform: translateY(28px); transition: opacity .7s var(--cb-ease), transform .9s var(--cb-ease); transition-delay: calc(var(--d, 0) * 90ms); }
.cr.cb.has-fx .cb-fx.is-in{ opacity: 1; transform: none; }

/* --- адаптив: от ширины main --- */
@container (max-width: 1500px){
  .cr.cb .cb-grid{ gap: 72px 32px; }
  .cr.cb .cb-feat{ gap: 40px; }
  .cr.cb .cb-feat__text{ flex: 0 0 42%; }
}
/* на сайте main = 1375 px — 4 в ряд, как в макете; 3 в ряд только на узких ноутбуках */
@container (max-width: 1180px){
  .cr.cb .cb-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 1024px){
  .cr.cb .cb-head{ flex-direction: column; align-items: flex-start; gap: 20px; }
  .cr.cb .cb-lead{ flex: none; max-width: 640px; }
  .cr.cb .cb-feat{ flex-direction: column; align-items: stretch; gap: 28px; }
  .cr.cb .cb-feat__img{ flex: none; }
  .cr.cb .cb-feat__text{ flex: none; }
  .cr.cb .cb-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 24px; margin-top: 56px; }
  .cr.cb .cb-cta{ flex-direction: column; align-items: flex-start; gap: 40px; padding: 64px; }
  .cr.cb .cb-cta__text{ flex: none; }
  .cr.cb .cb-cta__btns{ margin-left: 0; }
  .cr.cb .cb-cta__field{ width: 100%; }
}
@container (max-width: 600px){
  .cr.cb .cr-crumbs{ padding-top: 24px; }
  .cr.cb .cb-cat{ padding: 10px 16px; font-size: 14px; }
  .cr.cb .cb-feat__img{ aspect-ratio: 4 / 3; border-radius: 20px; }
  .cr.cb .cb-grid{ grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .cr.cb .cb-card__img{ aspect-ratio: 4 / 3; }
  .cr.cb .cr-pager{ margin-top: 48px; }
  .cr.cb .cr-pager__item{ min-width: 42px; height: 42px; }
  .cr.cb .cb-cta{ margin-top: 72px; padding: 40px 24px; border-radius: 28px; }
  .cr.cb .cb-cta__btns{ flex-direction: column; align-items: stretch; width: 100%; }
  .cr.cb .cb-btn, .cr.cb .cb-btn--glass{ padding: 18px 20px; white-space: normal; text-align: center; }
  .cr.cb .cb-cta__glow{ right: -200px; }
}
@media (prefers-reduced-motion: reduce){
  .cr.cb *, .cr.cb *::before, .cr.cb *::after{ animation: none !important; transition: none !important; }
  .cr.cb.has-fx .cb-fx{ opacity: 1; transform: none; }
}
