:root {
  --inner-shell: min(1560px, calc(100% - 80px));
}

.inner-page {
  background: #fff;
}

.inner-shell {
  width: var(--inner-shell);
  margin-inline: auto;
}

.page-kicker h2 {
  margin: 0;
  color: #080808;
  font-size: 28px;
  line-height: 1.2;
}

.page-kicker p {
  margin: 6px 0 0;
  color: #080808;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
}

/* Product detail */
.detail-shell {
  width: min(1340px, calc(100% - 80px));
  margin-inline: auto;
}

.detail-content {
  padding-top: 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: #9ca1aa;
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.detail-overview {
  display: grid;
  grid-template-columns: 560px 100px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.detail-main-image {
  display: grid;
  place-items: center;
  height: 560px;
  overflow: hidden;
  border: 1px solid #9b9b9b;
  background: #fff;
}

.detail-main-image img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.detail-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100px;
  max-height: 560px;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b9bec8 transparent;
}

.detail-thumbnail {
  flex: 0 0 auto;
  width: 96px;
  height: 100px;
  padding: 7px;
  border: 1px solid #d8dbe2;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.detail-thumbnail:hover,
.detail-thumbnail:focus-visible {
  border-color: var(--blue);
  outline: 0;
}

.detail-thumbnail.is-active {
  border-color: #ff4646;
  box-shadow: 0 0 0 1px #ff4646;
}

.detail-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-summary {
  padding: 3px 0 0 18px;
  color: #656a73;
  font-size: 13px;
  line-height: 2.25;
}

.detail-summary h1 {
  margin: 0 0 18px;
  color: #181818;
  font-size: 23px;
  line-height: 1.3;
}

.detail-summary p {
  margin: 0 0 10px;
}

.detail-specs {
  padding: 18px 0 120px;
  color: #5e636c;
  font-size: 14px;
  line-height: 1.75;
}

.detail-specs h2 {
  margin: 0 0 16px;
  padding: 14px 20px;
  color: #222;
  background: #f6f6f6;
  text-align: center;
  font-size: 17px;
  font-weight: 500;
}

.detail-specs h3 {
  margin: 12px 10px 0;
  color: #555b65;
  font-size: 14px;
}

.detail-specs p {
  margin: 2px 10px;
}

.detail-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e4e6e9;
}

.detail-pagination a {
  color: #777d86;
}

.detail-pagination > span {
  min-height: 56px;
  padding: 18px 20px;
  color: #777d86;
  font-size: 13px;
}

.detail-pagination > span + span {
  border-left: 1px solid #e4e6e9;
  text-align: right;
}

.detail-pagination a:hover {
  color: var(--blue);
}

/* Solutions */
.sample-gallery {
  padding: 12px 0 62px;
}

.sample-gallery .page-kicker {
  margin-bottom: 29px;
}

.sample-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 74px 20px;
}

.sample-gallery-grid figure,
.solution-scene-grid figure {
  margin: 0;
  overflow: hidden;
}

.sample-gallery-grid img {
  width: 100%;
  aspect-ratio: 374 / 391;
  object-fit: cover;
  transition: transform .28s ease;
}

.sample-gallery-grid figure:hover img,
.solution-scene-grid figure:hover img {
  transform: scale(1.035);
}

.solution-divider {
  height: 135px;
  background: #f1f1f1;
}

.solution-divider .inner-shell {
  position: relative;
  display: flex;
  height: 100%;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 27px;
}

.solution-divider strong {
  color: #dadada;
  font-family: Arial, sans-serif;
  font-size: 58px;
  line-height: 1;
}

.solution-divider span {
  position: absolute;
  right: 0;
  bottom: 20px;
  color: var(--blue);
  font-size: 19px;
  font-weight: 700;
}

.solution-scene-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 26px 0 58px;
}

.solution-scene-grid img {
  width: 100%;
  aspect-ratio: 367 / 260;
  object-fit: cover;
  transition: transform .28s ease;
}

/* Contact */
.contact-panel {
  display: grid;
  grid-template-columns: 640px minmax(0, 1fr);
  gap: 84px;
  align-items: center;
  min-height: 492px;
  width: min(1520px, calc(100% - 80px));
  margin-inline: auto;
  padding: 68px 0 42px;
}

.contact-copy h1 {
  margin: 0 0 5px;
  font-size: 25px;
  font-weight: 500;
}

.contact-copy {
  padding-left: 42px;
}

.contact-copy > p {
  margin: 0 0 30px;
  color: #c2c5ca;
  font-size: 13px;
}

.contact-copy .cms-content p {
  margin: 0 0 18px;
  color: #626b7b;
  line-height: 1.8;
}

.contact-list {
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid #eceef1;
}

.contact-list div {
  margin-bottom: 27px;
}

.contact-list dt {
  margin-bottom: 9px;
  color: #6b7079;
  font-size: 13px;
  font-weight: 700;
}

.contact-list dd {
  margin: 0;
  color: #151515;
  font-size: 15px;
}

.contact-map-large img {
  width: 100%;
  aspect-ratio: 808 / 390;
  object-fit: cover;
}

/* Video center */
.video-center {
  padding-top: 35px;
}

.video-heading {
  margin-bottom: 25px;
  text-align: center;
}

.video-heading h1 {
  margin: 0 0 14px;
  color: #050505;
  font-size: 32px;
}

.video-heading p {
  margin: 0;
  color: #6d727b;
  font-size: 13px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 20px;
}

.video-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #090909;
  cursor: pointer;
}

.video-card::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding-left: 3px;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 72%);
  border-radius: 50%;
  content: "▶";
  background: rgb(0 0 0 / 48%);
  font-size: 18px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: background-color .2s ease, transform .2s ease;
}

.video-card img {
  width: 100%;
  aspect-ratio: 374 / 210;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}

.video-card:hover img,
.video-card:focus-visible img {
  opacity: .84;
  transform: scale(1.025);
}

.video-card:hover::after,
.video-card:focus-visible::after {
  background: rgb(18 63 189 / 88%);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.video-modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgb(0 0 0 / 82%);
}

.video-modal.is-open {
  display: grid;
}

.video-modal-dialog {
  position: relative;
  width: min(960px, 100%);
  padding: 18px;
  background: #050505;
}

.video-modal-dialog video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

.video-modal-dialog p {
  margin: 14px 42px 2px 2px;
  color: #fff;
  font-size: 15px;
}

.video-modal-close {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgb(0 0 0 / 72%);
  font-size: 26px;
  cursor: pointer;
}

/* News */
.news-cover {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #83a9d6;
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-cover-heading {
  position: absolute;
  z-index: 2;
  top: 96px;
  left: 50%;
  color: #fff;
  text-align: center;
  transform: translateX(-50%);
}

.news-cover-heading span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}

.news-cover-heading strong {
  display: block;
  margin-top: 14px;
  color: #1747c9;
  font-size: 24px;
  font-weight: 500;
}

.news-index {
  width: min(1320px, calc(100% - 80px));
  margin-inline: auto;
  padding: 59px 0 39px;
}

.news-tab {
  width: 230px;
  margin: 0 auto 25px;
  padding: 10px 20px;
  color: #fff;
  background: var(--blue);
  text-align: center;
  font-size: 14px;
}

.news-index article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 50px;
  min-height: 127px;
  padding: 24px 30px;
  border-bottom: 1px solid #e2e4e8;
}

.news-index h2 {
  margin: 0;
  color: #3b3f46;
  font-size: 18px;
  font-weight: 500;
}

.news-index p {
  grid-column: 1;
  margin: -4px 0 0;
  overflow: hidden;
  color: #92969d;
  font-size: 13px;
  line-height: 1.7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-index time {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  color: #747981;
  font-size: 16px;
}

.news-index article:hover h2 {
  color: var(--blue);
}

/* News detail */
.news-article-shell {
  width: min(1340px, calc(100% - 80px));
  margin-inline: auto;
  padding: 49px 0 12px;
}

.news-article-header h1 {
  margin: 0;
  color: #20242a;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.5;
}

.news-article-tags {
  display: flex;
  gap: 12px;
  margin-top: 27px;
}

.news-article-tags a {
  padding: 5px 10px;
  color: #979ba2;
  border: 1px solid #aeb1b6;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.35;
  transition: color .2s ease, border-color .2s ease;
}

.news-article-tags a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.news-article-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 41px;
  margin-top: 32px;
  padding: 8px 12px;
  color: #9297a0;
  border: 1px solid #e6e8eb;
  background: #fafafa;
  font-size: 13px;
}

.news-article-meta span,
.news-article-meta time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.news-article-meta i {
  color: #a8adb5;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-style: normal;
  line-height: 1;
}

.news-article-body {
  margin-top: 18px;
  color: #555c66;
  font-size: 16px;
  line-height: 1.75;
}

.news-article-body p {
  margin: 0;
}

.news-article-body p:last-child {
  text-indent: 2em;
}

.news-article-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 58px;
}

.news-article-next > span {
  display: flex;
  align-items: center;
  min-height: 63px;
  padding: 15px 24px;
  color: #575e67;
  border: 1px solid #e2e6ec;
  border-radius: 3px;
  font-size: 16px;
  transition: color .2s ease, border-color .2s ease;
}

.news-article-next > span:last-child { justify-content: flex-end; text-align: right; }
.news-article-next > span a { border: 0; }

.news-article-next > span:hover {
  color: var(--blue);
  border-color: #aebde8;
}

@media (min-width: 1600px) {
  .news-detail-page .footer-inner {
    grid-template-columns: 350px 94px 150px 256px 640px;
    gap: 0;
    align-items: start;
  }

  .news-detail-page .footer-contact {
    grid-column: 1;
    margin-top: 28px;
  }

  .news-detail-page .footer-contact > img {
    width: 190px;
    margin-bottom: 43px;
  }

  .news-detail-page .footer-qr {
    grid-column: 3;
    width: 220px;
    margin-top: 23px;
    text-align: left;
  }

  .news-detail-page .footer-qr img {
    width: 160px;
    margin-left: 0;
  }

  .news-detail-page .footer-qr p {
    white-space: nowrap;
  }

  .news-detail-page .footer-map {
    grid-column: 5;
  }

  .news-detail-page .footer-map img {
    width: 640px;
    height: 234px;
    max-height: none;
    object-fit: cover;
  }

  .news-detail-page .copyright {
    margin-top: 40px;
  }
}

@media (max-width: 1100px) {
  .detail-overview {
    grid-template-columns: minmax(380px, 1fr) 90px 1fr;
  }

  .detail-main-image {
    height: 480px;
  }

  .detail-thumbnails {
    width: 90px;
  }

  .detail-thumbnail {
    width: 86px;
    height: 90px;
  }

  .detail-summary {
    line-height: 1.9;
  }

  .contact-panel {
    grid-template-columns: .8fr 1.2fr;
    gap: 50px;
  }
}

@media (max-width: 900px) {
  :root {
    --inner-shell: min(100% - 34px, 720px);
  }

  .detail-shell,
  .contact-panel,
  .news-index,
  .news-article-shell {
    width: min(100% - 34px, 720px);
  }

  .news-article-shell {
    padding-top: 94px;
  }

  .news-article-header h1 {
    font-size: 26px;
  }

  .news-article-body {
    font-size: 15px;
    line-height: 1.9;
  }

  .news-article-next {
    margin-top: 42px;
  }

  .detail-content {
    padding-top: 42px;
  }

  .detail-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-main-image {
    grid-column: 1;
    height: auto;
    aspect-ratio: 1.15;
  }

  .detail-thumbnails {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    width: 100%;
    max-height: none;
    padding: 0 0 4px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .detail-thumbnail {
    width: 76px;
    height: 76px;
  }

  .detail-summary {
    grid-column: 1;
    grid-row: 3;
    padding-left: 0;
    font-size: 12px;
  }

  .detail-summary h1 {
    margin-bottom: 10px;
    font-size: 21px;
  }

  .detail-specs {
    padding-bottom: 70px;
  }

  .sample-gallery {
    padding-top: 52px;
  }

  .sample-gallery-grid,
  .solution-scene-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-gallery-grid {
    gap: 24px 14px;
  }

  .solution-divider strong {
    font-size: 44px;
  }

  .solution-scene-grid {
    gap: 14px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 64px 0;
  }

  .contact-copy {
    padding-left: 0;
  }

  .contact-map-large {
    grid-row: 1;
  }

  .video-center {
    padding-top: 58px;
  }

  .video-grid {
    gap: 18px 14px;
  }

  .news-cover {
    height: 250px;
  }

  .news-cover img {
    object-position: center;
  }

  .news-cover-heading {
    top: 88px;
  }

  .news-index {
    padding-top: 50px;
  }
}

@media (max-width: 560px) {
  .page-kicker h2 {
    font-size: 24px;
  }

  .detail-thumbnail {
    width: 64px;
    height: 64px;
  }

  .detail-summary {
    line-height: 1.7;
  }

  .detail-summary h1 {
    font-size: 19px;
  }

  .detail-specs {
    font-size: 13px;
  }

  .detail-pagination {
    grid-template-columns: 1fr;
  }

  .detail-pagination > span + span {
    border-top: 1px solid #e4e6e9;
    border-left: 0;
    text-align: left;
  }

  .solution-divider {
    height: 110px;
  }

  .solution-divider strong {
    font-size: 34px;
  }

  .contact-copy h1,
  .video-heading h1 {
    font-size: 26px;
  }

  .video-heading p {
    line-height: 1.8;
  }

  .news-cover {
    height: 220px;
  }

  .news-cover-heading {
    top: 82px;
  }

  .news-cover-heading span {
    font-size: 13px;
    letter-spacing: 0;
  }

  .news-cover-heading strong {
    margin-top: 10px;
    font-size: 20px;
  }

  .news-index {
    padding-block: 42px 28px;
  }

  .news-tab {
    width: 190px;
  }

  .news-index article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 4px;
  }

  .news-index h2 {
    font-size: 16px;
  }

  .news-index p {
    grid-column: 1;
    white-space: normal;
  }

  .news-index time {
    grid-row: auto;
    grid-column: 1;
    font-size: 13px;
  }

  .news-article-shell {
    padding-top: 86px;
  }

  .news-article-header h1 {
    font-size: 23px;
    line-height: 1.45;
  }

  .news-article-tags {
    margin-top: 18px;
  }

  .news-article-meta {
    flex-wrap: wrap;
    gap: 7px 18px;
    margin-top: 24px;
    padding-block: 10px;
  }

  .news-article-body {
    margin-top: 16px;
    font-size: 14px;
  }

  .news-article-body p {
    margin-bottom: 8px;
  }

  .news-article-next {
    margin-top: 30px;
  }

  .news-article-next {
    grid-template-columns: 1fr;
  }

  .news-article-next > span {
    justify-content: flex-start;
    min-height: 58px;
    padding-inline: 15px;
    font-size: 14px;
  }

  .news-article-next > span:last-child { justify-content: flex-start; text-align: left; }
}

@media (max-width: 390px) {
  .sample-gallery-grid,
  .solution-scene-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }
}
