:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f8;
  --text: #17202a;
  --muted: #5f6f7f;
  --line: #d9e2ea;
  --brand: #2563eb;
  --brand-dark: #1748b5;
  --accent: #14b8a6;
  --danger: #b42318;
  --ok: #067647;
  --shadow: 0 18px 45px rgba(24, 39, 75, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
}

.page {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 251, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 750;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  padding: 72px 0 44px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  max-width: 680px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  background: var(--brand);
  color: #fff;
}

.button--primary:hover {
  background: var(--brand-dark);
}

.button--secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.visual {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(37, 99, 235, 0.11), transparent 44%),
    linear-gradient(30deg, rgba(20, 184, 166, 0.13), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.visual__panel {
  display: grid;
  gap: 16px;
  height: 100%;
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.metric strong {
  font-size: 22px;
}

.section {
  padding: 58px 0;
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(37, 99, 235, 0.14);
}

.field--hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 14px;
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.form-status[data-state="ok"] {
  color: var(--ok);
}

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 0;
}

.error-page__content {
  width: min(720px, calc(100% - 32px));
}

.error-code {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header__inner,
  .nav,
  .actions {
    align-items: flex-start;
  }

  .site-header__inner {
    flex-direction: column;
    padding: 16px 0;
  }

  .nav {
    flex-wrap: wrap;
  }

  .hero__grid,
  .contact-layout,
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .visual {
    min-height: 320px;
  }
}

.contact-include {
  margin: 0;
  padding: 0;
}

.contact-include-frame {
  display: block;
  width: 100%;
  min-height: 980px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
}

@media (max-width: 760px) {
  .contact-include-frame {
    min-height: 1220px;
  }
}
