:root {
  --blue: #005da8;
  --blue-hover: #0374cc;
  --blue-soft: rgba(0, 93, 168, 0.16);
  --ink: #f3f7fb;
  --muted: #aab4c0;
  --line: rgba(216, 222, 230, 0.16);
  --paper: #080b0f;
  --surface: #111720;
  --surface-strong: #151d28;
  --field: #0d1219;
  --danger: #ff7a72;
  --success: #43d38b;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --container: 1120px;
  --gutter: 40px;
  --header-offset: 124px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(180deg, #070a0e 0%, #0b1017 46%, #070a0e 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header,
.hero,
.services,
.contact-section,
.site-footer {
  width: min(var(--container), calc(100% - var(--gutter)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  margin-inline: 0;
  padding: 16px max(20px, calc((100% - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(216, 222, 230, 0.45);
  backdrop-filter: blur(14px);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo {
  width: 184px;
  height: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #263241;
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a,
.nav-disabled {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--blue);
  background: #e9f3fb;
}

.nav-disabled {
  position: relative;
  cursor: not-allowed;
  color: #718093;
  background: #eef2f6;
}

.tooltip {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 2;
  width: max-content;
  max-width: 210px;
  padding: 8px 10px;
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-disabled:hover .tooltip,
.nav-disabled:focus .tooltip {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 82px 0 76px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 6.6rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 3.05rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.intro {
  max-width: 620px;
  margin-bottom: 12px;
  color: #dce8f3;
  font-size: 1.55rem;
  font-weight: 750;
}

.hero-note {
  max-width: 610px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 170ms ease,
    border-color 170ms ease,
    color 170ms ease,
    transform 170ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-hover);
}

.services,
.contact-section {
  scroll-margin-top: var(--header-offset);
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 650px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
}

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

.service-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  border: 1px solid #cfe0ee;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #4fb4ff;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 54px;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: calc(var(--header-offset) + 24px);
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.info-list dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.info-list a {
  color: #7cc6ff;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: rgba(17, 23, 32, 0.86);
  box-shadow: var(--shadow);
}

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

label {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

label span {
  color: var(--muted);
  font-weight: 600;
}

.required {
  color: #4fb4ff;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #6f7b88;
}

input,
select {
  height: 48px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  min-height: 150px;
  padding: 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #4fb4ff;
  box-shadow: 0 0 0 4px rgba(79, 180, 255, 0.14);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 122, 114, 0.12);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-submit {
  width: fit-content;
  min-width: 180px;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: #ff9b93;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer a {
  text-decoration: none;
}

.site-footer span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brunt-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  vertical-align: middle;
}

.brunt-link img {
  width: 42px;
  height: auto;
  display: block;
}

@media (max-width: 1040px) {
  :root {
    --gutter: 32px;
    --header-offset: 166px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-block: 14px;
  }

  .logo {
    width: 168px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 460px;
    padding: 66px 0 62px;
  }

  h1 {
    max-width: 640px;
    font-size: 4.5rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .intro {
    font-size: 1.36rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    min-height: 226px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info {
    position: static;
  }

  .info-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 24px;
    --header-offset: 150px;
  }

  .site-header {
    gap: 12px;
    padding: 0 0 10px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .logo-link {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(216, 222, 230, 0.45);
    backdrop-filter: blur(14px);
  }

  .logo {
    width: 154px;
  }

  .nav {
    width: min(calc(100% - 20px), 390px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 auto;
    padding: 0;
    color: #263241;
    font-size: 0.88rem;
  }

  .nav a,
  .nav-disabled {
    min-width: 0;
    min-height: 44px;
    border: 1px solid rgba(216, 222, 230, 0.9);
    padding: 0 8px;
    background: #fff;
    text-align: center;
  }

  .nav a:hover,
  .nav a:focus-visible {
    color: #fff;
    background: var(--blue);
  }

  .nav-disabled {
    color: #718093;
    background: #eef2f6;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 58px;
  }

  h1 {
    max-width: 480px;
    margin-bottom: 16px;
    font-size: 3.18rem;
    line-height: 1;
  }

  h2 {
    font-size: 2.08rem;
    line-height: 1.08;
  }

  h3 {
    font-size: 1.1rem;
  }

  .intro {
    font-size: 1.18rem;
  }

  .hero-note {
    margin-bottom: 26px;
    font-size: 1rem;
  }

  .services,
  .contact-section {
    padding: 54px 0;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .service-grid,
  .info-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
    padding: 20px;
  }

  .service-icon {
    margin-bottom: 42px;
  }

  .contact-form {
    gap: 16px;
    padding: 22px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
  }

  .button,
  .form-submit {
    width: 100%;
    min-height: 50px;
  }

  input,
  select {
    height: 50px;
  }

  textarea {
    min-height: 138px;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    padding: 24px 0;
  }
}

@media (max-width: 420px) {
  :root {
    --gutter: 20px;
  }

  .logo {
    width: 144px;
  }

  .nav {
    gap: 6px;
    font-size: 0.82rem;
  }

  .nav a,
  .nav-disabled {
    border-radius: 7px;
    padding-inline: 6px;
  }

  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 1.86rem;
  }

  .contact-form,
  .service-card,
  .info-list div {
    padding: 18px;
  }
}
