/* Главная: материал дня, рубрики, дедлайны конкурсов (cn3-plus) */
body .cn3x-hero { margin: 1.2rem auto 1rem; }
.cn3x-hero__card { position: relative; display: block; min-height: clamp(300px, 42vw, 520px); border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; background: var(--greyBg); isolation: isolate; }
.cn3x-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.cn3x-hero__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 50%, transparent 85%); }
.cn3x-hero__card:hover .cn3x-hero__img { transform: scale(1.02); }
.cn3x-hero__body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; max-width: 880px; padding: clamp(18px, 3vw, 36px); }
.cn3x-hero__kicker { font-size: var(--t-label, .65rem); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.cn3x-hero__title { font-size: var(--t-display, clamp(2rem, 4.6vw, 3.2rem)); line-height: 1.12; font-weight: var(--bold, 600); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cn3x-hero__lead { font-size: var(--t-body, 1rem); line-height: 1.45; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cn3x-hero__card:focus-visible { outline: 2px solid var(--hoverColor, currentColor); outline-offset: 3px; }

body .cn3x-topics { margin: 0 auto 1.2rem; }
.cn3x-topics__row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cn3x-topics__row::-webkit-scrollbar { display: none; }
.cn3x-chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--borderColor); border-radius: 999px; color: var(--mainColor); font-size: var(--t-ui, .88rem); text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.cn3x-chip:hover { background: var(--mainColor); border-color: var(--mainColor); color: var(--bodyBg, #fff); text-decoration: none; }

body .cn3x-deadlines { margin: 2.4rem auto; }
.cn3x-deadlines__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.cn3x-deadlines .cn3x-section-title { margin: 0; }
.cn3x-deadlines__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cn3x-dl { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px 18px; border: 1px solid var(--borderColor); border-radius: 14px; color: var(--mainColor); text-decoration: none; transition: border-color .15s, transform .15s; }
.cn3x-dl:hover { border-color: var(--mainColor); transform: translateY(-2px); }
.cn3x-dl__when { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-meta, .78rem); font-weight: var(--medium, 500); color: var(--cn3Muted, var(--greyColor)); }
.cn3x-dl__when svg { width: 14px; height: 14px; fill: none; stroke: currentColor; }
.cn3x-dl__when.is-soon { color: #c2410c; }
html:root[data-theme="dark"] .cn3x-dl__when.is-soon { color: #fb923c; }
.cn3x-dl__title { font-size: var(--t-card, .95rem); line-height: 1.35; font-weight: var(--medium, 500); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cn3x-dl__date { margin-top: auto; font-size: var(--t-meta, .78rem); color: var(--cn3Muted, var(--greyColor)); }
@media (max-width: 700px) {
  .cn3x-hero__card { min-height: 360px; border-radius: 14px; }
  .cn3x-topics__row { margin-inline: calc(var(--gutter, 16px) * -1); padding-inline: var(--gutter, 16px); }
}
@media (hover: none) { .cn3x-hero__card:hover .cn3x-hero__img, .cn3x-dl:hover { transform: none; } }

/* Журнал: свежие выпуски, обложки 3:4 */
body .cn3x-journals { margin: 2.4rem auto; }
.cn3x-journals__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.cn3x-journals .cn3x-section-title { margin: 0; }
.cn3x-journals__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.cn3x-jr { display: flex; flex-direction: column; gap: 10px; color: var(--mainColor); text-decoration: none; }
.cn3x-jr__cover { display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--greyBg); box-shadow: 0 6px 18px rgba(0,0,0,.12); transition: transform .2s, box-shadow .2s; }
.cn3x-jr__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cn3x-jr:hover .cn3x-jr__cover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.cn3x-jr:focus-visible { outline: 2px solid var(--hoverColor, currentColor); outline-offset: 3px; }
.cn3x-jr__title { font-size: var(--t-card, .95rem); font-weight: var(--medium, 500); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .cn3x-journals__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (hover: none) { .cn3x-jr:hover .cn3x-jr__cover { transform: none; } }
