@import url("variables.css");
@import url("reset.css");
@import url("layout.css");

/* 中间内容区基础结构（新版块在此扩展） */
.page-content {
  flex: 1;
  min-height: calc(100vh - var(--header-height) - 280px);
  background: var(--color-bg);
}

.page-content .container {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* ========== 首页全屏轮播 ========== */
.site-main--home {
  flex: 1;
}

/* 首页 · 滚动入场 */
.home-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  will-change: opacity, transform;
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.site-main--home .home-banner {
  width: 100%;
  height: calc(100vh - var(--header-height));
  min-height: 480px;
  background: #f2f2f2;
}

.home-banner__swiper {
  width: 100%;
  height: 100%;
}

.home-banner__swiper .swiper-wrapper,
.home-banner__swiper .swiper-slide {
  height: 100%;
}

.home-banner__slide-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home-banner__slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* 左右切换按钮 */
.home-banner__arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 24px;
  height: 45px;
  margin-top: -22px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}

.home-banner__arrow:hover {
  background: rgba(0, 0, 0, 0.55);
}

.home-banner__arrow::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-top: 2px solid rgb(254, 241, 2);
  border-right: 2px solid rgb(254, 241, 2);
}

.home-banner__prev {
  left: 24px;
}

.home-banner__prev::after {
  transform: rotate(-135deg);
  margin-left: 9px;
}

.home-banner__next {
  right: 24px;
}

.home-banner__next::after {
  transform: rotate(45deg);
  margin-right: 9px;
}

.home-banner__arrow.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* 底部分页圆点 */
.home-banner__pagination {
  bottom: 28px !important;
  line-height: 0;
}

.home-banner__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 6px !important;
  background: #ffffff;
  opacity: 0.45;
  transition: opacity var(--transition), transform var(--transition);
}

.home-banner__pagination .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .site-main--home .home-banner {
    height: 260px;
    min-height: 260px;
  }

  .home-banner__swiper {
    overflow: hidden;
  }

  .home-banner__swiper .swiper-slide {
    width: 100% !important;
  }

  .home-banner__arrow {
    /* width: 36px; */
    height: 36px;
    margin-top: -18px;
  }

  .home-banner__prev {
    left: 12px;
  }

  .home-banner__next {
    right: 12px;
  }

  .home-banner__slide-inner {
    height: 100%;
  }
}

/* ========== 首页 · 关于我们 ========== */
.home-about {
  background: #ffffff;
  height: 475px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.home-about__inner {
  text-align: center;
  width: 100%;
}

.home-about__en {
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--color-section-muted);
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-family: var(--font-en);
}

.home-about__cn {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-section-gold);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.home-about__desc {
  max-width: 720px;
  margin: 0 auto 24px;
}

.home-about__desc p {
  font-size: 15px;
  line-height: 1.75;
  color: #333333;
  letter-spacing: 0.04em;
}

.home-about__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 35px;
  background: var(--color-section-gold);
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.home-about__more span {
  display: block;
  margin-top: -1px;
}

.home-about__more:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .home-about {
    height: auto;
    min-height: 475px;
    padding: 48px 0;
  }

  .home-about__en {
    font-size: 36px;
    letter-spacing: 0.08em;
    font-family: var(--font-en);
  }

  .home-about__cn {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .home-about__desc {
    margin-bottom: 20px;
  }

  .home-about__desc p {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* ========== 首页 · 服务项目 ========== */
.home-service {
  height: 540px;
  box-sizing: border-box;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  padding-bottom: 20px;
}

.home-service__inner {
  width: 100%;
}

.home-service__head {
  text-align: center;
  margin-bottom: 36px;
}

.home-service__en {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: normal;
  letter-spacing: 0.12em;
  color: var(--color-section-muted);
  line-height: 1.2;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.home-service__cn {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: bold;
  color: var(--color-section-gold);
  letter-spacing: 0.2em;
}

.home-service__grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0 auto;
}

.home-service__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 292px;
  height: 283px;
  padding: 0 16px;
  background: #ffffff;
  text-align: center;
  border-right: 1px solid #eeeeee;
  box-sizing: border-box;
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.home-service__item:hover {
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
  z-index: 1;
}

.home-service__item:last-child {
  border-right: none;
}

.home-service__icon {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  flex-shrink: 0;
  font-size: 64px;
  line-height: 64px;
  color: #1a1a1a;
  transition: color var(--transition), transform var(--transition);
}

.home-service__item:hover .home-service__icon {
  color: var(--color-section-gold);
  transform: scale(1.08);
}

.home-service__title {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  margin: 0 0 10px;
  letter-spacing: 0;
  line-height: 1.4;
  transition: color var(--transition);
}

.home-service__item:hover .home-service__title {
  color: var(--color-section-gold);
}

.home-service__subtitle {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: normal;
  color: #999999;
  margin: 0;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

@media (max-width: 1200px) {
  .home-service__grid {
    flex-wrap: wrap;
    width: 584px;
    gap: 10px;
  }

  .home-service__item:nth-child(2) {
    border-right: none;
  }

  .home-service__item:nth-child(1),
  .home-service__item:nth-child(2) {
    border-bottom: 1px solid #eeeeee;
  }
}

@media (max-width: 992px) {
  .home-service__grid {
    width: 584px;

  }
}

@media (max-width: 768px) {
  .home-service {
    height: auto;
    min-height: 540px;
    padding: 48px 0;
  }

  .home-service__en {
    font-size: 36px;
    letter-spacing: 0.08em;
  }

  .home-service__cn {
    font-size: 16px;
  }

  .home-service__head {
    margin-bottom: 28px;
  }

  .home-service__grid {
    width: 292px;
  }

  .home-service__item {
    border-right: none;
    border-bottom: 1px solid #eeeeee;
  }

  .home-service__item:last-child {
    border-bottom: none;
  }
}

/* ========== 首页 · 案例宫格 ========== */
.home-cases {
  padding: 48px 0 56px;
  background: #ffffff;
}

.home-cases__inner {
  width: 100%;
}

.home-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 390px);
  gap: 15px;
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
}

.home-cases__item {
  position: relative;
  display: block;
  width: 390px;
  height: 250px;
  padding: 0;
  border: none;
  background: transparent;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.home-cases__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-cases__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
  color: #ffffff;
  background: rgba(10, 50, 120, 0.78);
  opacity: 0;
  transform: translateY(-100%);
  transition: transform var(--transition), opacity var(--transition);
}

.home-cases__item:hover .home-cases__overlay {
  opacity: 1;
  transform: translateY(0);
}

.home-cases__title {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.home-cases__desc {
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: normal;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
}

@media (max-width: 1200px) {
  .home-cases__grid {
    grid-template-columns: repeat(2, 390px);
    width: auto;
  }
}

@media (max-width: 820px) {
  .home-cases__grid {
    grid-template-columns: min(390px, 100%);
  }

  .home-cases__item {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .home-cases {
    padding: 40px 0 48px;
  }

  .home-cases__title {
    font-size: 16px;
  }

  .home-cases__desc {
    font-size: 13px;
  }
}

/* ========== 首页 · 合作品牌 ========== */
.home-brands {
  padding: 48px 0 56px;
  background: #ffffff;
}

.home-brands__inner {
  width: 100%;
}

.home-brands__head {
  text-align: center;
  margin-bottom: 40px;
}

.home-brands__en {
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: normal;
  letter-spacing: 0.12em;
  color: var(--color-section-muted);
  line-height: 1.2;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.home-brands__cn {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: bold;
  color: var(--color-section-gold);
  letter-spacing: 0.2em;
  margin: 0;
}

.home-brands__logos {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.home-brands__img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .home-brands {
    padding: 40px 0 48px;
  }

  .home-brands__head {
    margin-bottom: 28px;
  }

  .home-brands__en {
    font-size: 36px;
    letter-spacing: 0.08em;
  }

  .home-brands__cn {
    font-size: 16px;
  }
}

/* ========== 关于我们页 ========== */
.site-main--about {
  flex: 1;
  background: #ffffff;
}

.about-page {
  background: #ffffff url("../image/4bj.jpg") no-repeat center top;
  background-size: 1200px auto;
  position: relative;
  top: -100px;
}

.about-page__inner {
  display: flex;
  flex-direction: column;
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  /* min-height: calc(1200px * 4136 / 3533); */
}

.about-poem {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: calc(1200px * 4136 / 3533 * 0.55);
  padding: 140px 80px 48px;
}

.about-poem__text {
  max-width: 680px;
  text-align: center;
}

.about-poem__text p {
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: normal;
  line-height: 2.2;
  color: #666666;
  letter-spacing: 0.04em;
  margin: 0;
}

.about-detail {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  box-sizing: border-box;
  /* min-height: calc(1200px * 4136 / 3533 * 0.45); */
  padding: 24px 50px 0 0;
}

.about-detail__content {
  width: 58%;
  padding: 0 48px 0 24px;
  box-sizing: border-box;
}

.about-detail__desc {
  text-align: center;
  margin-bottom: 56px;
}

.about-detail__desc p {
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: normal;
  line-height: 2.2;
  color: #666666;
  letter-spacing: 0.04em;
  margin: 0;
}

.about-detail__stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0 8px;
}

.about-stat {
  flex: 1;
  text-align: center;
}

.about-stat__value {
  font-family: var(--font-cn);
  font-size: 28px;
  font-weight: bold;
  color: #333333;
  line-height: 1.3;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.about-stat__label {
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: normal;
  color: #999999;
  line-height: 1.4;
  margin: 0;
  letter-spacing: 0.04em;
}

@media (max-width: 1200px) {
  .about-page {
    background-size: 100% auto;
  }

  .about-page__inner {
    min-height: calc(100vw * 4136 / 3533);
  }

  .about-poem {
    min-height: calc(100vw * 4136 / 3533 * 0.55);
  }

  .about-detail {
    min-height: calc(100vw * 4136 / 3533 * 0.45);
  }
}

@media (max-width: 992px) {
  .about-poem {
    padding: 18vw 32px 32px;
  }

  .about-detail__content {
    width: 62%;
    padding: 0 24px 0 12px;
  }

  .about-stat__value {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .about-poem {
    min-height: auto;
    padding: 22vw 20px 32px;
  }

  .about-poem__text p,
  .about-detail__desc p {
    font-size: 14px;
    line-height: 2;
  }

  .about-detail {
    min-height: auto;
    padding: 16px 0 48px;
  }

  .about-detail__content {
    width: 100%;
    padding: 0 20px;
  }

  .about-detail__desc {
    margin-bottom: 36px;
  }

  .about-detail__stats {
    flex-wrap: wrap;
    gap: 24px 16px;
  }

  .about-stat {
    flex: 1 1 28%;
    min-width: 90px;
  }

  .about-stat__value {
    font-size: 20px;
  }

  .about-stat__label {
    font-size: 13px;
  }
}

/* ========== 工作机会页 ========== */
.site-main--careers {
  flex: 1;
  background: #ffffff;
}

.careers-page {
  background: #ffffff url("../image/5bj.jpg") no-repeat center top;
  background-size: 1200px auto;
}

.careers-page__inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  /* min-height: calc(1200px * 2942 / 4125); */
  padding: 50px 56px 64px;
  box-sizing: border-box;
}

.careers-page__grid {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.careers-page__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 65px;
}

.careers-job__title {
  font-family: var(--font-cn);
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  text-align: left;
  line-height: 1.6;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.careers-job__tip {
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: normal;
  color: #555555;
  text-align: left;
  line-height: 1.8;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.careers-job__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.careers-job__list li {
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: normal;
  color: #333333;
  line-height: 2;
  letter-spacing: 0.02em;
}

@media (max-width: 1200px) {
  .careers-page {
    background-size: 100% auto;
  }

  .careers-page__inner {
    /* min-height: calc(100vw * 2942 / 4125); */
    padding: 7vw 32px 48px;
  }
}

@media (max-width: 768px) {
  .careers-page__grid {
    flex-direction: column;
    gap: 36px;
  }

  .careers-page__col {
    gap: 36px;
  }

  .careers-page__inner {
    padding: 12vw 20px 40px;
  }

  .careers-job__title {
    font-size: 17px;
  }

  .careers-job__list li,
  .careers-job__tip {
    font-size: 15px;
    line-height: 1.9;
  }
}

/* ========== 公司案例页 ========== */
.site-main--cases {
  flex: 1;
  background: #ffffff;
}

.cases-page {
  padding: 40px 0 56px;
}

.cases-page__inner {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.cases-tabs {
  display: flex;
  width: 100%;
  margin-bottom: 24px;
}

.cases-tabs__btn {
  flex: 1;
  height: 48px;
  border: none;
  background: #f0f0f0;
  color: #666666;
  font-family: var(--font-cn);
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.cases-tabs__btn.is-active {
  background: #555555;
  color: #ffffff;
  font-weight: bold;
}

.cases-tabs__btn:hover:not(.is-active) {
  background: #e6e6e6;
}

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

.cases-card {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

.cases-card__media {
  position: relative;
  display: block;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
}

.cases-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.cases-card:hover .cases-card__img {
  transform: scale(1.04);
}

.cases-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: normal;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cases-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #999999;
  padding: 48px 0;
}

.cases-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.cases-pagination__btn,
.cases-pagination__num {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #666666;
  font-family: var(--font-cn);
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  border-radius: 5px;
}

.cases-pagination__btn:hover:not(:disabled),
.cases-pagination__num:hover:not(.is-active) {
  border-color: #bbbbbb;
}

.cases-pagination__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cases-pagination__num.is-active {
  background: #f0f0f0;
  border-color: #cccccc;
  font-weight: bold;
  color: #333333;
}

/* 弹窗 */
.cases-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}

.cases-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.cases-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cases-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: transparent;
  overflow: hidden;
}

.cases-modal__close {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1002;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-bottom-left-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 28px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.cases-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cases-modal .home-banner__arrow {
  position: fixed;
  top: 50%;
  z-index: 1002;
  margin-top: -22px;
}

.cases-modal .home-banner__prev {
  left: 32px;
}

.cases-modal .home-banner__next {
  right: 32px;
}

.cases-modal__swiper {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
  background: transparent;
  padding: 80px 96px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.cases-modal__swiper .swiper-wrapper,
.cases-modal__slide {
  height: 100%;
}

.cases-modal__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.cases-modal__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1480px);
  max-height: calc(100vh - 200px);
  object-fit: contain;
}

.cases-modal__thumbs {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  gap: 14px;
  padding: 22px 32px 32px;
  overflow-x: auto;
  background: transparent;
  /* border-top: 1px solid rgba(255, 255, 255, 0.28); */
}

.cases-modal__thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 72px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  overflow: hidden;
  opacity: 0.72;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
  transition: opacity var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.cases-modal__thumb:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.cases-modal__thumb.is-active {
  border-color: var(--color-section-gold);
  opacity: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
  transform: translateY(-3px);
}

.cases-modal__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.cases-modal-open {
  overflow: hidden;
}

@media (max-width: 992px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cases-page {
    padding: 24px 0 40px;
  }

  .cases-tabs__btn {
    height: 42px;
    font-size: 14px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .cases-card__media {
    height: 220px;
  }

  .cases-modal__close {
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 24px;
  }

  .cases-modal .home-banner__prev {
    left: 12px;
  }

  .cases-modal .home-banner__next {
    right: 12px;
  }

  .cases-modal__swiper {
    padding: 48px 0 8px;
    overflow: hidden;
  }

  .cases-modal__swiper .swiper-slide {
    width: 100% !important;
  }

  .cases-modal__img {
    max-width: 100%;
    width: auto;
    max-height: calc(100vh - 150px);
    padding: 0 12px;
    box-sizing: border-box;
  }

  .cases-modal__thumbs {
    padding: 16px 12px 24px;
    gap: 10px;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .cases-modal__thumb {
    width: 80px;
    height: 60px;
    scroll-snap-align: center;
  }
}
