:root {
  --page-blue: #0869e9;
  --page-blue-dark: #06164d;
  --page-ink: #263755;
  --page-muted: #69758a;
  --page-line: #e7edf5;
  --page-soft: #f5f8fc;
  --page-width: min(1200px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--page-ink); font: 15px/1.8 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-hero { min-height: clamp(480px, 31.5vw, 605px); display: flex; align-items: center; color: #fff; background-color: var(--page-blue-dark); background-position: center; background-size: cover; }
.page-hero--products { background-image: url("web-assets/products-banner.webp"); }
.page-hero--about { background-image: url("web-assets/group-banner.webp"); }
.page-hero--news { background-image: url("web-assets/news-banner.webp"); }
.page-hero__content { width: 89.55%; margin: auto; padding: 58px 0 52px; }
.page-hero h1 { max-width: 660px; margin: 0; font-size: clamp(46px, 3.35vw, 64px); line-height: 1.16; letter-spacing: .02em; }
.page-hero__subtitle { margin: 0; color: #fff; font-size: clamp(25px, 1.7vw, 32px); line-height: 1.45; }
.page-hero .button { width: 178px; min-height: 68px; margin: 20px 0; padding: 12px 24px; border-radius: 6px; font-size: 16px; }
.page-hero__description { max-width: 650px; margin: 0; color: #e1e9ff; font-size: 17px; line-height: 1.8; }

.eyebrow { margin: 0 0 10px; color: var(--page-blue); font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.page-hero .eyebrow, .contact-strip .eyebrow { color: #7fc8ff; }
.section { width: var(--page-width); margin: auto; padding: 96px 0; }
.section--soft { width: 100%; padding-right: max(24px, calc((100% - 1200px) / 2)); padding-left: max(24px, calc((100% - 1200px) / 2)); background: var(--page-soft); }
.section-heading { max-width: 700px; margin: 0 auto 54px; text-align: center; }
.section-heading h2, .about-intro h2, .contact-strip h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.35; }
.section-heading > p:last-child { margin: 16px 0 0; color: var(--page-muted); }

.button { display: inline-flex; min-width: 132px; min-height: 46px; align-items: center; justify-content: center; margin-top: 24px; padding: 10px 22px; border: 1px solid var(--page-blue); border-radius: 6px; background: var(--page-blue); color: #fff; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8, 105, 233, .24); }
.button--light { border-color: #fff; background: #fff; color: var(--page-blue); }

.product-section { width: 100%; padding: 78px 0 112px; }
.product-section .section-heading { margin-bottom: 76px; }
.product-section .section-heading h2 { font-size: clamp(28px, 2.4vw, 36px); }
.product-stack { display: grid; gap: 60px; }
.product-card { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; background: #fff; }
.product-card--reverse .product-card__media { order: 2; }
.product-card__media { aspect-ratio: 750 / 430;  }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; }
.product-card__content { padding: 48px clamp(42px, 6vw, 116px); }
.product-card h3 { margin: 0 0 20px; font-size: clamp(23px, 2vw, 30px); line-height: 1.4; }
.product-card p { margin: 0; color: var(--page-muted); line-height: 1.9; }
.product-card .button { min-width: 156px; min-height: 50px; margin-top: 24px; }
.feature-list { margin: 0; padding: 0; list-style: none; color: var(--page-muted); }
.feature-list li { position: relative; margin: 8px 0; padding-left: 19px; }
.feature-list li::before { content: ""; position: absolute; top: .72em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--page-blue); }

.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.news-item { overflow: hidden; border: 1px solid var(--page-line); border-radius: 12px; background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.news-item:hover { transform: translateY(-4px); box-shadow: 0 15px 36px rgba(20, 54, 96, .11); }
.news-item > a { display: block; height: 100%; }
.news-item__media { overflow: hidden; aspect-ratio: 748 / 360; background: var(--page-soft); }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-item:hover .news-item__media img { transform: scale(1.03); }
.news-item__content { display: flex; min-height: 220px; flex-direction: column; padding: 25px; }
.news-item__source { color: var(--page-blue); font-size: 13px; font-weight: 700; }
.news-item h3 { margin: 12px 0 24px; font-size: 19px; line-height: 1.55; }
.news-item__more { margin-top: auto; color: var(--page-muted); font-size: 13px; }
.news-category + .news-category { margin-top: 92px; padding-top: 76px; border-top: 1px solid var(--page-line); }
.news-category__heading { margin-bottom: 32px; }
.news-category__heading .eyebrow { margin-bottom: 8px; }
.news-category__heading h3 { margin: 0; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.4; }
.news-category__heading > p:last-child { margin: 12px 0 0; color: var(--page-muted); }
.empty-message { color: var(--page-muted); text-align: center; }

.about-intro { display: block; padding-top: 112px; padding-bottom: 120px; }
.about-intro__copy { max-width: 1040px; margin: 0 auto; }
.about-intro .eyebrow { margin-bottom: 14px; text-align: center; }
.about-intro h2 { position: relative; max-width: 900px; margin: 0 auto; padding-bottom: 30px; text-align: center; }
.about-intro h2::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 54px; height: 3px; border-radius: 2px; background: var(--page-blue); transform: translateX(-50%); }
.about-intro__copy > p:not(.eyebrow) { margin: 34px 0 0; color: #53647c; font-size: 17px; line-height: 2.15; letter-spacing: .015em; text-align: justify; }
.about-intro__copy > h2 + p { margin-top: 46px; }

.certificate-gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.certificate-card { display: grid; min-height: 260px; place-items: center; overflow: hidden; padding: 14px; border: 1px solid var(--page-line); border-radius: 9px; background: #fff; cursor: zoom-in; transition: transform .2s ease, box-shadow .2s ease; }
.certificate-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(28, 66, 111, .12); }
.certificate-card img { width: 100%; height: 230px; object-fit: contain; }

.certificate-dialog { width: min(94vw, 1050px); max-width: none; height: min(92vh, 850px); max-height: none; padding: 28px 70px; border: 0; border-radius: 12px; background: #0b1020; color: #fff; }
.certificate-dialog::backdrop { background: rgba(2, 7, 20, .84); backdrop-filter: blur(4px); }
.certificate-dialog figure { display: grid; height: 100%; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; margin: 0; place-items: center; }
.certificate-dialog figure img { width: 100%; height: 100%; object-fit: contain; }
.certificate-dialog figcaption { color: #c6d0e2; }
.certificate-dialog__close, .certificate-dialog__nav { position: absolute; border: 0; background: transparent; color: #fff; cursor: pointer; }
.certificate-dialog__close { top: 8px; right: 18px; font-size: 36px; }
.certificate-dialog__nav { top: 50%; font-size: 56px; transform: translateY(-50%); }
.certificate-dialog__nav--prev { left: 18px; }
.certificate-dialog__nav--next { right: 18px; }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline > li { position: relative; padding: 38px 34px; border-top: 3px solid var(--page-blue); background: var(--page-soft); }
.timeline > li + li { border-left: 1px solid var(--page-line); }
.timeline > li::before { content: ""; position: absolute; top: -8px; left: 34px; width: 13px; height: 13px; border-radius: 50%; background: var(--page-blue); box-shadow: 0 0 0 5px #dcecff; }
.timeline time { color: var(--page-blue); font-size: 13px; font-weight: 700; }
.timeline h3 { margin: 12px 0 18px; font-size: 22px; }
.timeline ul { margin: 0; padding-left: 18px; color: var(--page-muted); }
.timeline p { color: var(--page-muted); }

.contact-strip { display: flex; min-height: 290px; align-items: center; justify-content: space-between; gap: 40px; padding: 64px max(24px, calc((100% - 1200px) / 2)); background: linear-gradient(115deg, #06164d, #075ad1); color: #fff; }
.contact-strip p:last-child { margin: 12px 0 0; color: #cddcff; }
.contact-strip .button { flex: 0 0 auto; margin: 0; }
.contact-strip--light { display: block; min-height: 0; padding: 110px 24px 96px; background: #fff; color: var(--page-ink); text-align: center; }
.contact-strip--light h2 { font-size: clamp(24px, 2.2vw, 30px); }
.contact-strip--light h2 a { color: inherit; }
.contact-strip--light p:last-child { margin: 12px 0 0; color: var(--page-muted); }
.contact-strip--light .button { width: 360px; max-width: 100%; min-height: 58px; margin: 26px auto 0; border-color: var(--page-blue); background: var(--page-blue); color: #fff; }

@media (max-width: 900px) {
  .page-hero { min-height: 420px; background-position: 62% center; }
  .product-section { padding: 66px 0 82px; }
  .product-section .section-heading { width: calc(100% - 36px); margin-bottom: 48px; }
  .product-stack { gap: 48px; }
  .product-card { grid-template-columns: 1fr; }
  .product-card--reverse .product-card__media { order: 0; }
  .product-card__media { min-height: auto; aspect-ratio: 750 / 430; }
  .product-card__content { padding: 34px max(24px, 5vw) 8px; }
  .about-intro { padding-top: 82px; padding-bottom: 88px; }
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certificate-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .timeline > li + li { border-left: 0; }
}

@media (max-width: 600px) {
  :root { --page-width: min(100% - 36px, 1200px); }
  .page-hero { position: relative; min-height: clamp(112px, 31.2vw, 156px); background-position: center; }
  .page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 13, 60, .32), transparent 58%); }
  .page-hero__content { position: relative; z-index: 1; width: calc(100% - 76px); padding: 0; }
  .page-hero h1 { font-size: 18px; line-height: 1.3; letter-spacing: 0; }
  .page-hero__subtitle { margin-top: 4px; font-size: 18px; font-weight: 700; line-height: 1.3; }
  .page-hero .button,
  .page-hero__description { display: none; }
  .section { padding-top: 68px; padding-bottom: 68px; }
  .product-section { padding: 58px 0 68px; }
  .product-section .section-heading { margin-bottom: 38px; }
  .product-stack { gap: 42px; }
  .product-card__content { padding: 26px 24px 0; }
  .product-card h3 { margin-bottom: 14px; font-size: 22px; }
  .news-list { grid-template-columns: 1fr; }
  .news-category + .news-category { margin-top: 58px; padding-top: 52px; }
  .news-category__heading { margin-bottom: 24px; }
  .news-category__heading h3 { font-size: 25px; }
  .about-intro { padding-top: 68px; padding-bottom: 72px; }
  .about-intro h2 { padding-bottom: 24px; font-size: 28px; }
  .about-intro__copy > p:not(.eyebrow) { margin-top: 26px; font-size: 15px; line-height: 2; text-align: left; }
  .about-intro__copy > h2 + p { margin-top: 34px; }
  .certificate-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .certificate-card { min-height: 200px; padding: 8px; }
  .certificate-card img { height: 180px; }
  .certificate-dialog { padding: 48px 38px 22px; }
  .certificate-dialog__nav { font-size: 42px; }
  .certificate-dialog__nav--prev { left: 5px; }
  .certificate-dialog__nav--next { right: 5px; }
  .contact-strip { display: block; }
  .contact-strip .button { margin-top: 26px; }
  .contact-strip--light { padding: 76px 18px 72px; }
  .contact-strip--light h2 { font-size: 22px; }
  .contact-strip--light p:last-child { font-size: 14px; line-height: 1.8; }
  .contact-strip--light .button { min-height: 54px; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
