:root {
  --navy: #071b3f;
  --navy-2: #0b2d68;
  --blue: #0878f9;
  --cyan: #1ebcff;
  --teal: #078b82;
  --purple: #6846ce;
  --orange: #ec641b;
  --ink: #0b2556;
  --muted: #5f7191;
  --soft: #f5f9ff;
  --line: #dce7f6;
  --shadow: 0 18px 55px rgba(18, 57, 111, .12);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 2000; padding: .7rem 1rem; background: #fff; color: var(--ink); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.section-pad { padding: 6rem 0; }
.bg-soft { background: var(--soft); }
.page-title { margin-top: 74px; padding: 2rem 0; }
.page-title.light-background { background: var(--soft); }
.page-title .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 .5rem; font-size: .9rem; color: var(--muted); }
.page-title .breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--muted); }
.page-title .breadcrumbs a { color: var(--blue); text-decoration: none; }
.page-title .breadcrumbs a:hover { text-decoration: underline; }
.page-title .breadcrumbs .current { color: var(--ink); font-weight: 600; }
.page-title h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-heading { max-width: 740px; }
.section-kicker { display: inline-block; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .65rem; }
.section-kicker.light { color: #9fe5ff; }
h2 { font-weight: 800; letter-spacing: -.03em; }
.section-heading h2, section h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.section-intro, .section-heading p { color: var(--muted); font-size: 1.08rem; max-width: 700px; }
.btn { border-radius: .7rem; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #0878f9, #0062df); border-color: transparent; box-shadow: 0 8px 24px rgba(8, 120, 249, .23); }
.btn-success { background: linear-gradient(135deg, #078b82, #00766e); border-color: transparent; }
.btn-violet { color: #fff; background: linear-gradient(135deg, #7153d9, #5635bf); border: 0; }
.btn-violet:hover, .btn-orange:hover { color: #fff; }
.btn-orange { color: #fff; background: linear-gradient(135deg, #f37a25, #d95710); border: 0; }

/* Navigation */
.navbar { min-height: 74px; }
.navbar-brand { margin-right: 1rem; }
.brand-group { display: flex; align-items: center; gap: .9rem; color: var(--ink); }
.brand { display: flex; align-items: center; gap: .5rem; line-height: 1; }
.brand i { font-size: 2.15rem; color: #0856ba; }
.brand b { display: block; font-size: 1.3rem; letter-spacing: -.03em; }
.brand small { display: block; margin-top: .25rem; font-size: .45rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #59729d; }
.brand-asp i { color: #0878f9; }
.brand-divider { height: 34px; width: 1px; background: #acc0dd; }
.navbar .nav-link { position: relative; color: var(--ink); font-size: .82rem; font-weight: 600; padding: 1.65rem .6rem; white-space: nowrap; }
.navbar .nav-link::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .85rem; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--blue); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.btn-icon { padding: .45rem .6rem; font-size: 1.15rem; color: var(--ink); }
.offcanvas { max-width: 330px; }
.mobile-nav .nav-link { padding: .75rem 0; color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }

/* Hero */
.hero { min-height: 650px; margin-top: 74px; color: #fff; background-image: linear-gradient(90deg, rgba(4, 20, 49, .98) 0%, rgba(4, 25, 60, .82) 32%, rgba(4, 25, 60, .05) 64%), url("../images/hero-kazakhstan-science.webp"); background-size: cover; background-position: center; position: relative; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 38% 48%, rgba(20, 142, 255, .13), transparent 36%); }
.hero-copy { padding: 4.5rem 0; text-shadow: 0 2px 22px rgba(0, 0, 0, .26); }
.eyebrow { font-size: .9rem; letter-spacing: .09em; text-transform: uppercase; }
.display-title { font-size: clamp(4rem, 8vw, 7.4rem); font-weight: 850; line-height: .92; letter-spacing: -.07em; }
.display-title span { color: var(--cyan); }
.hero-subtitle { font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1.1; }
.hero-text { max-width: 610px; margin-top: 1.1rem; font-size: 1.12rem; line-height: 1.45; color: rgba(255,255,255,.9); }

/* Hero orbit (rotating globe with topic icons) */
.hero-orbit { position: relative; width: 32em; height: 32em; font-size: clamp(12.5px, 1.25vw, 17.5px); margin: 2.5rem 0; }
.orbit-slogan { position: absolute; top: -1.6em; right: .5em; max-width: 11em; text-align: right; font-size: .78em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.35; color: var(--navy-2); text-shadow: none; }
.orbit-globe { position: absolute; top: 50%; left: 50%; width: 13em; height: 13em; margin: -6.5em; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5em; background: radial-gradient(circle at 32% 28%, #2f9bff, #0b3f95 55%, #06214f 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 70px rgba(30,150,255,.55), inset 0 0 60px rgba(0,0,0,.35); z-index: 2; }
.orbit-globe span { font-weight: 800; font-size: 1.05em; line-height: 1.35; text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.orbit-ring { position: absolute; inset: 0; z-index: 3; animation: orbit-spin 70s linear infinite; }
.orbit-item { position: absolute; top: 50%; left: 50%; width: 6em; margin: -3em; text-align: center; text-decoration: none; color: inherit; transform: rotate(var(--angle)) translate(0, -12em) rotate(calc(-1 * var(--angle))); }
.orbit-item-inner { display: flex; flex-direction: column; align-items: center; gap: .35em; animation: orbit-counter-spin 70s linear infinite; }
.orbit-item i { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 1.15em; backdrop-filter: blur(2px); transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.orbit-item small { display: block; font-size: .74em; font-weight: 700; line-height: 1.2; color: rgba(255,255,255,.88); text-decoration: none; }
.orbit-item:hover i { background: var(--blue); border-color: var(--blue); transform: scale(1.08); }
.orbit-item:hover small { color: #fff; }
.hero-orbit:hover .orbit-ring, .hero-orbit:hover .orbit-item-inner { animation-play-state: paused; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-counter-spin { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .orbit-item-inner, .eco-ring, .eco-node { animation: none; }
}

/* Audience cards */
.audiences-section { padding-top: 5rem; }
.audience-card { --accent: var(--blue); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 1.2rem; background: #fff; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.audience-card:hover { transform: translateY(-7px); box-shadow: 0 24px 65px rgba(18,57,111,.18); }
.audience-teal { --accent: var(--teal); }
.audience-purple { --accent: var(--purple); }
.audience-orange { --accent: var(--orange); }
.audience-image { min-height: 220px; padding: 1.4rem; display: flex; align-items: flex-end; position: relative; background-image: linear-gradient(90deg, rgba(5, 31, 72, .88), rgba(5, 31, 72, .08) 88%), var(--card-image); background-size: cover; background-position: center; }
.audience-teal .audience-image { background-image: linear-gradient(90deg, rgba(4, 70, 68, .9), rgba(4, 70, 68, .05) 85%), var(--card-image); }
.audience-purple .audience-image { background-image: linear-gradient(90deg, rgba(47, 26, 109, .9), rgba(47, 26, 109, .08) 85%), var(--card-image); }
.audience-orange .audience-image { background-image: linear-gradient(90deg, rgba(107, 45, 12, .88), rgba(107, 45, 12, .05) 85%), var(--card-image); }
.audience-image h3 { position: relative; z-index: 1; color: #fff; font-size: 1.45rem; line-height: 1.05; font-weight: 850; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.audience-body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, #fff), #fff 55%); }
.audience-lead { min-height: 54px; color: var(--accent); font-weight: 800; line-height: 1.25; }
.feature-list { list-style: none; padding: 0; margin: .4rem 0 1.3rem; }
.feature-list li { display: flex; gap: .65rem; align-items: flex-start; margin: .65rem 0; font-size: .92rem; }
.feature-list i { color: var(--accent); font-size: 1.05rem; flex: 0 0 auto; }
.audience-body .btn { margin-top: auto; }

/* Stats */
.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
/* главная: инфографика как у выпуска, но крупнее — плитки по пять в ряд */
.home-stats .jc-viz-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
.home-stats .jc-viz-tile { padding: 1rem 1.25rem; border-radius: .9rem; }
.home-stats .jc-viz-tile > i { top: .95rem; right: 1.05rem; font-size: 1.4rem; }
.home-stats .jc-viz-value { font-size: 1.9rem; }
.home-stats .jc-viz-label { font-size: .95rem; }
.home-stats .jc-viz-charts { margin-top: 1.5rem; gap: 1rem 2.5rem; }
.home-stats .jc-viz-chart figcaption { font-size: .9rem; }
@media (max-width: 991.98px) { .home-stats .jc-viz-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Content cards and journal covers */
.content-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 12px 35px rgba(18,57,111,.08); transition: transform .25s ease; }
.content-card:hover { transform: translateY(-5px); }
.content-card h3 { margin: .7rem 0; font-size: 1.35rem; font-weight: 800; }
.content-card p { color: var(--muted); }
.content-card a { color: var(--blue); font-weight: 800; text-decoration: none; }
.journal-cover-img { display: block; width: 100%; height: auto; }
.journal-cover { min-height: 235px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .5rem; color: #fff; text-align: center; position: relative; overflow: hidden; }
.journal-cover::before { content: ""; position: absolute; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; }
.journal-cover i { position: relative; font-size: 3rem; }
.journal-cover span { position: relative; font-size: 1.7rem; font-weight: 900; letter-spacing: .08em; }
.journal-cover small { position: relative; max-width: 230px; text-transform: uppercase; letter-spacing: .05em; }
.cover-blue { background: linear-gradient(145deg, #08295e, #0878f9); }
.cover-cyan { background: linear-gradient(145deg, #006d88, #13bde2); }
.cover-purple { background: linear-gradient(145deg, #38217f, #8a5fe8); }
.tag { display: inline-block; padding: .27rem .6rem; border-radius: 10rem; background: #e8f2ff; color: #1862b7; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.link-arrow { display: inline-flex; gap: .5rem; color: var(--blue); font-weight: 800; text-decoration: none; }

/* Events */
.event-card { display: flex; gap: 1.2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 12px 35px rgba(18,57,111,.08); }
.event-card h3 { margin: .6rem 0; font-size: 1.15rem; font-weight: 800; }
.event-card p { color: var(--muted); font-size: .9rem; }
.event-date { min-width: 72px; height: 84px; display: grid; align-content: center; text-align: center; color: #fff; border-radius: .8rem; background: linear-gradient(145deg, var(--blue), #0059ca); }
.event-date.teal { background: linear-gradient(145deg, #08a094, #006b65); }
.event-date.purple { background: linear-gradient(145deg, #8158e4, #5435b2); }
.event-date strong { font-size: 1.8rem; line-height: 1; }
.event-date span { font-size: .72rem; font-weight: 800; }

/* Services */
.publications-section { color: #fff; background: radial-gradient(circle at 78% 18%, rgba(37,185,255,.22), transparent 32%), linear-gradient(135deg, #071b3f, #0c3e87); }
.publications-section p { color: rgba(255,255,255,.78); font-size: 1.08rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-grid div { min-height: 145px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.17); border-radius: 1rem; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.service-grid i { font-size: 2rem; color: #82dfff; }
.service-grid span { font-weight: 750; }

/* Organizations */
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li { display: flex; gap: .75rem; margin: .8rem 0; font-weight: 650; }
.check-list i { color: var(--teal); }
.dashboard-mock { overflow: hidden; border: 1px solid #cfe0f5; border-radius: 1.2rem; background: #fff; box-shadow: 0 25px 70px rgba(18,57,111,.2); transform: perspective(1000px) rotateY(-4deg) rotateX(1deg); }
.dash-top { height: 45px; display: flex; align-items: center; gap: .4rem; padding: 0 1rem; background: var(--navy); }
.dash-top span { width: 9px; height: 9px; border-radius: 50%; background: #4f6e9d; }
.dash-grid { min-height: 360px; display: grid; grid-template-columns: 22% 1fr; }
.dash-sidebar { background: #eef5ff; border-right: 1px solid #d9e5f5; }
.dash-main { padding: 1.5rem; }
.dash-numbers { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; }
.dash-numbers span { height: 64px; border-radius: .7rem; background: linear-gradient(135deg,#e7f2ff,#f8fbff); border: 1px solid #d7e6fa; }
.dash-chart { height: 160px; margin-top: 1rem; padding: 1rem; display: flex; align-items: flex-end; gap: .6rem; border-radius: .7rem; background: #f8fbff; }
.dash-chart i { flex: 1; height: 35%; border-radius: .3rem .3rem 0 0; background: linear-gradient(#23b8ff,#0878f9); }
.dash-chart i:nth-child(2) { height: 53%; }.dash-chart i:nth-child(3) { height: 44%;}.dash-chart i:nth-child(4) { height: 76%;}.dash-chart i:nth-child(5) { height: 62%;}.dash-chart i:nth-child(6) { height: 92%;}.dash-chart i:nth-child(7) { height: 78%;}
.dash-lines { display: grid; gap: .65rem; margin-top: 1rem; }.dash-lines span { height: 10px; width: 92%; background: #e3edf8; border-radius: 1rem; }.dash-lines span:nth-child(2){width:72%}.dash-lines span:nth-child(3){width:84%}

/* Society and ecosystem */
.society-panel { padding: 3.5rem; color: #fff; border-radius: 1.5rem; background: radial-gradient(circle at 85% 50%, rgba(90,213,255,.28), transparent 32%), linear-gradient(120deg,#0b2d68,#0878f9); box-shadow: var(--shadow); }
.society-panel p { max-width: 760px; margin: 0; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.ecosystem-visual { min-height: 420px; display: grid; place-items: center; position: relative; border-radius: 50%; background: radial-gradient(circle, rgba(8,120,249,.18), rgba(8,120,249,.03) 55%, transparent 56%); }
.ecosystem-visual::before, .ecosystem-visual::after { content: ""; position: absolute; border: 1px dashed #9bc3f3; border-radius: 50%; }
.ecosystem-visual::before { width: 68%; height: 68%; }.ecosystem-visual::after { width: 93%; height: 93%; }
.eco-core { width: 175px; height: 175px; display: grid; place-items: center; align-content: center; position: relative; z-index: 2; color: #fff; border-radius: 50%; background: linear-gradient(145deg,#0b2d68,#0878f9); box-shadow: 0 20px 50px rgba(8,120,249,.32); }
.eco-core i { font-size: 3rem; }.eco-core strong { font-size: 1.25rem; }
.eco-ring { position: absolute; inset: 0; z-index: 3; animation: orbit-spin 30s linear infinite; }
.eco-node { position: absolute; z-index: 3; padding: .6rem .9rem; border: 1px solid #cfe0f5; border-radius: 10rem; background: #fff; box-shadow: 0 8px 28px rgba(18,57,111,.13); font-weight: 800; font-size: .85rem; animation: orbit-counter-spin 30s linear infinite; }
.node-1{top:9%;left:38%}.node-2{top:43%;right:1%}.node-3{bottom:8%;left:40%}.node-4{top:43%;left:0}
.ecosystem-visual:hover .eco-ring, .ecosystem-visual:hover .eco-node { animation-play-state: paused; }
.mini-value { height: 100%; display: grid; grid-template-columns: 38px 1fr; column-gap: .6rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.mini-value i { grid-row: span 2; color: var(--blue); font-size: 1.5rem; }.mini-value b { line-height: 1.2; }.mini-value span { color: var(--muted); font-size: .86rem; }

/* Footer, overlays */
.site-footer { color: rgba(255,255,255,.76); background: #06152f; }
.footer-brand { color: #fff; font-size: 1.5rem; font-weight: 850; }.footer-brand i{color:var(--cyan)}
.site-footer h2 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { display: block; margin: .45rem 0; color: rgba(255,255,255,.68); text-decoration: none; }.site-footer a:hover{color:#fff}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.back-to-top { width: 44px; height: 44px; display: grid; place-items: center; position: fixed; z-index: 1030; right: 1.25rem; bottom: 1.25rem; color: #fff; border: 0; border-radius: 50%; background: var(--blue); box-shadow: 0 8px 25px rgba(8,120,249,.4); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.step-icon { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 1rem; color: #fff; border-radius: 50%; background: var(--blue); font-weight: 900; }
.modal-content { border: 0; border-radius: 1rem; box-shadow: 0 30px 90px rgba(0,0,0,.22); }

@media (max-width: 1399.98px) {
  .brand-qaz small, .brand-asp small { display: none; }
  .brand b { font-size: 1.1rem; }
  .navbar .nav-link { padding-left: .45rem; padding-right: .45rem; font-size: .77rem; }
}
@media (max-width: 1199.98px) {
  .navbar { min-height: 68px; }.hero { margin-top: 68px; } .page-title { margin-top: 68px; }
  .brand small { display: block; }
}
@media (max-width: 991.98px) {
  .section-pad { padding: 4.5rem 0; }
  .hero { min-height: 610px; background-position: 57% center; }
  .hero::before { content:""; position:absolute; inset:0; z-index:-1; background:rgba(4,20,49,.48); }
  .hero-copy { max-width: 660px; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-mock { transform: none; }
}
@media (max-width: 767.98px) {
  .hero { min-height: 630px; background-position: 63% center; background-image: linear-gradient(90deg,rgba(4,20,49,.95),rgba(4,20,49,.55)),url("../images/hero-kazakhstan-science.webp"); }
  .display-title { font-size: clamp(3.5rem,18vw,5.2rem); }
  .hero-text { font-size: 1rem; }
  .audience-image { min-height: 250px; }
  .society-panel { padding: 2rem; }
  .ecosystem-visual { min-height: 350px; }
}
@media (max-width: 575.98px) {
  .section-pad { padding: 3.8rem 0; }
  .hero-copy { padding: 3.5rem 0; }
  .hero .btn { width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .event-card { flex-direction: column; }.event-date { width: 72px; }
  .society-panel { border-radius: 1rem; }
  .ecosystem-visual { transform:scale(.86); margin:-20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Каталог журналов (/magazines) */
.jc-page { padding: 104px 0 4rem; background: #fff; }
.jc-breadcrumbs { display: flex; gap: .5rem; font-size: .88rem; color: var(--muted); margin-bottom: .6rem; }
.jc-breadcrumbs a { color: var(--muted); text-decoration: none; }
.jc-breadcrumbs a:hover { color: var(--blue); }
.jc-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--navy); margin-bottom: .35rem; }
.jc-subtitle { color: var(--muted); font-size: 1.1rem; }
.jc-btn-main { background: var(--blue); border-color: var(--blue); font-weight: 600; border-radius: .5rem; }
.jc-btn-main:hover, .jc-btn-main:focus { background: #0565d4; border-color: #0565d4; }
.jc-search { display: flex; gap: .75rem; }
.jc-search-field { position: relative; flex: 1; }
.jc-search-field i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.jc-search-field .form-control { height: 100%; min-height: 46px; padding-left: 2.6rem; border-color: var(--line); border-radius: .5rem; }
.jc-filters { border: 1px solid var(--line); border-radius: .75rem; background: var(--soft); padding: 1.1rem; }
/* содержание выпуска: меньше отступ в ячейках сверху и снизу */
.jc-content-table > :not(caption) > * > * { padding-top: .3rem; padding-bottom: .3rem; }
.jc-filters-bar { padding: .9rem 1.1rem; }
.jc-filters-bar .form-label { margin-bottom: .25rem; }
.jc-filters-title { font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.jc-filters .form-label { font-size: .88rem; color: var(--ink); margin-bottom: .3rem; }
.jc-filters .form-select { border-color: var(--line); }
.jc-filters .form-check-label { font-size: .92rem; }
.jc-reset { color: var(--blue); font-size: .88rem; text-decoration: none; }
.jc-list-title { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.jc-count { color: var(--muted); font-size: .92rem; }
.jc-sort-label { font-size: .88rem; color: var(--ink); }
.jc-sort { width: auto; min-width: 170px; border-color: var(--line); }
.jc-view .btn { font-size: .9rem; padding: .35rem .9rem; }
.jc-view .btn-primary { background: var(--blue); border-color: var(--blue); }
.jc-card { border: 1px solid var(--line); border-radius: .75rem; background: #fff; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; transition: box-shadow .2s ease; }
.jc-card:hover { box-shadow: 0 12px 35px rgba(18,57,111,.08); }
.jc-cover { flex: 0 0 130px; width: 130px; height: 160px; border-radius: .25rem; overflow: hidden; display: block; box-shadow: 0 4px 14px rgba(18,57,111,.15); }
.jc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-cover-sm { flex-basis: 72px; width: 72px; height: 90px; }
.jc-cover-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: .5rem; color: #fff; font-weight: 800; font-size: .8rem; line-height: 1.2; text-align: center; text-transform: uppercase; overflow: hidden; }
.jc-cover-sm .jc-cover-fallback { font-size: .55rem; padding: .3rem; }
.jc-card-title { font-size: 1.15rem; font-weight: 800; margin-bottom: .3rem; }
.jc-card-title a { color: var(--navy); text-decoration: none; }
.jc-card-title a:hover { color: var(--blue); }
.jc-tags { color: var(--muted); font-size: .9rem; }
.jc-dot { margin: 0 .45rem; }
.jc-issn { color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.jc-info { color: var(--ink); font-size: .92rem; margin: .55rem 0; opacity: .85; }
.jc-docs { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .5rem; }
.jc-docs a, .jc-doc-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--blue); font-size: .9rem; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.jc-docs i, .jc-doc-link i { font-size: 1.15rem; text-decoration: none; }
.jc-via { color: var(--muted); font-size: .82rem; margin-top: .35rem; }
.jc-link { color: var(--blue); font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.min-w-0 { min-width: 0; }
.jc-table { display: flex; flex-direction: column; gap: .35rem; }
.jc-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; align-items: center; padding: .6rem .75rem; border-radius: .5rem; }
.jc-row:not(.jc-row-head):nth-child(even) { background: var(--soft); }
.jc-row-head { font-size: .88rem; font-weight: 600; color: var(--ink); padding-bottom: .2rem; }
.jc-row .jc-card-title { font-size: 1rem; }
.jc-empty { border: 1px dashed var(--line); border-radius: .75rem; padding: 3rem 1rem; text-align: center; color: var(--muted); }
.jc-empty > i { font-size: 2.2rem; display: block; margin-bottom: .5rem; }
.jc-howto { display: flex; align-items: center; gap: 1rem; background: var(--soft); border: 1px solid var(--line); border-radius: .75rem; padding: .9rem 1.2rem; }
.jc-howto > i { font-size: 1.8rem; color: var(--blue); }
.jc-howto-title { font-weight: 700; color: var(--navy); }
.jc-howto-steps { color: var(--muted); font-size: .85rem; }
.jc-filters-group { font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.jc-all-filters { font-weight: 600; border-color: var(--blue); color: var(--blue); }
.jc-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .2rem; }
.jc-badge { display: inline-block; font-size: .75rem; line-height: 1.2; padding: .25rem .55rem; border-radius: 999px; background: #eaf2ff; color: var(--navy-2); }
.jc-badge-accent { background: #fff1e8; color: #a8430c; }
.jc-badge-green { background: #e6f6f4; color: var(--teal); }
.jc-badge-muted { background: #eef1f5; color: var(--muted); }
.jc-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem 1.5rem; margin: 0; }
.jc-features dt { font-size: .8rem; font-weight: 600; color: var(--muted); }
.jc-features dd { margin: 0; font-size: .95rem; color: var(--ink); }
.jc-flags { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .9rem; }
.jc-flag { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--teal); }
.jc-flag.is-off { color: var(--muted); }
.jc-magazine { padding: 1.5rem; }
.jc-magazine:hover { box-shadow: none; }
.jc-cover-qr { width: 260px; }
.jc-cover-status { width: 260px; margin-top: .6rem; }
.jc-cover-status .jc-flag { font-size: .85rem; }
.jc-cover-lg { flex-basis: 260px; width: 260px; height: 340px; }
.jc-magazine-info { color: var(--ink); }
.jc-magazine-info img { max-width: 100%; height: auto; }
/* ISSN, свидетельство, сайт: элементы не разрываются внутри, поэтому строка переносится между ними */
.jc-ids { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: .1rem; }
.jc-issn a { color: var(--blue); font-weight: 400; text-decoration: none; }
.jc-issue { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: .75rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; text-decoration: none; transition: box-shadow .2s ease; }
.jc-issue:hover { box-shadow: 0 12px 35px rgba(18,57,111,.1); }
.jc-issue img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: .35rem; background: var(--soft); }
.jc-issue-title { font-weight: 700; color: var(--navy); font-size: .95rem; line-height: 1.3; }
.jc-issue-meta { color: var(--muted); font-size: .82rem; }
.jc-kicker { display: inline-block; color: var(--blue); font-size: .85rem; font-weight: 700; text-decoration: none; margin-bottom: .2rem; }
.jc-kicker:hover { text-decoration: underline; }
/* кнопки в шапке выпуска: .content-card a перекрашивает текст и делает его жирным */
.jc-issue-head .btn { color: var(--bs-btn-color); font-weight: var(--bs-btn-font-weight); }
/* …и при наведении/нажатии — иначе текст остаётся цвета --bs-btn-color на такой же заливке и пропадает */
.jc-issue-head .btn:hover, .jc-issue-head .btn:focus-visible { color: var(--bs-btn-hover-color); }
.jc-issue-head .btn:active { color: var(--bs-btn-active-color); }
.jc-viz {
  --viz-lang-kz: #2a78d6; --viz-lang-ru: #eb6834; --viz-lang-en: #1baf7a; --viz-lang-other: #eda100; /* палитра проверена на различимость, в т.ч. при дальтонизме */
  --viz-bar: #2a78d6; --viz-track: #edf2fa;
}
.jc-viz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.jc-viz-tile { position: relative; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--soft); }
.jc-viz-tile > i { position: absolute; top: .55rem; right: .65rem; color: var(--blue); opacity: .45; font-size: .95rem; }
.jc-viz-value { font-size: 1.3rem; font-weight: 800; color: var(--navy); line-height: 1.15; font-variant-numeric: tabular-nums; }
.jc-viz-label { font-size: .78rem; color: var(--muted); }
.jc-viz-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .75rem 1.5rem; margin-top: .9rem; }
.jc-viz-chart { margin: 0; }
.jc-viz-chart figcaption { font-size: .8rem; font-weight: 700; color: var(--ink); margin-bottom: .45rem; }
[data-tip] { position: relative; outline: none; }
[data-tip]:hover::after, [data-tip]:focus::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: 5; padding: .3rem .55rem; border-radius: .35rem; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 600; white-space: nowrap; pointer-events: none; }
.jc-viz-stack { display: flex; gap: 2px; height: 14px; }
.jc-viz-seg { min-width: 4px; border-radius: 4px; cursor: default; }
.jc-viz-seg:hover, .jc-viz-seg:focus-visible { filter: brightness(.9); }
.jc-viz-lang-kz { background: var(--viz-lang-kz); }
.jc-viz-lang-ru { background: var(--viz-lang-ru); }
.jc-viz-lang-en { background: var(--viz-lang-en); }
.jc-viz-lang-other { background: var(--viz-lang-other); }
.jc-viz-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; padding: 0; margin: .5rem 0 0; font-size: .8rem; color: var(--ink); }
.jc-viz-legend li { display: inline-flex; align-items: center; gap: .35rem; }
.jc-viz-legend small { color: var(--muted); }
.jc-viz-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.jc-viz-columns { display: flex; align-items: flex-end; gap: 6px; height: 76px; border-bottom: 1px solid var(--line); }
.jc-viz-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.jc-viz-col-value { font-size: .72rem; font-weight: 700; color: var(--ink); line-height: 1.2; min-height: .9rem; }
.jc-viz-col-bar { display: block; width: 100%; background: var(--viz-bar); border-radius: 4px 4px 0 0; }
.jc-viz-col:hover .jc-viz-col-bar, .jc-viz-col:focus-visible .jc-viz-col-bar { filter: brightness(.88); }
.jc-viz-columns-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: .25rem; }
.jc-viz-rows { display: flex; flex-direction: column; gap: .4rem; }
.jc-viz-row-label { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-viz-row-track { display: flex; align-items: center; gap: .4rem; }
.jc-viz-row-bar { display: block; height: 8px; background: var(--viz-bar); border-radius: 0 4px 4px 0; }
.jc-viz-row-value { font-size: .75rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.jc-viz-row:hover .jc-viz-row-bar, .jc-viz-row:focus-visible .jc-viz-row-bar { filter: brightness(.88); }
@media (max-width: 575.98px) {
  /* телефон: плитки по три в ряд, без иконок; названия разделов переносятся, а не обрезаются */
  .jc-viz-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .jc-viz-tile { padding: .45rem .5rem; }
  .jc-viz-tile > i { display: none; }
  .jc-viz-value { font-size: 1.05rem; }
  .jc-viz-label { font-size: .7rem; line-height: 1.2; }
  .jc-viz-row-label { white-space: normal; }
  .home-stats .jc-viz-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .home-stats .jc-viz-tile { padding: .75rem .9rem; }
  .home-stats .jc-viz-tile > i { display: block; top: .7rem; right: .8rem; font-size: 1.1rem; }
  .home-stats .jc-viz-value { font-size: 1.4rem; }
  .home-stats .jc-viz-label { font-size: .8rem; }
}
.jc-docs a.is-active { color: var(--navy); font-weight: 700; text-decoration: none; }
.jc-issue-title { text-decoration: none; }
.jc-issue-title:hover { color: var(--blue); }
.jc-issue-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-top: auto; padding-top: .25rem; }
.jc-issue-actions .jc-link { font-size: .85rem; }
.jc-row-issue { grid-template-columns: minmax(0, 2.4fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
@media (max-width: 1199.98px) {
  .jc-row { grid-template-columns: 1fr 1fr; gap: .6rem 1rem; border: 1px solid var(--line); background: #fff !important; padding: .9rem; }
  .jc-row > :first-child, .jc-row > .jc-tags { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .jc-row { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .jc-search { flex-direction: column; }
  .jc-cover { flex-basis: 96px; width: 96px; height: 124px; }
  .jc-howto { flex-wrap: wrap; }
  .jc-cover-lg { width: 160px; height: 210px; }
}
