:root {
  color-scheme: light;
  --ink: #132026;
  --muted: #5d6970;
  --line: #d8e0df;
  --surface: #ffffff;
  --soft: #f4f1e8;
  --mist: #e6f1ee;
  --green: #2f7d68;
  --green-dark: #17445b;
  --amber: #d98b36;
  --danger: #b42318;
  --ok: #1b7f4a;
  --shadow: 0 18px 45px rgba(19, 32, 38, 0.12);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fbfcfb;
  color: var(--ink);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 252, 251, 0.92);
  border-bottom: 1px solid rgba(216, 224, 223, 0.8);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: #fff;
  font-size: 15px;
}

.brand-logo {
  width: 165px;
  height: 63px;
  max-width: 42vw;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover {
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #0f172a;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.56) 48%, rgba(15, 23, 42, 0.18)),
    url("/assets/hero.svg") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 120px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #cbe7df;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.button-primary {
  background: var(--amber);
  color: #111;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.section {
  padding: 88px 0;
}

.section-soft {
  background: var(--soft);
}

.section-mist {
  background: var(--mist);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

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

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

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

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

.card {
  min-width: 0;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(19, 32, 38, 0.02);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.card-image {
  width: calc(100% + 48px);
  max-width: none;
  height: 150px;
  margin: -24px -24px 20px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  background: var(--mist);
}

.card h3 {
  margin: 16px 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--mist);
  color: var(--green-dark);
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.case-card {
  display: grid;
  gap: 18px;
  padding: 0;
  overflow: hidden;
}

.case-top {
  position: relative;
  min-height: 138px;
  padding: 22px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  overflow: hidden;
}

.case-top-with-image {
  min-height: 196px;
  display: grid;
  align-content: end;
}

.case-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.case-top-with-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(19, 32, 38, 0.08), rgba(19, 32, 38, 0.74));
}

.case-top span {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 24px;
  color: #d9efe9;
  font-size: 14px;
}

.case-top h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 22px;
}

.case-body {
  padding: 0 22px 22px;
}

.result {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff3e4;
  color: #7a3e08;
  font-size: 13px;
  font-weight: 700;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: start;
}

.prose {
  color: var(--muted);
  font-size: 17px;
}

.prose h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.2;
}

.prose p {
  margin: 0 0 18px;
}

.stats {
  display: grid;
  gap: 12px;
}

.about-media {
  overflow: hidden;
  border-radius: 8px;
  background: #132026;
  box-shadow: var(--shadow);
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stat {
  padding: 22px;
  border-left: 4px solid var(--amber);
  background: #fff;
}

.stat strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 34px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(19, 32, 38, 0.12);
}

.contact-item span {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #cbd5d3;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: #fff;
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid rgba(47, 125, 104, 0.18);
  border-color: var(--green);
}

.privacy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

.form-status.ok {
  color: var(--ok);
}

.form-status.error {
  color: var(--danger);
}

.form-disabled {
  align-content: center;
}

.form-disabled h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.form-disabled p {
  margin: 0;
  color: var(--muted);
}

.form-disabled .button {
  width: fit-content;
}

.site-footer {
  padding: 34px 0;
  background: #111a20;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-records {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--soft);
  text-align: center;
}

.error-page h1 {
  margin: 0 0 12px;
  font-size: 72px;
  line-height: 1;
}

.error-page p {
  margin: 0 0 24px;
  color: var(--muted);
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    background: #fbfcfb;
    border-bottom: 1px solid var(--line);
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
  }

  .section-heading,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .case-grid,
  .credential-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .header-inner,
  .container,
  .hero-inner,
  .footer-inner {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: 680px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    padding: 64px 0;
  }

  .service-grid,
  .case-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .contact-item,
  .footer-inner {
    flex-direction: column;
  }

  .footer-records {
    justify-content: flex-start;
  }

  .form {
    padding: 22px;
  }
}
