/* Public identity: the river of knowledge, from origins to new discoveries. */
.istok-hero{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 8% 12%,#cfe2ff 0,transparent 48%),radial-gradient(ellipse at 82% 80%,#d9e7ee 0,transparent 55%),linear-gradient(115deg,#f5f8ff,#e7f0ff 52%,#f5f8fc);border-bottom:1px solid #d8e3f2}
.istok-hero:before{content:"";position:absolute;z-index:-1;width:1200px;height:1200px;right:-500px;top:-760px;border:1px solid #4472c42e;border-radius:50%;box-shadow:0 0 0 65px #4472c408,0 0 0 140px #4472c408,0 0 0 240px #4472c407;pointer-events:none}
.istok-hero .home-hero-title{color:#123454;max-width:850px;font-size:clamp(36px,4.1vw,62px);letter-spacing:-.045em}
.istok-hero .lead{color:#435e79!important;font-weight:400;line-height:1.65}
.istok-hero .home-network-card{background:#ffffffd9;box-shadow:0 24px 75px #173d6920;border-color:#ffffff}
.istok-hero .home-stat-label{color:#52677e}.istok-hero .btn-outline-secondary{background:#ffffff80}
.featured-scientists-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.istok-footer{margin-top:0;padding:64px 0 22px;background:#102d4b;color:#eef4ff;position:relative;border-top:5px solid #4472c4}
.istok-footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:36px}
.istok-footer-brand{display:flex;align-items:center;gap:14px;font-size:30px;font-weight:800;text-decoration:none;margin-bottom:20px}
.istok-footer-brand img{background:#fff;border-radius:12px;padding:3px;object-fit:contain}
.istok-footer p{line-height:1.75;font-size:14px}.istok-footer .istok-footer-muted{color:#bbcde0}
.istok-footer h2{color:#fff;font-size:15px;font-weight:750;margin:10px 0 22px}.istok-footer a:not(.btn){color:#dce8f8!important;text-decoration:none}.istok-footer a:not(.btn):hover{text-decoration:underline!important;color:#fff!important}.istok-footer .btn-light,.istok-footer .btn-light:visited{color:#334155!important;text-decoration:none!important}.istok-footer .btn-light:hover,.istok-footer .btn-light:focus,.istok-footer .btn-light:active{color:#0f2740!important;text-decoration:none!important;background:#f4f7fa!important}
.istok-footer nav a{display:block;padding:5px 0;font-size:14px}.istok-footer-bottom{display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;margin-top:46px;padding-top:20px;border-top:1px solid #ffffff26;font-size:12px;color:#aec2d8}
.field-card-is-child{border-left-width:1px!important}.field-card-parent{border-radius:8px;padding:9px!important}.field-card-parent strong{display:block;font-size:13px}
@media(max-width:991px){.istok-footer-grid{grid-template-columns:1fr 1fr}.featured-scientists-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:575px){.istok-footer{padding-top:38px}.istok-footer-grid{grid-template-columns:1fr;gap:22px}.featured-scientists-grid{grid-template-columns:1fr!important}.istok-hero .home-hero-title{font-size:36px}}

/* Navigation and brand */
html{scroll-behavior:smooth;scroll-padding-top:92px}
.istok-navbar-logo{width:48px;height:48px;object-fit:contain;flex:0 0 48px}
.navbar-science .navbar-brand{gap:12px!important}
.navbar-science .brand-name{font-size:23px;font-weight:850;letter-spacing:.055em;color:#163a5f}
.navbar-science .btn-primary-science,
.navbar-science .btn-primary-science:visited,
.navbar-science .btn-primary-science:hover,
.navbar-science .btn-primary-science:focus,
.navbar-science .btn-primary-science:active{color:#fff!important;text-decoration:none!important}

/* Home hero identity and denser public statistics */
.home-hero-heading{display:block}
.home-stats-grid{display:flex;flex-wrap:wrap;align-items:flex-start;gap:16px 24px;max-width:600px}
.home-stats-grid .home-stat-link{display:block;flex:0 1 168px;text-decoration:none!important}
.home-stats-grid .home-stat{height:auto;padding:2px 0;border:0;border-radius:0;background:transparent;transition:none}
.home-stats-grid .home-stat-link:hover .home-stat{transform:none;background:transparent;border-color:transparent}
.home-stat-value{font-size:34px;font-weight:850;line-height:1;letter-spacing:-.035em}
.istok-hero .home-stat-label{margin-top:6px;font-size:16px;font-weight:650;line-height:1.3}

/* Academic rank marker on photos of modern scientists.
   A compact crown/medallion replaces the text badge; colour and 1–4 dots encode rank. */
.scientist-main-photo,.scientist-card-photo{position:relative}
.scientist-rank-badge{position:absolute;z-index:6;top:10px;right:10px;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.72);border-radius:12px;box-shadow:0 5px 14px rgba(15,23,42,.18);color:#fff;backdrop-filter:blur(6px)}
.scientist-rank-badge svg{width:25px;height:25px;display:block;fill:currentColor}
.scientist-rank-level{position:absolute;left:50%;bottom:4px;display:flex;gap:2px;transform:translateX(-50%)}
.scientist-rank-level i{display:block;width:3px;height:3px;border-radius:50%;background:currentColor}
.scientist-rank-badge--candidate{background:rgba(68,114,196,.94)}
.scientist-rank-badge--doctor{background:rgba(154,87,205,.95)}
.scientist-rank-badge--corresponding{background:rgba(237,125,49,.96)}
.scientist-rank-badge--academician{background:rgba(255,192,0,.97);color:#493800;border-color:rgba(255,255,255,.88)}

@media(max-width:767px){
    .home-stats-grid{gap:12px 20px}
    .home-stats-grid .home-stat-link{flex-basis:150px}
    .home-stat-value{font-size:29px}
    .istok-hero .home-stat-label{font-size:15px}
}
/* R4: главная */
.home-hero-logo{width:132px;height:132px;object-fit:contain;flex:0 0 auto}
.home-stat-value{color:#18324d!important}
.home-stats-grid{gap:10px 18px!important;max-width:650px!important}
.home-stats-grid .home-stat-link{flex-basis:138px!important}
.network-scientist-main{top:39%!important}
.network-university{left:5%!important;bottom:5%!important}
.home-analytics{background:#f8fafc;border-top:1px solid #edf1f6;border-bottom:1px solid #edf1f6}
.home-analytics-grid{display:grid;grid-template-columns:1.15fr 1fr .7fr;gap:18px}
.home-analytics-panel{background:#fff;border:1px solid #e6ebf2;border-radius:20px;padding:22px;min-height:210px}
.home-analytics-label{font-weight:800;color:#24364b;margin-bottom:16px}
.home-analytics-row{display:grid;grid-template-columns:1fr auto;gap:4px 12px;text-decoration:none;color:#465b72;font-size:13px;margin-bottom:11px}
.home-analytics-row strong{color:#24364b}.home-analytics-row i{grid-column:1/3;height:5px;border-radius:999px;background:linear-gradient(90deg,#4472c4 var(--w),#edf1f6 var(--w));display:block}
.home-mini-bars{height:160px;display:flex;align-items:flex-end;gap:8px;padding-top:12px}
.home-mini-bar{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}.home-mini-bar i{display:block;width:100%;max-width:34px;border-radius:7px 7px 2px 2px;background:#466e9f;min-height:8px}.home-mini-bar span{font-size:10px;color:#7b8795;writing-mode:vertical-rl;transform:rotate(180deg);max-height:42px}
.home-analytics-summary{display:flex;flex-direction:column;justify-content:space-between;gap:16px}.home-analytics-summary strong{display:block;font-size:32px;line-height:1;color:#18324d}.home-analytics-summary span{display:block;color:#6f7f90;font-size:13px;margin-top:5px}
@media(max-width:992px){.home-hero-logo{width:92px;height:92px}.home-analytics-grid{grid-template-columns:1fr}.home-analytics-panel{min-height:auto}}
@media(max-width:640px){.home-hero-heading{align-items:flex-start!important}.home-hero-logo{width:70px;height:70px}.home-stats-grid .home-stat-link{flex-basis:120px!important}}
.research-context-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.research-context-links{display:flex;gap:6px;flex-wrap:wrap}.research-people-filter{display:flex;gap:14px;align-items:center;font-size:13px;color:#52677e}.research-people-filter label{display:flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}.research-people-filter input[type=checkbox]{accent-color:#4472c4}
.favorite-form{margin:10px 0 14px!important;position:static!important}.favorite-button{background:#fff8df!important;border:1px solid #d4a72c!important;color:#8b6710!important;border-radius:10px!important;box-shadow:none!important}.favorite-button:hover,.favorite-button.is-active{background:#d4a72c!important;color:#fff!important;border-color:#d4a72c!important}.favorite-button.is-active{background:#bc8c00!important}
.scientist-card.scientist-impact-significant{border-bottom:4px solid #a5a5a5!important}.scientist-card.scientist-impact-ntp{border-bottom:4px solid #c89b21!important}.scientist-nobel-badge{position:absolute;right:12px;top:12px;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff4c6;border:1px solid #d4a72c;font-size:19px;z-index:5;box-shadow:0 2px 8px rgba(100,75,10,.12)}
