body:has(.works-template-page) { display: flex; min-height: 100vh; flex-direction: column; background: #191919; color: #f4f4f4; }
body:has(.works-template-page) > main#content { flex: 1 0 auto; background: #191919; }
body:has(.works-template-page) > .site-footer { flex: 0 0 auto; }
body:has(.works-template-page) .mobile-book { display: none; }

.page { width: 100%; min-width: 0; overflow: clip; background: #191919; color: #f4f4f4; font-family: var(--font-main), Montserrat, sans-serif; font-size: 15px; line-height: normal; }
.page *, .page *::before, .page *::after { box-sizing: border-box; }
.page button, .page input { font: inherit; }
.page a { color: inherit; text-decoration: none; }
.page svg { display: block; width: 1em; height: 1em; }
.visuallyHidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.breadcrumbs { width: min(1280px, 100%); height: 41px; margin: 0 auto 20px; padding: 0 20px; }
.breadcrumbs > div { display: flex; align-items: center; gap: 8px; height: 41px; overflow: hidden; border-bottom: 1px solid #393937; color: #999b9d; font-size: 15px; white-space: nowrap; }
.breadcrumbs a:hover { color: #f4f4f4; }
.breadcrumbs span:nth-child(2) { color: #676765; }

.contentShell { display: grid; grid-template-columns: 23.4042553191% minmax(0, 1fr); gap: 2.127659574%; width: min(1280px, 100%); margin: 0 auto; padding: 0 20px; }
.sidebar { align-self: start; min-width: 0; }
.search { position: relative; display: block; height: 44px; }
.search input { display: block; width: 100%; height: 44px; margin: 0; padding: 7px 42px 7px 12px; border: 1px solid #f3f3f3; border-radius: 8px; outline: none; background: #2e2e2c; color: #f4f4f4; font-size: 11px; text-transform: uppercase; }
.search input::placeholder { color: #a1a1a0; opacity: 1; }
.search input:focus { background: #242424; }
.search > button { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #f3f3f3; }
.search > button svg { width: 23px; height: 23px; }
.sideHeading { margin: 26px 0 16px; color: #a1a6aa; font-size: 15px; font-weight: 500; line-height: 18px; text-transform: uppercase; }
.articleSideHeading { margin: 24px 0 0; color: #f4f4f4; font-size: 15px; font-weight: 400; line-height: 20px; }
.sideMenu { width: 100%; }
.sideMenuGroup { border-bottom: 1px dashed #f4f4f4; }
.sideMenuGroup:last-child { border-bottom: 0; }
.sideMenuGroup > button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48.25px; margin: 0; padding: 16px 0; border: 0; background: transparent; color: #f3f3f3; text-align: left; }
.sideMenuGroup > button span { font-size: 13px; line-height: 16.25px; }
.sideMenuGroup > button svg { width: 13px; height: 13px; margin-right: 2px; transition: transform .18s ease; }
.sideMenuGroup > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.sideSubmenu { display: flex; flex-direction: column; gap: 8px; padding: 0 0 14px; color: #a1a6aa; font-size: 12px; }
.sideSubmenu button, .sideSubmenu a { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.sideSubmenu button:hover, .sideSubmenu a:hover { color: #fff; }
.sideSubmenu button[aria-pressed="true"] { color: #ed7043; }
.sideScroller { position: relative; height: 285.5px; margin: 15px -10px 0; overflow: hidden; }
.sideTrack { display: grid; grid-template-columns: repeat(2, 135px); gap: 20px; width: 100%; padding: 0 10px; animation: sideTrackIn .2s ease; }
.sideCard { min-width: 0; padding: 10px; }
.sideImage { position: relative; display: block; height: 150px; margin-bottom: 10px; overflow: hidden; border: 1px solid #4a4a4a; border-radius: 15px; background: #202020; }
.sideImage img { object-fit: cover; }
.sideImage span, .cardImage span { position: absolute; bottom: 8px; left: 8px; display: block; padding: 3px 5px; border-radius: 3px; background: rgba(36,36,35,.8); color: #f4f4f4; font-size: 12px; font-weight: 600; line-height: normal; white-space: nowrap; }
.sideTitle { display: block; margin-bottom: 5px; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.54; }
.sliderArrow { position: absolute; z-index: 3; top: 132px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #242423; color: #f4f4f4; box-shadow: 0 3px 12px rgba(0,0,0,.22); }
.sliderArrow svg { width: 20px; height: 20px; }
.sliderPrev { left: 0; }
.sliderNext { right: 0; }

.mainContent { min-width: 0; padding-bottom: 40px; }
.mainContent h1 { display: flex; gap: 20px; height: 34px; margin: 0 0 20px; color: #f4f4f4; font-size: 28px; font-weight: 400; line-height: 34px; }
.tagGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; }
.tagGrid button, .tagGrid a { display: flex; align-items: center; min-height: 48px; padding: 11px 14px; border: 1px solid #353535; border-radius: 12px; background: #1f1f1f; color: #f2f2f2; font-size: 15px; font-weight: 500; line-height: 1.2; text-align: left; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.tagGrid button:hover, .tagGrid a:hover { border-color: #4a4a4a; background: #2a2a2a; color: #fff; transform: translateY(-1px); }
.tagGrid button[aria-pressed="true"] { border-color: #ed7043; color: #fff; }
.intro { margin: -2px 0 18px; color: #aeb0b2; font-size: 14px; line-height: 1.55; }
.cardGrid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.cardColumn { flex: 0 0 25%; min-width: 200px; margin-bottom: 32px; }
.workCard { position: relative; }
.cardContent { position: relative; margin: 0 12px; }
.cardImage { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; margin-bottom: 10px; overflow: hidden; border: 1px solid #464644; border-radius: 15px; background: #202020; }
.cardImage img { object-fit: cover; }
.cardInfo { max-height: 145px; overflow: hidden; }
.cardTitle { display: block; margin-bottom: 5px; overflow: hidden; color: #f4f4f4; font-size: 16px; font-weight: 400; line-height: 130%; text-overflow: ellipsis; white-space: nowrap; }
.cardViews { display: flex; align-items: center; gap: 4px; min-height: 28px; padding: 4px 0 0; color: #f4f4f4; font-size: 11px; font-weight: 600; line-height: normal; }
.cardViews svg { width: 14px; height: 14px; }
.cardDescription { margin: 0; color: #f3f3f3; font-size: 13px; font-weight: 400; line-height: normal; }
.readMore { display: none; width: max-content; min-height: 30px; margin-top: 12px; padding: 6px 11px; border-radius: 4px; background: #38761d; color: white; font-size: 12px; transition: background-color .18s ease; }
.readMore:hover, .readMore:focus-visible { background: #469324; }
.emptyState { min-height: 300px; margin: 30px 0; color: #a1a6aa; }
.loadMore { display: flex; align-items: center; width: 100%; min-height: 84px; gap: 28px; margin: 0; padding: 0; border: 0; background: transparent; color: #999b9d; cursor: pointer; font-size: 17px; line-height: 1; text-transform: uppercase; transition: color .18s ease; }
.loadMore::before, .loadMore::after { content: ""; flex: 1 1 auto; height: 1px; background: #353535; }
.loadMore > span { flex: 0 0 auto; font-size: 15px; font-weight: 700; }
.loadMore:hover { color: #f4f4f4; }
.loadMore:focus-visible { outline: none; }
.loadMore:focus-visible > span { outline: 2px solid #f4f4f4; outline-offset: 6px; }
.loadMore[aria-disabled="true"] { color: #777; cursor: progress; }
.pageLinks { display: flex; justify-content: flex-start; min-height: 44px; align-items: center; }
.pageLinks a { color: #999b9d; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.pageLinks a:hover { color: #fff; }
.loadError { margin: -8px 0 24px; color: #f3f3f3; font-size: 12px; line-height: 1.5; text-align: center; }

@keyframes sideTrackIn {
  from { opacity: .65; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (hover: hover) and (min-width: 768px) {
  .workCard:hover { z-index: 5; }
  .workCard:hover .cardContent { padding: 0 0 12px; background: #272727; box-shadow: 0 5px 18px rgba(0,0,0,.4); }
  .workCard:hover .cardInfo { max-height: none; padding: 0 10px; overflow: visible; }
  .workCard:hover .cardTitle { white-space: normal; }
  .workCard:hover .readMore { display: block; }
  .mainContent[data-suppress-card-hover="true"] .workCard:hover .cardContent { padding-bottom: 0; background: transparent; box-shadow: none; }
  .mainContent[data-suppress-card-hover="true"] .workCard:hover .cardInfo { max-height: 145px; padding: 0; overflow: hidden; }
  .mainContent[data-suppress-card-hover="true"] .workCard:hover .cardTitle { white-space: nowrap; }
  .mainContent[data-suppress-card-hover="true"] .workCard:hover .readMore { display: none; }
}

@media (max-width: 979px) {
  .contentShell { grid-template-columns: 23.403% minmax(0, 1fr); gap: 1.377%; padding: 0 15px; }
  .breadcrumbs { padding: 0 15px; }
  .sideScroller { margin-right: -15px; margin-left: -15px; }
  .sideTrack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; padding: 0 15px; }
  .tagGrid { gap: 8px; }
  .tagGrid button, .tagGrid a { min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
  .cardColumn { flex-basis: 50%; }
}

@media (max-width: 767px) {
  .breadcrumbs { height: 41px; margin-bottom: 15px; padding: 0 15px; }
  .breadcrumbs > div { height: 41px; }
  .contentShell { display: block; padding: 0 15px; }
  .sideMenuGroup > button { position: relative; justify-content: flex-start; gap: 12px; padding: 16px 0 16px 62px; }
  .sideMenuGroup > button span { order: 2; font-size: 13px; }
  .sideMenuGroup > button svg { order: 1; width: 16px; height: 16px; margin: 0; }
  .sideScroller { width: auto; height: 288.5px; margin: 15px -10px 0; padding: 0 5px; }
  .sideTrack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; padding: 0 5px; }
  .sideImage { height: auto; aspect-ratio: 1; }
  .sliderArrow { top: 128px; }
  .mainContent { padding-bottom: 15px; }
  .mainContent h1 { gap: 15px; margin-bottom: 20px; }
  .tagGrid { gap: 8px; }
  .tagGrid button, .tagGrid a { min-height: 44px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
  .cardGrid { margin: 0 -12px; }
  .cardColumn { flex-basis: 100%; min-width: 0; }
  .cardImage { height: 202px; aspect-ratio: auto; }
  .cardInfo { max-height: 145px; }
  .cardTitle { display: -webkit-box; min-height: 41.6px; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .loadMore { min-height: 76px; gap: 15px; }
  .loadMore > span { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) { .loadMore { transition: none; } }

@media (max-width: 420px) { .tagGrid button, .tagGrid a { padding: 9px 11px; font-size: 13px; line-height: 1.15; } }
@media (max-width: 359px) { .breadcrumbs, .contentShell { padding-right: 10px; padding-left: 10px; } }
