:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5d6b7a;
  --line: #dfe5ec;
  --surface: #ffffff;
  --soft: #f4f7fa;
  --blue: #1455d9;
  --green: #138a63;
  --gold: #c98719;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand img {
  width: 148px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.nav a {
  padding: 9px 11px;
  border-radius: 6px;
  color: var(--muted);
}

.nav a:hover,
.nav-action {
  background: var(--ink);
  color: #fff !important;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(34px, 6vw, 78px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(120deg, rgba(20, 85, 217, 0.12), rgba(19, 138, 99, 0.12)),
    url("../../images/back.jpg") center/cover no-repeat;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin: 22px 0 28px;
  color: #263747;
  font-size: clamp(18px, 2.2vw, 22px);
}

.track-form {
  max-width: 680px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 32, 42, 0.12);
}

.track-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.track-row {
  display: flex;
  gap: 10px;
}

.track-row input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.stack-form,
.login-box {
  display: grid;
  gap: 16px;
}

.stack-form label,
.login-box label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.stack-form input,
.stack-form textarea,
.login-box input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.stack-form textarea {
  resize: vertical;
}

.track-row button,
.button-link,
.stack-form button,
.login-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-body {
  min-height: 100vh;
  background: linear-gradient(120deg, rgba(20, 85, 217, 0.12), rgba(19, 138, 99, 0.12)), var(--soft);
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-box {
  width: min(100%, 440px);
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(23, 32, 42, 0.12);
}

.login-brand {
  margin-bottom: 6px;
}

.login-box h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  color: #8f1d1d;
  background: #fff0f0;
  border: 1px solid #ffd1d1;
  border-radius: 6px;
}

.form-success {
  margin: 0;
  padding: 10px 12px;
  color: #145c3f;
  background: #effaf5;
  border: 1px solid #bee8d4;
  border-radius: 6px;
}

.hidden-trap {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  height: 1px !important;
}

.login-link {
  color: var(--muted);
  text-align: center;
}

.hero-panel {
  display: grid;
  gap: 12px;
}

.hero-panel div,
.quick-grid a,
.service-list article,
.news-list article,
.contact-grid > div,
.compact {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-panel div {
  padding: 22px;
}

.hero-panel strong {
  display: block;
  font-size: 28px;
}

.hero-panel span {
  color: var(--muted);
}

.quick-grid,
.service-list,
.news-list,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 64px);
}

.quick-grid a {
  padding: 18px;
}

.quick-grid span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-grid strong {
  display: block;
  margin-top: 8px;
}

.section,
.page-title {
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 64px);
}

.page-shell {
  padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 64px);
}

.section-band {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.section-heading h2,
.compact h2,
.contact-grid h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.public-form {
  display: grid;
  gap: 14px;
}

.public-form.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.public-form input,
.public-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.public-form textarea {
  resize: vertical;
}

.public-form button {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.full-span {
  grid-column: 1 / -1;
}

.service-list,
.news-list,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
}

.service-list article,
.news-list article,
.contact-grid > div {
  padding: 22px;
}

.service-list h3,
.news-list h3 {
  margin: 0 0 10px;
}

.service-list p,
.news-list p,
.compact p,
.contact-grid p {
  color: var(--muted);
}

.compact {
  max-width: 900px;
  padding: 28px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 64px);
  color: #fff;
  background: var(--ink);
}

@media (max-width: 860px) {
  .site-header,
  .nav,
  .track-row,
  .section-heading,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .brand span {
    white-space: normal;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero,
  .quick-grid,
  .service-list,
  .news-list,
  .contact-grid,
  .public-form.two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}
