/*
Theme Name: 新工匠房屋企业官网
Theme URI: https://example.com/
Description: 为新工匠房屋科技有限公司快速定制的建筑企业展示型 WordPress 主题。
Version: 1.0.0
Text Domain: xingongjiang-house
*/

:root {
  --xgj-ink: #111827;
  --xgj-muted: #5b6472;
  --xgj-line: #dde3ea;
  --xgj-bg: #f6f8fb;
  --xgj-panel: #ffffff;
  --xgj-blue: #0f4c81;
  --xgj-blue-dark: #0b355d;
  --xgj-gold: #c78b36;
  --xgj-green: #1f7a5b;
  --xgj-shadow: 0 18px 45px rgba(15, 35, 62, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--xgj-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
  background: var(--xgj-bg);
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.topbar {
  color: #e8eef5;
  background: var(--xgj-blue-dark);
  font-size: 14px;
}

.topbar__inner,
.nav,
.section__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 18px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 250px;
}

.brand__logo {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.brand__name {
  display: block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.brand__sub {
  display: block;
  margin-top: 2px;
  color: var(--xgj-muted);
  font-size: 12px;
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #243042;
  font-size: 14px;
  font-weight: 650;
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--xgj-line);
  border-radius: 4px;
  color: var(--xgj-ink);
  background: #fff;
  cursor: pointer;
}

.nav__toggle-line {
  position: absolute;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle:focus-visible {
  outline: 3px solid rgba(15, 76, 129, 0.28);
  outline-offset: 2px;
}

.nav__toggle-line:nth-of-type(2) {
  transform: translateY(-6px);
}

.nav__toggle-line:nth-of-type(4) {
  transform: translateY(6px);
}

.site-header.is-nav-open .nav__toggle-line:nth-of-type(2) {
  transform: rotate(45deg);
}

.site-header.is-nav-open .nav__toggle-line:nth-of-type(3) {
  opacity: 0;
}

.site-header.is-nav-open .nav__toggle-line:nth-of-type(4) {
  transform: rotate(-45deg);
}

.nav__links a {
  padding: 10px 0;
}

.nav__links a:hover,
.footer a:hover {
  color: var(--xgj-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 750;
  white-space: nowrap;
}

.btn--primary {
  color: #fff;
  background: var(--xgj-gold);
}

.btn--primary:hover {
  background: #b87925;
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 650px;
  color: #fff;
  overflow: hidden;
}

.hero-slider__track {
  position: relative;
  min-height: 650px;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
  background:
    linear-gradient(90deg, rgba(8, 22, 39, 0.92), rgba(8, 31, 53, 0.72) 48%, rgba(8, 22, 39, 0.32)),
    var(--xgj-hero-image) center/cover;
}

.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__inner {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  align-items: center;
  padding: 90px 0 120px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #c7d5e4;
  font-size: 15px;
  font-weight: 750;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 660px;
  margin: 26px 0 0;
  color: #e8eef5;
  font-size: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-slider__dots {
  position: absolute;
  z-index: 3;
  left: max(20px, calc((100% - 1180px) / 2));
  bottom: 46px;
  display: flex;
  gap: 10px;
}

.hero-slider__dots button {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-slider__dots button.is-active {
  background: var(--xgj-gold);
}

.hero__stats {
  position: absolute;
  right: max(20px, calc((100% - 1180px) / 2));
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 1px;
  overflow: hidden;
  width: min(560px, calc(100% - 40px));
  background: rgba(255, 255, 255, 0.22);
  box-shadow: var(--xgj-shadow);
}

.hero__stat {
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--xgj-ink);
}

.hero__stat strong {
  display: block;
  color: var(--xgj-blue);
  font-size: 30px;
  line-height: 1;
}

.hero__stat span {
  display: block;
  margin-top: 8px;
  color: var(--xgj-muted);
  font-size: 14px;
}

.section {
  padding: 88px 0;
}

.section--white {
  background: #fff;
}

.section--blue {
  color: #fff;
  background: var(--xgj-blue-dark);
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section__head h2,
.page-content h1,
.entry-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.section__head p {
  max-width: 520px;
  margin: 0;
  color: var(--xgj-muted);
}

.section--blue .section__head p {
  color: #cbd8e6;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

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

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature,
.solution,
.news-card,
.qualification-card,
.process-step,
.page-shell {
  border: 1px solid var(--xgj-line);
  background: var(--xgj-panel);
}

.feature {
  padding: 28px;
}

.feature__icon,
.process-step__num {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  color: #fff;
  background: var(--xgj-blue);
  font-weight: 800;
}

.feature:nth-child(2) .feature__icon,
.feature:nth-child(4) .feature__icon {
  background: var(--xgj-green);
}

.feature:nth-child(3) .feature__icon {
  background: var(--xgj-gold);
}

.feature h3,
.solution h3,
.process-step h3,
.news-card h3,
.qualification-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.feature p,
.solution p,
.process-step p,
.news-card p,
.qualification-card p,
.contact-card p {
  margin: 0;
  color: var(--xgj-muted);
}

.qualifications-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.94), rgba(246, 249, 253, 0.92) 46%, rgba(241, 246, 251, 0.95)),
    #f6f9fc;
}

.qualifications-section .section__head {
  display: block;
  text-align: center;
}

.qualifications-section .section__inner {
  width: min(1640px, calc(100% - 96px));
}

.qualifications-section .section__head h2 {
  color: #111827;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 850;
}

.qualifications-section .section__head p {
  margin: 14px auto 0;
  color: #64748b;
  font-size: 18px;
}

.qualifications-showcase {
  position: relative;
  margin-top: 10px;
  padding: 0 42px;
}

.qualifications-row {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  padding: 8px 0 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.qualification-card {
  flex: 0 0 calc((100% - 96px) / 5);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 35, 62, 0.06);
  scroll-snap-align: start;
}

.qualification-card--portrait {
  flex-basis: calc((100% - 96px) / 5);
}

.qualification-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 286px;
  padding: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f9fbfd, #edf3f9);
  border-radius: 0;
  box-shadow: none;
}

.qualification-card--portrait .qualification-card__media {
  height: 286px;
}

.qualification-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.qualifications-row::-webkit-scrollbar {
  height: 8px;
}

.qualifications-row::-webkit-scrollbar-track {
  background: #edf2f7;
}

.qualifications-row::-webkit-scrollbar-thumb {
  background: #c7d3df;
}

.qualification-card--portrait .qualification-card__media img {
  width: 100%;
  height: 100%;
}

.qualification-card__media span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: #fff;
  background: var(--xgj-blue);
  font-size: 20px;
  font-weight: 800;
}

.qualification-card__body {
  min-height: 72px;
  padding: 20px 24px;
  text-align: left;
}

.qualification-card__body h3 {
  margin: 0;
  color: #1f2937;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.3;
}

.qualifications-showcase__controls {
  display: contents;
}

.qualifications-showcase__arrow {
  position: absolute;
  z-index: 3;
  top: 45%;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #1f2937;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 35, 62, 0.1);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.qualifications-showcase__arrow--prev {
  left: -18px;
}

.qualifications-showcase__arrow--next {
  right: -18px;
}

.qualifications-showcase__dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.qualifications-showcase__dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d5dce4;
  cursor: pointer;
}

.qualifications-showcase__dots button.is-active {
  background: var(--xgj-blue);
}

.media-band {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
  gap: 34px;
}

.media-band__image {
  min-height: 430px;
  overflow: hidden;
}

.media-band__image img,
.solution img,
.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-band__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 0;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #334155;
}

.check-list li::before {
  position: absolute;
  top: 0.2em;
  left: 0;
  color: var(--xgj-green);
  content: "✓";
  font-weight: 900;
}

.solution {
  overflow: hidden;
}

.solution__image {
  display: block;
  height: 240px;
  overflow: hidden;
  background: #d9e2ea;
}

.solution__body {
  padding: 26px;
}

.solution__tag {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--xgj-gold);
  font-size: 13px;
  font-weight: 800;
}

.process-step {
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.process-step p {
  color: #d2deea;
}

.process-step__num {
  color: var(--xgj-ink);
  background: #fff;
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  border: 1px solid var(--xgj-line);
  background: #fff;
}

.compare__col {
  padding: 34px;
}

.compare__col + .compare__col {
  border-left: 1px solid var(--xgj-line);
}

.compare h3 {
  margin: 0 0 18px;
}

.compare dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.compare dt {
  color: var(--xgj-blue);
  font-weight: 800;
}

.compare dd {
  margin: 4px 0 0;
  color: var(--xgj-muted);
}

.contact-strip {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 53, 93, 0.96), rgba(31, 122, 91, 0.86)),
    var(--xgj-contact-image) center/cover;
}

.contact-strip .section__inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
}

.contact-strip h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.18;
}

.contact-strip p {
  max-width: 660px;
  margin: 18px 0 0;
  color: #e5edf5;
}

.contact-card {
  padding: 30px;
  color: var(--xgj-ink);
  background: #fff;
  box-shadow: var(--xgj-shadow);
}

.contact-card strong {
  display: block;
  margin-top: 12px;
  color: var(--xgj-blue);
  font-size: 25px;
}

.contact-strip .contact-card p {
  color: var(--xgj-muted);
}

.contact-card .btn--ghost {
  color: var(--xgj-blue);
  border-color: rgba(15, 76, 129, 0.28);
}

.contact-card .btn--ghost:hover {
  background: rgba(15, 76, 129, 0.08);
}

.partners-section {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 248, 251, 0.96)),
    #f3f6fa;
}

.partners-section .section__inner {
  width: min(1480px, 100%);
}

.partners-section .section__head {
  display: block;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 36px;
  text-align: center;
}

.partners-section .section__head h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.partners-section .section__head p {
  margin: 14px auto 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 14px;
  width: calc(100% + 220px);
  margin-left: -110px;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 18px 24px;
  border: 1px solid rgba(221, 227, 234, 0.76);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.partner-card img {
  max-width: 150px;
  max-height: 46px;
  object-fit: contain;
}

.news-card {
  overflow: hidden;
}

.news-card__image {
  display: block;
  height: 168px;
  overflow: hidden;
  background: #d9e2ea;
}

.news-card__body {
  padding: 24px;
}

.news-card time {
  display: block;
  margin-bottom: 10px;
  color: var(--xgj-gold);
  font-size: 13px;
  font-weight: 800;
}

.archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 30px;
}

.archive-filter a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--xgj-line);
  color: #334155;
  background: #fff;
  font-weight: 750;
}

.archive-filter a:hover,
.archive-filter a.is-active {
  color: #fff;
  border-color: var(--xgj-blue);
  background: var(--xgj-blue);
}

.archive-filter span {
  color: inherit;
  font-size: 12px;
  opacity: 0.72;
}

.pagination {
  margin: 34px 0 0;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--xgj-line);
  color: #334155;
  background: #fff;
  font-weight: 750;
}

.page-numbers.current,
.page-numbers:hover {
  color: #fff;
  border-color: var(--xgj-blue);
  background: var(--xgj-blue);
}

.footer {
  flex-shrink: 0;
  margin-top: auto;
  color: #cbd8e6;
  background: #081827;
}

.footer__inner {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 30px;
  gap: 30px;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 34px;
}

.footer h2,
.footer h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer__brand h2 {
  margin-bottom: 0;
}

.footer__logo {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: #fff;
}

.footer p,
.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 8px;
}

.copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #8ea0b4;
  font-size: 14px;
}

.copyright__beian {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.copyright__beian a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  line-height: 1.4;
  text-decoration: none;
}

.copyright__beian a:hover {
  color: #fff;
}

.copyright__police img {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.page-hero {
  padding: 78px 0;
  color: #fff;
  background: var(--xgj-blue-dark);
}

.page-hero__inner,
.page-shell {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

.page-shell {
  margin-top: 54px;
  margin-bottom: 70px;
  padding: 44px;
}

.page-shell a {
  color: var(--xgj-blue);
  text-decoration: underline;
}

.about-page {
  background: var(--xgj-bg);
}

.about-hero {
  padding: 86px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(11, 53, 93, 0.98), rgba(15, 76, 129, 0.9) 52%, rgba(31, 122, 91, 0.92)),
    var(--xgj-blue-dark);
}

.about-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  gap: 54px;
  align-items: center;
}

.about-hero__content {
  min-width: 0;
}

.about-hero h1 {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.14;
}

.about-hero__lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #e7eef7;
  font-size: 20px;
}

.about-hero__text {
  max-width: 720px;
  margin: 18px 0 0;
  color: #cddbea;
}

.about-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.about-hero__panel {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.about-hero__panel-head {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.about-hero__panel-head span {
  display: block;
  color: var(--xgj-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-hero__panel-head strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 24px;
  line-height: 1.25;
}

.about-hero__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 24px;
}

.about-hero__stats div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.about-hero__stats strong {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.about-hero__stats span {
  display: block;
  color: #d9e5f1;
}

.about-hero__contact {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.about-hero__contact div {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.about-hero__contact span {
  display: block;
  color: #aec3d9;
  font-size: 14px;
}

.about-hero__contact strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
}

.about-card,
.about-service,
.about-system,
.about-quote {
  border: 1px solid var(--xgj-line);
  background: #fff;
}

.about-card {
  padding: 28px;
}

.about-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  color: #fff;
  background: var(--xgj-blue);
  font-weight: 800;
}

.about-card:nth-child(2) .about-card__icon {
  background: var(--xgj-green);
}

.about-card:nth-child(3) .about-card__icon {
  background: var(--xgj-gold);
}

.about-card h3,
.about-service h3,
.about-system h3,
.about-quote h3,
.about-timeline h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.about-card p,
.about-service p,
.about-quote p,
.about-timeline p {
  margin: 0;
  color: var(--xgj-muted);
}

.about-card--compact {
  min-height: 178px;
}

.about-service {
  padding: 30px;
}

.about-service ul,
.about-system ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.about-service li,
.about-system li {
  position: relative;
  padding-left: 24px;
  color: #334155;
}

.about-service li::before,
.about-system li::before {
  position: absolute;
  left: 0;
  color: var(--xgj-green);
  content: "✓";
  font-weight: 900;
}

.about-system {
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.about-system h3 {
  color: #fff;
}

.about-system li {
  color: #d2deea;
}

.about-timeline {
  display: grid;
  gap: 18px;
  max-width: 900px;
}

.about-timeline__item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding: 26px;
  border: 1px solid var(--xgj-line);
  background: #fff;
}

.about-timeline__item strong {
  color: var(--xgj-gold);
  font-size: 18px;
}

.about-history-section {
  background: var(--xgj-bg);
}

.about-history-section .section__head {
  display: block;
  text-align: center;
}

.about-history-section .section__head p {
  margin: 14px auto 0;
}

.about-history-timeline {
  position: relative;
  display: grid;
  gap: 42px;
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 0 18px;
}

.about-history-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #dce5ef;
  content: "";
  transform: translateX(-50%);
}

.about-history-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  align-items: start;
}

.about-history-timeline__card {
  padding: 26px;
  border: 1px solid var(--xgj-line);
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 35, 62, 0.06);
}

.about-history-timeline__item:nth-child(odd) .about-history-timeline__card {
  grid-column: 1;
}

.about-history-timeline__item:nth-child(even) .about-history-timeline__card {
  grid-column: 3;
}

.about-history-timeline__dot {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  border: 4px solid #3b82f6;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.about-history-timeline__card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--xgj-ink);
  font-size: 22px;
  line-height: 1.2;
}

.about-history-timeline__card h3 {
  margin: 0 0 10px;
  color: #334155;
  font-size: 16px;
}

.about-history-timeline__card p {
  margin: 0;
  color: var(--xgj-muted);
}

.about-quote {
  padding: 30px;
}

.about-quote p {
  position: relative;
  padding-top: 22px;
}

.about-quote p::before {
  position: absolute;
  top: -10px;
  left: 0;
  color: var(--xgj-gold);
  content: "“";
  font-size: 42px;
  line-height: 1;
}

.about-quote h3 {
  margin-top: 24px;
  color: var(--xgj-blue);
  font-size: 18px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  width: min(1180px, calc(100% - 40px));
  margin: 70px auto;
  gap: 42px;
  align-items: start;
}

.product-detail--product {
  grid-template-columns: minmax(0, 880px);
  justify-content: center;
}

.product-detail__media {
  min-height: 420px;
  overflow: hidden;
  background: #d9e2ea;
}

.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail--text-only {
  grid-template-columns: minmax(0, 760px);
}

.product-detail.case-detail {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.product-detail.news-detail {
  grid-template-columns: minmax(0, 880px);
  justify-content: center;
}

.product-detail__content {
  padding: 8px 0;
}

.product-detail--product .product-detail__content {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.product-detail__content h2,
.product-detail__content h3 {
  margin-top: 0;
}

.product-detail__lead {
  margin: 0 0 22px;
  color: #223047;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.65;
}

.product-detail__body {
  padding: 30px;
  border: 1px solid var(--xgj-line);
  background: #fff;
}

.product-detail__body > :first-child {
  margin-top: 0;
}

.product-detail__body > :last-child {
  margin-bottom: 0;
}

.product-detail__body p {
  color: #334155;
}

.product-detail__body ul,
.product-detail__body ol {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 20px;
  color: #334155;
}

.product-detail__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 24px;
  color: #fff;
  background: var(--xgj-blue-dark);
}

.product-detail__cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
}

.product-detail__cta p {
  margin: 0;
  color: #d8e4ef;
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-detail__content > .product-detail__actions {
  margin-top: 30px;
}

.product-detail__back {
  color: var(--xgj-blue);
  border-color: var(--xgj-line);
  background: #fff;
}

.job-contact {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--xgj-line);
  background: #f8fafc;
}

.job-contact h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.job-contact p {
  margin: 6px 0 0;
}

.message-form {
  margin-top: 26px;
}

.message-form form {
  display: grid;
  gap: 18px;
}

.message-form__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.message-form label {
  display: grid;
  gap: 8px;
  color: var(--xgj-ink);
  font-weight: 700;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 1px solid var(--xgj-line);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--xgj-ink);
  font: inherit;
  background: #fff;
}

.message-form textarea {
  resize: vertical;
}

.message-form__captcha {
  max-width: 360px;
}

.message-form__captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.message-form__captcha-row img {
  flex: 0 0 auto;
  border: 1px solid var(--xgj-line);
  background: #f6f8fb;
}

.message-form__captcha-row input {
  min-width: 0;
}

.message-form__notice {
  margin-bottom: 18px;
  padding: 12px 14px;
  color: #15573f;
  background: #e8f6ef;
  border: 1px solid #bde5d0;
}

.message-form__notice--error {
  color: #8a2f24;
  background: #fdecea;
  border-color: #f4c7c3;
}

.screen-reader-text {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(1px, 1px, 1px, 1px);
  word-wrap: normal;
}

@media (max-width: 980px) {
  .nav {
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 12px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav__toggle {
    position: relative;
    display: inline-flex;
  }

  .nav__links {
    display: none;
    flex: 0 0 100%;
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--xgj-line);
  }

  .site-header.is-nav-open .nav__links {
    display: grid;
  }

  .nav__links a {
    min-height: 44px;
    padding: 10px 6px;
    border-bottom: 1px solid rgba(221, 227, 234, 0.8);
  }

  .nav__links a:last-child {
    border-bottom: 0;
  }

  .grid--4,
  .grid--3,
  .partners-grid,
  .media-band,
  .about-hero__inner,
  .product-detail,
  .contact-strip .section__inner,
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .about-hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-hero__panel {
    max-width: 620px;
  }

  .partners-section .section__inner {
    width: min(1180px, calc(100% - 40px));
  }

  .partners-grid {
    width: 100%;
    margin-left: 0;
  }

  .qualifications-row {
    gap: 28px;
  }

  .qualification-card {
    flex-basis: 260px;
  }

  .qualification-card--portrait {
    flex-basis: 260px;
  }

  .qualification-card__media,
  .qualification-card--portrait .qualification-card__media {
    height: 220px;
  }

  .hero__stats,
  .contact-strip .section__inner,
  .footer__top {
    position: static;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
  }

  .hero {
    padding-bottom: 30px;
  }
}

@media (max-width: 680px) {
  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
    gap: 4px;
  }

  .topbar__inner,
  .nav,
  .section__inner,
  .hero__inner,
  .about-hero__inner,
  .page-hero__inner,
  .page-shell,
  .footer__inner {
    width: min(100% - 28px, 1180px);
  }

  .hero,
  .hero-slider__track,
  .hero__inner {
    min-height: 560px;
  }

  .hero__inner {
    padding: 58px 0 42px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .brand {
    gap: 10px;
  }

  .brand__logo {
    width: 48px;
    height: 48px;
  }

  .brand__name {
    font-size: 17px;
  }

  .brand__sub {
    font-size: 11px;
  }

  .hero__stats,
  .grid--4,
  .grid--3,
  .grid--2,
  .partners-grid,
  .media-band,
  .about-hero__stats,
  .product-detail,
  .message-form__grid,
  .compare,
  .contact-strip .section__inner,
  .footer__top {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .compare__col + .compare__col {
    border-top: 1px solid var(--xgj-line);
    border-left: 0;
  }

  .media-band__image {
    min-height: 280px;
  }

  .about-hero {
    padding: 68px 0 58px;
  }

  .about-hero h1 {
    font-size: clamp(34px, 12vw, 46px);
  }

  .about-hero__lead {
    font-size: 18px;
  }

  .about-hero__panel {
    padding: 22px;
  }

  .partners-section .section__inner {
    width: min(100% - 28px, 1180px);
  }

  .partner-card {
    min-height: 86px;
    padding: 16px;
  }

  .partner-card img {
    max-width: 130px;
  }

  .qualifications-row {
    display: flex;
    gap: 16px;
    padding: 10px 0 14px;
    overflow-x: auto;
  }

  .qualifications-section .section__inner {
    width: min(100% - 28px, 1180px);
  }

  .qualifications-showcase {
    padding: 0;
  }

  .qualification-card {
    flex-basis: 220px;
  }

  .qualification-card--portrait {
    flex-basis: 220px;
  }

  .qualification-card__media,
  .qualification-card--portrait .qualification-card__media {
    height: 180px;
  }

  .qualification-card__body {
    min-height: 66px;
    padding: 18px;
  }

  .qualifications-showcase__arrow {
    position: static;
    transform: none;
  }

  .qualifications-showcase__controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
  }

  .qualifications-showcase__dots {
    display: none;
  }

  .about-hero__stats div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-timeline__item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  .about-history-section .section__head {
    text-align: left;
  }

  .about-history-section .section__head p {
    margin-right: 0;
    margin-left: 0;
  }

  .about-history-timeline {
    gap: 24px;
    padding-left: 28px;
  }

  .about-history-timeline::before {
    left: 9px;
  }

  .about-history-timeline__item {
    display: block;
  }

  .about-history-timeline__item:nth-child(odd) .about-history-timeline__card,
  .about-history-timeline__item:nth-child(even) .about-history-timeline__card {
    grid-column: auto;
  }

  .about-history-timeline__dot {
    position: absolute;
    top: 0;
    left: -28px;
    margin: 0;
  }

  .about-history-timeline__card {
    padding: 22px;
  }

  .product-detail__media {
    min-height: 300px;
  }

  .product-detail__body,
  .product-detail__cta {
    padding: 22px;
  }

  .product-detail__cta {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 28px;
  }
}
