:root {
  --bg: #ffffff;
  --surface: #f6f7f8;
  --surface-strong: #edf0f3;
  --ink: #1e252c;
  --muted: #66717c;
  --line: #dce1e5;
  --accent: #2667d8;
  --accent-hover: #1957bd;
  --container: 1080px;
  --radius: 8px;
  --font: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body, button, input, select, textarea { font-family: var(--font); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; color: #fff; background: var(--ink); transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header-inner { min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; width: max-content; font-weight: 750; letter-spacing: 0.04em; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: var(--accent); border-radius: 6px; font-size: 13px; font-weight: 800; }
.site-nav { display: flex; justify-content: center; gap: 26px; color: var(--muted); font-size: 14px; }
.site-nav a:hover, .site-nav a:focus-visible, .footer-links a:hover, .footer-links a:focus-visible, .secondary-link:hover, .secondary-link:focus-visible { color: var(--accent); }
.header-action { padding: 8px 12px; color: var(--accent); border: 1px solid #b8cced; border-radius: 6px; font-size: 13px; font-weight: 650; }

.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 16px; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 6px; font-weight: 650; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button:disabled { opacity: 0.62; cursor: wait; }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(38, 103, 216, 0.24); outline-offset: 2px; }

.hero { padding: 70px 0 64px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: 76px; align-items: center; }
.section-label { margin-bottom: 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin-bottom: 18px; font-size: clamp(38px, 5vw, 52px); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; }
.hero-lead { max-width: 650px; margin-bottom: 24px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 20px; }
.secondary-link { color: var(--accent); font-weight: 650; }
.hero-summary { border-top: 1px solid var(--line); }
.hero-summary div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero-summary strong { font-size: 14px; }
.hero-summary span { color: var(--muted); font-size: 14px; }

.section { padding: 72px 0; }
.section-heading { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: end; margin-bottom: 28px; }
.section-heading h2, .compact-heading h2, .process h2, .contact h2 { margin-bottom: 0; font-size: clamp(28px, 3.5vw, 38px); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
.section-heading > p, .compact-heading > p:last-child, .contact-copy > p:last-child { margin: 0; color: var(--muted); }

.projects { background: var(--surface); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.project-card { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.project-image { height: 248px; overflow: hidden; background: var(--surface-strong); border-bottom: 1px solid var(--line); }
.project-image-interface img { object-fit: contain; }
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.project-image-dark { background: #14191e; }
.project-image-contain { display: grid; place-items: center; padding: 18px; }
.project-image-contain img { object-fit: contain; }
.project-copy { padding: 20px; }
.project-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }
.project-meta span:last-child { color: #23804a; }
.project-copy h3 { margin-bottom: 8px; font-size: 22px; line-height: 1.2; }
.project-copy p { margin-bottom: 0; color: var(--muted); }

.services { border-bottom: 1px solid var(--line); }
.compact-layout { display: grid; grid-template-columns: 320px 1fr; gap: 72px; }
.compact-heading > p:last-child { margin-top: 16px; }
.service-list { border-top: 1px solid var(--line); }
.service-list article { display: grid; grid-template-columns: 44px 200px 1fr; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.service-list article > span { color: var(--accent); font-size: 12px; font-weight: 700; }
.service-list article > div { display: contents; }
.service-list h3 { margin: 0; font-size: 17px; }
.service-list p { margin: 0; color: var(--muted); }

.process { padding: 48px 0; background: #f1f4f8; border-bottom: 1px solid var(--line); }
.process-inner { display: grid; grid-template-columns: 320px 1fr; gap: 72px; }
.process ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.process li { padding-top: 12px; border-top: 2px solid #b9c9df; }
.process li > span { display: block; margin-bottom: 12px; color: var(--accent); font-size: 12px; font-weight: 700; }
.process li p { margin: 0; color: var(--muted); font-size: 14px; }
.process li strong { color: var(--ink); }

.contact-grid { display: grid; grid-template-columns: minmax(260px, 0.75fr) minmax(440px, 1.25fr); gap: 72px; align-items: start; }
.contact-copy > p:last-child { max-width: 420px; margin-top: 16px; }
.contact-form { display: grid; gap: 15px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cfd6dc; border-radius: 6px; }
.field input, .field select { height: 42px; padding: 0 11px; }
.field textarea { min-height: 108px; padding: 10px 11px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8c969f; }
.consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; }
.consent input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-message { min-height: 20px; margin: -2px 0; color: var(--muted); font-size: 13px; }
.form-message.is-error { color: #b02a37; }
.form-message.is-success { color: #237647; }
.form-submit { justify-self: start; }

.site-footer { padding: 26px 0; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.footer-links { display: flex; justify-content: center; gap: 22px; font-size: 13px; }
.footer-inner > p { margin: 0; font-size: 13px; }

@media (max-width: 860px) {
  .hero-inner, .compact-layout, .process-inner, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-heading { grid-template-columns: 1fr; gap: 10px; }
  .section-heading > p { max-width: 620px; }
  .process ol { gap: 18px; }
  .site-nav { gap: 16px; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 58px; grid-template-columns: auto 1fr; gap: 16px; }
  .header-action { display: none; }
  .site-nav { justify-content: flex-end; gap: 12px; font-size: 12px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 25px; height: 25px; }
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 36px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero-summary div { grid-template-columns: 105px 1fr; }
  .section { padding: 52px 0; }
  .section-heading { margin-bottom: 22px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-image { height: 210px; }
  .project-copy { padding: 17px; }
  .project-copy h3 { font-size: 20px; }
  .service-list article { grid-template-columns: 34px 1fr; gap: 12px; }
  .service-list article > div { display: block; }
  .service-list h3 { margin-bottom: 4px; }
  .process { padding: 42px 0; }
  .process ol { grid-template-columns: 1fr; gap: 18px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 18px; }
  .form-submit { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; gap: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
