:root {
  --ink: #121820;
  --muted: #596674;
  --soft: #eef3f5;
  --paper: #f8faf9;
  --white: #ffffff;
  --line: #d9e1e4;
  --blue: #1769aa;
  --blue-deep: #0a3f6c;
  --sage: #4f6f63;
  --brass: #9b7a3d;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 22px 44px rgba(26, 45, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

body * {
  font-family: Arial, "Segoe UI", sans-serif;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
p {
  margin: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  width: 100%;
  font-size: 56px;
  line-height: 1;
  font-weight: 740;
}

h2 {
  font-size: 38px;
  line-height: 1.08;
  font-weight: 660;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 650;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(18, 24, 32, 0.08);
  background: rgba(248, 250, 249, 0.88);
  backdrop-filter: blur(18px);
}

.topbar > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(23, 105, 170, 0.12);
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.topnav a {
  text-decoration: none;
}

.topnav a:hover,
.topnav a[aria-current="page"] {
  color: var(--ink);
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 17px;
  color: var(--ink);
  background: var(--white);
  font-size: 14px;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-primary:hover {
  background: var(--blue-deep);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-ghost {
  border-color: rgba(18, 24, 32, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

.section-nav {
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  z-index: 35;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(18, 24, 32, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

body.show-section-nav .section-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.section-nav a {
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.section-nav a:hover {
  color: var(--ink);
  background: var(--soft);
}

.hero {
  position: relative;
  min-height: calc(88svh - 66px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 66px max(24px, calc((100vw - var(--max)) / 2)) 28px;
  overflow: hidden;
  background: #e8eff1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(247, 250, 249, 0.96) 0%, rgba(247, 250, 249, 0.88) 36%, rgba(247, 250, 249, 0.24) 62%, rgba(247, 250, 249, 0) 100%),
    linear-gradient(180deg, rgba(247, 250, 249, 0.18) 0%, rgba(232, 239, 241, 0.74) 100%);
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
  min-width: 0;
  padding-bottom: 64px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.lead {
  max-width: 610px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-visual::before {
  content: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-foot {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(173, 189, 194, 0.62);
  backdrop-filter: blur(18px);
}

.hero-foot span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
  text-align: center;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px max(24px, calc((100vw - var(--max)) / 2));
  background: var(--line);
}

.strip-item {
  min-height: 128px;
  padding: 28px;
  background: var(--white);
}

.strip-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

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

.section {
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
  scroll-margin-top: 124px;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: 54px;
  align-items: center;
}

.section-copy p:not(.eyebrow),
.section-head p {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.section-media,
.section-table {
  background: var(--white);
}

.section-head {
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head.narrow {
  max-width: 700px;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compare-card,
.resource-card,
.field-card,
.info-block,
.contact-form,
.selected-config {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.compare-card {
  min-height: 270px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.compare-card.accent {
  color: var(--white);
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.card-kicker,
.resource-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.compare-card.accent .card-kicker {
  color: #bfe3ff;
}

.compare-card p,
.resource-card p,
.field-card p {
  margin-top: 14px;
  color: var(--muted);
}

.compare-card.accent p {
  color: rgba(255, 255, 255, 0.78);
}

.field-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  grid-template-rows: repeat(2, minmax(250px, 1fr));
  gap: 16px;
}

.field-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: var(--ink);
}

.field-card-large {
  grid-row: span 2;
}

.field-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  opacity: 0.9;
}

.field-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(18, 24, 32, 0) 0%, rgba(18, 24, 32, 0.86) 100%);
}

.field-card p {
  color: rgba(255, 255, 255, 0.76);
}

.spec-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.spec-table div {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
  gap: 20px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.spec-table div:first-child {
  border-top: 0;
}

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

.spec-table strong {
  font-weight: 680;
}

.interface-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.interface-list div {
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}

.interface-list strong,
.interface-list span {
  display: block;
}

.interface-list strong {
  margin-bottom: 10px;
  color: var(--blue-deep);
}

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

.configurator {
  display: grid;
  grid-template-columns: minmax(330px, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: start;
  background: linear-gradient(180deg, #f6f9f9 0%, #eef4f2 100%);
}

.config-preview {
  position: sticky;
  top: 136px;
  min-width: 0;
}

.config-preview img {
  width: min(280px, 72%);
  max-height: 380px;
  object-fit: contain;
  margin: 22px auto;
  filter: drop-shadow(0 22px 32px rgba(18, 24, 32, 0.16));
}

.config-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.config-summary dl,
.selected-config dl {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

.config-summary div,
.selected-config div {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 14px;
}

.config-summary dt,
.selected-config dt {
  color: var(--muted);
}

.config-summary dd,
.selected-config dd {
  margin: 0;
  font-weight: 680;
}

.config-options {
  display: grid;
  gap: 18px;
}

.option-group {
  display: grid;
  gap: 10px;
}

.option-group h3 {
  margin-bottom: 2px;
}

.option {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.option span,
.option small {
  display: block;
}

.option span {
  font-weight: 700;
}

.option small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.option.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}

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

.resource-card {
  min-height: 230px;
  padding: 26px;
  text-decoration: none;
}

.resource-card:hover {
  border-color: var(--blue);
}

.factory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.factory-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius);
}

.factory-grid img:first-child {
  grid-column: 1 / -1;
  height: 270px;
}

.channel-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 58px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: var(--blue-deep);
}

.channel-band p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.channel-band .eyebrow {
  color: #bfe3ff;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
  font-size: 14px;
}

.contact-page {
  padding: 0 max(24px, calc((100vw - var(--max)) / 2)) 84px;
}

.contact-hero {
  padding: 92px 0 46px;
}

.contact-hero h1 {
  max-width: 880px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.4fr) minmax(0, 0.6fr);
  gap: 22px;
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 16px;
}

.info-block {
  padding: 26px;
}

.info-block h2 {
  font-size: 24px;
}

.info-block ol {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.info-block li + li,
.info-block p + p {
  margin-top: 12px;
}

.info-block p {
  color: var(--muted);
}

.info-block a {
  color: var(--blue);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd6da;
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfdfd;
}

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

.selected-config {
  padding: 20px;
  background: #f7fbfc;
}

.selected-config h2 {
  font-size: 20px;
}

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

.not-found {
  min-height: 100svh;
  display: grid;
  place-content: center;
  padding: 24px;
  background: var(--paper);
}

@media (max-width: 980px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .section-nav {
    top: 112px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .section-split,
  .configurator,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-copy {
    padding-bottom: 260px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .config-preview {
    position: static;
  }
}

@media (max-width: 720px) {
  h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.06;
  }

  h2 {
    font-size: 29px;
  }

  .lead {
    font-size: 17px;
  }

  .topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 18px;
    overflow: hidden;
  }

  .brand {
    flex: 1 1 100%;
  }

  .topbar > .button {
    display: none;
  }

  .topnav {
    flex: 1 1 100%;
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    gap: 18px;
    overflow-x: auto;
  }

  .topnav a {
    flex: 0 0 auto;
  }

  .section-nav {
    top: 116px;
  }

  .hero,
  .section,
  .contact-page {
    width: 100%;
    max-width: 100vw;
    padding-left: 18px;
    padding-right: 18px;
    overflow: hidden;
  }

  .hero {
    min-height: 840px;
    align-items: start;
    padding-top: 52px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.97) 45%, rgba(247, 250, 249, 0.24) 68%, rgba(247, 250, 249, 0) 100%),
      linear-gradient(90deg, rgba(247, 250, 249, 0.92) 0%, rgba(247, 250, 249, 0.42) 100%);
  }

  .hero-visual img {
    object-position: 82% bottom;
  }

  .hero-copy,
  .hero-actions,
  .lead,
  h1 {
    width: 330px;
    max-width: calc(100vw - 36px);
  }

  .hero-foot,
  .trust-strip,
  .comparison,
  .field-grid,
  .interface-list,
  .resource-grid,
  .form-grid,
  .channel-band {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-actions .button {
    width: 330px;
    max-width: calc(100vw - 36px);
  }

  .field-card-large {
    grid-row: auto;
  }

  .spec-table div,
  .config-summary div,
  .selected-config div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .factory-grid img,
  .factory-grid img:first-child {
    grid-column: auto;
    height: 230px;
  }

  .channel-band {
    padding-left: 18px;
    padding-right: 18px;
  }
}
