:root {
  color-scheme: light;
  --bg: oklch(0.97 0.01 250);
  --surface: oklch(0.995 0.003 250);
  --surface-alt: oklch(0.95 0.015 255);
  --line: oklch(0.9 0.012 250);
  --line-strong: oklch(0.84 0.015 250);
  --line-subtle: oklch(0.93 0.008 250);
  --text: oklch(0.25 0.02 250);
  --heading: oklch(0.2 0.02 250);
  --muted: oklch(0.5 0.02 250);
  --nav-text: oklch(0.34 0.02 250);
  --brand-text: oklch(0.53 0.02 250);
  --accent: oklch(0.46 0.12 258);
  --accent-dark: oklch(0.36 0.1 258);
  --accent-contrast: oklch(0.98 0.005 250);
  --button-hover-bg: oklch(0.34 0.11 258);
  --button-hover-text: oklch(0.99 0.004 250);
  --accent-mark: oklch(0.55 0.1 258);
  --accent-soft: oklch(0.95 0.015 255);
  --fact-bg: oklch(0.975 0.006 250);
  --chip-border: oklch(0.88 0.015 250);
  --input-bg: oklch(1 0 0);
  --quote-bg: oklch(0.35 0.035 245);
  --quote-text: oklch(0.96 0.008 250);
  --quote-muted: oklch(0.8 0.03 250);
  --radius: 6px;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: var(--sans);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: oklch(0.19 0.012 105);
  --surface: oklch(0.245 0.012 105);
  --surface-alt: oklch(0.285 0.018 145);
  --line: oklch(0.36 0.018 115);
  --line-strong: oklch(0.48 0.02 115);
  --line-subtle: oklch(0.33 0.016 115);
  --text: oklch(0.9 0.012 95);
  --heading: oklch(0.97 0.012 95);
  --muted: oklch(0.72 0.018 95);
  --nav-text: oklch(0.88 0.014 95);
  --brand-text: oklch(0.78 0.016 95);
  --accent: oklch(0.56 0.12 258);
  --accent-dark: oklch(0.64 0.13 258);
  --accent-contrast: oklch(0.98 0.005 250);
  --button-hover-bg: oklch(0.43 0.12 258);
  --button-hover-text: oklch(0.98 0.005 250);
  --accent-mark: oklch(0.68 0.1 258);
  --accent-soft: oklch(0.3 0.03 150);
  --fact-bg: oklch(0.255 0.014 105);
  --chip-border: oklch(0.42 0.02 115);
  --input-bg: oklch(0.22 0.012 105);
  --quote-bg: oklch(0.24 0.03 160);
  --quote-text: oklch(0.95 0.014 95);
  --quote-muted: oklch(0.72 0.035 120);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 18px/1.6 var(--sans);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

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

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

[hidden] {
  display: none !important;
}

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

h1,
h2,
h3,
p,
li,
a,
span,
strong {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(46px, 6vw, 62px);
}

h2 {
  font-size: clamp(34px, 4vw, 44px);
}

h3 {
  font-size: 25px;
}

.site-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 32px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 24px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: clamp(220px, 24vw, 292px);
  height: auto;
  object-fit: contain;
}

.brand-logo-dark,
:root[data-theme="dark"] .brand-logo-light {
  display: none;
}

:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.brand span {
  max-width: 16em;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  color: var(--brand-text);
  font-size: 13px;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.primary-nav,
.header-actions,
.action-row,
.footer-bottom,
.footer-bottom span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.primary-nav {
  flex: 1 1 420px;
  justify-content: flex-end;
  gap: 14px 24px;
  margin-left: auto;
  font-size: 16px;
}

.header-actions {
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
}

.header-actions .button-small {
  flex: 0 0 auto;
}

.primary-nav a {
  color: var(--nav-text);
  text-decoration: none;
}

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

.primary-nav .button:hover {
  color: var(--button-hover-text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--nav-text);
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.theme-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow:
    0 -8px 0 -6px currentColor,
    0 8px 0 -6px currentColor,
    8px 0 0 -6px currentColor,
    -8px 0 0 -6px currentColor,
    6px 6px 0 -6px currentColor,
    -6px -6px 0 -6px currentColor,
    6px -6px 0 -6px currentColor,
    -6px 6px 0 -6px currentColor;
}

.theme-icon::after {
  content: "";
  position: absolute;
  display: none;
}

.theme-toggle[aria-pressed="true"] .theme-icon {
  border: 0;
  background: currentColor;
  box-shadow: inset -6px -3px 0 0 var(--surface);
}

.theme-toggle[aria-pressed="true"] .theme-icon::after {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 30px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.primary-nav .button {
  color: var(--accent-contrast);
}

.button:hover {
  background: var(--button-hover-bg);
  border-color: var(--button-hover-bg);
  color: var(--button-hover-text);
}

.button-small {
  min-height: 46px;
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 500;
}

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

.button-outline {
  color: var(--accent);
  border-color: var(--accent);
}

.button-secondary:hover,
.button-outline:hover {
  background: var(--button-hover-bg);
  border-color: var(--button-hover-bg);
  color: var(--button-hover-text);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0 72px;
}

.hero p {
  max-width: 30em;
  color: var(--text);
  font-size: 21px;
}

.hero-media {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.hero-media > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 48px);
  padding: 10px 14px 10px 10px;
  border: 1px solid oklch(1 0 0 / 0.3);
  border-radius: var(--radius);
  background: oklch(0.23 0.04 258 / 0.76);
  color: oklch(0.98 0.004 250);
  font-size: 15px;
  font-weight: 650;
  backdrop-filter: blur(10px);
}

.hero-media figcaption img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.action-row {
  gap: 14px;
  margin: 0 0 30px;
}

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

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.facts div {
  padding: 26px 24px;
  background: var(--fact-bg);
}

.facts strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
}

.facts span {
  color: var(--muted);
  font-size: 16px;
}

.image-banner {
  position: relative;
  min-height: 300px;
  aspect-ratio: 16 / 5.7;
  margin-bottom: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.image-banner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.image-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, oklch(0.19 0.035 105 / 0.66), transparent 56%),
    linear-gradient(0deg, oklch(0.15 0.018 105 / 0.22), transparent 52%);
}

.image-banner > div {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 5vw, 58px);
  bottom: clamp(22px, 5vw, 52px);
  width: min(420px, calc(100% - 48px));
}

.image-banner > div img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 24px oklch(0 0 0 / 0.32));
}

.section {
  padding-bottom: 96px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.section-heading p {
  max-width: 26em;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card,
.panel,
.contact-form,
.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 32px;
}

.bullet-list,
.arrow-list,
.offer-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-list {
  color: var(--text);
  font-size: 17px;
}

.bullet-list li {
  display: flex;
  gap: 10px;
}

.bullet-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 0.75em;
  border-radius: 50%;
  background: var(--accent-mark);
}

.consultation-card {
  display: grid;
  grid-template-columns: 298px 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 24px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.consultation-card img {
  width: 298px;
  height: 199px;
  border-radius: 4px;
  object-fit: cover;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list span {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  max-width: 100%;
  padding: 9px 18px;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.chip-list-outline span {
  background: transparent;
  border-color: var(--line-strong);
}

.career-cta {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 26px;
}

.feature-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 96px;
  padding: 56px;
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.feature-section p,
.split p {
  color: var(--text);
  font-size: 19px;
}

.stack {
  display: grid;
  gap: 28px;
}

.arrow-list {
  color: var(--text);
  font-size: 17px;
}

.arrow-list li {
  display: flex;
  gap: 12px;
}

.arrow-list li::before {
  content: ">";
  color: var(--accent-mark);
}

.quote-band {
  display: grid;
  justify-items: start;
  gap: 26px;
  margin-bottom: 96px;
  padding: 68px 60px;
  border-radius: var(--radius);
  background: var(--quote-bg);
  color: var(--quote-text);
}

.quote-band blockquote {
  max-width: 26em;
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.34;
}

.quote-band span {
  color: var(--quote-muted);
  font-size: 16px;
}

.news-grid {
  display: grid;
  gap: 24px;
}

.news-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
}

.news-card > img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.news-card > div {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
}

.news-card .eyebrow {
  margin: 0;
}

.news-card h3,
.news-card p {
  margin: 0;
}

.news-card time {
  color: var(--muted);
  font-size: 15px;
}

.news-card a {
  align-self: end;
  font-weight: 650;
}

.split,
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.panel {
  padding: 36px;
}

.offer-list {
  color: var(--text);
  font-size: 17px;
}

.offer-list li {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-subtle);
}

.offer-list li::before {
  content: "»";
  color: var(--accent-mark);
}

.contact-section {
  padding-bottom: 88px;
}

.contact-section > div > p {
  color: var(--text);
  font-size: 18px;
}

.contact-details {
  display: grid;
  gap: 18px;
  font-size: 17px;
}

.contact-details div {
  display: grid;
  gap: 3px;
}

.contact-details span {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-details p {
  margin: 0;
  color: var(--text);
}

.contact-details a[href^="tel:"] {
  color: var(--text);
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 650;
}

.contact-form {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 36px;
}

.form-fields,
.form-success {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 14px;
}

label {
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--text);
  font-size: 15px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--input-bg);
  color: var(--text);
  font: 17px/1.4 var(--sans);
}

input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: oklch(0.58 0.18 32);
  box-shadow: 0 0 0 3px oklch(0.7 0.14 32 / 0.14);
}

.hp-field {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid oklch(0.62 0.18 32 / 0.55);
  border-radius: 6px;
  background: oklch(0.97 0.025 32);
  color: oklch(0.34 0.11 32);
}

.form-alert strong {
  font-size: 16px;
  line-height: 1.3;
}

.form-alert span {
  font-size: 15px;
  line-height: 1.4;
}

[data-theme="dark"] .form-alert {
  background: oklch(0.27 0.05 32);
  color: oklch(0.9 0.04 32);
}

.field-error {
  max-width: 100%;
  color: oklch(0.47 0.16 32);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

[data-theme="dark"] .field-error {
  color: oklch(0.82 0.12 32);
}

.field-error-standalone {
  margin-top: -10px;
}

.captcha-row {
  display: grid;
  grid-template-columns: auto minmax(92px, 140px);
  align-items: center;
  justify-content: start;
  gap: 12px;
}

.captcha-row > span {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.checkbox-label {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
}

.checkbox-label span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.page-intro {
  max-width: 760px;
  padding: 80px 0 64px;
}

.page-intro p {
  color: var(--muted);
  font-size: 21px;
}

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

.legal-section {
  padding: 34px 0;
  border-top: 1px solid var(--line-subtle);
}

.legal-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.legal-content h2 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.22;
}

.legal-content p,
.legal-content address,
.legal-list {
  margin: 0 0 18px;
}

.legal-content address {
  color: var(--text);
  font-style: normal;
}

.legal-list {
  display: grid;
  gap: 8px;
  padding-left: 1.2rem;
}

.legal-list li::marker {
  color: var(--accent-mark);
}

.legal-cta {
  max-width: 820px;
  margin-bottom: 88px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal-cta h2 {
  max-width: 16em;
  margin-bottom: 12px;
  font-size: 30px;
}

.legal-cta p {
  max-width: 34em;
  margin-bottom: 24px;
}

.site-footer {
  display: grid;
  gap: 32px;
  padding: 44px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--heading);
}

.footer-bottom {
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-subtle);
}

.footer-bottom span {
  gap: 24px;
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .site-shell {
    padding-right: clamp(18px, 5vw, 24px);
    padding-left: clamp(18px, 5vw, 24px);
  }

  .hero,
  .feature-section,
  .split,
  .contact-section,
  .service-grid,
  .news-grid,
  .consultation-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 28px;
  }

  .hero {
    gap: 28px;
    padding: 44px 0 56px;
  }

  .hero-media {
    min-height: 340px;
  }

  .hero-media > img {
    min-height: 340px;
  }

  .hero-media figcaption {
    right: 18px;
    bottom: 18px;
  }

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

  .section {
    padding-bottom: 56px;
  }

  .image-banner {
    min-height: 240px;
    margin-bottom: 56px;
  }

  .service-grid {
    gap: 18px;
  }

  .consultation-card {
    gap: 22px;
    padding: 24px;
  }

  .consultation-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .news-card {
    grid-template-columns: minmax(160px, 0.6fr) 1fr;
  }

  .feature-section {
    gap: 30px;
    margin-bottom: 56px;
    padding: 34px 24px;
  }

  .quote-band {
    margin-bottom: 56px;
    padding: 38px 24px;
  }

  .quote-band blockquote {
    font-size: clamp(25px, 7vw, 31px);
  }

  .contact-section {
    gap: 30px;
    padding-bottom: 56px;
  }

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

  .chip-list span {
    flex: 1 1 auto;
  }
}

@media (max-width: 430px) {
  .site-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .site-header {
    justify-content: center;
    text-align: center;
  }

  .brand {
    justify-content: center;
  }

  .brand-logo {
    width: min(76vw, 260px);
  }

  .brand span {
    flex-basis: 100%;
    max-width: none;
    padding-left: 0;
    border-left: 0;
  }

  .primary-nav {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    text-align: left;
  }

  .header-actions {
    flex: 1 1 100%;
    justify-content: flex-end;
    margin-left: auto;
  }

  .facts,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-alert {
    padding: 10px 12px;
  }

  .form-alert strong {
    font-size: 14px;
  }

  .form-alert span {
    font-size: 13px;
  }

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

  .hero-media > img {
    min-height: 280px;
  }

  .hero-media figcaption {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .image-banner {
    min-height: 220px;
    aspect-ratio: 4 / 3;
  }

  .image-banner::after {
    background: linear-gradient(
      0deg,
      oklch(0.18 0.035 105 / 0.72),
      transparent 72%
    );
  }

  .image-banner > div {
    right: 18px;
    left: 18px;
    bottom: 18px;
    width: auto;
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-card > img {
    min-height: 220px;
  }

  .action-row .button,
  .feature-section .button,
  .career-cta,
  .button-outline,
  .contact-form button {
    width: 100%;
  }

  .header-actions .button-small {
    flex: 0 1 230px;
  }

  .panel,
  .service-card,
  .contact-form {
    padding: 22px 18px;
  }
}
