:root {
  --navy: #07182b;
  --navy-2: #0d2743;
  --ink: #101820;
  --muted: #5e6b78;
  --muted-2: #7b8794;
  --line: #e3e8ee;
  --line-strong: #cfd8e3;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --surface-warm: #fbfaf7;
  --teal: #0b8f88;
  --teal-soft: #e7f5f3;
  --danger: #b42318;
  --success: #0b5f59;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(7, 24, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-warm);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.35rem;
  font-size: clamp(2.9rem, 4.8vw, 4.85rem);
  font-weight: 760;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  font-weight: 720;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.08rem;
  font-weight: 710;
}

p {
  color: var(--muted);
  margin-bottom: 1rem;
}

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

.narrow {
  max-width: 820px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(227, 232, 238, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 2rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 760;
}

.brand-mark {
  width: 30px;
  height: 30px;
  margin-right: 0.7rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 620;
}

.primary-nav a {
  padding: 0.45rem 0;
}

.primary-nav a.active {
  color: var(--navy);
}

.primary-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 40px;
  padding: 0 1.1rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  line-height: 1;
  white-space: nowrap;
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta.active {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.hero {
  padding: 104px 0 92px;
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  gap: 4.5rem;
  align-items: center;
}

.hero-text {
  max-width: 750px;
  color: #46525f;
  font-size: clamp(1.14rem, 1.8vw, 1.36rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.08rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.2;
  cursor: pointer;
}

.button-primary {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.button-primary:hover {
  color: #ffffff;
  background: var(--navy-2);
  border-color: var(--navy-2);
}

.button-secondary {
  color: var(--navy);
  background: transparent;
  border-color: var(--line-strong);
}

.button-secondary:hover {
  color: var(--navy);
  border-color: var(--teal);
}

.button-light {
  color: var(--navy);
  background: #ffffff;
  border-color: #ffffff;
}

.button-light:hover {
  color: var(--navy);
  background: #f0f4f6;
}

.system-panel {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.section {
  padding: 92px 0;
  background: var(--surface-warm);
}

.section-quiet {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 4rem;
  align-items: start;
}

.section-intro p,
.section-heading p,
.prose p {
  font-size: 1.05rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2.3rem;
}

.card-grid,
.principle-grid,
.model-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  min-height: 184px;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.step {
  min-height: 236px;
  padding: 1.6rem;
  background: var(--surface);
}

.step span,
.service-card span {
  display: inline-block;
  color: var(--teal);
  margin-bottom: 1.2rem;
  font-size: 0.78rem;
  font-weight: 780;
}

.long-term {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.72fr);
  gap: 4rem;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.9rem 1rem 0.9rem 2.5rem;
  color: var(--navy);
  font-weight: 650;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.35rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.final-cta {
  padding: 58px 0;
  color: #ffffff;
  background: var(--navy);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.final-cta h2,
.final-cta p {
  color: #ffffff;
}

.final-cta h2 {
  max-width: 720px;
  margin-bottom: 0.7rem;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.final-cta p {
  margin-bottom: 0;
  opacity: 0.78;
}

.page-hero {
  padding: 88px 0 76px;
  background: var(--surface-warm);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
}

.page-hero p {
  max-width: 780px;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.68;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: 4rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.details-grid div {
  min-height: 132px;
  padding: 1.35rem;
  background: var(--surface);
}

.details-grid dt {
  color: var(--muted-2);
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details-grid dd {
  margin: 0;
  color: var(--navy);
  font-weight: 680;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 270px;
  padding: 1.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.service-card h2 {
  margin-bottom: 0.8rem;
  font-size: 1.55rem;
}

.contact-layout {
  max-width: 820px;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(7, 24, 43, 0.06);
}

.contact-form h2 {
  font-size: 1.35rem;
}

.contact-form {
  padding: 1.5rem;
}

.field {
  margin-bottom: 1.05rem;
}

label {
  display: block;
  color: var(--navy);
  margin-bottom: 0.45rem;
  font-size: 0.94rem;
  font-weight: 680;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.74rem 0.85rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(11, 143, 136, 0.16);
  border-color: var(--teal);
}

.field-error {
  display: none;
  color: var(--danger);
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}

.field.has-error .field-error {
  display: block;
}

.form-status {
  display: none;
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  font-weight: 680;
}

.form-status.success {
  display: block;
  color: var(--success);
  background: var(--teal-soft);
}

.form-status.error {
  display: block;
  color: var(--danger);
  background: #fff1ef;
}

.legal-content {
  max-width: 820px;
}

.legal-content h2 {
  margin-top: 2.2rem;
  font-size: 1.45rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.site-footer {
  padding: 62px 0;
  background: #061423;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) 0.8fr 0.8fr 1.1fr;
  gap: 3rem;
}

.site-footer h2 {
  color: #ffffff;
  margin-bottom: 0.95rem;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a,
.site-footer address {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  display: block;
  margin-bottom: 0.48rem;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-brand {
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-about p {
  max-width: 420px;
}

address {
  font-style: normal;
}

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

  .primary-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem 22px 1rem;
    background: var(--surface-warm);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(7, 24, 43, 0.08);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a,
  .nav-cta {
    padding: 0.9rem 0;
    border: 0;
    background: transparent;
  }

  .primary-nav .nav-cta {
    display: inline-flex;
    justify-content: center;
    color: #ffffff;
    padding: 0.78rem 1rem;
    margin-top: 0.45rem;
    border: 1px solid var(--navy);
    background: var(--navy);
  }

  .hero-layout,
  .section-grid,
  .long-term,
  .two-column {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .hero {
    padding: 76px 0 68px;
  }

  .section,
  .page-hero {
    padding: 68px 0;
  }

  .system-panel {
    max-width: 680px;
  }

  .card-grid,
  .principle-grid,
  .service-grid,
  .model-grid,
  .footer-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1160px);
  }

  .header-inner {
    min-height: 68px;
  }

  .primary-nav {
    top: 68px;
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(2.55rem, 11vw, 3.55rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .hero-actions,
  .final-cta-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .card-grid,
  .principle-grid,
  .service-grid,
  .model-grid,
  .details-grid,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .card,
  .service-card {
    min-height: auto;
  }
}
