:root{
  --gb-navy:#000f55;
  --gb-blue:#0032aa;
  --gb-red:#d70000;
  --text:#111319;
  --muted:#666d7b;
  --line:#cfd3dc;
  --mobile-bg:#eef4fd;
  --page-width:1280px;
  --rail-width:286px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  min-width:320px;
  background:#fff;
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
}
img,video{max-width:100%}
a{color:inherit}
button,input,select,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}

/* ===== Main article / desktop ===== */
.site-main{
  width:min(var(--page-width),calc(100% - 32px));
  margin:0 auto;
  padding:32px 0 0;
  background:#fff;
}
.story-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) var(--rail-width);
  gap:30px;
  align-items:start;
}
.article{min-width:0}
.article h1{
  max-width:950px;
  margin:0 0 24px;
  color:var(--gb-navy);
  font-size:clamp(34px,3.05vw,46px);
  line-height:1.14;
  letter-spacing:-.02em;
  font-weight:800;
}
.article-hero{margin:0 0 22px}
.article-hero img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#dfe6f2;
}
.article-hero figcaption{
  margin-top:6px;
  color:#20242d;
  font-size:12px;
  line-height:1.25;
  font-style:italic;
}
.article-body{
  max-width:960px;
  color:#16181e;
  font-size:19px;
  line-height:1.5;
}
.article-body p{margin:0 0 24px}
.article-body strong{font-weight:800}
.article-cta-copy{color:var(--gb-navy)}

.read-more-wrap{
  margin:30px 0 0;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.read-more-btn{
  display:inline-flex;
  min-height:50px;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 28px;
  border:0;
  border-radius:3px;
  background:var(--gb-navy);
  color:#fff;
  text-decoration:none;
  font-size:16px;
  font-weight:800;
}
.read-more-btn::after{content:"›";font-size:23px;line-height:1}
.read-more-btn:hover,.read-more-btn:focus-visible{background:var(--gb-blue)}

/* ===== Desktop right card rail ===== */
.article-rail{
  position:sticky;
  top:14px;
  height:auto;
  min-height:0;
  overflow:visible;
  align-self:start;
}
.article-rail-inner{
  height:auto;
  overflow:visible;
  border-top:1px solid var(--gb-navy);
}
.article-rail-title{
  margin:0;
  padding:0 0 10px;
  border-bottom:1px solid var(--gb-navy);
  color:var(--gb-navy);
  font-size:18px;
  line-height:1.1;
  font-weight:800;
}
.story-list{display:block}
.story-card{
  min-width:0;
  padding:15px 0 17px;
  border-bottom:1px solid var(--gb-navy);
}
.story-link{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;text-decoration:none;text-align:left;font:inherit;cursor:pointer}
.story-media-wrap{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:4px;
  background:#e3e8f0;
}
.story-media{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.story-title{
  margin:10px 10px 0;
  color:var(--gb-navy);
  font-size:17px;
  line-height:1.38;
  font-weight:500;
}
.story-link:hover .story-title,.story-link:focus-visible .story-title{color:var(--gb-blue)}

/* Mobile card slots are present only on smartphone. */
.mobile-story-slot{display:none}

/* ===== Tablet ===== */
@media(max-width:1023px) and (min-width:768px){
  .site-main{width:min(960px,calc(100% - 28px));padding-top:26px}
  .story-layout{grid-template-columns:minmax(0,1fr) 250px;gap:24px}
  .article h1{font-size:34px}
  .article-body{font-size:18px}
  .article-rail{top:12px}
  .story-title{font-size:15px;margin-left:6px;margin-right:6px}
}

/* ===== Smartphone ===== */
@media(max-width:767px){
  body{background:#fff}
  .site-main{
    width:100%;
    margin:0;
    padding:22px 16px 0;
    background:#fff;
  }
  .story-layout{display:block}
  .article h1{
    margin:0 0 18px;
    font-size:31px;
    line-height:1.13;
  }
  .article-hero{margin:0 -16px 19px}
  .article-hero figcaption{margin:6px 16px 0}
  .article-body{
    max-width:none;
    font-size:17px;
    line-height:1.55;
  }
  .article-body p{margin-bottom:21px}

  .article-rail{display:none!important}
  .article-action-wrap{margin:24px 0 30px}
  .article-action-btn{width:min(100%,390px);min-width:0;min-height:56px;padding:0 24px;font-size:17px}
  .read-more-wrap{margin-top:24px}
  .read-more-btn{width:100%}

  .mobile-story-slot{
    display:block;
    margin:8px 0 22px;
  }
  .mobile-story-pair{
    display:grid;
    gap:14px;
  }
  .mobile-story-pair .story-card{
    padding:0;
    border:1px solid #1f2434;
    background:#fff;
    overflow:hidden;
  }
  .mobile-story-pair .story-link{
    display:block;
  }
  .mobile-story-pair .story-media-wrap{
    width:100%;
    height:auto;
    aspect-ratio:16/9;
    border-radius:0;
    background:#e6ebf3;
  }
  .mobile-story-pair .story-title{
    margin:8px 10px 10px;
    font-size:16px;
    line-height:1.28;
    font-weight:700;
    color:var(--text);
  }
}

@media(max-width:390px){
  .site-main{padding-left:14px;padding-right:14px}
  .article-hero{margin-left:-14px;margin-right:-14px}
  .article-hero figcaption{margin-left:14px;margin-right:14px}
  .mobile-story-pair{gap:12px}
  .mobile-story-pair .story-title{font-size:15.5px}
}





/* ===== Article CTA: always after the complete article text ===== */
.article-action-wrap{
  display:flex;
  justify-content:center;
  margin:28px 0 34px;
  text-align:center;
}
.article-action-btn{
  position:relative;
  display:inline-flex;
  min-width:320px;
  min-height:58px;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:0 38px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--gb-navy),var(--gb-blue));
  color:#fff;
  text-decoration:none;
  font-size:18px;
  font-weight:800;
  letter-spacing:.01em;
  overflow:hidden;
  box-shadow:0 12px 26px rgba(0,15,85,.22),0 0 0 0 rgba(0,50,170,.28);
  animation:articleCtaPulse 1.8s ease-in-out infinite,articleCtaHalo 2.2s ease-out infinite;
}
.article-action-btn b{font-size:26px;line-height:1;transition:transform .18s ease}
.article-action-btn::before{
  content:"";
  position:absolute;
  top:-20%;
  left:-45%;
  width:38%;
  height:140%;
  background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.38),rgba(255,255,255,0));
  transform:skewX(-18deg);
  animation:articleCtaShine 2.35s linear infinite;
}
.article-action-btn:hover,.article-action-btn:focus-visible{background:linear-gradient(135deg,#00166f,#074bd3);transform:translateY(-2px)}
.article-action-btn:hover b,.article-action-btn:focus-visible b{transform:translateX(4px)}
@keyframes articleCtaPulse{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.018)}}
@keyframes articleCtaHalo{0%,100%{box-shadow:0 12px 26px rgba(0,15,85,.22),0 0 0 0 rgba(0,50,170,.26)}55%{box-shadow:0 14px 30px rgba(0,15,85,.24),0 0 0 10px rgba(0,50,170,0)}}
@keyframes articleCtaShine{0%{left:-45%}52%,100%{left:125%}}

/* ===== Internal More Stories / article switching ===== */
.related-articles{
  margin:8px 0 0;
  padding-top:18px;
  border-top:2px solid var(--gb-navy);
}
.related-heading{
  margin:0 0 18px;
  color:var(--gb-navy);
  font-size:25px;
  line-height:1.1;
  font-weight:800;
}
.related-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px 20px;
}
.related-article-card{
  display:block;
  width:100%;
  padding:0;
  border:0;
  background:#fff;
  color:#111319;
  text-align:left;
  cursor:pointer;
}
.related-media{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  background:#e6ebf3;
}
.related-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .22s ease;
}
.related-title{
  display:block;
  margin-top:8px;
  color:#090d17;
  font-size:18px;
  line-height:1.28;
  font-weight:800;
}
.related-article-card:hover .related-title,
.related-article-card:focus-visible .related-title{color:var(--gb-blue)}
.related-article-card:hover .related-media img,
.related-article-card:focus-visible .related-media img{transform:scale(1.018)}

@media(max-width:1023px) and (min-width:768px){
  .related-grid{gap:20px 16px}
  .related-title{font-size:16px}
}

@media(max-width:767px){
  .related-articles{
    margin:30px 0 0;
    padding-top:16px;
  }
  .related-heading{font-size:22px;margin-bottom:14px}
  .related-grid{
    grid-template-columns:1fr;
    gap:18px;
  }
  .related-title{
    margin-top:7px;
    font-size:17px;
  }
}


/* ===== Breaking popup ===== */
.site-header,.site-main,.site-footer{transition:filter .2s ease,opacity .2s ease}
body.is-popup-open{overflow:hidden}
body.is-popup-open .site-header,
body.is-popup-open .site-main,
body.is-popup-open .site-footer{
  filter:blur(10px);
  opacity:.66;
  pointer-events:none;
  user-select:none;
}
.news-popup-layer{
  position:fixed;
  inset:0;
  z-index:99998;
  pointer-events:none;
  background:rgba(5,12,28,.04);
}
.news-popup{
  position:absolute;
  right:24px;
  bottom:24px;

  /* было 360px */
  width:min(540px,calc(100vw - 48px));

  pointer-events:auto;
  background:transparent;
  border:0;
  outline:0;

  box-shadow:0 18px 46px rgba(0,0,0,.26);
}
@media(max-width:1023px) and (min-width:768px){

  .news-popup{
    right:18px;
    bottom:18px;

    width:min(540px,calc(100vw - 36px));
  }

  .news-popup-title{
    font-size:21px;
  }
}
.news-popup-link{
  position:relative;
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#071024;
  color:#fff;
  text-decoration:none;
}
.news-popup-link::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.02) 28%,rgba(0,8,32,.12) 52%,rgba(0,8,32,.88) 100%);
  pointer-events:none;
}
.news-popup-media{display:block;width:100%;height:100%;object-fit:cover}
.news-popup-copy{
  position:absolute;
  z-index:2;
  left:16px;
  right:16px;
  bottom:15px;
  display:block;
}
.news-popup-kicker{
  display:table;
  margin-bottom:8px;
  padding:4px 8px;
  background:var(--gb-red);
  color:#fff;
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.04em;
}
.news-popup-title{
  display:block;
  max-width:94%;
  color:#fff;
  font-size:22px;
  line-height:1.08;
  font-weight:800;
  text-shadow:0 2px 8px rgba(0,0,0,.45);
}
.news-popup-close{
  position:absolute;
  z-index:4;
  top:9px;
  right:9px;
  width:30px;
  height:30px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(0,15,45,.76);
  color:#fff;
  font-size:24px;
  line-height:28px;
  cursor:pointer;
}
.news-popup-close:hover,.news-popup-close:focus-visible{background:var(--gb-red)}
.data-error{padding:48px 20px;color:var(--gb-navy);font-size:18px;line-height:1.5}

@media(max-width:767px){
  .news-popup{
    left:50%;
    right:auto;

    top:50%;
    bottom:auto;

    /* было max 340px и отступ 28px */
    width:min(480px,calc(100vw - 20px));

    transform:translate(-50%,-50%);
  }

  .news-popup-title{
    font-size:20px;
  }

  .news-popup-copy{
    left:14px;
    right:14px;
    bottom:13px;
  }
}

/* ===== 3-second content refresh preloader ===== */
body.is-page-loading{overflow:hidden}
body.is-page-loading .site-header,
body.is-page-loading .site-main,
body.is-page-loading .site-footer{
  filter:blur(12px);
  opacity:.48;
  pointer-events:none;
  user-select:none;
}
.page-preloader{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.04);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease,visibility .16s ease;
}
body.is-page-loading .page-preloader{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.page-spinner{
  display:block;
  width:46px;
  height:46px;
  border:4px solid rgba(0,50,170,.18);
  border-top-color:var(--gb-blue);
  border-radius:50%;
  animation:gbn-spin .78s linear infinite;
}
@keyframes gbn-spin{to{transform:rotate(360deg)}}
@media(max-width:767px){.page-spinner{width:42px;height:42px}}
