.case-page {
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-bg);
}
.case-page * {
  box-sizing: border-box;
}
.case-frame {
  display: block;
  width: 100%;
  height: auto;
}
.case-main {
  display: block;
}
.case-hero {
  height: 500px;
  overflow: hidden;
  background: #247bff url("/img/v2026/cases/hero-bg.jpg") center top / cover no-repeat;
}
.case-hero__inner {
  width: min(var(--container), 100%);
  height: 100%;
  margin: 0 auto;
}
.case-hero__content {
  max-width: 760px;
  padding-top: 132px;
  color: #ffffff;
}
.case-hero__title {
  margin: 0;
  color: #ffffff;
  font-size: 48px;
  font-weight: var(--weight-bold);
  line-height: 64px;
}
.case-hero__subtitle {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 28px;
  white-space: nowrap;
}
.case-hero__stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 76px;
  margin-top: 42px;
}
.case-hero__stat {
  min-width: 92px;
}
.case-hero__stat-label {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 22px;
}
.case-hero__stat-value {
  display: block;
  margin-top: 9px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 500;
  line-height: 38px;
}
.case-section {
  padding: 60px 0 76px;
}
.case-container {
  width: min(var(--container), 100%);
  margin: 0 auto;
  overflow: visible;
}
.case-heading {
  margin: 0 0 44px;
  text-align: center;
}
.case-heading__title {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-title);
  font-weight: var(--weight-bold);
  line-height: var(--line-title);
}
.case-heading__subtitle {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: var(--font-size-subtitle);
  line-height: var(--line-subtitle);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 435px);
  justify-content: center;
  gap: 32px 27px;
  overflow: visible;
  padding: 0 0 6px;
}
.case-card {
  position: relative;
  display: flex;
  width: 435px;
  max-width: 100%;
  flex-direction: column;
  border-radius: var(--radius-card);
  background: #f5f7fc;
  outline: 1px solid transparent;
  outline-offset: 0;
  overflow: visible;
  transition: outline-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}
.case-card:hover,
.case-card:focus-within,
.case-card--pressed {
  outline-color: #b8ceff;
  box-shadow: 0 24px 52px rgba(22, 100, 255, 0.18);
  transform: translateY(-8px);
}
.case-card:active,
.case-card--pressed {
  transform: translateY(-4px);
}
.case-card__image {
  display: block;
  width: 435px;
  max-width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
  transition: filter 0.22s ease, opacity 0.22s ease;
}
.case-card:hover .case-card__image,
.case-card:focus-within .case-card__image,
.case-card--pressed .case-card__image {
  filter: brightness(1.04) saturate(1.04);
}
.case-card__body {
  display: flex;
  min-height: 320px;
  padding: 31px 32px 28px;
  flex: 1;
  flex-direction: column;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  background: #f5f7fc;
}
.case-card__eyebrow {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-card-title);
  font-weight: var(--weight-bold);
  line-height: 29px;
}
.case-card__title {
  margin: 8px 0 0;
  color: var(--color-text);
  font-size: var(--font-size-card-title);
  font-weight: var(--weight-bold);
  line-height: 30px;
}
.case-card__text {
  margin: 15px 0 15px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 27px;
}
.case-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 38px;
  margin-top: auto;
  border: 1px solid var(--color-primary);
  border-radius: 5px;
  color: var(--color-primary);
  background: #ffffff;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  outline: none;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.case-card:hover .case-card__link,
.case-card:focus-within .case-card__link,
.case-card--pressed .case-card__link {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 10px 20px rgba(22, 100, 255, 0.22);
}
.case-card__link:hover,
.case-card__link:focus {
  color: #ffffff;
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 10px 20px rgba(22, 100, 255, 0.24);
}
.case-card__link:focus {
  outline: 2px solid rgba(22, 100, 255, 0.35);
  outline-offset: 3px;
}
.case-card__link:active {
  transform: translateY(1px);
}
.case-consultation {
  background: #045fff;
}
@media (max-width: 1390px) {
  .case-hero__inner,
  .case-container {
    width: calc(100% - 48px);
  }
  .case-grid {
    grid-template-columns: repeat(2, 435px);
  }
}
@media (max-width: 980px) {
  .case-grid {
    grid-template-columns: minmax(0, 435px);
  }
}
@media (max-width: 768px) {
  .case-hero {
    height: 230px;
    background-image: url("/img/v2026/cases/hero-bg-mobile.jpg");
    background-position: center top;
  }
  .case-hero__inner {
    display: flex;
    align-items: center;
    width: calc(100% - 32px);
  }
  .case-container {
    width: calc(100% - 32px);
  }
  .case-hero__content {
    max-width: 100%;
    padding-top: 0;
    text-align: center;
  }
  .case-hero__title {
    width: 100%;
    font-size: 28px;
    line-height: 36px;
  }
  .case-hero__subtitle {
    width: 100%;
    margin-top: 8px;
    font-size: 13px;
    line-height: 20px;
    white-space: normal;
  }
  .case-hero__stats {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
  }
  .case-hero__stat {
    flex-shrink: 0;
    min-width: 64px;
    white-space: nowrap;
  }
  .case-hero__stat-label {
    font-size: 12px;
    line-height: 18px;
  }
  .case-hero__stat-value {
    margin-top: 2px;
    font-size: 21px;
    line-height: 26px;
  }
  .case-section {
    padding: 44px 0 54px;
  }
  .case-heading {
    margin-bottom: 30px;
  }
  .case-heading__title {
    font-size: 24px;
    line-height: 34px;
  }
  .case-heading__subtitle {
    margin-top: 8px;
    font-size: 15px;
    line-height: 24px;
  }
  .case-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .case-card {
    width: min(435px, 100%);
    margin: 0 auto;
  }
  .case-card:hover,
  .case-card:focus-within,
  .case-card--pressed {
    transform: translateY(-4px);
  }
  .case-card__body {
    min-height: auto;
    padding: 24px 22px 24px;
  }
  .case-card__eyebrow,
  .case-card__title {
    font-size: 18px;
    line-height: 27px;
  }
  .case-card__text {
    display: none;
  }
  .case-card__title {
    margin-bottom: 15px;
  }
  .case-clients {
    min-height: 220px;
    background-size: cover;
  }
}
@media (max-width: 480px) {
  .case-hero__title {
    width: 100%;
    text-align: center;
    font-size: 24px;
    line-height: 32px;
  }
  .case-hero__subtitle {
    width: 100%;
  }
  .case-hero__stats {
    width: 100%;
  }
  .case-card__link {
    width: 118px;
    height: 36px;
  }
}
.case-detail-page {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow-x: hidden;
  color: var(--color-text);
  background: #f5f7fd;
}
.case-detail-page * {
  box-sizing: border-box;
}
.case-detail-frame {
  display: block;
  width: 100%;
  height: auto;
}
.case-detail-main {
  display: block;
}
.case-hero {
  height: 500px;
  overflow: hidden;
  background: #247bff url("/img/v2026/cases/hero-bg.jpg") center top / cover no-repeat;
}
.case-hero__inner {
  width: min(var(--container), 100%);
  height: 100%;
  margin: 0 auto;
}
.case-hero__content {
  max-width: 760px;
  padding-top: 132px;
  color: #ffffff;
}
.case-hero__title {
  margin: 0;
  color: #ffffff;
  font-size: 48px;
  font-weight: var(--weight-bold);
  line-height: 64px;
}
.case-hero__subtitle {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 28px;
  white-space: nowrap;
}
.case-hero__stats {
  display: flex;
  flex-wrap: nowrap;
  gap: 76px;
  margin-top: 42px;
}
.case-hero__stat {
  min-width: 92px;
}
.case-hero__stat-label {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 22px;
}
.case-hero__stat-value {
  display: block;
  margin-top: 9px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 500;
  line-height: 38px;
}
.case-detail-content {
  padding: 24px 0 60px;
  background: #f5f7fd;
}
.case-detail-container {
  width: min(var(--container), 100%);
  margin: 0 auto;
}
.case-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 32px;
  color: #8a929f;
  font-size: 14px;
  line-height: 22px;
}
.case-detail-breadcrumb a {
  color: #4f5968;
  text-decoration: none;
  transition: color 0.2s ease;
}
.case-detail-breadcrumb a:hover {
  color: var(--color-primary);
}
.case-detail-layout {
  display: grid;
  grid-template-columns: 1030px 306px;
  align-items: start;
  gap: 24px;
}
.case-detail-primary {
  min-width: 0;
}
.case-detail-article {
  min-height: 924px;
  padding: 44px 49px 66px;
  background: #ffffff;
}
.case-detail-article__title {
  margin: 0;
  padding-bottom: 27px;
  border-bottom: 1px solid #dde2ec;
  color: var(--color-text);
  font-size: 30px;
  font-weight: var(--weight-bold);
  line-height: 42px;
}
.case-detail-article__section {
  margin-top: 29px;
}
.case-detail-article__section h3 {
  margin: 0 0 15px;
  color: var(--color-primary);
  font-size: 18px;
  font-weight: var(--weight-bold);
  line-height: 28px;
}
.case-detail-article__section p,
.case-detail-article__section li {
  color: var(--color-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}
.case-detail-article__section p {
  margin: 0;
}
.case-detail-article__section ul,
.case-detail-article__section ol {
  margin: 0;
  padding-left: 0;
  list-style-position: inside;
}
.case-detail-article__section li {
  margin: 0;
}
.case-detail-actions {
  display: flex;
  gap: 18px;
  margin-top: 40px;
}
.case-detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.case-detail-button:hover {
  transform: translateY(-1px);
}
.case-detail-button--primary {
  width: 230px;
  color: #ffffff;
  background: var(--color-primary);
}
.case-detail-button--primary:hover {
  color: #ffffff;
  background: var(--color-primary-dark);
}
.case-detail-button--secondary {
  width: 166px;
  color: #343b48;
  background: #ffffff;
  border-color: #d5dbe6;
}
.case-detail-button--secondary:hover {
  color: var(--color-primary);
  border-color: #b9caff;
}
.case-detail-recommend {
  position: sticky;
  top: 60px;
  min-height: 344px;
  padding: 25px 27px 30px;
  background: #ffffff;
}
.case-detail-recommend--fixed {
  position: fixed;
  top: 0;
  z-index: 100;
  right: 40px;
}
.case-detail-recommend__title {
  margin: 0;
  color: var(--color-text);
  font-size: 22px;
  font-weight: var(--weight-bold);
  line-height: 32px;
}
.case-detail-recommend__list {
  display: grid;
  gap: 14px;
  margin-top: 11px;
}
.case-detail-product {
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: 6px;
  color: #384252;
  font-size: 18px;
  line-height: 24px;
  text-decoration: none;
  background: #f3f5fb;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.case-detail-product:hover {
  color: #ffffff;
  background: var(--color-primary);
  transform: translateY(-1px);
}
.case-detail-product__icon {
  flex: 0 0 auto;
  width: 30px;
  height: auto;
  margin-right: 14px;
  object-fit: contain;
}
.case-detail-consultation {
  background: #f5f7fd;
}
@media (max-width: 1440px) {
  .case-detail-container,
  .case-hero__inner {
    width: calc(100% - 80px);
  }
  .case-detail-layout {
    grid-template-columns: minmax(0, 1fr) 306px;
  }
}
@media (max-width: 1024px) {
  .case-hero {
    height: 430px;
    background-image: url("/img/v2026/cases/hero-bg-mobile.jpg");
    background-position: center top;
  }
  .case-hero__content {
    max-width: 650px;
    padding-top: 92px;
  }
  .case-hero__title {
    font-size: 40px;
    line-height: 54px;
  }
  .case-hero__subtitle {
    white-space: normal;
  }
  .case-hero__stats {
    gap: 32px;
  }
  .case-detail-layout {
    grid-template-columns: 1fr;
  }
  .case-detail-recommend {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .case-detail-container,
  .case-hero__inner {
    width: calc(100% - 32px);
  }
  .case-hero {
    height: 230px;
    background-image: url("/img/v2026/cases/hero-bg-mobile.jpg");
    background-position: center top;
  }
  .case-hero__content {
    max-width: 100%;
    padding-top: 24px;
  }
  .case-hero__title {
    max-width: 330px;
    font-size: 28px;
    line-height: 36px;
  }
  .case-hero__subtitle {
    max-width: 330px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 20px;
    white-space: normal;
  }
  .case-hero__stats {
    flex-wrap: nowrap;
    gap: 8px 22px;
    max-width: 330px;
    margin-top: 14px;
  }
  .case-hero__stat {
    min-width: 64px;
  }
  .case-hero__stat-label {
    font-size: 12px;
    line-height: 18px;
  }
  .case-hero__stat-value {
    margin-top: 2px;
    font-size: 21px;
    line-height: 26px;
  }
  .case-detail-content {
    padding: 18px 0 42px;
  }
  .case-detail-breadcrumb {
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .case-detail-article {
    min-height: 0;
    padding: 28px 18px 34px;
  }
  .case-detail-article__title {
    font-size: 24px;
    line-height: 34px;
  }
  .case-detail-article__section p,
  .case-detail-article__section li {
    font-size: 15px;
    line-height: 26px;
  }
  .case-detail-actions {
    flex-direction: column;
  }
  .case-detail-button,
  .case-detail-button--primary,
  .case-detail-button--secondary {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .case-hero__title {
    margin: 0 auto;
    font-size: 24px;
    line-height: 32px;
  }
  .case-hero__subtitle {
    max-width: 300px;
    margin: 8px auto 0;
  }
  .case-hero__content {
    padding-top: 0;
  }
  .case-hero__inner {
    justify-content: center;
  }
}
