:root {
  --navy-950: #071c2c;
  --navy-900: #0b253b;
  --navy-800: #102f4a;
  --blue-700: #145da0;
  --blue-600: #1b73c9;
  --blue-100: #dceeff;
  --blue-050: #eff7ff;
  --ink: #122331;
  --slate: #51606d;
  --muted: #6d7983;
  --line: #dfe6eb;
  --paper: #ffffff;
  --canvas: #f6f8fa;
  --warm: #e8b04b;
  --warm-light: #fff3d6;
  --success: #1b7f5a;
  --shadow-sm: 0 10px 32px rgba(15, 42, 63, 0.08);
  --shadow-lg: 0 28px 70px rgba(15, 42, 63, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  color: inherit;
}

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

h1,
h2,
h3 {
  color: var(--navy-950);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 4.5vw, 3.85rem);
}

h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

::selection {
  background: var(--warm-light);
  color: var(--navy-950);
}

:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: 112px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy-950);
  color: var(--paper);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.eyebrow-light {
  color: #a8d5ff;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue-700);
  color: var(--paper);
  box-shadow: 0 10px 26px rgba(20, 93, 160, 0.22);
}

.button-primary:hover {
  background: #0f4f89;
  box-shadow: 0 14px 30px rgba(20, 93, 160, 0.28);
}

.button-secondary {
  border-color: #cad7e1;
  background: rgba(255, 255, 255, 0.76);
  color: var(--navy-900);
}

.button-secondary:hover {
  border-color: var(--navy-800);
  background: var(--paper);
}

.button-white {
  background: var(--paper);
  color: var(--navy-950);
  box-shadow: 0 12px 30px rgba(5, 26, 44, 0.16);
}

.button-white:hover {
  background: var(--warm-light);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(20, 93, 160, 0.3);
  color: var(--blue-700);
  font-weight: 750;
  transition: border-color var(--transition), gap var(--transition), color var(--transition);
}

.text-link:hover {
  gap: 15px;
  border-color: currentColor;
  color: var(--navy-900);
}

.text-link-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--paper);
}

.text-link-light:hover {
  color: var(--warm-light);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(14, 45, 70, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--paper);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  box-shadow: 0 7px 18px rgba(10, 37, 59, 0.18);
}

.brand-name {
  color: var(--navy-950);
  font-size: 1.03rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #334858;
  font-size: 0.94rem;
  font-weight: 650;
}

.primary-nav > a:not(.nav-phone) {
  position: relative;
  padding-block: 9px;
}

.primary-nav > a:not(.nav-phone)::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--blue-600);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.primary-nav > a:not(.nav-phone):hover::after {
  transform: scaleX(1);
}

.nav-phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--navy-900);
  color: var(--paper);
  transition: background-color var(--transition), transform var(--transition);
}

.nav-phone:hover {
  background: var(--blue-700);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--navy-950);
  transition: transform var(--transition), opacity var(--transition);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(244, 249, 253, 0.96) 0%, rgba(255, 255, 255, 0.98) 58%, rgba(239, 247, 255, 0.86) 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(16, 47, 74, 0.22) 0.65px, transparent 0.65px);
  background-size: 18px 18px;
  content: "";
  mask-image: linear-gradient(to right, transparent, #000 55%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.hero-glow-one {
  top: -220px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: rgba(104, 188, 255, 0.14);
}

.hero-glow-two {
  right: 34%;
  bottom: -230px;
  width: 420px;
  height: 420px;
  background: rgba(232, 176, 75, 0.1);
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: 690px;
  align-items: center;
  gap: clamp(50px, 8vw, 100px);
  grid-template-columns: minmax(0, 1.1fr) minmax(350px, 0.75fr);
  padding-block: 96px 110px;
}

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

.hero-lead {
  max-width: 670px;
  margin-bottom: 32px;
  color: var(--slate);
  font-size: clamp(1.12rem, 2.1vw, 1.34rem);
  line-height: 1.62;
}

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

.hero-location {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-location span {
  color: var(--warm);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(18, 59, 89, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}

.hero-card::after {
  position: absolute;
  top: -70px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--blue-050);
  content: "";
}

.hero-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.hero-card-top p {
  margin: 0;
  color: var(--navy-900);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(27, 127, 90, 0.1);
}

.check-list {
  display: grid;
  gap: 15px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2b4253;
  font-weight: 650;
}

.check-list li span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-050);
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 850;
}

.hero-card-note {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 13px;
  background: var(--canvas);
  grid-template-columns: auto 1fr;
}

.hero-card-note > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-card-note p {
  margin: 0;
  color: var(--slate);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* Service strip */
.service-strip {
  background: var(--navy-950);
  color: #d8e9f6;
}

.service-strip-grid {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(4, 1fr);
}

.service-strip p {
  position: relative;
  margin: 0;
  padding: 23px 28px;
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-align: center;
}

.service-strip p:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
  transform: translateY(-50%);
}

/* Services */
.services {
  background: var(--paper);
}

.section-heading {
  display: grid;
  align-items: end;
  gap: 70px;
  margin-bottom: 54px;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.section-heading h2 {
  max-width: 700px;
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 7px;
  color: var(--slate);
  font-size: 1.05rem;
}

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

.service-card {
  position: relative;
  min-height: 330px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: rgba(20, 93, 160, 0.36);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.card-number {
  position: absolute;
  top: 25px;
  right: 25px;
  color: #98a6b1;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 50px;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-050);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.service-card h3 {
  max-width: 210px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--slate);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* Approach */
.approach {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: #c9d8e4;
}

.approach::before {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 510px;
  height: 510px;
  border: 90px solid rgba(104, 188, 255, 0.055);
  border-radius: 50%;
  content: "";
}

.approach-grid {
  position: relative;
  display: grid;
  gap: 100px;
  grid-template-columns: minmax(0, 0.85fr) minmax(430px, 1.15fr);
}

.approach h2,
.approach h3 {
  color: var(--paper);
}

.approach-intro > p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  gap: 22px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  grid-template-columns: 58px 1fr;
}

.steps-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.step-number {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.steps-list h3 {
  margin-bottom: 8px;
}

.steps-list p {
  max-width: 520px;
  margin: 0;
  color: #b9cad7;
}

/* About */
.about {
  background: var(--canvas);
}

.about-grid {
  display: grid;
  align-items: center;
  gap: clamp(55px, 9vw, 120px);
  grid-template-columns: minmax(350px, 0.85fr) minmax(0, 1.15fr);
}

.about-panel {
  position: relative;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 38px;
  border-radius: var(--radius-lg);
  background: var(--warm-light);
  color: var(--navy-950);
}

.about-panel::before,
.about-panel::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.about-panel::before {
  top: 30px;
  right: -95px;
  width: 280px;
  height: 280px;
  border: 68px solid rgba(20, 93, 160, 0.11);
}

.about-panel::after {
  right: 38px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  background: rgba(232, 176, 75, 0.3);
}

.about-monogram {
  position: relative;
  z-index: 1;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 18px;
  background: var(--navy-900);
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.about-panel p {
  position: relative;
  z-index: 1;
  max-width: 320px;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.about-copy > p:not(.eyebrow) {
  color: var(--slate);
  font-size: 1.06rem;
}

.about-copy .text-link {
  margin-top: 10px;
}

/* FAQ */
.faq-grid {
  display: grid;
  gap: 90px;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
}

.faq-grid h2 {
  max-width: 470px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 25px 48px 25px 0;
  color: var(--navy-950);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 730;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 15px;
  height: 2px;
  border-radius: 99px;
  background: var(--blue-700);
  content: "";
  transition: transform var(--transition);
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0deg);
}

.faq-list details p {
  max-width: 650px;
  padding: 0 48px 24px 0;
  margin: 0;
  color: var(--slate);
}

/* Contact */
.contact {
  padding-top: 20px;
}

.contact-card {
  position: relative;
  display: grid;
  overflow: hidden;
  gap: 80px;
  padding: clamp(38px, 7vw, 78px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-700), var(--navy-900));
  color: #d8e8f4;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.contact-card::after {
  position: absolute;
  right: -90px;
  bottom: -145px;
  width: 340px;
  height: 340px;
  border: 70px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.contact-copy,
.contact-details {
  position: relative;
  z-index: 1;
}

.contact h2 {
  max-width: 690px;
  color: var(--paper);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 1.08rem;
}

.contact-details {
  padding-left: 38px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  font-style: normal;
}

.contact-details p {
  margin-bottom: 2px;
}

.contact-details .contact-label {
  margin-bottom: 22px;
  color: #b9d9f1;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details a {
  display: inline-block;
  margin-top: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--paper);
  font-weight: 750;
}

/* Footer */
.site-footer {
  padding-top: 76px;
  background: var(--navy-950);
  color: #9db0bd;
}

.footer-grid {
  display: grid;
  gap: 70px;
  padding-bottom: 58px;
  grid-template-columns: 1.6fr 1fr 0.7fr;
}

.brand-footer .brand-mark {
  background: var(--paper);
  color: var(--navy-950);
  box-shadow: none;
}

.brand-footer .brand-name {
  color: var(--paper);
}

.footer-summary {
  max-width: 420px;
  margin: 22px 0 0;
}

.footer-heading {
  margin-bottom: 17px;
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-contact address {
  margin-bottom: 9px;
  font-style: normal;
}

.footer-contact a,
.footer-links a {
  color: #dce7ee;
  transition: color var(--transition);
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--paper);
}

.footer-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
}

.footer-links .footer-heading {
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.8rem;
}

.footer-bottom p {
  max-width: 620px;
  margin: 0;
}

/* Legal and error pages */
.inner-page {
  background: var(--canvas);
}

.inner-page .site-header {
  background: rgba(255, 255, 255, 0.98);
}

.legal-hero {
  padding-block: 90px 74px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f4f9fd, #ffffff);
}

.legal-hero h1 {
  max-width: 800px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 4.7rem);
}

.legal-hero p:last-child {
  margin: 0;
  color: var(--slate);
  font-size: 1.05rem;
}

.legal-main {
  padding-block: 80px 110px;
}

.legal-layout {
  display: grid;
  align-items: start;
  gap: 80px;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
}

.legal-nav {
  position: sticky;
  top: 112px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 0.9rem;
}

.legal-nav p {
  margin-bottom: 6px;
  color: var(--navy-950);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-nav a {
  color: var(--blue-700);
  font-weight: 650;
}

.legal-nav a:hover {
  text-decoration: underline;
}

.legal-content {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.legal-content section + section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 15px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

.legal-content p,
.legal-content li {
  color: var(--slate);
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--blue-700);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-contact {
  font-style: normal;
}

.error-main {
  display: grid;
  min-height: 68vh;
  place-items: center;
  padding-block: 80px;
  text-align: center;
}

.error-card {
  max-width: 680px;
  padding: clamp(35px, 7vw, 70px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.error-code {
  margin-bottom: 10px;
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.error-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 6vw, 4.3rem);
}

.error-card > p:not(.error-code) {
  margin-bottom: 28px;
  color: var(--slate);
  font-size: 1.05rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 1060px) {
  .primary-nav {
    gap: 20px;
  }

  .nav-phone {
    display: none;
  }

  .hero-grid {
    gap: 55px;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr);
  }

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

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

  .approach-grid {
    gap: 70px;
  }
}

@media (max-width: 840px) {
  .section {
    padding-block: 84px;
  }

  body.nav-open::after {
    position: fixed;
    z-index: 80;
    inset: 82px 0 0;
    background: rgba(7, 28, 44, 0.34);
    content: "";
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.nav-open .nav-toggle > span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle > span:nth-child(3) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle > span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    max-height: calc(100vh - 82px);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    padding: 14px 20px 22px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 22px 35px rgba(7, 28, 44, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    visibility: hidden;
  }

  .site-header.nav-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .primary-nav > a:not(.nav-phone),
  .primary-nav .nav-phone {
    display: flex;
    min-height: 49px;
    align-items: center;
    padding: 11px 8px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav > a:not(.nav-phone)::after {
    display: none;
  }

  .primary-nav .nav-phone {
    justify-content: center;
    margin-top: 14px;
    border: 0;
  }

  .hero-grid {
    min-height: auto;
    gap: 60px;
    grid-template-columns: 1fr;
    padding-block: 80px;
  }

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

  .hero-card {
    max-width: 650px;
  }

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

  .service-strip p:nth-child(2)::after {
    display: none;
  }

  .service-strip p:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .section-heading,
  .approach-grid,
  .about-grid,
  .faq-grid,
  .contact-card,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 24px;
  }

  .approach-grid,
  .faq-grid {
    gap: 48px;
  }

  .about-grid {
    gap: 50px;
  }

  .about-panel {
    min-height: 410px;
  }

  .contact-card {
    gap: 48px;
  }

  .contact-details {
    padding-top: 34px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  .legal-layout {
    gap: 28px;
  }

  .legal-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .legal-nav p {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  body.nav-open::after {
    inset: 74px 0 0;
  }

  .hero-grid {
    padding-block: 66px 70px;
  }

  h1 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-location {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .hero-location span {
    display: none;
  }

  .hero-card {
    padding: 22px;
    border-radius: var(--radius-md);
  }

  .service-strip p {
    min-height: 70px;
    padding: 17px 10px;
    font-size: 0.75rem;
  }

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

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

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

  .about-panel {
    min-height: 350px;
    padding: 28px;
  }

  .steps-list li {
    gap: 12px;
    grid-template-columns: 45px 1fr;
  }

  .contact-card {
    padding: 34px 25px;
    border-radius: var(--radius-md);
  }

  .contact .button {
    width: 100%;
  }

  .footer-grid {
    gap: 42px;
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .legal-hero {
    padding-block: 62px 54px;
  }

  .legal-main {
    padding-block: 48px 80px;
  }

  .legal-content {
    padding: 25px 21px;
  }

  .error-actions,
  .error-actions .button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
