/* ==========================================================================
   MCMS inner pages · about, card services, scenes, cooperation, merchants
   ========================================================================== */

.page-hero--inner {
  min-height: 340px;
  background:
    linear-gradient(100deg, rgba(4, 19, 43, .95) 0%, rgba(5, 28, 62, .82) 54%, rgba(5, 28, 62, .56) 100%),
    url("../img/hero-bg.jpg") center 38% / cover no-repeat,
    #071b3d;
}

.inner-section {
  padding: 56px 0 86px;
  background: #f6f8fc;
}

.cover-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}

.cover-head__copy h2 {
  position: relative;
  padding-left: 15px;
  color: #18345e;
  font-size: clamp(23px, 2vw, 30px);
  line-height: 1.3;
}

.cover-head__copy h2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: .95em;
  background: var(--brand);
  transform: translateY(-50%);
}

.cover-head__copy p {
  max-width: 720px;
  margin-top: 9px;
  padding-left: 15px;
  color: #7e8ea3;
  font-size: 13px;
  line-height: 1.85;
}

.cover-head__note {
  flex: none;
  color: #9aa7b8;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.child-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.child-card {
  position: relative;
  display: flex;
  min-height: 200px;
  padding: 25px 24px 23px;
  overflow: hidden;
  border: 1px solid #e5ebf3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(18, 45, 83, .035);
  transition: transform .3s var(--ease), border-color .25s ease, box-shadow .3s ease;
}

.child-card:hover {
  border-color: #cbdff7;
  box-shadow: 0 18px 42px rgba(18, 45, 83, .1);
  transform: translateY(-4px);
}

.child-card__no {
  position: absolute;
  top: 12px;
  right: 18px;
  color: #eff4fa;
  font-family: var(--font-en);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
}

.child-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.child-card__kicker {
  color: #1b5bd6;
  font-family: var(--font-en);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.child-card h3 {
  margin-top: 9px;
  color: #1b3555;
  font-size: 20px;
  line-height: 1.45;
}

.child-card p {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: #78899d;
  font-size: 12.5px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.child-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: #1b5bd6;
  font-size: 11.5px;
  font-weight: 600;
}

.child-card__more .icon {
  width: 13px;
  height: 13px;
  transition: transform .2s ease;
}

.child-card:hover .child-card__more .icon { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Single page
   -------------------------------------------------------------------------- */

.inner-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 2vw, 28px);
}

.inner-side {
  position: sticky;
  top: 102px;
  overflow: hidden;
  border: 1px solid #e5ebf3;
  border-radius: 13px;
  background: #fff;
}

.inner-side h3 {
  padding: 18px 20px;
  border-bottom: 1px solid #edf1f6;
  color: #18345e;
  font-size: 15px;
  line-height: 1.4;
}

.inner-side nav {
  display: flex;
  flex-direction: column;
  padding: 8px;
}

.inner-side__link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 7px;
  color: #5d6d80;
  font-size: 12.5px;
  line-height: 1.55;
  transition: color .2s ease, background .2s ease;
}

.inner-side__link:hover {
  color: #1b5bd6;
  background: #f3f7ff;
}

.inner-side__link.is-active {
  color: #1b5bd6;
  background: #eef4ff;
  font-weight: 600;
}

.inner-main {
  min-width: 0;
  padding: clamp(24px, 3vw, 46px);
  border: 1px solid #e5ebf3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(18, 45, 83, .04);
}

.inner-head {
  padding-bottom: 22px;
  border-bottom: 1px dashed #dfe5ee;
}

.inner-kicker {
  color: #1b5bd6;
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.inner-head h1 {
  margin-top: 8px;
  color: #17324f;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.4;
  letter-spacing: -.025em;
}

.inner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: #99a6b5;
  font-size: 11.5px;
}

.inner-content { margin-top: 22px; }
.inner-content > :first-child { margin-top: 0; }

.inner-children {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid #edf1f6;
}

.inner-children > h2 {
  color: #18345e;
  font-size: 20px;
}

.inner-children .child-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 17px;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5ebf3;
  border-radius: 14px;
  background: #fff;
}

.faq-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 21px 24px;
  border-bottom: 1px dashed #e1e6ee;
  transition: background .2s ease;
}

.faq-row:last-child { border-bottom: 0; }
.faq-row:hover { background: #f8faff; }

.faq-no {
  display: grid;
  place-items: center;
  flex: none;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  color: #1b5bd6;
  background: #edf4ff;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
}

.faq-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.faq-copy b {
  color: #263d59;
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: #8291a4;
  font-size: 12px;
  line-height: 1.75;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.faq-arrow {
  flex: none;
  color: #9cabbc;
  font-size: 11.5px;
  transition: color .2s ease, transform .2s ease;
}

.faq-row:hover .faq-arrow {
  color: #1b5bd6;
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Scene cards
   -------------------------------------------------------------------------- */

.scene-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
}

.scene-list-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5ebf3;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(18, 45, 83, .04);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}

.scene-list-card:hover {
  border-color: #cbdff7;
  box-shadow: 0 18px 40px rgba(18, 45, 83, .1);
  transform: translateY(-4px);
}

.scene-list-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe8f5;
}

.scene-list-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.scene-list-card:hover img { transform: scale(1.04); }

.scene-list-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.scene-list-card__body small {
  color: #1b5bd6;
  font-family: var(--font-en);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.scene-list-card__body h3 {
  margin-top: 6px;
  color: #203a58;
  font-size: 17px;
  line-height: 1.55;
}

.scene-list-card__body p {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: #7c8ca0;
  font-size: 12px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scene-list-card__body .child-card__more { padding-top: 14px; }

/* --------------------------------------------------------------------------
   Merchant cards
   -------------------------------------------------------------------------- */

.merchant-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
}

.merchant-list-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5ebf3;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(18, 45, 83, .04);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}

.merchant-list-card:hover {
  border-color: #cbdff7;
  box-shadow: 0 18px 40px rgba(18, 45, 83, .1);
  transform: translateY(-4px);
}

.merchant-list-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2eee8;
}

.merchant-list-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.merchant-list-card:hover img { transform: scale(1.04); }

.merchant-list-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 19px 19px;
}

.merchant-list-card__body span {
  color: #a38a60;
  font-size: 10.5px;
}

.merchant-list-card__body h3 {
  margin-top: 5px;
  color: #263e5c;
  font-size: 16.5px;
  line-height: 1.5;
}

.merchant-list-card__body p {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: #8190a3;
  font-size: 12px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */

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

.link-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid #e5ebf3;
  border-radius: 11px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s var(--ease);
}

.link-card:hover {
  border-color: #cbdff7;
  box-shadow: 0 12px 28px rgba(18, 45, 83, .08);
  transform: translateY(-2px);
}

.link-card__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
  color: #1b5bd6;
  background: #eef4ff;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
}

.link-card__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.link-card__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.link-card__copy b {
  overflow: hidden;
  color: #32465f;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.link-card__copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #95a2b3;
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (max-width: 980px) {
  .child-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene-list-grid,
  .merchant-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inner-shell { grid-template-columns: 1fr; }
  .inner-side { position: static; }
  .inner-side nav { flex-flow: row wrap; }
  .inner-side__link { min-height: 0; padding: 8px 13px; }
}

@media (max-width: 640px) {
  .inner-section { padding: 38px 0 58px; }
  .cover-head { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 19px; }
  .cover-head__note { display: none; }
  .child-grid { grid-template-columns: 1fr; }
  .child-card { min-height: 168px; padding: 21px 20px 20px; }
  .child-card h3 { font-size: 18px; }
  .inner-main { padding: 21px 18px 24px; border-radius: 11px; }
  .inner-head h1 { font-size: 25px; }
  .inner-children .child-grid { grid-template-columns: 1fr; }
  .faq-row { gap: 12px; padding: 16px 15px; }
  .faq-no { width: 32px; height: 32px; }
  .faq-copy b { font-size: 13px; }
  .faq-copy small { white-space: normal; }
  .faq-arrow { display: none; }
  .scene-list-grid,
  .merchant-list-grid,
  .links-grid { grid-template-columns: 1fr; gap: 12px; }
}
