/* cases page-only layout, color, media and module styling. */

.cases-hero { height: 430px; min-height: 430px; overflow: hidden; color: #fff; background-color: #03163c; background-image: url('/assets/images/cases/cases-hero.webp'); background-position: center; background-size: cover; background-repeat: no-repeat; }

.cases-hero-inner { height: 430px; min-height: 430px; display: flex; align-items: center; }

.cases-intro { padding: 60px 0 54px; background: #fff; }

.cases-section-head { margin-bottom: 38px; }

.cases-section-head .section-title h2 { color: #14294c; }

.cases-section-head > p { color: #73839a; line-height: 1.8; }

.cases-value-grid { display: grid; grid-template-columns: repeat(3,1fr); }

.cases-value-grid article { min-height: 82px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 8px 28px; border-right: 1px solid #dbe6f4; }

.cases-value-grid article:last-child { border-right: 0; }

.cases-value-grid img { width: 55px; height: 55px; flex: 0 0 auto; object-fit: contain; }

.cases-value-grid h3 { margin: 0 0 8px; color: #193866; }

.cases-value-grid p { margin: 0; color: #7c8da2; }

.cases-catalog { padding: 62px 0 72px; background: linear-gradient(180deg,#f1f7ff,#eaf4ff 52%,#f4f9ff); }

.cases-list-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }

.cases-list-card { min-width: 0; overflow: hidden; display: block; color: inherit; border: 1px solid #d2e1f3; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(29,78,141,.08); transition: transform .25s ease,border-color .25s ease,box-shadow .25s ease; }

.cases-list-card:hover { transform: translateY(-5px); border-color: #8dbbfa; box-shadow: 0 18px 38px rgba(29,83,154,.15); }

.cases-list-card:focus-visible { outline: 3px solid rgba(22,119,255,.34); outline-offset: 3px; border-color: #1677ff; }

.cases-list-image { width: 100%; height: auto; aspect-ratio: 2/1; display: block; object-fit: cover; }

.cases-list-body { padding: 21px 24px 22px; }

.cases-tag { align-self: flex-start; display: inline-flex; align-items: center; height: 24px; padding: 0 6px; color: #fff; border-radius: 4px; background: linear-gradient(135deg,#1b83ff,#0b67e9); font-weight: 600; }

.cases-list-body h3 { margin: 12px 0 9px; color: #132f5d; line-height: 1.45; }

.cases-list-body > p { min-height: 44px; margin: 0; color: #6d7e94; line-height: 1.75; }

.cases-list-body footer { margin-top: 17px; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #e3ebf6; }

.cases-list-body footer strong { padding: 5px 10px; color: #1677ff; border: 1px solid #a7cbff; border-radius: 5px; background: #f5f9ff; }

.cases-list-body footer span { color: #1677ff; font-weight: 600; }

.cases-list-body footer i { margin-left: 5px; font-style: normal; transition: margin .2s ease; }

.cases-list-card:hover footer i { margin-left: 9px; }

.cases-list-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.cases-list-card:last-child:nth-child(odd) .cases-list-image {
  height: 100%;
  aspect-ratio: auto;
}

.cases-list-card:last-child:nth-child(odd) .cases-list-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 960px) {
.cases-list-grid { gap: 18px; }
.cases-list-body { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 700px) {
.cases-hero,.cases-hero-inner { height: 430px; min-height: 430px; }
.cases-hero { background-image: linear-gradient(180deg,rgba(2,21,56,.98) 0,rgba(2,21,56,.94) 58%,rgba(2,21,56,.32) 80%),url('/assets/images/cases/cases-hero.webp'); background-position: center,75% bottom; background-size: 100% 100%,auto 205px; }
.cases-hero-inner { align-items: center; }
.cases-intro { padding: 52px 0 46px; }
.cases-section-head { margin-bottom: 30px; }
.cases-section-head .section-title h2 { line-height: 1.45; text-align: center; }
.cases-section-head > p { padding: 0 10px; }
.cases-value-grid { grid-template-columns: 1fr; gap: 0; }
.cases-value-grid article { min-height: 80px; justify-content: flex-start; padding: 12px 24px; border-right: 0; border-bottom: 1px solid #e1eaf6; }
.cases-value-grid article:last-child { border-bottom: 0; }
.cases-value-grid img { width: 50px; height: 50px; }
.cases-catalog { padding: 52px 0 55px; }
.cases-list-grid { grid-template-columns: 1fr; gap: 17px; }
.cases-list-card:last-child:nth-child(odd) { grid-column: auto; display: block; }
.cases-list-card:last-child:nth-child(odd) .cases-list-image { height: auto; aspect-ratio: 2/1; }
.cases-list-body { padding: 18px 18px 19px; }
.cases-list-body h3 { margin-top: 10px; }
.cases-list-body > p { min-height: 0; }
.cases-list-body footer { gap: 10px; }
.cases-list-body footer strong { padding-right: 7px; padding-left: 7px; }
.cases-list-body footer span { white-space: nowrap; }
}

.cases-list-body footer a { color: #1677ff; font-weight: 600; }

.cases-list-body footer a:hover i { margin-left: 9px; }

@media (max-width: 700px) {
.cases-list-body footer a { white-space: nowrap; }
}
