/* Site layout �?inspired by fullpage corporate template */

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, 96%);
  margin: 0 auto;
}

.site-header .logo {
  display: block;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  overflow: hidden;
  line-height: 0;
}

.site-header .logo__img {
  display: block;
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  color: #555;
  font-size: 14px;
}

.nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  background: #ddd;
  transform: translateY(-50%) rotate(18deg);
}

.nav a.is-active,
.nav a:hover {
  color: var(--brand);
  opacity: 1;
}

.header-user {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #ddd;
  display: grid;
  place-items: center;
  color: #999;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
}

/* ---------- Fullpage shell ---------- */
.fullpage {
  height: 100vh;
  padding-top: var(--header-h);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.section {
  min-height: calc(100vh - var(--header-h));
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.section--footer {
  min-height: auto;
  scroll-snap-align: end;
}

/* Side dots */
.page-dots {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
  transition: transform 0.2s var(--ease), background 0.2s;
}

.page-dots button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  transform: scale(1.35);
}

.page-dots.dark button {
  background: rgba(0, 0, 0, 0.2);
}

.page-dots.dark button.is-active {
  background: var(--brand);
}

/* ---------- Hero / Banner ---------- */
.hero {
  background: #1a1a1a;
  color: var(--white);
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero__slide--1 {
  background-image:
    linear-gradient(120deg, rgba(20, 20, 20, 0.7), rgba(80, 10, 10, 0.35)),
    url("img/hero-1.svg");
}

.hero__slide--2 {
  background-image:
    linear-gradient(120deg, rgba(10, 20, 40, 0.75), rgba(0, 0, 0, 0.45)),
    url("img/hero-2.svg");
}

.hero__slide--3 {
  background-image:
    linear-gradient(160deg, rgba(0, 0, 0, 0.55), rgba(90, 0, 20, 0.4)),
    url("img/hero-3.svg");
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.2;
}

.hero__title .red {
  color: var(--brand);
}

.hero__en {
  margin-top: 12px;
  font-size: clamp(12px, 1.6vw, 16px);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero__brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  margin: 36px 0 18px;
}

.hero__brands span {
  font-size: 13px;
  letter-spacing: 2px;
  opacity: 0.85;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 6px 14px;
}

.hero__desc {
  font-size: 14px;
  opacity: 0.85;
}

.hero-frame {
  display: inline-block;
  padding: 28px 36px;
  position: relative;
}

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--brand);
}

.hero-frame::before {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.hero-frame::after {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
}

.hero__big {
  font-size: clamp(72px, 12vw, 120px);
  color: var(--brand);
  font-weight: 700;
  line-height: 1;
  margin-right: 8px;
  vertical-align: middle;
}

.hero__line {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}

.hero__line strong {
  display: block;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 2px;
}

.hero__line strong .red {
  color: var(--brand);
}

.hero__line em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 18px;
}

.hero__line p {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.85;
}

.hero__more {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
}

.hero__more:hover {
  background: var(--brand);
  border-color: var(--brand);
  opacity: 1;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  position: relative;
}

.mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  background: #fff;
  border-radius: 2px;
  animation: mouseWheel 1.4s infinite;
}

@keyframes mouseWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.hero-pager {
  display: flex;
  align-items: center;
  gap: 0;
  width: min(320px, 60vw);
}

.hero-pager button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
  padding: 0;
}

.hero-pager button.is-active {
  background: var(--brand);
}

.hero-pager::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-pager {
  position: relative;
  justify-content: space-between;
}

/* ---------- Services (page2) ---------- */
.services {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.88)),
    url("img/bg-services.svg") center / cover no-repeat;
  display: flex;
  align-items: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: min(1180px, 94%);
  margin: 0 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #eee;
  padding: 36px 24px 28px;
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #fff5f5;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}

.service-card h2 {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 6px;
}

.service-card .en {
  font-size: 11px;
  letter-spacing: 1px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  flex: 1;
}

.service-card .btn {
  margin-top: 20px;
  display: inline-block;
  padding: 8px 22px;
  border: 1px solid var(--brand);
  color: var(--brand);
  font-size: 13px;
}

.service-card .btn:hover {
  background: var(--brand);
  color: #fff;
  opacity: 1;
}

/* ---------- Cases ---------- */
.cases {
  background:
    linear-gradient(180deg, rgba(248, 248, 248, 0.95), rgba(248, 248, 248, 0.9)),
    url("img/bg-cases.svg") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 36px;
}

.section-title h2 {
  font-size: 32px;
  color: var(--ink);
  letter-spacing: 4px;
}

.section-title .en {
  display: block;
  margin-top: 6px;
  color: #aaa;
  letter-spacing: 3px;
  font-size: 12px;
  text-transform: uppercase;
}

.section-title .bar {
  width: 40px;
  height: 3px;
  background: var(--brand);
  margin: 14px auto 0;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: min(1180px, 94%);
  margin: 0 auto;
}

.case-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
  text-decoration: none;
  color: inherit;
}

.case-item img,
.case-item .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.case-item .thumb {
  background: linear-gradient(135deg, #444, #222);
}

.case-item:hover img,
.case-item:hover .thumb {
  transform: scale(1.08);
}

.case-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 72%, transparent 100%);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  transition: background 0.25s var(--ease);
}

.case-item:hover figcaption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 78%, transparent 100%);
}

/* ---------- About ---------- */
.about {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(255, 255, 255, 0.55) 100%),
    url("img/bg-about.svg") right center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.about__layout {
  width: min(1180px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about__tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.about__tabs button {
  padding: 10px 0;
  color: #888;
  position: relative;
}

.about__tabs button.is-active {
  color: var(--brand);
}

.about__tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
}

.about__panel p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 14px;
  font-size: 14px;
}

.timeline {
  margin-top: 20px;
  border-left: 2px solid #eee;
  padding-left: 20px;
}

.timeline li {
  margin-bottom: 18px;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline h4 {
  color: var(--brand);
  font-size: 15px;
  margin-bottom: 4px;
}

.timeline p {
  font-size: 13px;
  color: #777;
}

.about__visual {
  min-height: 360px;
  background: linear-gradient(145deg, #2a2a2a, #111);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  position: relative;
}

.about__visual::before {
  content: "GEO";
  position: absolute;
  top: 24px;
  left: 28px;
  font-size: 64px;
  font-weight: 700;
  opacity: 0.12;
  letter-spacing: 8px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about__stats div strong {
  display: block;
  font-size: 28px;
  color: var(--brand);
}

.about__stats div span {
  font-size: 12px;
  opacity: 0.8;
}

/* ---------- Process ---------- */
.process {
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.88), rgba(20, 20, 20, 0.92)),
    url("img/bg-process.svg") center / cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.process .section-title h2,
.process .section-title .en {
  color: #fff;
}

.process .section-title .en {
  opacity: 0.6;
}

.process-grid {
  width: min(1100px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.process-item {
  text-align: center;
  padding: 18px 8px;
}

.process-item__num {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brand);
  font-weight: 700;
}

.process-item h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.process-item p {
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9)),
    url("img/bg-contact.svg") center / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.contact__box {
  width: min(900px, 92%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #eee;
  padding: 48px 40px;
  text-align: center;
}

.contact__list {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  text-align: left;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.contact__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #555;
  font-size: 14px;
}

.contact__list .label {
  color: var(--brand);
  min-width: 72px;
  font-weight: 600;
}

.contact__list a {
  color: var(--brand);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #222;
  color: #999;
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
}

.site-footer a {
  color: #bbb;
}

/* ---------- Float widgets ---------- */
.float-side {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.float-side a,
.float-side button {
  width: 48px;
  min-height: 48px;
  background: var(--brand);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1.2;
  padding: 6px 4px;
  text-align: center;
}

.float-side .to-top {
  background: #444;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .service-grid,
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__layout {
    grid-template-columns: 1fr;
  }

  .page-dots {
    display: none;
  }
}

@media (max-width: 1024px) {
  .case-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  .fullpage {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
    padding-top: var(--header-h);
  }

  .section {
    min-height: auto;
    padding: 64px 0;
  }

  .hero.section {
    min-height: calc(100vh - var(--header-h));
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 20px;
  }

  .nav a::after {
    display: none !important;
  }

  .header-user {
    display: none;
  }

  .service-grid,
  .case-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .contact__box {
    padding: 32px 20px;
  }

  .float-side {
    right: 8px;
    bottom: 16px;
  }
}

/* ========== Inner pages ========== */
body.inner-page {
  overflow: auto;
  background: #f5f5f5;
}

.inner-page .site-header {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.page-banner {
  margin-top: var(--header-h);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(20, 20, 20, 0.78), rgba(120, 0, 20, 0.55)),
    url("img/hero-2.svg") center / cover no-repeat;
  position: relative;
}

.page-banner h1 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 6px;
  font-weight: 700;
}

.page-banner .en {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.75;
}

.page-banner .crumb {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.8;
}

.page-banner .crumb a:hover {
  color: var(--brand);
  opacity: 1;
}

.page-wrap {
  width: min(1180px, 94%);
  margin: 32px auto 60px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.page-wrap--single {
  grid-template-columns: 1fr;
}

.side-nav {
  background: #fff;
  border: 1px solid #eee;
}

.side-nav__title {
  background: var(--brand);
  color: #fff;
  padding: 16px 18px;
  font-size: 16px;
  letter-spacing: 2px;
}

.side-nav a {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  font-size: 14px;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--brand);
  background: #fff8f8;
  opacity: 1;
}

.page-panel {
  background: #fff;
  border: 1px solid #eee;
  padding: 36px 40px;
  min-height: 480px;
}

.page-panel h1,
.page-panel h2,
.page-panel h3,
.page-panel h4 {
  margin-bottom: 16px;
}

.page-panel h2 {
  font-size: 24px;
  color: var(--ink);
}

.page-panel .panel-en {
  color: #aaa;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.page-panel .panel-bar {
  width: 36px;
  height: 3px;
  background: var(--brand);
  margin: 14px 0 24px;
}

.page-panel .lead,
.page-panel p {
  color: #666;
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 14px;
}

.page-panel .lead {
  margin-bottom: 20px;
}

.inner-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.inner-stats div {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  padding: 18px 12px;
  text-align: center;
}

.inner-stats strong {
  display: block;
  color: var(--brand);
  font-size: 26px;
}

.inner-stats span {
  font-size: 12px;
  color: #888;
}

.inner-timeline {
  border-left: 2px solid #eee;
  padding-left: 22px;
  margin-top: 8px;
}

.inner-timeline li {
  margin-bottom: 22px;
  position: relative;
}

.inner-timeline li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
}

.inner-timeline h3 {
  color: var(--brand);
  font-size: 16px;
  margin-bottom: 6px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-list article {
  border: 1px solid #eee;
  padding: 24px 22px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-list article:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.service-list h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.service-list .en {
  color: #aaa;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.service-list p {
  margin-bottom: 0;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.facility-card {
  border: 1px solid #eee;
  overflow: hidden;
  background: #fff;
}

.facility-card .pic {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #333, #111);
}

.facility-card .pic--2 { background: linear-gradient(135deg, #2c3e50, #1a252f); }
.facility-card .pic--3 { background: linear-gradient(135deg, #4a2020, #1a1010); }
.facility-card .pic--4 { background: linear-gradient(135deg, #203040, #101820); }
.facility-card .pic--5 { background: linear-gradient(135deg, #303018, #14140c); }
.facility-card .pic--6 { background: linear-gradient(135deg, #402840, #180818); }

.facility-card .body {
  padding: 14px 16px 18px;
}

.facility-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.facility-card p {
  margin: 0;
  font-size: 13px;
  color: #777;
}

.case-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-page-grid .case-item {
  background: #ddd;
}

/* ---------- ????????? + ????? ---------- */
.case-work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.case-work-list .case-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
}

.page-panel .list-pager {
  margin-top: 36px;
}

.case-work-item {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #ddd;
  border-radius: 4px;
}

a.case-work-item,
a.case-work-item:hover {
  opacity: 1;
  color: #fff;
}

.case-work-item__overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  visibility: hidden;
  pointer-events: none;
}

.case-work-item__overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.2) 100%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.case-work-item:hover .case-work-item__overlay {
  visibility: visible;
}

.case-work-item:hover .case-work-item__overlay::before {
  opacity: 1;
}

.case-work-item__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 16px;
  text-align: left !important;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.case-work-item:hover .case-work-item__text {
  opacity: 1;
}

.page-panel .case-work-list .case-work-item__title,
.case-work-list .case-work-item__title {
  margin: 0;
  width: 100%;
  font-size: 15px;
  line-height: 1.45;
  color: #fff !important;
  font-weight: 700;
  text-align: left !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.page-panel .case-work-list .case-work-item__desc,
.case-work-list .case-work-item__desc {
  margin: 8px 0 0;
  width: 100%;
  font-size: 12px;
  line-height: 1.6;
  color: #fff !important;
  text-align: left !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.case-work-item__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ececec;
}

.case-work-item__media .thumb {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease);
}

.case-work-item:hover .case-work-item__media .thumb {
  transform: scale(1.06);
}

.thumb--placeholder {
  background: linear-gradient(135deg, #3a3a3a, #1f1f1f);
}

/* ---------- ???? ---------- */
.case-detail {
  margin-top: var(--header-h);
  padding: 48px 0 88px;
  background: #fff;
}

.case-detail__head,
.case-detail__body,
.case-detail__related,
.case-detail__back,
.case-detail__empty {
  width: min(960px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.case-detail__crumb {
  margin: 0 0 20px;
  font-size: 13px;
  color: #999;
}

.case-detail__title {
  margin: 0 0 24px;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.case-detail__intro {
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.9;
  color: #555;
}

.case-detail__meta {
  margin: 0 0 36px;
  padding: 20px 0 0;
  border-top: 1px solid #eee;
}

.case-detail__meta-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
}

.case-detail__meta-row dt {
  margin: 0;
  color: #999;
}

.case-detail__meta-row dd {
  margin: 0;
  color: #444;
  line-height: 1.7;
}

.case-detail__cover {
  width: min(1180px, 96%);
  margin: 0 auto 40px;
  aspect-ratio: 21 / 9;
  background-color: #eee;
}

.case-detail__body {
  font-size: 15px;
  line-height: 1.9;
  color: #444;
}

.case-detail__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 24px auto;
}

.case-detail__body p {
  margin: 0 0 1em;
}

.case-detail__related {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid #eee;
}

.case-detail__related-title {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.case-detail__related-title span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: #bbb;
  text-transform: uppercase;
}

.case-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fafafa;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.case-related-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  opacity: 1;
}

.case-related-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8e8;
}

.case-related-card__media .thumb {
  width: 100%;
  height: 100%;
  transition: transform 0.45s var(--ease);
}

.case-related-card:hover .case-related-card__media .thumb {
  transform: scale(1.06);
}

.case-related-card__body {
  padding: 16px;
}

.case-related-card__tag {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
}

.case-related-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.case-related-card__body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #999;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-detail__back {
  display: inline-block;
  margin-top: 48px;
  font-size: 14px;
  color: #666;
}

.case-detail__back:hover {
  color: var(--brand);
}

.case-detail__empty {
  padding: 80px 0;
  text-align: center;
  color: #999;
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.case-filters button {
  padding: 6px 14px;
  border: 1px solid #ddd;
  color: #666;
  font-size: 13px;
  background: #fff;
}

.case-filters button.is-active,
.case-filters button:hover {
  border-color: var(--brand);
  color: var(--brand);
  opacity: 1;
}

.list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.list-pager__btn,
.list-pager__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  font-size: 13px;
  color: #666;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.list-pager__btn:hover,
.list-pager__page:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.list-pager__btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.list-pager__pages {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.list-pager__page.is-active {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.list-pager__ellipsis {
  padding: 0 4px;
  color: #bbb;
}

.case-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 0;
  color: #999;
  text-align: center;
}

.news-list {
  display: grid;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.news-item__date {
  text-align: center;
  border-right: 1px solid #eee;
  padding-right: 12px;
}

.news-item__date strong {
  display: block;
  font-size: 28px;
  color: var(--brand);
  line-height: 1;
}

.news-item__date span {
  font-size: 12px;
  color: #999;
}

.news-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--ink);
}

.news-item h3:hover {
  color: var(--brand);
}

.news-item p {
  margin: 0;
  font-size: 13px;
  color: #888;
}

.news-detail__title {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 14px;
}

.news-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #999;
  font-size: 13px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.news-detail__meta .tag {
  color: var(--brand);
  background: #fff5f5;
  padding: 2px 8px;
}

.news-detail__cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #2c3e50, #1a1a1a);
}

.news-detail__body {
  color: #555;
  font-size: 15px;
  line-height: 1.95;
}

.news-detail__body p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.95;
}

.news-detail__body h3 {
  font-size: 18px;
  color: var(--ink);
  margin: 28px 0 12px;
}

.news-detail__body ul {
  margin: 0 0 18px;
  padding-left: 1.2em;
  list-style: disc;
  color: #555;
}

.news-detail__body li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.news-detail__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
}

.news-detail__nav a {
  color: #666;
  max-width: 46%;
}

.news-detail__nav a:hover {
  color: var(--brand);
  opacity: 1;
}

.news-detail__back {
  display: inline-block;
  margin-top: 24px;
  color: var(--brand);
  font-size: 14px;
}

.related-news {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.related-news h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.related-news a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  color: #555;
  font-size: 14px;
}

.related-news a:hover {
  color: var(--brand);
  opacity: 1;
}

.related-news span {
  color: #aaa;
  font-size: 12px;
  margin-right: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.contact-info li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed #eee;
  color: #555;
}

.contact-info .label {
  color: var(--brand);
  min-width: 72px;
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  font-size: 13px;
  color: #666;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  padding: 10px 12px;
  font: inherit;
  background: #fafafa;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  background: var(--brand);
  color: #fff;
  padding: 10px 28px;
}

.contact-form button:hover {
  background: var(--brand-dark);
  opacity: 1;
}

.contact-captcha__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-captcha__row input {
  flex: 1;
  min-width: 0;
}

.contact-captcha__row img {
  width: 120px;
  height: 38px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.contact-form__tip {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}

.contact-form__tip.is-success {
  color: #2a9d5c;
}

.contact-form__tip.is-error {
  color: #c0392b;
}

.inner-page .site-footer {
  margin-top: 0;
}

@media (max-width: 960px) {
  .page-wrap {
    grid-template-columns: 1fr;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .side-nav__title {
    grid-column: 1 / -1;
  }

  .inner-stats,
  .service-list,
  .facility-grid,
  .case-page-grid,
  .case-related-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .case-detail__meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .page-panel {
    padding: 24px 18px;
  }
}
