:root {
  --sn-primary: #e21d2f;
  --sn-primary-dark: #b61121;
  --sn-ink: #172033;
  --sn-muted: #5c667a;
  --sn-surface: #ffffff;
  --sn-surface-soft: #f4f6f9;
  --sn-line: #dce2ea;
  --sn-footer: #111827;
  --sn-footer-muted: #c8d0dc;
  --sn-radius: 12px;
  --sn-shadow: 0 12px 32px rgba(23, 32, 51, 0.09);
}

/* Compact, content-first header */
.bs-headfive .bs-header-main .inner {
  height: auto !important;
  min-height: 112px;
  padding: 0 !important;
}

.bs-headfive .bs-header-main .row {
  min-height: 112px;
}

.bs-headfive .bs-header-main .site-logo,
.bs-headfive .bs-header-main .navbar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bs-headfive .bs-header-main .custom-logo {
  width: auto !important;
  height: auto !important;
  max-width: 260px !important;
  max-height: 82px !important;
  object-fit: contain;
}

.stroyka-header-context {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--sn-ink);
  line-height: 1.25;
}

.stroyka-header-context > span {
  color: var(--sn-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stroyka-header-context > strong {
  font-size: 17px;
  font-weight: 750;
}

.stroyka-header-context > small {
  color: var(--sn-muted);
  font-size: 13px;
}

.stroyka-header-tools {
  width: 100%;
  max-width: 360px;
}

.stroyka-header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 44px;
  height: 44px;
  border: 1px solid var(--sn-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.stroyka-header-search input {
  min-width: 0;
  height: 42px;
  border: 0;
  padding: 10px 13px;
  color: var(--sn-ink);
  background: transparent;
  box-shadow: none !important;
  outline: 0;
}

.stroyka-header-search button[type="submit"] {
  display: inline-flex !important;
  width: auto !important;
  min-width: 80px;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 18px !important;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--sn-primary) !important;
  font-weight: 700;
  cursor: pointer;
  border-radius: 0 9px 9px 0 !important;
  font-size: 14px;
  line-height: 42px !important;
  box-shadow: none !important;
  transform: none !important;
  appearance: none;
}

.stroyka-header-search button[type="submit"]:hover,
.stroyka-header-search button[type="submit"]:focus-visible {
  background: var(--sn-primary-dark) !important;
}

.stroyka-header-search:focus-within {
  border-color: var(--sn-primary);
  box-shadow: 0 0 0 3px rgba(226, 29, 47, 0.14);
}

.stroyka-fresh-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 3px;
  color: var(--sn-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* One editorial lead and two different follow-up stories. */
.stroyka-unique-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
  height: 500px;
}

.stroyka-hero-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--sn-radius);
  background-color: #334155;
  background-position: center;
  background-size: cover;
  box-shadow: var(--sn-shadow);
}

.stroyka-hero-card::after {
  content: "";
  position: absolute;
  inset: 28% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(8, 15, 28, 0.9));
  pointer-events: none;
}

.stroyka-hero-card-main {
  grid-row: 1 / span 2;
}

.stroyka-hero-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.stroyka-hero-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 24px;
  color: #fff;
}

.stroyka-hero-card-main .stroyka-hero-copy {
  padding: 32px;
}

.stroyka-hero-category {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff !important;
  background: var(--sn-primary);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.stroyka-hero-copy h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.16;
  text-wrap: balance;
}

.stroyka-hero-card-main .stroyka-hero-copy h2 {
  max-width: 820px;
  font-size: clamp(32px, 3vw, 46px);
}

.stroyka-hero-copy h2 a,
.stroyka-edit-link a {
  position: relative;
  z-index: 4;
  color: #fff !important;
  text-decoration: none;
}

.stroyka-edit-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
}

.bs-headfive .hedaer-offcanvas,
.menu-link-description {
  display: none !important;
}

.bs-menu-full {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.bs-menu-full .main-nav {
  min-height: 54px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.bs-menu-full .nav-wp .sm-clean > li > a {
  min-height: 48px;
  padding: 14px 15px !important;
  display: flex;
  align-items: center;
  font-weight: 650;
  line-height: 1.2;
}

.bs-menu-full .nav-wp .sm-clean > li > a:focus-visible,
.bs-headfive a:focus-visible,
footer a:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

/* Clearer cards and reading rhythm */
.front-page-class .bs-blog-post,
.archive-class .bs-blog-post {
  border-radius: var(--sn-radius);
  overflow: hidden;
}

.front-page-class .list .bs-blog-post {
  border: 1px solid var(--sn-line);
  background: var(--sn-surface);
  box-shadow: 0 6px 22px rgba(23, 32, 51, 0.06);
}

.front-page-class .list .bs-blog-post:hover {
  box-shadow: var(--sn-shadow);
}

.front-page-class .bs-blog-post .title a,
.archive-class .bs-blog-post .title a {
  text-wrap: balance;
}

.front-page-class .bs-blog-post p,
.archive-class .bs-blog-post p,
.single .bs-blog-post p {
  color: var(--sn-muted);
  line-height: 1.65;
}

/* Footer: useful information instead of another copy of the news feed */
footer.footer.one {
  background: var(--sn-footer) !important;
  color: var(--sn-footer-muted);
}

footer.footer.one .overlay,
footer.footer.one .bs-footer-widget-area,
footer.footer.one .bs-footer-bottom-area,
footer.footer.one .bs-footer-copyright {
  background: transparent !important;
}

footer.footer.one .bs-footer-widget-area {
  padding: 48px 0 32px;
}

footer.footer.one .bs-footer-widget-area .row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 64px;
}

footer.footer.one .bs-footer-widget-area .bs-widget {
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

footer.footer.one #block-16,
footer.footer.one #block-15 figure {
  display: none !important;
}

footer.footer.one .wp-block-heading {
  color: #ffffff !important;
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 18px;
  position: relative;
  z-index: 1;
}

footer.footer.one .wp-block-heading::after {
  display: none !important;
}

footer.footer.one p,
footer.footer.one .bs-widget p {
  color: var(--sn-footer-muted) !important;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.7;
}

footer.footer.one .stroyka-footer-contact {
  margin-top: 20px;
}

footer.footer.one .stroyka-footer-contact strong {
  color: #ffffff;
}

footer.footer.one .stroyka-footer-privacy {
  margin-top: 12px;
  font-size: 14px;
}

footer.footer.one .stroyka-footer-contact a,
footer.footer.one .stroyka-footer-privacy a {
  text-decoration: underline;
}

footer.footer.one .wp-block-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0;
  padding: 0;
}

footer.footer.one .wp-block-categories li {
  border: 0 !important;
  padding: 0 !important;
  color: #94a3b8;
}

footer.footer.one .wp-block-categories a,
footer.footer.one a {
  color: #ffffff !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

footer.footer.one .wp-block-categories a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}

footer.footer.one a:hover {
  color: #ffd5d9 !important;
}

footer.footer.one .divide-line {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

footer.footer.one .bs-footer-bottom-area {
  padding: 24px 0 !important;
}

footer.footer.one .footer-logo .navbar-brand,
footer.footer.one .site-description-footer,
footer.footer.one .site-title-footer {
  display: none !important;
}

footer.footer.one .bs-footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
}

footer.footer.one .bs-footer-copyright p {
  color: #94a3b8 !important;
  font-size: 14px;
}

footer.footer.one .bs-footer-copyright .sep {
  display: none;
}

@media (max-width: 991px) {
  .bs-headfive .bs-header-main .inner {
    min-height: 88px;
  }

  .bs-headfive .bs-header-main .row {
    min-height: 88px;
  }

  .bs-headfive .bs-header-main .custom-logo {
    max-width: 168px !important;
    max-height: 60px !important;
  }

  .bs-menu-full .main-nav {
    min-height: 52px;
    justify-content: center;
  }

  .bs-menu-full .menu-btn {
    width: 48px;
    height: 48px;
    margin: 2px auto;
    padding: 12px;
    touch-action: manipulation;
  }

  .stroyka-header-context,
  .stroyka-header-tools {
    display: none !important;
  }

  /* On tablets the theme also stacks the carousel and repeats the feed. */
  .mainfeatured.two,
  #featured_post_widget-1,
  .front-page-class .sidebar-right,
  .missed {
    display: none !important;
  }

  .front-page-class.content {
    padding-top: 22px;
  }

  .front-page-class .content-right,
  .front-page-class .list,
  .archive-class .content-right,
  .archive-class .list {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  footer.footer.one .bs-footer-widget-area .row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .bs-headfive .bs-header-main .row {
    min-height: 76px;
  }

  .bs-headfive .bs-header-main .logo.col-6 {
    flex: 0 0 70%;
    max-width: 70%;
    justify-content: flex-start !important;
  }

  .bs-headfive .bs-header-main .col-6.justify-end {
    flex: 0 0 30%;
    max-width: 30%;
  }

  .bs-headfive .bs-header-main .custom-logo {
    max-width: 144px !important;
    max-height: 52px !important;
  }

  /* The theme carousel repeats posts that are already present in the feed.
     A single chronological stream is clearer and faster on a small screen. */
  .mainfeatured.two {
    display: none !important;
  }

  #featured_post_widget-1,
  .front-page-class .sidebar-right,
  .missed {
    display: none !important;
  }

  .front-page-class.content {
    padding-top: 18px;
  }

  .front-page-class .content-right,
  .front-page-class .list,
  .archive-class .content-right,
  .archive-class .list {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .front-page-class .list .bs-blog-post {
    margin-bottom: 18px;
  }

  footer.footer.one .bs-footer-widget-area {
    padding: 36px 0 18px;
  }

  footer.footer.one .wp-block-categories {
    grid-template-columns: 1fr;
    gap: 0;
  }

  footer.footer.one .bs-footer-bottom-area {
    padding: 18px 0 !important;
  }

  footer.footer.one .footer-logo,
  footer.footer.one .bs-footer-copyright p {
    text-align: left !important;
  }

  .single .bs-blog-post .title,
  .page .bs-blog-post .title {
    font-size: clamp(28px, 8vw, 38px) !important;
    line-height: 1.12 !important;
  }

  .single .bs-blog-post p,
  .single .bs-blog-post li {
    font-size: 16px;
    line-height: 1.65;
  }
}

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

  .bs-headfive .bs-header-main .inner {
    min-height: 76px;
  }

