/* Страница «Новости» */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 20px; padding-bottom: 14px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); font-weight: 600; }
.crumbs a:hover { color: var(--accent-h); }

.blog-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 40px; align-items: end; padding: 52px 48px 40px; border-radius: 30px; border: 1px solid var(--line); background: radial-gradient(55% 90% at 0% 0%, #DCEBFF, rgba(220, 235, 255, 0) 70%), radial-gradient(45% 80% at 100% 0%, #EAF3FF, rgba(234, 243, 255, 0) 70%), var(--card); }
.bh-orn { position: absolute; right: -30px; top: -14px; width: 220px; opacity: .2; pointer-events: none; }
.bh-text { position: relative; display: grid; gap: 18px; justify-items: start; }
.blog-hero h1 { max-width: 16ch; font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
.blog-hero .lead { max-width: 54ch; font-size: 17.5px; color: var(--text); }
.bh-stats { position: relative; display: grid; grid-template-columns: repeat(2, 150px); }
.bh-stats div { padding: 4px 22px; }
.bh-stats div + div { border-left: 1px solid var(--line); }
.bh-stats b { display: block; font-size: 38px; font-weight: 700; line-height: 1; color: var(--accent-h); font-variant-numeric: tabular-nums; }
.bh-stats span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.bh-chips { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.chip-f { display: grid; gap: 2px; padding: 11px 14px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .75); text-align: left; font: 700 14px/1.25 var(--font); color: var(--ink); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.chip-f small { font-size: 12px; font-weight: 600; color: var(--muted); }
.chip-f:hover { background: #fff; transform: translateY(-2px); }
.chip-f.on { background: var(--accent); color: #fff; }
.chip-f.on small { color: #fff; }

/* Карточки статей */
.post-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.post-tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); font-size: 12.5px; font-weight: 700; color: #0B4AA2; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.post-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }
.draft-note { position: relative; z-index: 3; align-self: flex-start; padding: 4px 9px; border-radius: 999px; background: #fff2cc; color: #6b4b00; font-size: 11px; font-weight: 700; }

.featured { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; margin-bottom: 12px; }
.ft-art { display: grid; place-items: center; padding: 22px 30px; background: linear-gradient(180deg, #F4F9FF, #FFFFFF); border-right: 1px solid var(--line); }
.ft-art .iso { width: 100%; max-width: 470px; height: auto; }
.ft-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.ft-body h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.ft-body p { color: var(--text); max-width: 54ch; }
.read-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--accent-h); }
.read-more .ic { width: 18px; height: 18px; transition: transform .2s ease; }
.featured:hover .read-more .ic { transform: translateX(4px); }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.post { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.post-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--chip); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post:hover .post-img img { transform: scale(1.05); }
.post-body { flex: 1; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.post h3 { font-size: 18px; font-weight: 700; line-height: 1.3; transition: color .2s ease; }
.post:hover h3, .featured:hover h2 { color: var(--accent-h); }
.post p { font-size: 14.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post .post-meta { margin-top: auto; padding-top: 6px; }
.post[hidden], .featured[hidden] { display: none; }

.ask { position: relative; overflow: hidden; border-radius: 26px; padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(150deg, #DCEBFF 0%, #CDE3FF 100%); border-color: var(--accent-soft-2); }
.ask-orn { position: absolute; right: -20px; top: -10px; width: 150px; opacity: .45; pointer-events: none; }
.ask h3 { position: relative; font-size: 24px; font-weight: 600; line-height: 1.25; max-width: 14ch; }
.ask p { position: relative; color: var(--text); font-size: 15px; }
.ask .phone-form { position: relative; margin-top: auto; flex-direction: column; align-items: stretch; border-radius: 20px; padding: 8px; border: 0; box-shadow: none; }
.ask .phone-form input { height: 46px; text-align: center; }
.ask .phone-form .btn { width: 100%; }
.empty-note { padding: 40px 0; text-align: center; color: var(--muted); }

@media (max-width: 1120px) {
  .bh-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .blog-hero { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .ft-art { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .blog-hero { padding: 34px 18px 22px; }
  .blog-hero h1 { font-size: 32px; }
  .bh-stats { grid-template-columns: 1fr 1fr; }
  .bh-chips { display: flex; overflow-x: auto; margin-left: -18px; margin-right: -18px; padding: 0 18px 4px; scrollbar-width: none; }
  .bh-chips::-webkit-scrollbar { display: none; }
  .chip-f { flex: none; }
  .ft-body { padding: 24px 22px; }
  .posts { grid-template-columns: 1fr; }
}
#posts { padding-top: 40px; }
