/* Блог /company/blog/ — список и деталка по articles.html / article.html */

.articles-page {
  --sand: #f3efe8;
  color: var(--ink);
}

.articles-page .crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 18px;
}
.articles-page .crumbs a:hover,
.articles-page .crumbs a:focus { color: var(--blue); }
.articles-page .crumbs b {
  color: var(--ink);
  font-weight: 600;
  white-space: normal;
  overflow: visible;
  max-width: none;
}

.articles-page .page-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brown); margin-bottom: 10px;
}
.articles-page .page-lead {
  margin-top: 14px; color: var(--muted); font-size: 16px; font-weight: 500;
  line-height: 1.55; max-width: 46ch;
}
.articles-page .page-cta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px;
}

.page-hero.art-list-hero { padding: 40px 0 12px; }
.page-hero.art-list-hero .art-list-intro { max-width: 720px; }
.page-hero.art-list-hero h1 {
  max-width: 14ch;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
}

#featured { padding: 28px 0 12px; }
.feat {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 0;
  border-radius: 28px; overflow: hidden;
  background: #fff; border: 1px solid #e4d8c4;
  box-shadow: 0 16px 36px rgba(140,110,60,.08);
  text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(140,110,60,.14); }
.feat-visual {
  position: relative; min-height: 340px;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(52,180,217,.18), transparent 60%),
    linear-gradient(160deg, #10232b 0%, #1a3a45 55%, #0e4a5c 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.feat-visual img {
  width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0;
  transition: transform .45s ease;
}
.feat:hover .feat-visual img { transform: scale(1.04); }
.feat-visual .badge {
  position: absolute; left: 22px; top: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.feat-body {
  padding: 36px 34px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, #fbf7f1 0%, #fff 100%);
}
.feat-body .when { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.feat-body .tag {
  display: inline-flex; align-self: flex-start;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
  background: #eef9fc; color: var(--blue-2); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.feat-body h2 {
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 12px;
}
.feat-body p { color: var(--muted); font-weight: 500; max-width: 42ch; line-height: 1.55; }
.feat-body .go {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2);
}
.feat-body .go i { display: inline-block; transition: transform .2s; font-style: normal; }
.feat:hover .go i { transform: translateX(6px); }

#feed { padding: 12px 0 56px; }
.feed-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.feed-head .page-kicker { margin-bottom: 8px; }
.feed-head h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em;
}
.feed-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.feed-filters button {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: 600 13px/1 Montserrat, sans-serif; color: var(--muted); cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s, color .15s;
}
.feed-filters button:hover { transform: translateY(-1px); border-color: #cfeaf3; color: var(--ink); }
.feed-filters button.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }

.art-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.art-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .22s ease, border-color .22s, box-shadow .22s;
  isolation: isolate;
}
.art-card[hidden] { display: none !important; }
.art-card:hover {
  transform: translateY(-4px);
  border-color: #cfeaf3;
  box-shadow: 0 16px 32px rgba(52,180,217,.12);
}
.art-card .thumb {
  position: relative; aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #e8f6fb 0%, #f3efe8 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.art-card .thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.art-card:hover .thumb img { transform: scale(1.04); }
.art-card .thumb .n {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  padding: 5px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--brown);
  background: rgba(255,255,255,.88);
}
.art-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.art-card time { font-size: 12px; font-weight: 600; color: var(--muted); }
.art-card .tag {
  display: inline-flex; align-self: flex-start; margin-top: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--sand); color: #8a6d3b; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.art-card h3 { margin-top: 12px; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }
.art-card p { margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.5; flex: 1; }
.art-card .more {
  margin-top: 16px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-2);
}
.art-filter-empty { margin-top: 12px; color: var(--muted); font-weight: 500; }

.art-cta {
  margin-top: 40px; padding: 36px 40px;
  display: grid; grid-template-columns: 1.2fr auto; gap: 24px; align-items: center;
  border-radius: 28px;
  background: linear-gradient(135deg, #10232b 0%, #1a3a45 60%, #0e4a5c 100%);
  color: #fff; box-shadow: 0 18px 40px rgba(16,35,43,.2);
}
.art-cta .page-kicker { color: rgba(232,195,106,.95); margin-bottom: 8px; }
.art-cta h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 8px;
  color: #fff;
}
.art-cta p { color: rgba(255,255,255,.78); font-weight: 500; max-width: 48ch; }
.art-cta .btn,
.art-cta a.btn {
  background: #fff; border-color: #fff; color: #10232b;
}
.art-cta .btn:hover,
.art-cta a.btn:hover {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
/* Как в articles.html: btn-blue на тёмном CTA остаётся синим */
.art-cta .btn.btn-blue,
.art-cta a.btn.btn-blue {
  background: var(--blue); border-color: var(--blue); color: #fff;
}
.art-cta .btn.btn-blue:hover,
.art-cta a.btn.btn-blue:hover {
  background: var(--blue); border-color: var(--blue); color: #fff;
}

/* —— Detail —— */
.page-hero.art-single { padding: 40px 0 20px; }
.page-hero.art-single .wrap { max-width: 1080px; }
.page-hero.art-single h1 {
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
  max-width: none;
  width: 100%;
}
.page-hero.art-single .page-lead { max-width: none; }
.art-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.art-meta .tag {
  display: inline-flex; padding: 5px 12px; border-radius: 999px;
  background: #eef9fc; color: var(--blue-2); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.art-meta time,
.art-meta > span:not(.tag) {
  font-size: 13px; font-weight: 600; color: var(--muted);
}

.art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 0 64px;
}
/* С содержанием — две колонки; без него класс не ставим, отступ под TOC не резервируем */
.art-layout:has(.art-toc) {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
}

.articles-page .prose {
  font-size: 16px; font-weight: 500; line-height: 1.65; color: #2a2a2a;
}
.articles-page .prose > .art-cover {
  float: left; width: min(46%, 280px); margin: 0 22px 12px 0;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 28px rgba(16,35,43,.12);
}
.articles-page .prose > .art-cover img {
  width: 100%; height: auto; display: block;
  transition: transform .45s ease;
  cursor: zoom-in;
}
.articles-page .prose > .art-cover:hover img { transform: scale(1.04); }
.articles-page .prose > .art-cover + * { margin-top: 0; }
.articles-page .prose h2 {
  clear: both;
  display: block; width: 100%; max-width: none;
  margin: 1.4em 0 .6em;
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em;
  color: var(--ink);
}
.articles-page .prose h3 {
  margin: 1.2em 0 .5em; font-size: 18px; font-weight: 700; color: var(--ink);
}
.articles-page .prose p { margin: 0 0 1em; }
/*
 * Aspro: ul > li::before { content:"—" } — в статьях маркеры точками, как в брендах/портфолио.
 */
.articles-page .prose ul,
.articles-page .prose ol {
  /* Не затягивать пункты под float обложки */
  clear: both;
  margin: 0 0 1em;
  padding: 0;
  list-style: none !important;
}
.articles-page .prose ul > li,
.articles-page .prose ol > li {
  position: relative;
  margin: .35em 0;
  padding-left: 18px;
  list-style: none !important;
}
.articles-page .prose ul > li::before,
.articles-page .prose ul:not([id*="bx_"]) > li::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 0;
  top: calc((1.65em - 5px) / 2);
  width: 5px;
  height: 5px;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: #3a3a3a !important;
  box-shadow: none !important;
  transform: none;
}
.articles-page .prose ol { counter-reset: art-ol; }
.articles-page .prose ol > li { counter-increment: art-ol; }
.articles-page .prose ol > li::before {
  content: counter(art-ol) "." !important;
  display: block !important;
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  color: #3a3a3a !important;
  font-weight: 600;
  font-size: inherit !important;
  line-height: 1.65 !important;
  transform: none;
}
.articles-page .prose a { color: var(--blue-2); font-weight: 600; text-decoration: underline; }
.articles-page .prose img {
  max-width: 100%; height: auto; border-radius: 14px;
  cursor: zoom-in;
  transition: transform .35s ease, box-shadow .35s ease;
}
.articles-page .prose > p img,
.articles-page .prose > figure:not(.art-cover) img {
  display: block;
}
.articles-page .prose figure:not(.art-cover) {
  overflow: hidden;
  border-radius: 14px;
}
.articles-page .prose figure { margin: 1.2em 0; }
.articles-page .prose figcaption {
  margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 500;
}
/* Lightbox картинок статьи */
.articles-page .art-lb {
  position: fixed; inset: 0; z-index: 1200;
  display: none; align-items: center; justify-content: center;
  background: rgba(10, 18, 22, .88); padding: 24px;
  cursor: zoom-out;
}
.articles-page .art-lb.is-open { display: flex; }
.articles-page .art-lb-inner {
  position: relative; max-width: min(1100px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  cursor: default;
}
.articles-page .art-lb-inner img {
  max-width: 100%; max-height: calc(100vh - 120px);
  object-fit: contain; border-radius: 10px; cursor: default;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
}
.articles-page .art-lb-close,
.articles-page .art-lb-prev,
.articles-page .art-lb-next {
  position: absolute; border: 0; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 28px; line-height: 1; display: grid; place-items: center;
  backdrop-filter: blur(6px);
}
.articles-page .art-lb-close { top: -8px; right: -8px; font-size: 32px; }
.articles-page .art-lb-prev,
.articles-page .art-lb-next { top: 50%; transform: translateY(-50%); }
.articles-page .art-lb-prev { left: -58px; }
.articles-page .art-lb-next { right: -58px; }
.articles-page .art-lb-close:hover,
.articles-page .art-lb-prev:hover,
.articles-page .art-lb-next:hover { background: rgba(255, 255, 255, .28); }
.articles-page .art-lb-count {
  color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 600; letter-spacing: .04em;
}
@media (max-width: 820px) {
  .articles-page .art-lb-prev { left: 4px; }
  .articles-page .art-lb-next { right: 4px; }
  .articles-page .art-lb-close { top: 8px; right: 8px; position: fixed; }
}

.art-related {
  margin-top: 48px; padding: 28px 0 0; border-top: 1px solid #ebe4d8;
}
.art-related .rel-head {
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.art-related .rel-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brown);
}
.art-related .rel-title {
  margin: 4px 0 0; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; color: var(--ink);
}
.art-related .rel-all {
  font-size: 14px; font-weight: 700; color: var(--blue-2); text-decoration: none;
}
.art-related .rel-all:hover { text-decoration: underline; }
.art-related .rel-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto; gap: 14px;
}
.art-related .rel-card {
  display: grid; grid-template-rows: 168px auto;
  border-radius: 22px; overflow: hidden; text-decoration: none;
  background: #fff; border: 1px solid #ebe4d8; color: var(--ink);
  box-shadow: 0 10px 24px rgba(140,110,60,.06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.art-related .rel-card:hover {
  transform: translateY(-4px); border-color: #cfeaf3;
  box-shadow: 0 16px 32px rgba(52,180,217,.14);
}
.art-related .rel-card:first-child { grid-row: span 2; grid-template-rows: 1fr auto; min-height: 100%; }
.art-related .rel-card:first-child .rel-visual { min-height: 240px; }
.art-related .rel-card:not(:first-child) {
  grid-template-columns: 132px 1fr; grid-template-rows: auto;
}
.art-related .rel-visual {
  display: block; background: #10232b; overflow: hidden; min-height: 0;
}
.art-related .rel-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.art-related .rel-card:hover .rel-visual img { transform: scale(1.05); }
.art-related .rel-body {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px;
}
.art-related .rel-tag {
  align-self: flex-start; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-2); background: #e8f7fb; padding: 4px 9px; border-radius: 999px;
}
.art-related .rel-card strong {
  font-size: 16px; line-height: 1.3; font-weight: 800;
}
.art-related .rel-lead {
  font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--muted);
}
.art-related .rel-more {
  margin-top: auto; padding-top: 8px;
  font-size: 13px; font-weight: 800; color: var(--blue-2);
}

.art-band {
  margin-top: 28px; padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #10232b 0%, #1a3a45 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.art-band p { margin: 0; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.86); max-width: 40ch; }
.art-band .btn,
.art-band a.btn {
  background: #fff !important; border-color: #fff !important; color: #10232b !important;
}
.art-band .btn:hover,
.art-band a.btn:hover {
  background: var(--blue) !important; border-color: var(--blue) !important; color: #fff !important;
}

.art-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 36px 0 48px; padding-top: 24px; border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .feat { grid-template-columns: 1fr; }
  .feat-visual { min-height: 220px; }
  .art-grid { grid-template-columns: 1fr 1fr; }
  .art-cta { grid-template-columns: 1fr; }
  .page-hero.art-list-hero h1,
  .page-hero.art-single h1 { max-width: none; }
  .art-related .rel-grid { grid-template-columns: 1fr; }
  .art-related .rel-card:first-child { grid-row: auto; }
  .art-related .rel-card:not(:first-child) { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .art-grid { grid-template-columns: 1fr; }
  .feat-body { padding: 24px 20px; }
  .art-cta { padding: 28px 22px; }
  .articles-page .prose > .art-cover {
    float: none; width: 100%; max-width: none; margin: 0 0 16px;
    aspect-ratio: 16 / 10;
  }
  .articles-page .prose > .art-cover img { height: 100%; object-fit: cover; }
}
