/* =========================================================
   Магистраль — грузоперевозки по России
   Light business theme, deep navy accent
   ========================================================= */

:root {
  --navy: #0a1f3c;
  --navy-700: #12325c;
  --navy-500: #2b4f7d;
  --navy-100: #e7edf6;
  --navy-050: #f0f4fa;
  --ink: #0e1726;
  --muted: #5a6b80;
  --muted-2: #7b8a9c;
  --paper: #f5f7fa;
  --white: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --green: #1f7a4d;
  --red: #b42318;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 60, 0.05), 0 10px 30px -18px rgba(10, 31, 60, 0.25);
  --shadow-lg: 0 24px 70px -30px rgba(10, 31, 60, 0.45);
  --font-body: "Onest", "Segoe UI", system-ui, sans-serif;
  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --container: 1200px;
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--navy);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-500);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section {
  padding: 104px 0;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head h2 {
  margin-top: 14px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(10, 31, 60, 0.8);
}

.btn-primary:hover {
  background: var(--navy-700);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -16px rgba(10, 31, 60, 0.85);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--navy);
}

.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--navy-050);
}

.btn-lg {
  padding: 17px 30px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(10, 31, 60, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: rotate(-4deg);
}

.logo-mark svg {
  width: 26px;
  height: 26px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.logo-text small {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 8px;
}

.phone {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: right;
}

.phone-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.phone-number {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.calc-wrap {
  position: relative;
}

.calc-toggle .chev {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.calc-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.calc-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 440px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 120;
  animation: panel-in 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.calc-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

.calc-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 14.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: #a3b0c0;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(10, 31, 60, 0.1);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235a6b80' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--navy);
}

.consent a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 0;
  font-size: 13px;
  line-height: 1.4;
}

.form-status.is-ok {
  color: var(--green);
}

.form-status.is-error {
  color: var(--red);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.burger span {
  display: block;
  height: 1.8px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.8px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.8px) rotate(-45deg);
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 24px 20px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .mobile-phone {
  margin-top: 8px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 104px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 12% -10%, #e9f0f9 0%, rgba(233, 240, 249, 0) 62%),
    radial-gradient(700px 420px at 100% 10%, #f2f5fa 0%, rgba(242, 245, 250, 0) 60%),
    #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 31, 60, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 55%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 55%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  margin-top: 18px;
  max-width: 15ch;
}

.hero-lead {
  margin-top: 22px;
  max-width: 50ch;
  font-size: 1.08rem;
  color: var(--muted);
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

.hero-trust svg {
  width: 18px;
  height: 18px;
  color: var(--navy);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(10, 31, 60, 0.55);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(10, 31, 60, 0) 45%, rgba(10, 31, 60, 0.28) 100%);
  pointer-events: none;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: 0 24px 50px -24px rgba(10, 31, 60, 0.5);
}

.float-track {
  left: -30px;
  bottom: 34px;
  width: 268px;
  padding: 15px 17px 14px;
}

.float-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 4px rgba(34, 160, 107, 0.16);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(34, 160, 107, 0.16);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(34, 160, 107, 0.06);
  }
}

.float-eta {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.route-line {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 14px 0 7px;
}

.route-point {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: #fff;
  flex-shrink: 0;
}

.route-point-end {
  background: var(--navy);
}

.route-bar {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 4px;
}

.route-bar i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 64%;
  background: var(--navy);
  border-radius: 2px;
}

.route-bar i::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(10, 31, 60, 0.12);
}

.route-cities {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted-2);
}

.float-insured {
  top: 26px;
  right: -18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.float-insured svg {
  width: 26px;
  height: 26px;
  color: var(--navy);
}

.float-insured div {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.float-insured strong {
  font-size: 12.5px;
  color: var(--navy);
}

.float-insured span {
  font-size: 10.5px;
  color: var(--muted-2);
}

/* ---------- Directions ---------- */

.directions {
  background: var(--paper);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #d3dde9;
  box-shadow: 0 30px 60px -34px rgba(10, 31, 60, 0.45);
}

.card-media {
  position: relative;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-num {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 26px;
}

.card-body h3 {
  color: var(--navy);
}

.card-body > p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 22px;
}

.card-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--ink);
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--navy-100);
  border: 1px solid var(--navy-500);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 0;
  border: none;
  background: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  align-self: flex-start;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Advantages ---------- */

.advantages {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.advantages::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    radial-gradient(800px 400px at 85% 0%, rgba(43, 79, 125, 0.55) 0%, rgba(43, 79, 125, 0) 70%);
  background-size: 28px 28px, auto;
  pointer-events: none;
}

.advantages .container {
  position: relative;
}

.section-head-dark h2 {
  color: #fff;
}

.section-head-dark .eyebrow {
  color: #9db6d8;
}

.section-head-dark .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.adv {
  padding: 30px 28px 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.adv:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-4px);
}

.adv-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  margin-bottom: 22px;
}

.adv-icon svg {
  width: 30px;
  height: 30px;
}

.adv h3 {
  color: #fff;
  font-size: 1.2rem;
}

.adv p {
  margin-top: 10px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.7);
}

.adv-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.adv-stats div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.adv-stats strong {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.adv-stats span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 18ch;
}

/* ---------- Process ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 28px;
  right: 12%;
  border-top: 1px dashed #c3d0e0;
}

.step {
  position: relative;
  padding-top: 76px;
}

.step-num {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  z-index: 1;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.step:hover .step-num {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.step h3 {
  font-size: 1.1rem;
  color: var(--navy);
}

.step p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--paper);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 64px;
  align-items: start;
}

.faq-intro h2 {
  margin-top: 14px;
}

.faq-intro .section-lead {
  margin-top: 18px;
}

.faq-intro .btn {
  margin-top: 26px;
}

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

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

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

.faq-plus {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1.5px;
  background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-plus {
  background: var(--navy);
  border-color: var(--navy);
}

.faq-item[open] .faq-plus::before,
.faq-item[open] .faq-plus::after {
  background: #fff;
}

.faq-item[open] .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 44px 24px 0;
}

.faq-answer p {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- CTA ---------- */

.cta-section {
  padding-top: 0;
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr auto;
  gap: 40px;
  align-items: center;
  padding: 56px;
  border-radius: 32px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 70%),
    var(--navy-100);
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border: 1px dashed rgba(10, 31, 60, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.cta-copy {
  position: relative;
}

.cta-copy h2 {
  margin-top: 12px;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}

.cta-copy p:last-child {
  margin-top: 14px;
  max-width: 52ch;
  color: var(--muted);
}

.cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-phone {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.68);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1.2fr 1fr;
  gap: 44px;
  padding-bottom: 56px;
}

.logo-light .logo-mark {
  background: #fff;
  color: var(--navy);
}

.logo-light .logo-text strong {
  color: #fff;
}

.logo-light .logo-text small {
  color: rgba(255, 255, 255, 0.5);
}

.footer-brand > p {
  margin-top: 20px;
  max-width: 34ch;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.socials svg {
  width: 20px;
  height: 20px;
}

.footer-col h4 {
  margin-bottom: 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
}

.footer-col a {
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-docs a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s ease;
}

.footer-docs a:hover {
  color: #fff;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 64px 0 96px;
}

.legal-head {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.legal-head h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 22ch;
}

.legal-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted-2);
}

.legal-body {
  max-width: 820px;
}

.legal-body h2 {
  margin: 36px 0 12px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--navy);
}

.legal-body p,
.legal-body li {
  font-size: 15px;
  line-height: 1.75;
  color: #3d4c60;
}

.legal-body p + p {
  margin-top: 12px;
}

.legal-body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding-left: 22px;
  list-style: disc;
}

.legal-body a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .nav {
    gap: 18px;
  }

  .phone {
    display: none;
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    padding: 48px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy h1 {
    max-width: 18ch;
  }

  .hero-visual {
    max-width: 640px;
  }

  .float-track {
    left: 12px;
    bottom: 18px;
  }

  .float-insured {
    right: 12px;
    top: 18px;
  }

  .section {
    padding: 80px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 40px;
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

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

  .adv-stats {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .steps::before {
    top: 28px;
    bottom: 28px;
    left: 28px;
    right: auto;
    border-top: none;
    border-left: 1px dashed #c3d0e0;
  }

  .step {
    padding: 0 0 34px 84px;
    min-height: 56px;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cta-card {
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }

  .cta-actions {
    align-items: flex-start;
  }

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

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }

  /* backdrop-filter creates a containing block for fixed children,
     which would break the mobile calculator sheet */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }

  .header-inner {
    gap: 12px;
  }

  .logo-text small {
    display: none;
  }

  .calc-toggle {
    padding: 11px 16px;
    font-size: 13.5px;
  }

  .calc-panel {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-trust {
    gap: 10px 16px;
  }

  .float-track {
    width: 230px;
    left: 8px;
    bottom: 10px;
  }

  .float-insured {
    right: 8px;
    top: 10px;
    padding: 10px 12px;
  }

  .float-insured strong {
    font-size: 11.5px;
  }

  .section {
    padding: 64px 0;
  }

  .cta-card {
    padding: 32px 22px;
    border-radius: 24px;
  }

  .cta-actions .btn {
    width: 100%;
  }

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

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

  .faq-answer {
    padding-right: 0;
  }
}

@media (max-width: 420px) {
  .calc-toggle {
    font-size: 12.5px;
    padding: 10px 13px;
  }

  .calc-toggle .chev {
    display: none;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .logo-text strong {
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .logo-text {
    display: none;
  }

  .header-inner {
    gap: 10px;
  }

  .header-actions {
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
