.service-portfolio { background: #eef6fa; }
.service-portfolio__head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 30px; }
.service-portfolio__head > div { max-width: 850px; }
.service-portfolio__head h2 { margin: 7px 0 12px; color: #0b3761; font-size: 38px; line-height: 1.2; }
.service-portfolio__head p { margin: 0; color: #587185; font-size: 17px; line-height: 1.6; }
.service-portfolio__head > a { flex: 0 0 auto; color: #2f6ca3; font-weight: 800; text-decoration: underline; }
.service-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-projects:has(.service-project:only-child) { grid-template-columns: minmax(0, 720px); }
.service-projects:has(.service-project:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-project { display: grid; grid-template-rows: auto 1fr; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #d5e2ed; }
.service-project__cover { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #dbe8ef; cursor: pointer; }
.service-project__cover img { display: block; width: 100%; height: 250px; object-fit: cover; }
.service-project__cover span { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 3px; color: #fff; background: rgba(4, 35, 63, .88); font-size: 13px; font-weight: 800; }
.service-project__body { display: flex; flex-direction: column; padding: 20px; }
.service-project__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.service-project__meta span { padding: 5px 8px; background: #eaf4f9; color: #235b89; font-size: 12px; font-weight: 800; }
.service-project h3 { margin: 0 0 9px; color: #0b3761; font-size: 21px; line-height: 1.3; }
.service-project p { margin: 0 0 18px; color: #587185; font-size: 15px; line-height: 1.55; }
.service-project__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: auto; }
.service-project__thumb { min-width: 0; padding: 0; overflow: hidden; border: 0; background: #dbe8ef; cursor: pointer; }
.service-project__thumb img { display: block; width: 100%; height: 76px; object-fit: cover; }
.service-project__actions { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 18px; }
.service-project__actions button { padding: 0; border: 0; color: #167b3e; background: none; font: inherit; font-weight: 800; cursor: pointer; }
.service-project__actions a { color: #2f6ca3; font-size: 14px; font-weight: 700; text-decoration: underline; }
.portfolio-lightbox[hidden] { display: none; }
.portfolio-lightbox { position: fixed; z-index: 10000; inset: 0; display: grid; grid-template-columns: 68px minmax(0, 1fr) 68px; align-items: center; padding: 28px; background: rgba(2, 20, 36, .94); }
.portfolio-lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: min(1120px, 100%); height: min(820px, calc(100vh - 56px)); margin: auto; }
.portfolio-lightbox figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.portfolio-lightbox figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0 0; color: #fff; }
.portfolio-lightbox__close, .portfolio-lightbox__nav { border: 0; color: #fff; background: rgba(255,255,255,.12); cursor: pointer; }
.portfolio-lightbox__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; font-size: 34px; line-height: 1; }
.portfolio-lightbox__nav { width: 54px; height: 66px; font-size: 42px; }
.portfolio-lightbox__nav--prev { justify-self: start; }
.portfolio-lightbox__nav--next { justify-self: end; }
.portfolio-lightbox-open { overflow: hidden; }
@media (max-width: 900px) { .service-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .service-portfolio__head { display: block; }
  .service-portfolio__head h2 { font-size: 30px; }
  .service-portfolio__head > a { display: inline-block; margin-top: 16px; }
  .service-projects, .service-projects:has(.service-project:nth-child(2):last-child) { grid-template-columns: 1fr; }
  .service-project__cover img { height: 230px; }
  .portfolio-lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 68px 8px 16px; }
  .portfolio-lightbox figure { height: calc(100vh - 100px); }
  .portfolio-lightbox__nav { width: 40px; height: 56px; font-size: 34px; }
  .portfolio-lightbox figcaption { font-size: 13px; }
}
